]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxPreviewFrame swig_types[1] | |
211 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[2] | |
212 | #define SWIGTYPE_p_wxPyPanel swig_types[3] | |
213 | #define SWIGTYPE_p_wxMenu swig_types[4] | |
f5b96ee1 RD |
214 | #define SWIGTYPE_p_wxFontData swig_types[5] |
215 | #define SWIGTYPE_p_wxEvent swig_types[6] | |
216 | #define SWIGTYPE_p_wxPrintData swig_types[7] | |
d55e5bfc RD |
217 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[8] |
218 | #define SWIGTYPE_p_wxIconBundle swig_types[9] | |
219 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[10] | |
220 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[11] | |
221 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[12] | |
222 | #define SWIGTYPE_p_wxFont swig_types[13] | |
223 | #define SWIGTYPE_p_wxSplitterEvent swig_types[14] | |
224 | #define SWIGTYPE_p_wxRegion swig_types[15] | |
225 | #define SWIGTYPE_p_wxFindReplaceData swig_types[16] | |
226 | #define SWIGTYPE_p_int swig_types[17] | |
227 | #define SWIGTYPE_p_wxSize swig_types[18] | |
228 | #define SWIGTYPE_p_wxDC swig_types[19] | |
229 | #define SWIGTYPE_p_wxIcon swig_types[20] | |
f20a2e1f RD |
230 | #define SWIGTYPE_p_wxVisualAttributes swig_types[21] |
231 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[22] | |
232 | #define SWIGTYPE_p_wxColourData swig_types[23] | |
233 | #define SWIGTYPE_p_wxNotifyEvent swig_types[24] | |
234 | #define SWIGTYPE_p_wxPyWindow swig_types[25] | |
235 | #define SWIGTYPE_p_wxSplashScreen swig_types[26] | |
236 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[27] | |
237 | #define SWIGTYPE_p_wxProgressDialog swig_types[28] | |
238 | #define SWIGTYPE_p_wxMessageDialog swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[30] | |
240 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[31] | |
241 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[32] | |
242 | #define SWIGTYPE_p_wxFileDialog swig_types[33] | |
243 | #define SWIGTYPE_p_wxPrinter swig_types[34] | |
244 | #define SWIGTYPE_p_wxArrayInt swig_types[35] | |
245 | #define SWIGTYPE_p_wxEvtHandler swig_types[36] | |
246 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[38] | |
248 | #define SWIGTYPE_p_wxPyVListBox swig_types[39] | |
249 | #define SWIGTYPE_p_wxRect swig_types[40] | |
250 | #define SWIGTYPE_p_char swig_types[41] | |
251 | #define SWIGTYPE_p_wxMiniFrame swig_types[42] | |
252 | #define SWIGTYPE_p_wxFrame swig_types[43] | |
253 | #define SWIGTYPE_p_wxPyPrintout swig_types[44] | |
254 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxStatusBar swig_types[47] | |
257 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[48] | |
258 | #define SWIGTYPE_p_wxPoint swig_types[49] | |
259 | #define SWIGTYPE_p_wxObject swig_types[50] | |
260 | #define SWIGTYPE_p_wxOutputStream swig_types[51] | |
09c21d3b RD |
261 | #define SWIGTYPE_p_wxPyScrolledWindow swig_types[52] |
262 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[53] | |
263 | #define SWIGTYPE_p_wxTipWindow swig_types[54] | |
264 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[55] | |
265 | #define SWIGTYPE_p_wxSplitterWindow swig_types[56] | |
266 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[57] | |
267 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[58] | |
268 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[59] | |
269 | #define SWIGTYPE_p_wxPopupWindow swig_types[60] | |
270 | #define SWIGTYPE_p_wxSashWindow swig_types[61] | |
271 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[62] | |
272 | #define SWIGTYPE_p_wxWindow swig_types[63] | |
273 | #define SWIGTYPE_p_wxScrolledWindow swig_types[64] | |
274 | #define SWIGTYPE_p_wxMenuBar swig_types[65] | |
275 | #define SWIGTYPE_p_wxPrintPreview swig_types[66] | |
276 | #define SWIGTYPE_p_wxSashEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxString swig_types[68] | |
278 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[69] | |
279 | #define SWIGTYPE_p_wxFontDialog swig_types[70] | |
280 | #define SWIGTYPE_p_wxDirDialog swig_types[71] | |
281 | #define SWIGTYPE_p_wxColourDialog swig_types[72] | |
282 | #define SWIGTYPE_p_wxDialog swig_types[73] | |
283 | #define SWIGTYPE_p_wxPanel swig_types[74] | |
284 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[75] | |
285 | #define SWIGTYPE_p_wxPrintDialog swig_types[76] | |
286 | #define SWIGTYPE_p_wxFileSystem swig_types[77] | |
287 | #define SWIGTYPE_p_wxBitmap swig_types[78] | |
288 | #define SWIGTYPE_p_wxCommandEvent swig_types[79] | |
289 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[80] | |
290 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxColour swig_types[82] | |
292 | #define SWIGTYPE_p_wxToolBar swig_types[83] | |
293 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[84] | |
294 | #define SWIGTYPE_p_wxPrintDialogData swig_types[85] | |
295 | static swig_type_info *swig_types[87]; | |
d55e5bfc RD |
296 | |
297 | /* -------- TYPES TABLE (END) -------- */ | |
298 | ||
299 | ||
300 | /*----------------------------------------------- | |
301 | @(target):= _windows_.so | |
302 | ------------------------------------------------*/ | |
303 | #define SWIG_init init_windows_ | |
304 | ||
305 | #define SWIG_name "_windows_" | |
306 | ||
307 | /* Auxiliar swig macros */ | |
308 | ||
309 | #ifdef __cplusplus | |
310 | #define SWIGSTATICINLINE(a) static inline a | |
311 | #define SWIGSTATIC(a) static a | |
312 | #define swig_new_array(type, size) (new type[(size)]) | |
313 | #define swig_delete_array(cptr) delete[] cptr | |
314 | #define swig_const_cast(type,a) const_cast<type>(a) | |
315 | #define swig_static_cast(type,a) static_cast<type>(a) | |
316 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
317 | ||
318 | #ifdef HAVE_NUMERIC_CAST | |
319 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
320 | #else | |
321 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
322 | #endif | |
323 | ||
324 | #else /* C case */ | |
325 | ||
326 | #define SWIGSTATICINLINE(a) static a | |
327 | #define SWIGSTATIC(a) static a | |
328 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
329 | #define swig_delete_array(cptr) free((char*)cptr) | |
330 | #define swig_const_cast(type,a) (type)(a) | |
331 | #define swig_static_cast(type,a) (type)(a) | |
332 | #define swig_reinterpret_cast(type,a) (type)(a) | |
333 | #define swig_numeric_cast(type,a) (type)(a) | |
334 | ||
335 | #endif /* __cplusplus */ | |
336 | ||
337 | ||
338 | #define SWIG_FromSignedChar PyInt_FromLong | |
339 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
340 | #define SWIG_FromShort PyInt_FromLong | |
341 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
342 | #define SWIG_FromInt PyInt_FromLong | |
343 | #define SWIG_FromLong PyInt_FromLong | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
346 | #define SWIG_FromFloat PyFloat_FromDouble | |
347 | #define SWIG_FromDouble PyFloat_FromDouble | |
348 | ||
349 | ||
350 | #include "wx/wxPython/wxPython.h" | |
351 | #include "wx/wxPython/pyclasses.h" | |
352 | ||
353 | ||
354 | static const wxString wxPyEmptyString(wxEmptyString); | |
355 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
356 | ||
357 | ||
358 | ||
359 | #include <limits.h> | |
360 | ||
361 | ||
362 | SWIGSTATICINLINE(long) | |
363 | SWIG_CheckLongInRange(long value, const char* type, | |
364 | long min_value, long max_value) | |
365 | { | |
366 | if (!PyErr_Occurred()) { | |
367 | if (value < min_value) { | |
368 | PyObject *err = | |
369 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
370 | value, type, min_value); | |
371 | ||
372 | PyErr_SetObject(PyExc_OverflowError, err); | |
373 | Py_DECREF(err); | |
374 | } else if (value > max_value) { | |
375 | PyObject *err = | |
376 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
377 | value, type, max_value); | |
378 | PyErr_SetObject(PyExc_OverflowError, err); | |
379 | Py_DECREF(err); | |
380 | } | |
381 | } | |
382 | return value; | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATICINLINE(long) | |
387 | SWIG_AsLong(PyObject * obj) | |
388 | { | |
389 | if (PyNumber_Check(obj)) | |
390 | return PyInt_AsLong(obj); | |
391 | else { | |
392 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
393 | obj->ob_type->tp_name); | |
394 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
395 | Py_DECREF(errmsg); | |
396 | return 0; | |
397 | } | |
398 | } | |
399 | ||
400 | ||
401 | #if INT_MAX != LONG_MAX | |
402 | SWIGSTATICINLINE(int) | |
403 | SWIG_AsInt(PyObject *obj) | |
404 | { | |
405 | return swig_numeric_cast(int, | |
406 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
407 | "int", INT_MIN, INT_MAX)); | |
408 | } | |
409 | #else | |
410 | #define SWIG_AsInt SWIG_AsLong | |
411 | #endif | |
412 | ||
413 | ||
414 | SWIGSTATICINLINE(int) | |
415 | SWIG_CheckInt(PyObject* obj) | |
416 | { | |
417 | SWIG_AsInt(obj); | |
418 | if (PyErr_Occurred()) { | |
419 | PyErr_Clear(); | |
420 | return 0; | |
421 | } else { | |
422 | return 1; | |
423 | } | |
424 | } | |
425 | ||
426 | ||
427 | SWIGSTATICINLINE(int) | |
428 | SWIG_CheckLong(PyObject* obj) | |
429 | { | |
430 | SWIG_AsLong(obj); | |
431 | if (PyErr_Occurred()) { | |
432 | PyErr_Clear(); | |
433 | return 0; | |
434 | } else { | |
435 | return 1; | |
436 | } | |
437 | } | |
438 | ||
439 | ||
440 | SWIGSTATICINLINE(bool) | |
441 | SWIG_AsBool(PyObject *obj) | |
442 | { | |
443 | return PyObject_IsTrue(obj) ? true : false; | |
444 | } | |
445 | ||
446 | ||
447 | SWIGSTATICINLINE(int) | |
448 | SWIG_CheckBool(PyObject* obj) | |
449 | { | |
450 | SWIG_AsBool(obj); | |
451 | if (PyErr_Occurred()) { | |
452 | PyErr_Clear(); | |
453 | return 0; | |
454 | } else { | |
455 | return 1; | |
456 | } | |
457 | } | |
458 | ||
459 | ||
460 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
461 | PyObject* o2; | |
462 | PyObject* o3; | |
463 | ||
464 | if (!target) { | |
465 | target = o; | |
466 | } else if (target == Py_None) { | |
467 | Py_DECREF(Py_None); | |
468 | target = o; | |
469 | } else { | |
470 | if (!PyTuple_Check(target)) { | |
471 | o2 = target; | |
472 | target = PyTuple_New(1); | |
473 | PyTuple_SetItem(target, 0, o2); | |
474 | } | |
475 | o3 = PyTuple_New(1); | |
476 | PyTuple_SetItem(o3, 0, o); | |
477 | ||
478 | o2 = target; | |
479 | target = PySequence_Concat(o2, o3); | |
480 | Py_DECREF(o2); | |
481 | Py_DECREF(o3); | |
482 | } | |
483 | return target; | |
484 | } | |
485 | ||
486 | ||
487 | SWIGSTATICINLINE(double) | |
488 | SWIG_AsDouble(PyObject *obj) | |
489 | { | |
490 | if (PyNumber_Check(obj)) | |
491 | return PyFloat_AsDouble(obj); | |
492 | else { | |
493 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
494 | obj->ob_type->tp_name); | |
495 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
496 | Py_DECREF(errmsg); | |
497 | return 0; | |
498 | } | |
499 | } | |
500 | ||
501 | ||
502 | SWIGSTATICINLINE(int) | |
503 | SWIG_CheckDouble(PyObject* obj) | |
504 | { | |
505 | SWIG_AsDouble(obj); | |
506 | if (PyErr_Occurred()) { | |
507 | PyErr_Clear(); | |
508 | return 0; | |
509 | } else { | |
510 | return 1; | |
511 | } | |
512 | } | |
513 | ||
514 | static const wxString wxPyFrameNameStr(wxFrameNameStr); | |
515 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
516 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
517 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
518 | ||
519 | ||
520 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ | |
521 | wxRect r; | |
522 | self->GetFieldRect(i, r); | |
523 | return r; | |
524 | } | |
525 | static const wxString wxPySplitterNameStr(wxT("splitter")); | |
526 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
527 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
528 | ||
529 | #include <wx/popupwin.h> | |
530 | ||
531 | ||
532 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
533 | { | |
534 | public: | |
535 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
536 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
537 | : wxPopupTransientWindow(parent, style) {} | |
538 | ||
539 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
540 | DEC_PYCALLBACK__(OnDismiss); | |
541 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
542 | PYPRIVATE; | |
543 | }; | |
544 | ||
545 | ||
546 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
547 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
548 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
549 | ||
550 | ||
551 | #include <wx/tipwin.h> | |
552 | ||
553 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ | |
554 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
555 | } | |
556 | ||
557 | #include <wx/tipwin.h> | |
558 | ||
559 | ||
560 | #include <wx/vscroll.h> | |
561 | ||
562 | ||
563 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
564 | { | |
565 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
566 | public: | |
567 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
568 | ||
569 | wxPyVScrolledWindow(wxWindow *parent, | |
570 | wxWindowID id = wxID_ANY, | |
571 | const wxPoint& pos = wxDefaultPosition, | |
572 | const wxSize& size = wxDefaultSize, | |
573 | long style = 0, | |
574 | const wxString& name = wxPyPanelNameStr) | |
575 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
576 | {} | |
577 | ||
578 | // Overridable virtuals | |
579 | ||
580 | // this function must be overridden in the derived class and it should | |
581 | // return the height of the given line in pixels | |
582 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
583 | ||
584 | ||
585 | // this function doesn't have to be overridden but it may be useful to do | |
586 | // it if calculating the lines heights is a relatively expensive operation | |
587 | // as it gives the user code a possibility to calculate several of them at | |
588 | // once | |
589 | // | |
590 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
591 | // shouldn't rely on the latter being called for all lines in the interval | |
592 | // specified here. It is also possible that OnGetLineHeight() will be | |
593 | // called for the lines outside of this interval, so this is really just a | |
594 | // hint, not a promise. | |
595 | // | |
596 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
597 | // usual | |
598 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
599 | ||
600 | ||
601 | // when the number of lines changes, we try to estimate the total height | |
602 | // of all lines which is a rather expensive operation in terms of lines | |
603 | // access, so if the user code may estimate the average height | |
604 | // better/faster than we do, it should override this function to implement | |
605 | // its own logic | |
606 | // | |
607 | // this function should return the best guess for the total height it may | |
608 | // make | |
609 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
610 | ||
611 | ||
612 | // Also expose some other interesting protected methods | |
613 | ||
614 | ||
615 | // find the index of the line we need to show at the top of the window such | |
616 | // that the last (fully or partially) visible line is the given one | |
617 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) | |
618 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } | |
619 | ||
620 | // get the total height of the lines between lineMin (inclusive) and | |
621 | // lineMax (exclusive) | |
622 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
623 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
624 | ||
625 | ||
626 | PYPRIVATE; | |
627 | }; | |
628 | ||
629 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
630 | ||
631 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
632 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
633 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
634 | ||
635 | ||
636 | SWIGSTATICINLINE(unsigned long) | |
637 | SWIG_AsUnsignedLong(PyObject * obj) | |
638 | { | |
639 | if (PyLong_Check(obj)) { | |
640 | return PyLong_AsUnsignedLong(obj); | |
641 | } else { | |
642 | long i = SWIG_AsLong(obj); | |
643 | if ( !PyErr_Occurred() && (i < 0)) { | |
644 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
645 | } | |
646 | return i; | |
647 | } | |
648 | } | |
649 | ||
650 | ||
651 | SWIGSTATICINLINE(int) | |
652 | SWIG_CheckUnsignedLong(PyObject* obj) | |
653 | { | |
654 | SWIG_AsUnsignedLong(obj); | |
655 | if (PyErr_Occurred()) { | |
656 | PyErr_Clear(); | |
657 | return 0; | |
658 | } else { | |
659 | return 1; | |
660 | } | |
661 | } | |
662 | ||
663 | ||
664 | SWIGSTATICINLINE(PyObject* ) | |
665 | SWIG_FromUnsignedLong(unsigned long value) | |
666 | { | |
667 | return (value > LONG_MAX) ? | |
668 | PyLong_FromUnsignedLong(value) | |
669 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
670 | } | |
671 | ||
672 | ||
673 | #include <wx/vlbox.h> | |
674 | ||
675 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); | |
676 | ||
677 | class wxPyVListBox : public wxVListBox | |
678 | { | |
679 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
680 | public: | |
681 | wxPyVListBox() : wxVListBox() {} | |
682 | ||
683 | wxPyVListBox(wxWindow *parent, | |
684 | wxWindowID id = wxID_ANY, | |
685 | const wxPoint& pos = wxDefaultPosition, | |
686 | const wxSize& size = wxDefaultSize, | |
687 | long style = 0, | |
688 | const wxString& name = wxPyVListBoxNameStr) | |
689 | : wxVListBox(parent, id, pos, size, style, name) | |
690 | {} | |
691 | ||
692 | // Overridable virtuals | |
693 | ||
694 | // the derived class must implement this function to actually draw the item | |
695 | // with the given index on the provided DC | |
696 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
697 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
698 | ||
699 | ||
700 | // the derived class must implement this method to return the height of the | |
701 | // specified item | |
702 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
703 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
704 | ||
705 | ||
706 | // this method may be used to draw separators between the lines; note that | |
707 | // the rectangle may be modified, typically to deflate it a bit before | |
708 | // passing to OnDrawItem() | |
709 | // | |
710 | // the base class version doesn't do anything | |
711 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
712 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
713 | ||
714 | ||
715 | // this method is used to draw the items background and, maybe, a border | |
716 | // around it | |
717 | // | |
718 | // the base class version implements a reasonable default behaviour which | |
719 | // consists in drawing the selected item with the standard background | |
720 | // colour and drawing a border around the item if it is either selected or | |
721 | // current | |
722 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
723 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
724 | ||
725 | ||
726 | PYPRIVATE; | |
727 | }; | |
728 | ||
729 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
730 | ||
731 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
732 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
733 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
734 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
735 | ||
736 | ||
09c21d3b RD |
737 | PyObject *wxPyVListBox_GetFirstSelected(wxPyVListBox *self){ |
738 | unsigned long cookie = 0; | |
739 | int selected = self->GetFirstSelected(cookie); | |
740 | bool blocked = wxPyBeginBlockThreads(); | |
741 | PyObject* tup = PyTuple_New(2); | |
742 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
743 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
744 | wxPyEndBlockThreads(blocked); | |
745 | return tup; | |
746 | } | |
747 | PyObject *wxPyVListBox_GetNextSelected(wxPyVListBox *self,unsigned long cookie){ | |
748 | int selected = self->GetNextSelected(cookie); | |
749 | bool blocked = wxPyBeginBlockThreads(); | |
750 | PyObject* tup = PyTuple_New(2); | |
751 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(selected)); | |
752 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(cookie)); | |
753 | wxPyEndBlockThreads(blocked); | |
754 | return tup; | |
755 | } | |
d55e5bfc RD |
756 | |
757 | #include <wx/htmllbox.h> | |
758 | ||
759 | ||
760 | class wxPyHtmlListBox : public wxHtmlListBox | |
761 | { | |
762 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
763 | public: | |
764 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
765 | ||
766 | wxPyHtmlListBox(wxWindow *parent, | |
767 | wxWindowID id = wxID_ANY, | |
768 | const wxPoint& pos = wxDefaultPosition, | |
769 | const wxSize& size = wxDefaultSize, | |
770 | long style = 0, | |
771 | const wxString& name = wxPyVListBoxNameStr) | |
772 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
773 | {} | |
774 | ||
775 | // Overridable virtuals | |
776 | ||
777 | // this method must be implemented in the derived class and should return | |
778 | // the body (i.e. without <html>) of the HTML for the given item | |
779 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
780 | ||
781 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
782 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
783 | ||
784 | // TODO: | |
785 | // // this method allows to customize the selection appearance: it may be used | |
786 | // // to specify the colour of the text which normally has the given colour | |
787 | // // colFg when it is inside the selection | |
788 | // // | |
789 | // // by default, the original colour is not used at all and all text has the | |
790 | // // same (default for this system) colour inside selection | |
791 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
792 | ||
793 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
794 | // // background colour -- this is even more rarely used as you can change it | |
795 | // // globally using SetSelectionBackground() | |
796 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
797 | ||
798 | ||
799 | PYPRIVATE; | |
800 | }; | |
801 | ||
802 | ||
803 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
804 | ||
805 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
806 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
807 | ||
808 | ||
809 | ||
810 | ||
811 | ||
812 | #ifdef __WXMAC__ | |
813 | // implement dummy classes and such for wxMac | |
814 | ||
815 | class wxTaskBarIcon : public wxEvtHandler | |
816 | { | |
817 | public: | |
818 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } | |
819 | }; | |
09c21d3b | 820 | |
d55e5bfc RD |
821 | |
822 | class wxTaskBarIconEvent : public wxEvent | |
823 | { | |
824 | public: | |
825 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
826 | { wxPyRaiseNotImplemented(); } | |
827 | virtual wxEvent* Clone() const { return NULL; } | |
828 | }; | |
829 | ||
830 | enum { | |
831 | wxEVT_TASKBAR_MOVE = 0, | |
832 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
833 | wxEVT_TASKBAR_LEFT_UP = 0, | |
834 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
835 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
836 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
837 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
838 | }; | |
09c21d3b RD |
839 | |
840 | ||
841 | #else | |
842 | // // Otherwise make a class that can virtualize CreatePopupMenu | |
843 | // class wxPyTaskBarIcon : public wxTaskBarIcon | |
844 | // { | |
845 | // DECLARE_ABSTRACT_CLASS(wxPyTaskBarIcon); | |
846 | // public: | |
847 | // wxPyTaskBarIcon() : wxTaskBarIcon() | |
848 | // {} | |
849 | ||
850 | // wxMenu* CreatePopupMenu() { | |
851 | // wxMenu *rval = NULL; | |
852 | // bool found; | |
853 | // bool blocked = wxPyBeginBlockThreads(); | |
854 | // if ((found = wxPyCBH_findCallback(m_myInst, "CreatePopupMenu"))) { | |
855 | // PyObject* ro; | |
856 | // wxMenu* ptr; | |
857 | // ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
858 | // if (ro) { | |
859 | // if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxMenu"))) | |
860 | // rval = ptr; | |
861 | // Py_DECREF(ro); | |
862 | // } | |
863 | // } | |
864 | // wxPyEndBlockThreads(blocked); | |
865 | // if (! found) | |
866 | // rval = wxTaskBarIcon::CreatePopupMenu(); | |
867 | // return rval; | |
868 | // } | |
869 | ||
870 | // PYPRIVATE; | |
871 | // }; | |
872 | ||
873 | // IMPLEMENT_ABSTRACT_CLASS(wxPyTaskBarIcon, wxTaskBarIcon); | |
874 | ||
d55e5bfc RD |
875 | #endif |
876 | ||
877 | void wxTaskBarIcon_Destroy(wxTaskBarIcon *self){ | |
878 | ||
879 | self->RemoveIcon(); | |
880 | ||
881 | } | |
882 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); | |
883 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
884 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
885 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
886 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
887 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
888 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ | |
889 | wxArrayString arr; | |
890 | self->GetFilenames(arr); | |
891 | return wxArrayString2PyList_helper(arr); | |
892 | } | |
893 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
894 | wxArrayString arr; | |
895 | self->GetPaths(arr); | |
896 | return wxArrayString2PyList_helper(arr); | |
897 | } | |
898 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
899 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
900 | } | |
901 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
902 | return new wxSingleChoiceDialog(parent, message, caption, | |
903 | choices, choices_array, NULL, style, pos); | |
904 | } | |
905 | ||
906 | #include <wx/mdi.h> | |
907 | ||
908 | // C++ version of Python aware wxWindow | |
909 | class wxPyWindow : public wxWindow | |
910 | { | |
911 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
912 | public: | |
913 | wxPyWindow() : wxWindow() {} | |
914 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
915 | const wxPoint& pos = wxDefaultPosition, | |
916 | const wxSize& size = wxDefaultSize, | |
917 | long style = 0, | |
918 | const wxString& name = wxPyPanelNameStr) | |
919 | : wxWindow(parent, id, pos, size, style, name) {} | |
920 | ||
caef1a4d | 921 | void SetBestSize(const wxSize& size) { wxWindow::SetBestSize(size); } |
d55e5bfc RD |
922 | |
923 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
924 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
925 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
926 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
927 | ||
928 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
929 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
930 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
931 | ||
932 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
933 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
934 | ||
935 | DEC_PYCALLBACK__(InitDialog); | |
936 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
937 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
938 | DEC_PYCALLBACK_BOOL_(Validate); | |
939 | ||
940 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
941 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
942 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
943 | ||
944 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
945 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
946 | ||
caef1a4d | 947 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 948 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 949 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
950 | |
951 | PYPRIVATE; | |
952 | }; | |
953 | ||
954 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
955 | ||
956 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
957 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
958 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
959 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
960 | ||
961 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
962 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
963 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
964 | ||
965 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
966 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
967 | ||
968 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
969 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
970 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
971 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
972 | ||
973 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
974 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
975 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
976 | ||
977 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
978 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
979 | ||
caef1a4d | 980 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, ShouldInheritColours); |
d55e5bfc | 981 | IMP_PYCALLBACK__COLOUR(wxPyWindow, wxWindow, ApplyParentThemeBackground); |
caef1a4d | 982 | IMP_PYCALLBACK_VIZATTR_(wxPyWindow, wxWindow, GetDefaultAttributes); |
d55e5bfc RD |
983 | |
984 | ||
985 | // C++ version of Python aware wxPanel | |
986 | class wxPyPanel : public wxPanel | |
987 | { | |
988 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
989 | public: | |
990 | wxPyPanel() : wxPanel() {} | |
991 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
992 | const wxPoint& pos = wxDefaultPosition, | |
993 | const wxSize& size = wxDefaultSize, | |
994 | long style = 0, | |
995 | const wxString& name = wxPyPanelNameStr) | |
996 | : wxPanel(parent, id, pos, size, style, name) {} | |
997 | ||
caef1a4d RD |
998 | void SetBestSize(const wxSize& size) { wxPanel::SetBestSize(size); } |
999 | ||
d55e5bfc RD |
1000 | |
1001 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1002 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1003 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1004 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1005 | ||
1006 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1007 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1008 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1009 | ||
1010 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1011 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1012 | ||
1013 | DEC_PYCALLBACK__(InitDialog); | |
1014 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1015 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1016 | DEC_PYCALLBACK_BOOL_(Validate); | |
1017 | ||
1018 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1019 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1020 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1021 | ||
1022 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1023 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1024 | ||
caef1a4d | 1025 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1026 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 1027 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1028 | |
1029 | PYPRIVATE; | |
1030 | }; | |
1031 | ||
1032 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
1033 | ||
1034 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
1035 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
1036 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
1037 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
1038 | ||
1039 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
1040 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
1041 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
1042 | ||
1043 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
1044 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
1045 | ||
1046 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
1047 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
1048 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
1049 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
1050 | ||
1051 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
1052 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
1053 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
1054 | ||
1055 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
1056 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
1057 | ||
caef1a4d | 1058 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, ShouldInheritColours); |
d55e5bfc | 1059 | IMP_PYCALLBACK__COLOUR(wxPyPanel, wxPanel, ApplyParentThemeBackground); |
caef1a4d | 1060 | IMP_PYCALLBACK_VIZATTR_(wxPyPanel, wxPanel, GetDefaultAttributes); |
d55e5bfc | 1061 | |
caef1a4d | 1062 | |
d55e5bfc RD |
1063 | // C++ version of Python aware wxScrolledWindow |
1064 | class wxPyScrolledWindow : public wxScrolledWindow | |
1065 | { | |
1066 | DECLARE_DYNAMIC_CLASS(wxPyScrolledWindow) | |
1067 | public: | |
1068 | wxPyScrolledWindow() : wxScrolledWindow() {} | |
1069 | wxPyScrolledWindow(wxWindow* parent, const wxWindowID id, | |
1070 | const wxPoint& pos = wxDefaultPosition, | |
1071 | const wxSize& size = wxDefaultSize, | |
1072 | long style = 0, | |
1073 | const wxString& name = wxPyPanelNameStr) | |
1074 | : wxScrolledWindow(parent, id, pos, size, style, name) {} | |
1075 | ||
caef1a4d | 1076 | void SetBestSize(const wxSize& size) { wxScrolledWindow::SetBestSize(size); } |
d55e5bfc RD |
1077 | |
1078 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
1079 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
1080 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
1081 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
1082 | ||
1083 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
1084 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
1085 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
1086 | ||
1087 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
1088 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
1089 | ||
1090 | DEC_PYCALLBACK__(InitDialog); | |
1091 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
1092 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
1093 | DEC_PYCALLBACK_BOOL_(Validate); | |
1094 | ||
1095 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
1096 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
1097 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
1098 | ||
1099 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
1100 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
1101 | ||
caef1a4d | 1102 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 1103 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 1104 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
1105 | |
1106 | PYPRIVATE; | |
1107 | }; | |
1108 | ||
1109 | IMPLEMENT_DYNAMIC_CLASS(wxPyScrolledWindow, wxScrolledWindow); | |
1110 | ||
1111 | IMP_PYCALLBACK_VOID_INT4(wxPyScrolledWindow, wxScrolledWindow, DoMoveWindow); | |
1112 | IMP_PYCALLBACK_VOID_INT5(wxPyScrolledWindow, wxScrolledWindow, DoSetSize); | |
1113 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetClientSize); | |
1114 | IMP_PYCALLBACK_VOID_INTINT(wxPyScrolledWindow, wxScrolledWindow, DoSetVirtualSize); | |
1115 | ||
1116 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetSize); | |
1117 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetClientSize); | |
1118 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyScrolledWindow, wxScrolledWindow, DoGetPosition); | |
1119 | ||
1120 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetVirtualSize); | |
1121 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, DoGetBestSize); | |
1122 | ||
1123 | IMP_PYCALLBACK__(wxPyScrolledWindow, wxScrolledWindow, InitDialog); | |
1124 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataFromWindow); | |
1125 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, TransferDataToWindow); | |
1126 | IMP_PYCALLBACK_BOOL_(wxPyScrolledWindow, wxScrolledWindow, Validate); | |
1127 | ||
1128 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocus); | |
1129 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, AcceptsFocusFromKeyboard); | |
1130 | IMP_PYCALLBACK_SIZE_const(wxPyScrolledWindow, wxScrolledWindow, GetMaxSize); | |
1131 | ||
1132 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, AddChild); | |
1133 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyScrolledWindow, wxScrolledWindow, RemoveChild); | |
1134 | ||
caef1a4d | 1135 | IMP_PYCALLBACK_BOOL_const(wxPyScrolledWindow, wxScrolledWindow, ShouldInheritColours); |
d55e5bfc | 1136 | IMP_PYCALLBACK__COLOUR(wxPyScrolledWindow, wxScrolledWindow, ApplyParentThemeBackground); |
caef1a4d RD |
1137 | IMP_PYCALLBACK_VIZATTR_(wxPyScrolledWindow, wxScrolledWindow, GetDefaultAttributes); |
1138 | ||
d55e5bfc RD |
1139 | |
1140 | ||
1141 | #include "wx/wxPython/printfw.h" | |
1142 | ||
1143 | ||
1144 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); | |
1145 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
1146 | ||
1147 | ||
1148 | ||
1149 | // Since this one would be tough and ugly to do with the Macros... | |
1150 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1151 | bool hadErr = False; | |
1152 | bool found; | |
1153 | ||
1154 | bool blocked = wxPyBeginBlockThreads(); | |
1155 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
1156 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
1157 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
1158 | PyObject* val; | |
1159 | ||
1160 | val = PyTuple_GetItem(result, 0); | |
1161 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
1162 | else hadErr = True; | |
1163 | ||
1164 | val = PyTuple_GetItem(result, 1); | |
1165 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
1166 | else hadErr = True; | |
1167 | ||
1168 | val = PyTuple_GetItem(result, 2); | |
1169 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
1170 | else hadErr = True; | |
1171 | ||
1172 | val = PyTuple_GetItem(result, 3); | |
1173 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
1174 | else hadErr = True; | |
1175 | } | |
1176 | else | |
1177 | hadErr = True; | |
1178 | ||
1179 | if (hadErr) { | |
1180 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
1181 | PyErr_Print(); | |
1182 | } | |
1183 | Py_DECREF(result); | |
1184 | } | |
1185 | wxPyEndBlockThreads(blocked); | |
1186 | if (! found) | |
1187 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1188 | } | |
1189 | ||
1190 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
1191 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
1192 | } | |
1193 | ||
1194 | ||
1195 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
1196 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
1197 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
1198 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
1199 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
1200 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
1201 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
1202 | ||
1203 | ||
1204 | ||
1205 | ||
1206 | ||
1207 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
1208 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
1209 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
1210 | ||
1211 | ||
1212 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
1213 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1214 | bool rval=False; \ | |
1215 | bool found; \ | |
1216 | bool blocked = wxPyBeginBlockThreads(); \ | |
1217 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
412d302d RD |
1218 | PyObject* win = wxPyMake_wxObject(a,false); \ |
1219 | PyObject* dc = wxPyMake_wxObject(&b,false); \ | |
d55e5bfc RD |
1220 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ |
1221 | Py_DECREF(win); \ | |
1222 | Py_DECREF(dc); \ | |
1223 | } \ | |
1224 | wxPyEndBlockThreads(blocked); \ | |
1225 | if (! found) \ | |
1226 | rval = PCLASS::CBNAME(a, b); \ | |
1227 | return rval; \ | |
1228 | } \ | |
1229 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
1230 | return PCLASS::CBNAME(a, b); \ | |
1231 | } | |
1232 | ||
1233 | ||
1234 | ||
1235 | ||
1236 | class wxPyPrintPreview : public wxPrintPreview | |
1237 | { | |
1238 | DECLARE_CLASS(wxPyPrintPreview) | |
1239 | public: | |
1240 | wxPyPrintPreview(wxPyPrintout* printout, | |
1241 | wxPyPrintout* printoutForPrinting, | |
1242 | wxPrintDialogData* data=NULL) | |
1243 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1244 | {} | |
1245 | wxPyPrintPreview(wxPyPrintout* printout, | |
1246 | wxPyPrintout* printoutForPrinting, | |
1247 | wxPrintData* data=NULL) | |
1248 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1249 | {} | |
1250 | ||
1251 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1252 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1253 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1254 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1255 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1256 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1257 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1258 | ||
1259 | PYPRIVATE; | |
1260 | }; | |
1261 | ||
1262 | // Stupid renamed classes... Fix this in 2.5... | |
1263 | #if defined(__WXMSW__) | |
1264 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1265 | #elif defined(__WXMAC__) | |
1266 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1267 | #else | |
1268 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1269 | #endif | |
1270 | ||
1271 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1272 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1273 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1274 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1275 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1276 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1277 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1278 | ||
1279 | ||
1280 | class wxPyPreviewFrame : public wxPreviewFrame | |
1281 | { | |
1282 | DECLARE_CLASS(wxPyPreviewFrame); | |
1283 | public: | |
1284 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1285 | const wxString& title, | |
1286 | const wxPoint& pos = wxDefaultPosition, | |
1287 | const wxSize& size = wxDefaultSize, | |
1288 | long style = wxDEFAULT_FRAME_STYLE, | |
1289 | const wxString& name = wxPyFrameNameStr) | |
1290 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1291 | {} | |
1292 | ||
1293 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1294 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1295 | ||
1296 | DEC_PYCALLBACK_VOID_(Initialize); | |
1297 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1298 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1299 | ||
1300 | PYPRIVATE; | |
1301 | }; | |
1302 | ||
1303 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1304 | ||
1305 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1306 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1307 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1308 | ||
1309 | ||
1310 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1311 | { | |
1312 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1313 | public: | |
1314 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1315 | long buttons, | |
1316 | wxWindow *parent, | |
1317 | const wxPoint& pos = wxDefaultPosition, | |
1318 | const wxSize& size = wxDefaultSize, | |
1319 | long style = 0, | |
1320 | const wxString& name = wxPyPanelNameStr) | |
1321 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1322 | {} | |
1323 | ||
1324 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1325 | ||
1326 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1327 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1328 | ||
1329 | PYPRIVATE; | |
1330 | }; | |
1331 | ||
1332 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1333 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1334 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1335 | ||
1336 | #ifdef __cplusplus | |
1337 | extern "C" { | |
1338 | #endif | |
1339 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1340 | PyObject *resultobj; | |
1341 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1342 | int arg2 = (int) (int)-1 ; | |
1343 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1344 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1345 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1346 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1347 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1348 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1349 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1350 | wxPanel *result; | |
1351 | wxPoint temp3 ; | |
1352 | wxSize temp4 ; | |
1353 | bool temp6 = False ; | |
1354 | PyObject * obj0 = 0 ; | |
1355 | PyObject * obj1 = 0 ; | |
1356 | PyObject * obj2 = 0 ; | |
1357 | PyObject * obj3 = 0 ; | |
1358 | PyObject * obj4 = 0 ; | |
1359 | PyObject * obj5 = 0 ; | |
1360 | char *kwnames[] = { | |
1361 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1362 | }; | |
1363 | ||
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1367 | if (obj1) { | |
1368 | arg2 = (int const) SWIG_AsInt(obj1); | |
1369 | if (PyErr_Occurred()) SWIG_fail; | |
1370 | } | |
1371 | if (obj2) { | |
1372 | { | |
1373 | arg3 = &temp3; | |
1374 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1375 | } | |
1376 | } | |
1377 | if (obj3) { | |
1378 | { | |
1379 | arg4 = &temp4; | |
1380 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1381 | } | |
1382 | } | |
1383 | if (obj4) { | |
1384 | arg5 = (long) SWIG_AsLong(obj4); | |
1385 | if (PyErr_Occurred()) SWIG_fail; | |
1386 | } | |
1387 | if (obj5) { | |
1388 | { | |
1389 | arg6 = wxString_in_helper(obj5); | |
1390 | if (arg6 == NULL) SWIG_fail; | |
1391 | temp6 = True; | |
1392 | } | |
1393 | } | |
1394 | { | |
0439c23b | 1395 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1397 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1398 | ||
1399 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1400 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1401 | } |
b0f7404b | 1402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); |
d55e5bfc RD |
1403 | { |
1404 | if (temp6) | |
1405 | delete arg6; | |
1406 | } | |
1407 | return resultobj; | |
1408 | fail: | |
1409 | { | |
1410 | if (temp6) | |
1411 | delete arg6; | |
1412 | } | |
1413 | return NULL; | |
1414 | } | |
1415 | ||
1416 | ||
1417 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1418 | PyObject *resultobj; | |
1419 | wxPanel *result; | |
1420 | char *kwnames[] = { | |
1421 | NULL | |
1422 | }; | |
1423 | ||
1424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1425 | { | |
0439c23b | 1426 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1428 | result = (wxPanel *)new wxPanel(); | |
1429 | ||
1430 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1431 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1432 | } |
b0f7404b | 1433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPanel, 1); |
d55e5bfc RD |
1434 | return resultobj; |
1435 | fail: | |
1436 | return NULL; | |
1437 | } | |
1438 | ||
1439 | ||
1440 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1441 | PyObject *resultobj; | |
1442 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1443 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1444 | int arg3 = (int) (int)-1 ; | |
1445 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1446 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1447 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1448 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1449 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1450 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1451 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1452 | bool result; | |
1453 | wxPoint temp4 ; | |
1454 | wxSize temp5 ; | |
1455 | bool temp7 = False ; | |
1456 | PyObject * obj0 = 0 ; | |
1457 | PyObject * obj1 = 0 ; | |
1458 | PyObject * obj2 = 0 ; | |
1459 | PyObject * obj3 = 0 ; | |
1460 | PyObject * obj4 = 0 ; | |
1461 | PyObject * obj5 = 0 ; | |
1462 | PyObject * obj6 = 0 ; | |
1463 | char *kwnames[] = { | |
1464 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1465 | }; | |
1466 | ||
1467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1472 | if (obj2) { | |
1473 | arg3 = (int const) SWIG_AsInt(obj2); | |
1474 | if (PyErr_Occurred()) SWIG_fail; | |
1475 | } | |
1476 | if (obj3) { | |
1477 | { | |
1478 | arg4 = &temp4; | |
1479 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1480 | } | |
1481 | } | |
1482 | if (obj4) { | |
1483 | { | |
1484 | arg5 = &temp5; | |
1485 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1486 | } | |
1487 | } | |
1488 | if (obj5) { | |
1489 | arg6 = (long) SWIG_AsLong(obj5); | |
1490 | if (PyErr_Occurred()) SWIG_fail; | |
1491 | } | |
1492 | if (obj6) { | |
1493 | { | |
1494 | arg7 = wxString_in_helper(obj6); | |
1495 | if (arg7 == NULL) SWIG_fail; | |
1496 | temp7 = True; | |
1497 | } | |
1498 | } | |
1499 | { | |
1500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1501 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1502 | ||
1503 | wxPyEndAllowThreads(__tstate); | |
1504 | if (PyErr_Occurred()) SWIG_fail; | |
1505 | } | |
1506 | { | |
1507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1508 | } | |
1509 | { | |
1510 | if (temp7) | |
1511 | delete arg7; | |
1512 | } | |
1513 | return resultobj; | |
1514 | fail: | |
1515 | { | |
1516 | if (temp7) | |
1517 | delete arg7; | |
1518 | } | |
1519 | return NULL; | |
1520 | } | |
1521 | ||
1522 | ||
1523 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1524 | PyObject *resultobj; | |
1525 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1526 | PyObject * obj0 = 0 ; | |
1527 | char *kwnames[] = { | |
1528 | (char *) "self", NULL | |
1529 | }; | |
1530 | ||
1531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPanel, | |
1533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1534 | { | |
1535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1536 | (arg1)->InitDialog(); | |
1537 | ||
1538 | wxPyEndAllowThreads(__tstate); | |
1539 | if (PyErr_Occurred()) SWIG_fail; | |
1540 | } | |
1541 | Py_INCREF(Py_None); resultobj = Py_None; | |
1542 | return resultobj; | |
1543 | fail: | |
1544 | return NULL; | |
1545 | } | |
1546 | ||
1547 | ||
f20a2e1f RD |
1548 | static PyObject *_wrap_Panel_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1549 | PyObject *resultobj; | |
1550 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1551 | wxVisualAttributes result; | |
1552 | PyObject * obj0 = 0 ; | |
1553 | char *kwnames[] = { | |
1554 | (char *) "variant", NULL | |
1555 | }; | |
1556 | ||
1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Panel_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1558 | if (obj0) { | |
1559 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1560 | if (PyErr_Occurred()) SWIG_fail; | |
1561 | } | |
1562 | { | |
0439c23b | 1563 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
1564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1565 | result = wxPanel::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1566 | ||
1567 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1568 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1569 | } |
1570 | { | |
1571 | wxVisualAttributes * resultptr; | |
1572 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1574 | } | |
1575 | return resultobj; | |
1576 | fail: | |
1577 | return NULL; | |
1578 | } | |
1579 | ||
1580 | ||
d55e5bfc RD |
1581 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { |
1582 | PyObject *obj; | |
1583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1584 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1585 | Py_INCREF(obj); | |
1586 | return Py_BuildValue((char *)""); | |
1587 | } | |
1588 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject *resultobj; | |
1590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1591 | int arg2 = (int) (int)-1 ; | |
1592 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
1593 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1594 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1595 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1596 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1597 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1598 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1599 | wxScrolledWindow *result; | |
1600 | wxPoint temp3 ; | |
1601 | wxSize temp4 ; | |
1602 | bool temp6 = False ; | |
1603 | PyObject * obj0 = 0 ; | |
1604 | PyObject * obj1 = 0 ; | |
1605 | PyObject * obj2 = 0 ; | |
1606 | PyObject * obj3 = 0 ; | |
1607 | PyObject * obj4 = 0 ; | |
1608 | PyObject * obj5 = 0 ; | |
1609 | char *kwnames[] = { | |
1610 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1611 | }; | |
1612 | ||
1613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
1614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1616 | if (obj1) { | |
1617 | arg2 = (int const) SWIG_AsInt(obj1); | |
1618 | if (PyErr_Occurred()) SWIG_fail; | |
1619 | } | |
1620 | if (obj2) { | |
1621 | { | |
1622 | arg3 = &temp3; | |
1623 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1624 | } | |
1625 | } | |
1626 | if (obj3) { | |
1627 | { | |
1628 | arg4 = &temp4; | |
1629 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1630 | } | |
1631 | } | |
1632 | if (obj4) { | |
1633 | arg5 = (long) SWIG_AsLong(obj4); | |
1634 | if (PyErr_Occurred()) SWIG_fail; | |
1635 | } | |
1636 | if (obj5) { | |
1637 | { | |
1638 | arg6 = wxString_in_helper(obj5); | |
1639 | if (arg6 == NULL) SWIG_fail; | |
1640 | temp6 = True; | |
1641 | } | |
1642 | } | |
1643 | { | |
0439c23b | 1644 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1646 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1647 | ||
1648 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1649 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1650 | } |
b0f7404b | 1651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); |
d55e5bfc RD |
1652 | { |
1653 | if (temp6) | |
1654 | delete arg6; | |
1655 | } | |
1656 | return resultobj; | |
1657 | fail: | |
1658 | { | |
1659 | if (temp6) | |
1660 | delete arg6; | |
1661 | } | |
1662 | return NULL; | |
1663 | } | |
1664 | ||
1665 | ||
1666 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1667 | PyObject *resultobj; | |
1668 | wxScrolledWindow *result; | |
1669 | char *kwnames[] = { | |
1670 | NULL | |
1671 | }; | |
1672 | ||
1673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1674 | { | |
0439c23b | 1675 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1677 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1678 | ||
1679 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1680 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1681 | } |
b0f7404b | 1682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrolledWindow, 1); |
d55e5bfc RD |
1683 | return resultobj; |
1684 | fail: | |
1685 | return NULL; | |
1686 | } | |
1687 | ||
1688 | ||
1689 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1690 | PyObject *resultobj; | |
1691 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1692 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1693 | int arg3 = (int) (int)-1 ; | |
1694 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1695 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1696 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1697 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1698 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1699 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1700 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1701 | bool result; | |
1702 | wxPoint temp4 ; | |
1703 | wxSize temp5 ; | |
1704 | bool temp7 = False ; | |
1705 | PyObject * obj0 = 0 ; | |
1706 | PyObject * obj1 = 0 ; | |
1707 | PyObject * obj2 = 0 ; | |
1708 | PyObject * obj3 = 0 ; | |
1709 | PyObject * obj4 = 0 ; | |
1710 | PyObject * obj5 = 0 ; | |
1711 | PyObject * obj6 = 0 ; | |
1712 | char *kwnames[] = { | |
1713 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1714 | }; | |
1715 | ||
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
1717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1721 | if (obj2) { | |
1722 | arg3 = (int const) SWIG_AsInt(obj2); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | if (obj3) { | |
1726 | { | |
1727 | arg4 = &temp4; | |
1728 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1729 | } | |
1730 | } | |
1731 | if (obj4) { | |
1732 | { | |
1733 | arg5 = &temp5; | |
1734 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1735 | } | |
1736 | } | |
1737 | if (obj5) { | |
1738 | arg6 = (long) SWIG_AsLong(obj5); | |
1739 | if (PyErr_Occurred()) SWIG_fail; | |
1740 | } | |
1741 | if (obj6) { | |
1742 | { | |
1743 | arg7 = wxString_in_helper(obj6); | |
1744 | if (arg7 == NULL) SWIG_fail; | |
1745 | temp7 = True; | |
1746 | } | |
1747 | } | |
1748 | { | |
1749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1750 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1751 | ||
1752 | wxPyEndAllowThreads(__tstate); | |
1753 | if (PyErr_Occurred()) SWIG_fail; | |
1754 | } | |
1755 | { | |
1756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1757 | } | |
1758 | { | |
1759 | if (temp7) | |
1760 | delete arg7; | |
1761 | } | |
1762 | return resultobj; | |
1763 | fail: | |
1764 | { | |
1765 | if (temp7) | |
1766 | delete arg7; | |
1767 | } | |
1768 | return NULL; | |
1769 | } | |
1770 | ||
1771 | ||
1772 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1773 | PyObject *resultobj; | |
1774 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1775 | int arg2 ; | |
1776 | int arg3 ; | |
1777 | int arg4 ; | |
1778 | int arg5 ; | |
1779 | int arg6 = (int) 0 ; | |
1780 | int arg7 = (int) 0 ; | |
1781 | bool arg8 = (bool) False ; | |
1782 | PyObject * obj0 = 0 ; | |
1783 | PyObject * obj1 = 0 ; | |
1784 | PyObject * obj2 = 0 ; | |
1785 | PyObject * obj3 = 0 ; | |
1786 | PyObject * obj4 = 0 ; | |
1787 | PyObject * obj5 = 0 ; | |
1788 | PyObject * obj6 = 0 ; | |
1789 | PyObject * obj7 = 0 ; | |
1790 | char *kwnames[] = { | |
1791 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1792 | }; | |
1793 | ||
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1797 | arg2 = (int) SWIG_AsInt(obj1); | |
1798 | if (PyErr_Occurred()) SWIG_fail; | |
1799 | arg3 = (int) SWIG_AsInt(obj2); | |
1800 | if (PyErr_Occurred()) SWIG_fail; | |
1801 | arg4 = (int) SWIG_AsInt(obj3); | |
1802 | if (PyErr_Occurred()) SWIG_fail; | |
1803 | arg5 = (int) SWIG_AsInt(obj4); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | if (obj5) { | |
1806 | arg6 = (int) SWIG_AsInt(obj5); | |
1807 | if (PyErr_Occurred()) SWIG_fail; | |
1808 | } | |
1809 | if (obj6) { | |
1810 | arg7 = (int) SWIG_AsInt(obj6); | |
1811 | if (PyErr_Occurred()) SWIG_fail; | |
1812 | } | |
1813 | if (obj7) { | |
1814 | arg8 = (bool) SWIG_AsBool(obj7); | |
1815 | if (PyErr_Occurred()) SWIG_fail; | |
1816 | } | |
1817 | { | |
1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1819 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1820 | ||
1821 | wxPyEndAllowThreads(__tstate); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | } | |
1824 | Py_INCREF(Py_None); resultobj = Py_None; | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | return NULL; | |
1828 | } | |
1829 | ||
1830 | ||
1831 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1832 | PyObject *resultobj; | |
1833 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1834 | int arg2 ; | |
1835 | int arg3 ; | |
1836 | PyObject * obj0 = 0 ; | |
1837 | PyObject * obj1 = 0 ; | |
1838 | PyObject * obj2 = 0 ; | |
1839 | char *kwnames[] = { | |
1840 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1841 | }; | |
1842 | ||
1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1846 | arg2 = (int) SWIG_AsInt(obj1); | |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
1848 | arg3 = (int) SWIG_AsInt(obj2); | |
1849 | if (PyErr_Occurred()) SWIG_fail; | |
1850 | { | |
1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1852 | (arg1)->Scroll(arg2,arg3); | |
1853 | ||
1854 | wxPyEndAllowThreads(__tstate); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
1857 | Py_INCREF(Py_None); resultobj = Py_None; | |
1858 | return resultobj; | |
1859 | fail: | |
1860 | return NULL; | |
1861 | } | |
1862 | ||
1863 | ||
1864 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject *resultobj; | |
1866 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1867 | int arg2 ; | |
1868 | int result; | |
1869 | PyObject * obj0 = 0 ; | |
1870 | PyObject * obj1 = 0 ; | |
1871 | char *kwnames[] = { | |
1872 | (char *) "self",(char *) "orient", NULL | |
1873 | }; | |
1874 | ||
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; | |
1876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1878 | arg2 = (int) SWIG_AsInt(obj1); | |
1879 | if (PyErr_Occurred()) SWIG_fail; | |
1880 | { | |
1881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1882 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1883 | ||
1884 | wxPyEndAllowThreads(__tstate); | |
1885 | if (PyErr_Occurred()) SWIG_fail; | |
1886 | } | |
1887 | resultobj = SWIG_FromInt((int)result); | |
1888 | return resultobj; | |
1889 | fail: | |
1890 | return NULL; | |
1891 | } | |
1892 | ||
1893 | ||
1894 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1895 | PyObject *resultobj; | |
1896 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1897 | int arg2 ; | |
1898 | int arg3 ; | |
1899 | PyObject * obj0 = 0 ; | |
1900 | PyObject * obj1 = 0 ; | |
1901 | PyObject * obj2 = 0 ; | |
1902 | char *kwnames[] = { | |
1903 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1904 | }; | |
1905 | ||
1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1909 | arg2 = (int) SWIG_AsInt(obj1); | |
1910 | if (PyErr_Occurred()) SWIG_fail; | |
1911 | arg3 = (int) SWIG_AsInt(obj2); | |
1912 | if (PyErr_Occurred()) SWIG_fail; | |
1913 | { | |
1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1915 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1916 | ||
1917 | wxPyEndAllowThreads(__tstate); | |
1918 | if (PyErr_Occurred()) SWIG_fail; | |
1919 | } | |
1920 | Py_INCREF(Py_None); resultobj = Py_None; | |
1921 | return resultobj; | |
1922 | fail: | |
1923 | return NULL; | |
1924 | } | |
1925 | ||
1926 | ||
1927 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject *resultobj; | |
1929 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1930 | int arg2 ; | |
1931 | int arg3 ; | |
1932 | PyObject * obj0 = 0 ; | |
1933 | PyObject * obj1 = 0 ; | |
1934 | PyObject * obj2 = 0 ; | |
1935 | char *kwnames[] = { | |
1936 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1937 | }; | |
1938 | ||
1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1942 | arg2 = (int) SWIG_AsInt(obj1); | |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
1944 | arg3 = (int) SWIG_AsInt(obj2); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | { | |
1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1948 | (arg1)->SetScrollRate(arg2,arg3); | |
1949 | ||
1950 | wxPyEndAllowThreads(__tstate); | |
1951 | if (PyErr_Occurred()) SWIG_fail; | |
1952 | } | |
1953 | Py_INCREF(Py_None); resultobj = Py_None; | |
1954 | return resultobj; | |
1955 | fail: | |
1956 | return NULL; | |
1957 | } | |
1958 | ||
1959 | ||
1960 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1961 | PyObject *resultobj; | |
1962 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1963 | int *arg2 = (int *) 0 ; | |
1964 | int *arg3 = (int *) 0 ; | |
1965 | int temp2 ; | |
1966 | int temp3 ; | |
1967 | PyObject * obj0 = 0 ; | |
1968 | char *kwnames[] = { | |
1969 | (char *) "self", NULL | |
1970 | }; | |
1971 | ||
1972 | arg2 = &temp2; | |
1973 | arg3 = &temp3; | |
1974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
1976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1977 | { | |
1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1979 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1980 | ||
1981 | wxPyEndAllowThreads(__tstate); | |
1982 | if (PyErr_Occurred()) SWIG_fail; | |
1983 | } | |
1984 | Py_INCREF(Py_None); resultobj = Py_None; | |
1985 | { | |
1986 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1987 | resultobj = t_output_helper(resultobj,o); | |
1988 | } | |
1989 | { | |
1990 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1991 | resultobj = t_output_helper(resultobj,o); | |
1992 | } | |
1993 | return resultobj; | |
1994 | fail: | |
1995 | return NULL; | |
1996 | } | |
1997 | ||
1998 | ||
1999 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2000 | PyObject *resultobj; | |
2001 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2002 | bool arg2 ; | |
2003 | bool arg3 ; | |
2004 | PyObject * obj0 = 0 ; | |
2005 | PyObject * obj1 = 0 ; | |
2006 | PyObject * obj2 = 0 ; | |
2007 | char *kwnames[] = { | |
2008 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
2009 | }; | |
2010 | ||
2011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2014 | arg2 = (bool) SWIG_AsBool(obj1); | |
2015 | if (PyErr_Occurred()) SWIG_fail; | |
2016 | arg3 = (bool) SWIG_AsBool(obj2); | |
2017 | if (PyErr_Occurred()) SWIG_fail; | |
2018 | { | |
2019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2020 | (arg1)->EnableScrolling(arg2,arg3); | |
2021 | ||
2022 | wxPyEndAllowThreads(__tstate); | |
2023 | if (PyErr_Occurred()) SWIG_fail; | |
2024 | } | |
2025 | Py_INCREF(Py_None); resultobj = Py_None; | |
2026 | return resultobj; | |
2027 | fail: | |
2028 | return NULL; | |
2029 | } | |
2030 | ||
2031 | ||
2032 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2033 | PyObject *resultobj; | |
2034 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2035 | int *arg2 = (int *) 0 ; | |
2036 | int *arg3 = (int *) 0 ; | |
2037 | int temp2 ; | |
2038 | int temp3 ; | |
2039 | PyObject * obj0 = 0 ; | |
2040 | char *kwnames[] = { | |
2041 | (char *) "self", NULL | |
2042 | }; | |
2043 | ||
2044 | arg2 = &temp2; | |
2045 | arg3 = &temp3; | |
2046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
2047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2049 | { | |
2050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2051 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
2052 | ||
2053 | wxPyEndAllowThreads(__tstate); | |
2054 | if (PyErr_Occurred()) SWIG_fail; | |
2055 | } | |
2056 | Py_INCREF(Py_None); resultobj = Py_None; | |
2057 | { | |
2058 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
2059 | resultobj = t_output_helper(resultobj,o); | |
2060 | } | |
2061 | { | |
2062 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
2063 | resultobj = t_output_helper(resultobj,o); | |
2064 | } | |
2065 | return resultobj; | |
2066 | fail: | |
2067 | return NULL; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject *resultobj; | |
2073 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2074 | double arg2 ; | |
2075 | double arg3 ; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | PyObject * obj1 = 0 ; | |
2078 | PyObject * obj2 = 0 ; | |
2079 | char *kwnames[] = { | |
2080 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2086 | arg2 = (double) SWIG_AsDouble(obj1); | |
2087 | if (PyErr_Occurred()) SWIG_fail; | |
2088 | arg3 = (double) SWIG_AsDouble(obj2); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | { | |
2091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2092 | (arg1)->SetScale(arg2,arg3); | |
2093 | ||
2094 | wxPyEndAllowThreads(__tstate); | |
2095 | if (PyErr_Occurred()) SWIG_fail; | |
2096 | } | |
2097 | Py_INCREF(Py_None); resultobj = Py_None; | |
2098 | return resultobj; | |
2099 | fail: | |
2100 | return NULL; | |
2101 | } | |
2102 | ||
2103 | ||
2104 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2105 | PyObject *resultobj; | |
2106 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2107 | double result; | |
2108 | PyObject * obj0 = 0 ; | |
2109 | char *kwnames[] = { | |
2110 | (char *) "self", NULL | |
2111 | }; | |
2112 | ||
2113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
2114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2116 | { | |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
2123 | resultobj = SWIG_FromDouble((double)result); | |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
2130 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2131 | PyObject *resultobj; | |
2132 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2133 | double result; | |
2134 | PyObject * obj0 = 0 ; | |
2135 | char *kwnames[] = { | |
2136 | (char *) "self", NULL | |
2137 | }; | |
2138 | ||
2139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
2140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2142 | { | |
2143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2144 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
2145 | ||
2146 | wxPyEndAllowThreads(__tstate); | |
2147 | if (PyErr_Occurred()) SWIG_fail; | |
2148 | } | |
2149 | resultobj = SWIG_FromDouble((double)result); | |
2150 | return resultobj; | |
2151 | fail: | |
2152 | return NULL; | |
2153 | } | |
2154 | ||
2155 | ||
2156 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2157 | PyObject *resultobj; | |
2158 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2159 | wxPoint *arg2 = 0 ; | |
2160 | wxPoint result; | |
2161 | wxPoint temp2 ; | |
2162 | PyObject * obj0 = 0 ; | |
2163 | PyObject * obj1 = 0 ; | |
2164 | ||
2165 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; | |
2166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2168 | { | |
2169 | arg2 = &temp2; | |
2170 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2171 | } | |
2172 | { | |
2173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2174 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); | |
2175 | ||
2176 | wxPyEndAllowThreads(__tstate); | |
2177 | if (PyErr_Occurred()) SWIG_fail; | |
2178 | } | |
2179 | { | |
2180 | wxPoint * resultptr; | |
2181 | resultptr = new wxPoint((wxPoint &) result); | |
2182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2183 | } | |
2184 | return resultobj; | |
2185 | fail: | |
2186 | return NULL; | |
2187 | } | |
2188 | ||
2189 | ||
2190 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2191 | PyObject *resultobj; | |
2192 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2193 | int arg2 ; | |
2194 | int arg3 ; | |
2195 | int *arg4 = (int *) 0 ; | |
2196 | int *arg5 = (int *) 0 ; | |
2197 | int temp4 ; | |
2198 | int temp5 ; | |
2199 | PyObject * obj0 = 0 ; | |
2200 | PyObject * obj1 = 0 ; | |
2201 | PyObject * obj2 = 0 ; | |
2202 | ||
2203 | arg4 = &temp4; | |
2204 | arg5 = &temp5; | |
2205 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2208 | arg2 = (int) SWIG_AsInt(obj1); | |
2209 | if (PyErr_Occurred()) SWIG_fail; | |
2210 | arg3 = (int) SWIG_AsInt(obj2); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | { | |
2213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2214 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); | |
2215 | ||
2216 | wxPyEndAllowThreads(__tstate); | |
2217 | if (PyErr_Occurred()) SWIG_fail; | |
2218 | } | |
2219 | Py_INCREF(Py_None); resultobj = Py_None; | |
2220 | { | |
2221 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2222 | resultobj = t_output_helper(resultobj,o); | |
2223 | } | |
2224 | { | |
2225 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2226 | resultobj = t_output_helper(resultobj,o); | |
2227 | } | |
2228 | return resultobj; | |
2229 | fail: | |
2230 | return NULL; | |
2231 | } | |
2232 | ||
2233 | ||
2234 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
2235 | int argc; | |
2236 | PyObject *argv[4]; | |
2237 | int ii; | |
2238 | ||
2239 | argc = PyObject_Length(args); | |
2240 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2241 | argv[ii] = PyTuple_GetItem(args,ii); | |
2242 | } | |
2243 | if (argc == 2) { | |
2244 | int _v; | |
2245 | { | |
2246 | void *ptr; | |
2247 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2248 | _v = 0; | |
2249 | PyErr_Clear(); | |
2250 | } else { | |
2251 | _v = 1; | |
2252 | } | |
2253 | } | |
2254 | if (_v) { | |
2255 | { | |
2256 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2257 | } | |
2258 | if (_v) { | |
2259 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); | |
2260 | } | |
2261 | } | |
2262 | } | |
2263 | if (argc == 3) { | |
2264 | int _v; | |
2265 | { | |
2266 | void *ptr; | |
2267 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2268 | _v = 0; | |
2269 | PyErr_Clear(); | |
2270 | } else { | |
2271 | _v = 1; | |
2272 | } | |
2273 | } | |
2274 | if (_v) { | |
2275 | _v = SWIG_CheckInt(argv[1]); | |
2276 | if (_v) { | |
2277 | _v = SWIG_CheckInt(argv[2]); | |
2278 | if (_v) { | |
2279 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); | |
2280 | } | |
2281 | } | |
2282 | } | |
2283 | } | |
2284 | ||
2285 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2286 | return NULL; | |
2287 | } | |
2288 | ||
2289 | ||
2290 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2291 | PyObject *resultobj; | |
2292 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2293 | wxPoint *arg2 = 0 ; | |
2294 | wxPoint result; | |
2295 | wxPoint temp2 ; | |
2296 | PyObject * obj0 = 0 ; | |
2297 | PyObject * obj1 = 0 ; | |
2298 | ||
2299 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; | |
2300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2302 | { | |
2303 | arg2 = &temp2; | |
2304 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2305 | } | |
2306 | { | |
2307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2308 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); | |
2309 | ||
2310 | wxPyEndAllowThreads(__tstate); | |
2311 | if (PyErr_Occurred()) SWIG_fail; | |
2312 | } | |
2313 | { | |
2314 | wxPoint * resultptr; | |
2315 | resultptr = new wxPoint((wxPoint &) result); | |
2316 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
2317 | } | |
2318 | return resultobj; | |
2319 | fail: | |
2320 | return NULL; | |
2321 | } | |
2322 | ||
2323 | ||
2324 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2325 | PyObject *resultobj; | |
2326 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2327 | int arg2 ; | |
2328 | int arg3 ; | |
2329 | int *arg4 = (int *) 0 ; | |
2330 | int *arg5 = (int *) 0 ; | |
2331 | int temp4 ; | |
2332 | int temp5 ; | |
2333 | PyObject * obj0 = 0 ; | |
2334 | PyObject * obj1 = 0 ; | |
2335 | PyObject * obj2 = 0 ; | |
2336 | ||
2337 | arg4 = &temp4; | |
2338 | arg5 = &temp5; | |
2339 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; | |
2340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2342 | arg2 = (int) SWIG_AsInt(obj1); | |
2343 | if (PyErr_Occurred()) SWIG_fail; | |
2344 | arg3 = (int) SWIG_AsInt(obj2); | |
2345 | if (PyErr_Occurred()) SWIG_fail; | |
2346 | { | |
2347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2348 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); | |
2349 | ||
2350 | wxPyEndAllowThreads(__tstate); | |
2351 | if (PyErr_Occurred()) SWIG_fail; | |
2352 | } | |
2353 | Py_INCREF(Py_None); resultobj = Py_None; | |
2354 | { | |
2355 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2356 | resultobj = t_output_helper(resultobj,o); | |
2357 | } | |
2358 | { | |
2359 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2360 | resultobj = t_output_helper(resultobj,o); | |
2361 | } | |
2362 | return resultobj; | |
2363 | fail: | |
2364 | return NULL; | |
2365 | } | |
2366 | ||
2367 | ||
2368 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2369 | int argc; | |
2370 | PyObject *argv[4]; | |
2371 | int ii; | |
2372 | ||
2373 | argc = PyObject_Length(args); | |
2374 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2375 | argv[ii] = PyTuple_GetItem(args,ii); | |
2376 | } | |
2377 | if (argc == 2) { | |
2378 | int _v; | |
2379 | { | |
2380 | void *ptr; | |
2381 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2382 | _v = 0; | |
2383 | PyErr_Clear(); | |
2384 | } else { | |
2385 | _v = 1; | |
2386 | } | |
2387 | } | |
2388 | if (_v) { | |
2389 | { | |
2390 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2391 | } | |
2392 | if (_v) { | |
2393 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); | |
2394 | } | |
2395 | } | |
2396 | } | |
2397 | if (argc == 3) { | |
2398 | int _v; | |
2399 | { | |
2400 | void *ptr; | |
2401 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2402 | _v = 0; | |
2403 | PyErr_Clear(); | |
2404 | } else { | |
2405 | _v = 1; | |
2406 | } | |
2407 | } | |
2408 | if (_v) { | |
2409 | _v = SWIG_CheckInt(argv[1]); | |
2410 | if (_v) { | |
2411 | _v = SWIG_CheckInt(argv[2]); | |
2412 | if (_v) { | |
2413 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); | |
2414 | } | |
2415 | } | |
2416 | } | |
2417 | } | |
2418 | ||
2419 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2420 | return NULL; | |
2421 | } | |
2422 | ||
2423 | ||
2424 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2425 | PyObject *resultobj; | |
2426 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2427 | PyObject * obj0 = 0 ; | |
2428 | char *kwnames[] = { | |
2429 | (char *) "self", NULL | |
2430 | }; | |
2431 | ||
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2437 | (arg1)->AdjustScrollbars(); | |
2438 | ||
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) SWIG_fail; | |
2441 | } | |
2442 | Py_INCREF(Py_None); resultobj = Py_None; | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject *resultobj; | |
2451 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2452 | wxScrollWinEvent *arg2 = 0 ; | |
2453 | int result; | |
2454 | PyObject * obj0 = 0 ; | |
2455 | PyObject * obj1 = 0 ; | |
2456 | char *kwnames[] = { | |
2457 | (char *) "self",(char *) "event", NULL | |
2458 | }; | |
2459 | ||
2460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxScrollWinEvent, | |
2464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2465 | SWIG_fail; | |
2466 | if (arg2 == NULL) { | |
2467 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2468 | SWIG_fail; | |
2469 | } | |
2470 | { | |
2471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2472 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2473 | ||
2474 | wxPyEndAllowThreads(__tstate); | |
2475 | if (PyErr_Occurred()) SWIG_fail; | |
2476 | } | |
2477 | resultobj = SWIG_FromInt((int)result); | |
2478 | return resultobj; | |
2479 | fail: | |
2480 | return NULL; | |
2481 | } | |
2482 | ||
2483 | ||
2484 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2485 | PyObject *resultobj; | |
2486 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2487 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2488 | PyObject * obj0 = 0 ; | |
2489 | PyObject * obj1 = 0 ; | |
2490 | char *kwnames[] = { | |
2491 | (char *) "self",(char *) "target", NULL | |
2492 | }; | |
2493 | ||
2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2499 | { | |
2500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2501 | (arg1)->SetTargetWindow(arg2); | |
2502 | ||
2503 | wxPyEndAllowThreads(__tstate); | |
2504 | if (PyErr_Occurred()) SWIG_fail; | |
2505 | } | |
2506 | Py_INCREF(Py_None); resultobj = Py_None; | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2513 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj; | |
2515 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2516 | wxWindow *result; | |
2517 | PyObject * obj0 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "self", NULL | |
2520 | }; | |
2521 | ||
2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2525 | { | |
2526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2527 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2528 | ||
2529 | wxPyEndAllowThreads(__tstate); | |
2530 | if (PyErr_Occurred()) SWIG_fail; | |
2531 | } | |
2532 | { | |
412d302d | 2533 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
2534 | } |
2535 | return resultobj; | |
2536 | fail: | |
2537 | return NULL; | |
2538 | } | |
2539 | ||
2540 | ||
2541 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2542 | PyObject *resultobj; | |
2543 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2544 | wxRect *arg2 = 0 ; | |
2545 | wxRect temp2 ; | |
2546 | PyObject * obj0 = 0 ; | |
2547 | PyObject * obj1 = 0 ; | |
2548 | char *kwnames[] = { | |
2549 | (char *) "self",(char *) "rect", NULL | |
2550 | }; | |
2551 | ||
2552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2555 | { | |
2556 | arg2 = &temp2; | |
2557 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2558 | } | |
2559 | { | |
2560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2561 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2562 | ||
2563 | wxPyEndAllowThreads(__tstate); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | Py_INCREF(Py_None); resultobj = Py_None; | |
2567 | return resultobj; | |
2568 | fail: | |
2569 | return NULL; | |
2570 | } | |
2571 | ||
2572 | ||
2573 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2574 | PyObject *resultobj; | |
2575 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2576 | wxRect result; | |
2577 | PyObject * obj0 = 0 ; | |
2578 | char *kwnames[] = { | |
2579 | (char *) "self", NULL | |
2580 | }; | |
2581 | ||
2582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2585 | { | |
2586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2587 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2588 | ||
2589 | wxPyEndAllowThreads(__tstate); | |
2590 | if (PyErr_Occurred()) SWIG_fail; | |
2591 | } | |
2592 | { | |
2593 | wxRect * resultptr; | |
2594 | resultptr = new wxRect((wxRect &) result); | |
2595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
2596 | } | |
2597 | return resultobj; | |
2598 | fail: | |
2599 | return NULL; | |
2600 | } | |
2601 | ||
2602 | ||
f5b96ee1 RD |
2603 | static PyObject *_wrap_ScrolledWindow_DoPrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
2604 | PyObject *resultobj; | |
2605 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2606 | wxDC *arg2 = 0 ; | |
2607 | PyObject * obj0 = 0 ; | |
2608 | PyObject * obj1 = 0 ; | |
2609 | char *kwnames[] = { | |
2610 | (char *) "self",(char *) "dc", NULL | |
2611 | }; | |
2612 | ||
2613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_DoPrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
2614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrolledWindow, | |
2615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
2617 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2618 | SWIG_fail; | |
2619 | if (arg2 == NULL) { | |
2620 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2621 | SWIG_fail; | |
2622 | } | |
2623 | { | |
2624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2625 | (arg1)->DoPrepareDC(*arg2); | |
2626 | ||
2627 | wxPyEndAllowThreads(__tstate); | |
2628 | if (PyErr_Occurred()) SWIG_fail; | |
2629 | } | |
2630 | Py_INCREF(Py_None); resultobj = Py_None; | |
2631 | return resultobj; | |
2632 | fail: | |
2633 | return NULL; | |
2634 | } | |
2635 | ||
2636 | ||
f20a2e1f RD |
2637 | static PyObject *_wrap_ScrolledWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2638 | PyObject *resultobj; | |
2639 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2640 | wxVisualAttributes result; | |
2641 | PyObject * obj0 = 0 ; | |
2642 | char *kwnames[] = { | |
2643 | (char *) "variant", NULL | |
2644 | }; | |
2645 | ||
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrolledWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2647 | if (obj0) { | |
2648 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2649 | if (PyErr_Occurred()) SWIG_fail; | |
2650 | } | |
2651 | { | |
0439c23b | 2652 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2654 | result = wxScrolledWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2655 | ||
2656 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2657 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2658 | } |
2659 | { | |
2660 | wxVisualAttributes * resultptr; | |
2661 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2663 | } | |
2664 | return resultobj; | |
2665 | fail: | |
2666 | return NULL; | |
2667 | } | |
2668 | ||
2669 | ||
d55e5bfc RD |
2670 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
2671 | PyObject *obj; | |
2672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2673 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2674 | Py_INCREF(obj); | |
2675 | return Py_BuildValue((char *)""); | |
2676 | } | |
2677 | static int _wrap_FrameNameStr_set(PyObject *_val) { | |
2678 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2679 | return 1; | |
2680 | } | |
2681 | ||
2682 | ||
2683 | static PyObject *_wrap_FrameNameStr_get() { | |
2684 | PyObject *pyobj; | |
2685 | ||
2686 | { | |
2687 | #if wxUSE_UNICODE | |
2688 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2689 | #else | |
2690 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2691 | #endif | |
2692 | } | |
2693 | return pyobj; | |
2694 | } | |
2695 | ||
2696 | ||
2697 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2698 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2699 | return 1; | |
2700 | } | |
2701 | ||
2702 | ||
2703 | static PyObject *_wrap_DialogNameStr_get() { | |
2704 | PyObject *pyobj; | |
2705 | ||
2706 | { | |
2707 | #if wxUSE_UNICODE | |
2708 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2709 | #else | |
2710 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2711 | #endif | |
2712 | } | |
2713 | return pyobj; | |
2714 | } | |
2715 | ||
2716 | ||
2717 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2718 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2719 | return 1; | |
2720 | } | |
2721 | ||
2722 | ||
2723 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2724 | PyObject *pyobj; | |
2725 | ||
2726 | { | |
2727 | #if wxUSE_UNICODE | |
2728 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2729 | #else | |
2730 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2731 | #endif | |
2732 | } | |
2733 | return pyobj; | |
2734 | } | |
2735 | ||
2736 | ||
2737 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2738 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2739 | return 1; | |
2740 | } | |
2741 | ||
2742 | ||
2743 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2744 | PyObject *pyobj; | |
2745 | ||
2746 | { | |
2747 | #if wxUSE_UNICODE | |
2748 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2749 | #else | |
2750 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2751 | #endif | |
2752 | } | |
2753 | return pyobj; | |
2754 | } | |
2755 | ||
2756 | ||
2757 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2758 | PyObject *resultobj; | |
2759 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2760 | bool arg2 = (bool) True ; | |
2761 | PyObject * obj0 = 0 ; | |
2762 | PyObject * obj1 = 0 ; | |
2763 | char *kwnames[] = { | |
2764 | (char *) "self",(char *) "maximize", NULL | |
2765 | }; | |
2766 | ||
2767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2770 | if (obj1) { | |
2771 | arg2 = (bool) SWIG_AsBool(obj1); | |
2772 | if (PyErr_Occurred()) SWIG_fail; | |
2773 | } | |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2776 | (arg1)->Maximize(arg2); | |
2777 | ||
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | Py_INCREF(Py_None); resultobj = Py_None; | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
2788 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject *resultobj; | |
2790 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2791 | PyObject * obj0 = 0 ; | |
2792 | char *kwnames[] = { | |
2793 | (char *) "self", NULL | |
2794 | }; | |
2795 | ||
2796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2799 | { | |
2800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2801 | (arg1)->Restore(); | |
2802 | ||
2803 | wxPyEndAllowThreads(__tstate); | |
2804 | if (PyErr_Occurred()) SWIG_fail; | |
2805 | } | |
2806 | Py_INCREF(Py_None); resultobj = Py_None; | |
2807 | return resultobj; | |
2808 | fail: | |
2809 | return NULL; | |
2810 | } | |
2811 | ||
2812 | ||
2813 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2814 | PyObject *resultobj; | |
2815 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2816 | bool arg2 = (bool) True ; | |
2817 | PyObject * obj0 = 0 ; | |
2818 | PyObject * obj1 = 0 ; | |
2819 | char *kwnames[] = { | |
2820 | (char *) "self",(char *) "iconize", NULL | |
2821 | }; | |
2822 | ||
2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2826 | if (obj1) { | |
2827 | arg2 = (bool) SWIG_AsBool(obj1); | |
2828 | if (PyErr_Occurred()) SWIG_fail; | |
2829 | } | |
2830 | { | |
2831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2832 | (arg1)->Iconize(arg2); | |
2833 | ||
2834 | wxPyEndAllowThreads(__tstate); | |
2835 | if (PyErr_Occurred()) SWIG_fail; | |
2836 | } | |
2837 | Py_INCREF(Py_None); resultobj = Py_None; | |
2838 | return resultobj; | |
2839 | fail: | |
2840 | return NULL; | |
2841 | } | |
2842 | ||
2843 | ||
2844 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2845 | PyObject *resultobj; | |
2846 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2847 | bool result; | |
2848 | PyObject * obj0 = 0 ; | |
2849 | char *kwnames[] = { | |
2850 | (char *) "self", NULL | |
2851 | }; | |
2852 | ||
2853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2856 | { | |
2857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2858 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2859 | ||
2860 | wxPyEndAllowThreads(__tstate); | |
2861 | if (PyErr_Occurred()) SWIG_fail; | |
2862 | } | |
2863 | { | |
2864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2865 | } | |
2866 | return resultobj; | |
2867 | fail: | |
2868 | return NULL; | |
2869 | } | |
2870 | ||
2871 | ||
2872 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2873 | PyObject *resultobj; | |
2874 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2875 | bool result; | |
2876 | PyObject * obj0 = 0 ; | |
2877 | char *kwnames[] = { | |
2878 | (char *) "self", NULL | |
2879 | }; | |
2880 | ||
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2884 | { | |
2885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2886 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2887 | ||
2888 | wxPyEndAllowThreads(__tstate); | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | } | |
2891 | { | |
2892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2893 | } | |
2894 | return resultobj; | |
2895 | fail: | |
2896 | return NULL; | |
2897 | } | |
2898 | ||
2899 | ||
2900 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2901 | PyObject *resultobj; | |
2902 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2903 | wxIcon result; | |
2904 | PyObject * obj0 = 0 ; | |
2905 | char *kwnames[] = { | |
2906 | (char *) "self", NULL | |
2907 | }; | |
2908 | ||
2909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2912 | { | |
2913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2914 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2915 | ||
2916 | wxPyEndAllowThreads(__tstate); | |
2917 | if (PyErr_Occurred()) SWIG_fail; | |
2918 | } | |
2919 | { | |
2920 | wxIcon * resultptr; | |
2921 | resultptr = new wxIcon((wxIcon &) result); | |
2922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
2923 | } | |
2924 | return resultobj; | |
2925 | fail: | |
2926 | return NULL; | |
2927 | } | |
2928 | ||
2929 | ||
2930 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2931 | PyObject *resultobj; | |
2932 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2933 | wxIcon *arg2 = 0 ; | |
2934 | PyObject * obj0 = 0 ; | |
2935 | PyObject * obj1 = 0 ; | |
2936 | char *kwnames[] = { | |
2937 | (char *) "self",(char *) "icon", NULL | |
2938 | }; | |
2939 | ||
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
2944 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2945 | SWIG_fail; | |
2946 | if (arg2 == NULL) { | |
2947 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2948 | SWIG_fail; | |
2949 | } | |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | Py_INCREF(Py_None); resultobj = Py_None; | |
2958 | return resultobj; | |
2959 | fail: | |
2960 | return NULL; | |
2961 | } | |
2962 | ||
2963 | ||
2964 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2965 | PyObject *resultobj; | |
2966 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2967 | wxIconBundle *arg2 = 0 ; | |
2968 | PyObject * obj0 = 0 ; | |
2969 | PyObject * obj1 = 0 ; | |
2970 | char *kwnames[] = { | |
2971 | (char *) "self",(char *) "icons", NULL | |
2972 | }; | |
2973 | ||
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
2976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIconBundle, | |
2978 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2979 | SWIG_fail; | |
2980 | if (arg2 == NULL) { | |
2981 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2982 | SWIG_fail; | |
2983 | } | |
2984 | { | |
2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2986 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2987 | ||
2988 | wxPyEndAllowThreads(__tstate); | |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
2990 | } | |
2991 | Py_INCREF(Py_None); resultobj = Py_None; | |
2992 | return resultobj; | |
2993 | fail: | |
2994 | return NULL; | |
2995 | } | |
2996 | ||
2997 | ||
2998 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2999 | PyObject *resultobj; | |
3000 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3001 | bool arg2 ; | |
3002 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
3003 | bool result; | |
3004 | PyObject * obj0 = 0 ; | |
3005 | PyObject * obj1 = 0 ; | |
3006 | PyObject * obj2 = 0 ; | |
3007 | char *kwnames[] = { | |
3008 | (char *) "self",(char *) "show",(char *) "style", NULL | |
3009 | }; | |
3010 | ||
3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3014 | arg2 = (bool) SWIG_AsBool(obj1); | |
3015 | if (PyErr_Occurred()) SWIG_fail; | |
3016 | if (obj2) { | |
3017 | arg3 = (long) SWIG_AsLong(obj2); | |
3018 | if (PyErr_Occurred()) SWIG_fail; | |
3019 | } | |
3020 | { | |
3021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3022 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
3023 | ||
3024 | wxPyEndAllowThreads(__tstate); | |
3025 | if (PyErr_Occurred()) SWIG_fail; | |
3026 | } | |
3027 | { | |
3028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3029 | } | |
3030 | return resultobj; | |
3031 | fail: | |
3032 | return NULL; | |
3033 | } | |
3034 | ||
3035 | ||
3036 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3037 | PyObject *resultobj; | |
3038 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3039 | bool result; | |
3040 | PyObject * obj0 = 0 ; | |
3041 | char *kwnames[] = { | |
3042 | (char *) "self", NULL | |
3043 | }; | |
3044 | ||
3045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
3046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3048 | { | |
3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3050 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
3051 | ||
3052 | wxPyEndAllowThreads(__tstate); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | { | |
3056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3057 | } | |
3058 | return resultobj; | |
3059 | fail: | |
3060 | return NULL; | |
3061 | } | |
3062 | ||
3063 | ||
3064 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3065 | PyObject *resultobj; | |
3066 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3067 | wxString *arg2 = 0 ; | |
3068 | bool temp2 = False ; | |
3069 | PyObject * obj0 = 0 ; | |
3070 | PyObject * obj1 = 0 ; | |
3071 | char *kwnames[] = { | |
3072 | (char *) "self",(char *) "title", NULL | |
3073 | }; | |
3074 | ||
3075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
3076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3078 | { | |
3079 | arg2 = wxString_in_helper(obj1); | |
3080 | if (arg2 == NULL) SWIG_fail; | |
3081 | temp2 = True; | |
3082 | } | |
3083 | { | |
3084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3085 | (arg1)->SetTitle((wxString const &)*arg2); | |
3086 | ||
3087 | wxPyEndAllowThreads(__tstate); | |
3088 | if (PyErr_Occurred()) SWIG_fail; | |
3089 | } | |
3090 | Py_INCREF(Py_None); resultobj = Py_None; | |
3091 | { | |
3092 | if (temp2) | |
3093 | delete arg2; | |
3094 | } | |
3095 | return resultobj; | |
3096 | fail: | |
3097 | { | |
3098 | if (temp2) | |
3099 | delete arg2; | |
3100 | } | |
3101 | return NULL; | |
3102 | } | |
3103 | ||
3104 | ||
3105 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3106 | PyObject *resultobj; | |
3107 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3108 | wxString result; | |
3109 | PyObject * obj0 = 0 ; | |
3110 | char *kwnames[] = { | |
3111 | (char *) "self", NULL | |
3112 | }; | |
3113 | ||
3114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
3115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3117 | { | |
3118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3119 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
3120 | ||
3121 | wxPyEndAllowThreads(__tstate); | |
3122 | if (PyErr_Occurred()) SWIG_fail; | |
3123 | } | |
3124 | { | |
3125 | #if wxUSE_UNICODE | |
3126 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3127 | #else | |
3128 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3129 | #endif | |
3130 | } | |
3131 | return resultobj; | |
3132 | fail: | |
3133 | return NULL; | |
3134 | } | |
3135 | ||
3136 | ||
3137 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3138 | PyObject *resultobj; | |
3139 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
3140 | wxRegion *arg2 = 0 ; | |
3141 | bool result; | |
3142 | PyObject * obj0 = 0 ; | |
3143 | PyObject * obj1 = 0 ; | |
3144 | char *kwnames[] = { | |
3145 | (char *) "self",(char *) "region", NULL | |
3146 | }; | |
3147 | ||
3148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
3149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTopLevelWindow, | |
3150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion, | |
3152 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3153 | SWIG_fail; | |
3154 | if (arg2 == NULL) { | |
3155 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3156 | SWIG_fail; | |
3157 | } | |
3158 | { | |
3159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3160 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
3161 | ||
3162 | wxPyEndAllowThreads(__tstate); | |
3163 | if (PyErr_Occurred()) SWIG_fail; | |
3164 | } | |
3165 | { | |
3166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3167 | } | |
3168 | return resultobj; | |
3169 | fail: | |
3170 | return NULL; | |
3171 | } | |
3172 | ||
3173 | ||
3174 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
3175 | PyObject *obj; | |
3176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3177 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
3178 | Py_INCREF(obj); | |
3179 | return Py_BuildValue((char *)""); | |
3180 | } | |
3181 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3182 | PyObject *resultobj; | |
3183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3184 | int arg2 = (int) (int)-1 ; |
3185 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
3186 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
3187 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3188 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3189 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3190 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3191 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
3192 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
3193 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3194 | wxFrame *result; | |
3195 | bool temp3 = False ; | |
3196 | wxPoint temp4 ; | |
3197 | wxSize temp5 ; | |
3198 | bool temp7 = False ; | |
3199 | PyObject * obj0 = 0 ; | |
3200 | PyObject * obj1 = 0 ; | |
3201 | PyObject * obj2 = 0 ; | |
3202 | PyObject * obj3 = 0 ; | |
3203 | PyObject * obj4 = 0 ; | |
3204 | PyObject * obj5 = 0 ; | |
3205 | PyObject * obj6 = 0 ; | |
3206 | char *kwnames[] = { | |
3207 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3208 | }; | |
3209 | ||
248ed943 | 3210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
3211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3213 | if (obj1) { |
3214 | arg2 = (int const) SWIG_AsInt(obj1); | |
3215 | if (PyErr_Occurred()) SWIG_fail; | |
3216 | } | |
3217 | if (obj2) { | |
3218 | { | |
3219 | arg3 = wxString_in_helper(obj2); | |
3220 | if (arg3 == NULL) SWIG_fail; | |
3221 | temp3 = True; | |
3222 | } | |
d55e5bfc RD |
3223 | } |
3224 | if (obj3) { | |
3225 | { | |
3226 | arg4 = &temp4; | |
3227 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3228 | } | |
3229 | } | |
3230 | if (obj4) { | |
3231 | { | |
3232 | arg5 = &temp5; | |
3233 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3234 | } | |
3235 | } | |
3236 | if (obj5) { | |
3237 | arg6 = (long) SWIG_AsLong(obj5); | |
3238 | if (PyErr_Occurred()) SWIG_fail; | |
3239 | } | |
3240 | if (obj6) { | |
3241 | { | |
3242 | arg7 = wxString_in_helper(obj6); | |
3243 | if (arg7 == NULL) SWIG_fail; | |
3244 | temp7 = True; | |
3245 | } | |
3246 | } | |
3247 | { | |
0439c23b | 3248 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3250 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3251 | ||
3252 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3253 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3254 | } |
b0f7404b | 3255 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1); |
d55e5bfc RD |
3256 | { |
3257 | if (temp3) | |
3258 | delete arg3; | |
3259 | } | |
3260 | { | |
3261 | if (temp7) | |
3262 | delete arg7; | |
3263 | } | |
3264 | return resultobj; | |
3265 | fail: | |
3266 | { | |
3267 | if (temp3) | |
3268 | delete arg3; | |
3269 | } | |
3270 | { | |
3271 | if (temp7) | |
3272 | delete arg7; | |
3273 | } | |
3274 | return NULL; | |
3275 | } | |
3276 | ||
3277 | ||
3278 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3279 | PyObject *resultobj; | |
3280 | wxFrame *result; | |
3281 | char *kwnames[] = { | |
3282 | NULL | |
3283 | }; | |
3284 | ||
3285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
3286 | { | |
0439c23b | 3287 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3289 | result = (wxFrame *)new wxFrame(); | |
3290 | ||
3291 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3292 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 3293 | } |
b0f7404b | 3294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFrame, 1); |
d55e5bfc RD |
3295 | return resultobj; |
3296 | fail: | |
3297 | return NULL; | |
3298 | } | |
3299 | ||
3300 | ||
3301 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3302 | PyObject *resultobj; | |
3303 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3304 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3305 | int arg3 = (int) (int)-1 ; |
3306 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3307 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
3308 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3309 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3310 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3311 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3312 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
3313 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
3314 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3315 | bool result; | |
3316 | bool temp4 = False ; | |
3317 | wxPoint temp5 ; | |
3318 | wxSize temp6 ; | |
3319 | bool temp8 = False ; | |
3320 | PyObject * obj0 = 0 ; | |
3321 | PyObject * obj1 = 0 ; | |
3322 | PyObject * obj2 = 0 ; | |
3323 | PyObject * obj3 = 0 ; | |
3324 | PyObject * obj4 = 0 ; | |
3325 | PyObject * obj5 = 0 ; | |
3326 | PyObject * obj6 = 0 ; | |
3327 | PyObject * obj7 = 0 ; | |
3328 | char *kwnames[] = { | |
3329 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3330 | }; | |
3331 | ||
248ed943 | 3332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
3333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, |
3334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3337 | if (obj2) { |
3338 | arg3 = (int const) SWIG_AsInt(obj2); | |
3339 | if (PyErr_Occurred()) SWIG_fail; | |
3340 | } | |
3341 | if (obj3) { | |
3342 | { | |
3343 | arg4 = wxString_in_helper(obj3); | |
3344 | if (arg4 == NULL) SWIG_fail; | |
3345 | temp4 = True; | |
3346 | } | |
d55e5bfc RD |
3347 | } |
3348 | if (obj4) { | |
3349 | { | |
3350 | arg5 = &temp5; | |
3351 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3352 | } | |
3353 | } | |
3354 | if (obj5) { | |
3355 | { | |
3356 | arg6 = &temp6; | |
3357 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3358 | } | |
3359 | } | |
3360 | if (obj6) { | |
3361 | arg7 = (long) SWIG_AsLong(obj6); | |
3362 | if (PyErr_Occurred()) SWIG_fail; | |
3363 | } | |
3364 | if (obj7) { | |
3365 | { | |
3366 | arg8 = wxString_in_helper(obj7); | |
3367 | if (arg8 == NULL) SWIG_fail; | |
3368 | temp8 = True; | |
3369 | } | |
3370 | } | |
3371 | { | |
3372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3373 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3374 | ||
3375 | wxPyEndAllowThreads(__tstate); | |
3376 | if (PyErr_Occurred()) SWIG_fail; | |
3377 | } | |
3378 | { | |
3379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3380 | } | |
3381 | { | |
3382 | if (temp4) | |
3383 | delete arg4; | |
3384 | } | |
3385 | { | |
3386 | if (temp8) | |
3387 | delete arg8; | |
3388 | } | |
3389 | return resultobj; | |
3390 | fail: | |
3391 | { | |
3392 | if (temp4) | |
3393 | delete arg4; | |
3394 | } | |
3395 | { | |
3396 | if (temp8) | |
3397 | delete arg8; | |
3398 | } | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj; | |
3405 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3406 | wxPoint result; | |
3407 | PyObject * obj0 = 0 ; | |
3408 | char *kwnames[] = { | |
3409 | (char *) "self", NULL | |
3410 | }; | |
3411 | ||
3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3415 | { | |
3416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3417 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3418 | ||
3419 | wxPyEndAllowThreads(__tstate); | |
3420 | if (PyErr_Occurred()) SWIG_fail; | |
3421 | } | |
3422 | { | |
3423 | wxPoint * resultptr; | |
3424 | resultptr = new wxPoint((wxPoint &) result); | |
3425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3426 | } | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | return NULL; | |
3430 | } | |
3431 | ||
3432 | ||
3433 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject *resultobj; | |
3435 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3436 | PyObject * obj0 = 0 ; | |
3437 | char *kwnames[] = { | |
3438 | (char *) "self", NULL | |
3439 | }; | |
3440 | ||
3441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3444 | { | |
3445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3446 | (arg1)->SendSizeEvent(); | |
3447 | ||
3448 | wxPyEndAllowThreads(__tstate); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
3451 | Py_INCREF(Py_None); resultobj = Py_None; | |
3452 | return resultobj; | |
3453 | fail: | |
3454 | return NULL; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3459 | PyObject *resultobj; | |
3460 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3461 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3462 | PyObject * obj0 = 0 ; | |
3463 | PyObject * obj1 = 0 ; | |
3464 | char *kwnames[] = { | |
3465 | (char *) "self",(char *) "menubar", NULL | |
3466 | }; | |
3467 | ||
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3471 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBar, | |
3472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3473 | { | |
3474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3475 | (arg1)->SetMenuBar(arg2); | |
3476 | ||
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | Py_INCREF(Py_None); resultobj = Py_None; | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
3484 | } | |
3485 | ||
3486 | ||
3487 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3488 | PyObject *resultobj; | |
3489 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3490 | wxMenuBar *result; | |
3491 | PyObject * obj0 = 0 ; | |
3492 | char *kwnames[] = { | |
3493 | (char *) "self", NULL | |
3494 | }; | |
3495 | ||
3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3499 | { | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
3506 | { | |
412d302d | 3507 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3508 | } |
3509 | return resultobj; | |
3510 | fail: | |
3511 | return NULL; | |
3512 | } | |
3513 | ||
3514 | ||
3515 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3516 | PyObject *resultobj; | |
3517 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3518 | int arg2 ; | |
3519 | bool result; | |
3520 | PyObject * obj0 = 0 ; | |
3521 | PyObject * obj1 = 0 ; | |
3522 | char *kwnames[] = { | |
3523 | (char *) "self",(char *) "winid", NULL | |
3524 | }; | |
3525 | ||
3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; | |
3527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3529 | arg2 = (int) SWIG_AsInt(obj1); | |
3530 | if (PyErr_Occurred()) SWIG_fail; | |
3531 | { | |
3532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3533 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3534 | ||
3535 | wxPyEndAllowThreads(__tstate); | |
3536 | if (PyErr_Occurred()) SWIG_fail; | |
3537 | } | |
3538 | { | |
3539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3540 | } | |
3541 | return resultobj; | |
3542 | fail: | |
3543 | return NULL; | |
3544 | } | |
3545 | ||
3546 | ||
3547 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3548 | PyObject *resultobj; | |
3549 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3550 | int arg2 = (int) 1 ; | |
3551 | long arg3 = (long) wxST_SIZEGRIP ; | |
3552 | int arg4 = (int) 0 ; | |
3553 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
3554 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3555 | wxStatusBar *result; | |
3556 | bool temp5 = False ; | |
3557 | PyObject * obj0 = 0 ; | |
3558 | PyObject * obj1 = 0 ; | |
3559 | PyObject * obj2 = 0 ; | |
3560 | PyObject * obj3 = 0 ; | |
3561 | PyObject * obj4 = 0 ; | |
3562 | char *kwnames[] = { | |
3563 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3564 | }; | |
3565 | ||
3566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
3567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3569 | if (obj1) { | |
3570 | arg2 = (int) SWIG_AsInt(obj1); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | if (obj2) { | |
3574 | arg3 = (long) SWIG_AsLong(obj2); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
3577 | if (obj3) { | |
3578 | arg4 = (int) SWIG_AsInt(obj3); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
3581 | if (obj4) { | |
3582 | { | |
3583 | arg5 = wxString_in_helper(obj4); | |
3584 | if (arg5 == NULL) SWIG_fail; | |
3585 | temp5 = True; | |
3586 | } | |
3587 | } | |
3588 | { | |
3589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3590 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3591 | ||
3592 | wxPyEndAllowThreads(__tstate); | |
3593 | if (PyErr_Occurred()) SWIG_fail; | |
3594 | } | |
3595 | { | |
412d302d | 3596 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3597 | } |
3598 | { | |
3599 | if (temp5) | |
3600 | delete arg5; | |
3601 | } | |
3602 | return resultobj; | |
3603 | fail: | |
3604 | { | |
3605 | if (temp5) | |
3606 | delete arg5; | |
3607 | } | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
3612 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject *resultobj; | |
3614 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3615 | wxStatusBar *result; | |
3616 | PyObject * obj0 = 0 ; | |
3617 | char *kwnames[] = { | |
3618 | (char *) "self", NULL | |
3619 | }; | |
3620 | ||
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3624 | { | |
3625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3626 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3627 | ||
3628 | wxPyEndAllowThreads(__tstate); | |
3629 | if (PyErr_Occurred()) SWIG_fail; | |
3630 | } | |
3631 | { | |
412d302d | 3632 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3633 | } |
3634 | return resultobj; | |
3635 | fail: | |
3636 | return NULL; | |
3637 | } | |
3638 | ||
3639 | ||
3640 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3641 | PyObject *resultobj; | |
3642 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3643 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3644 | PyObject * obj0 = 0 ; | |
3645 | PyObject * obj1 = 0 ; | |
3646 | char *kwnames[] = { | |
3647 | (char *) "self",(char *) "statBar", NULL | |
3648 | }; | |
3649 | ||
3650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3653 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxStatusBar, | |
3654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3655 | { | |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3657 | (arg1)->SetStatusBar(arg2); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
3660 | if (PyErr_Occurred()) SWIG_fail; | |
3661 | } | |
3662 | Py_INCREF(Py_None); resultobj = Py_None; | |
3663 | return resultobj; | |
3664 | fail: | |
3665 | return NULL; | |
3666 | } | |
3667 | ||
3668 | ||
3669 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3670 | PyObject *resultobj; | |
3671 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3672 | wxString *arg2 = 0 ; | |
3673 | int arg3 = (int) 0 ; | |
3674 | bool temp2 = False ; | |
3675 | PyObject * obj0 = 0 ; | |
3676 | PyObject * obj1 = 0 ; | |
3677 | PyObject * obj2 = 0 ; | |
3678 | char *kwnames[] = { | |
3679 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3680 | }; | |
3681 | ||
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3685 | { | |
3686 | arg2 = wxString_in_helper(obj1); | |
3687 | if (arg2 == NULL) SWIG_fail; | |
3688 | temp2 = True; | |
3689 | } | |
3690 | if (obj2) { | |
3691 | arg3 = (int) SWIG_AsInt(obj2); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
3694 | { | |
3695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3696 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3697 | ||
3698 | wxPyEndAllowThreads(__tstate); | |
3699 | if (PyErr_Occurred()) SWIG_fail; | |
3700 | } | |
3701 | Py_INCREF(Py_None); resultobj = Py_None; | |
3702 | { | |
3703 | if (temp2) | |
3704 | delete arg2; | |
3705 | } | |
3706 | return resultobj; | |
3707 | fail: | |
3708 | { | |
3709 | if (temp2) | |
3710 | delete arg2; | |
3711 | } | |
3712 | return NULL; | |
3713 | } | |
3714 | ||
3715 | ||
3716 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject *resultobj; | |
3718 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3719 | int arg2 ; | |
3720 | int *arg3 = (int *) 0 ; | |
3721 | PyObject * obj0 = 0 ; | |
3722 | PyObject * obj1 = 0 ; | |
3723 | char *kwnames[] = { | |
3724 | (char *) "self",(char *) "widths", NULL | |
3725 | }; | |
3726 | ||
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3730 | { | |
3731 | arg2 = PyList_Size(obj1); | |
3732 | arg3 = int_LIST_helper(obj1); | |
3733 | if (arg3 == NULL) SWIG_fail; | |
3734 | } | |
3735 | { | |
3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3737 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3738 | ||
3739 | wxPyEndAllowThreads(__tstate); | |
3740 | if (PyErr_Occurred()) SWIG_fail; | |
3741 | } | |
3742 | Py_INCREF(Py_None); resultobj = Py_None; | |
3743 | { | |
3744 | if (arg3) delete [] arg3; | |
3745 | } | |
3746 | return resultobj; | |
3747 | fail: | |
3748 | { | |
3749 | if (arg3) delete [] arg3; | |
3750 | } | |
3751 | return NULL; | |
3752 | } | |
3753 | ||
3754 | ||
3755 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3756 | PyObject *resultobj; | |
3757 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3758 | wxString *arg2 = 0 ; | |
3759 | int arg3 = (int) 0 ; | |
3760 | bool temp2 = False ; | |
3761 | PyObject * obj0 = 0 ; | |
3762 | PyObject * obj1 = 0 ; | |
3763 | PyObject * obj2 = 0 ; | |
3764 | char *kwnames[] = { | |
3765 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3766 | }; | |
3767 | ||
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3771 | { | |
3772 | arg2 = wxString_in_helper(obj1); | |
3773 | if (arg2 == NULL) SWIG_fail; | |
3774 | temp2 = True; | |
3775 | } | |
3776 | if (obj2) { | |
3777 | arg3 = (int) SWIG_AsInt(obj2); | |
3778 | if (PyErr_Occurred()) SWIG_fail; | |
3779 | } | |
3780 | { | |
3781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3782 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3783 | ||
3784 | wxPyEndAllowThreads(__tstate); | |
3785 | if (PyErr_Occurred()) SWIG_fail; | |
3786 | } | |
3787 | Py_INCREF(Py_None); resultobj = Py_None; | |
3788 | { | |
3789 | if (temp2) | |
3790 | delete arg2; | |
3791 | } | |
3792 | return resultobj; | |
3793 | fail: | |
3794 | { | |
3795 | if (temp2) | |
3796 | delete arg2; | |
3797 | } | |
3798 | return NULL; | |
3799 | } | |
3800 | ||
3801 | ||
3802 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3803 | PyObject *resultobj; | |
3804 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3805 | int arg2 = (int) 0 ; | |
3806 | PyObject * obj0 = 0 ; | |
3807 | PyObject * obj1 = 0 ; | |
3808 | char *kwnames[] = { | |
3809 | (char *) "self",(char *) "number", NULL | |
3810 | }; | |
3811 | ||
3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
3813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3815 | if (obj1) { | |
3816 | arg2 = (int) SWIG_AsInt(obj1); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
3819 | { | |
3820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3821 | (arg1)->PopStatusText(arg2); | |
3822 | ||
3823 | wxPyEndAllowThreads(__tstate); | |
3824 | if (PyErr_Occurred()) SWIG_fail; | |
3825 | } | |
3826 | Py_INCREF(Py_None); resultobj = Py_None; | |
3827 | return resultobj; | |
3828 | fail: | |
3829 | return NULL; | |
3830 | } | |
3831 | ||
3832 | ||
3833 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3834 | PyObject *resultobj; | |
3835 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3836 | int arg2 ; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | PyObject * obj1 = 0 ; | |
3839 | char *kwnames[] = { | |
3840 | (char *) "self",(char *) "n", NULL | |
3841 | }; | |
3842 | ||
3843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; | |
3844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3846 | arg2 = (int) SWIG_AsInt(obj1); | |
3847 | if (PyErr_Occurred()) SWIG_fail; | |
3848 | { | |
3849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3850 | (arg1)->SetStatusBarPane(arg2); | |
3851 | ||
3852 | wxPyEndAllowThreads(__tstate); | |
3853 | if (PyErr_Occurred()) SWIG_fail; | |
3854 | } | |
3855 | Py_INCREF(Py_None); resultobj = Py_None; | |
3856 | return resultobj; | |
3857 | fail: | |
3858 | return NULL; | |
3859 | } | |
3860 | ||
3861 | ||
3862 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3863 | PyObject *resultobj; | |
3864 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3865 | int result; | |
3866 | PyObject * obj0 = 0 ; | |
3867 | char *kwnames[] = { | |
3868 | (char *) "self", NULL | |
3869 | }; | |
3870 | ||
3871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3874 | { | |
3875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3876 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3877 | ||
3878 | wxPyEndAllowThreads(__tstate); | |
3879 | if (PyErr_Occurred()) SWIG_fail; | |
3880 | } | |
3881 | resultobj = SWIG_FromInt((int)result); | |
3882 | return resultobj; | |
3883 | fail: | |
3884 | return NULL; | |
3885 | } | |
3886 | ||
3887 | ||
3888 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3889 | PyObject *resultobj; | |
3890 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3891 | long arg2 = (long) -1 ; | |
3892 | int arg3 = (int) -1 ; | |
3893 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; | |
3894 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3895 | wxToolBar *result; | |
3896 | bool temp4 = False ; | |
3897 | PyObject * obj0 = 0 ; | |
3898 | PyObject * obj1 = 0 ; | |
3899 | PyObject * obj2 = 0 ; | |
3900 | PyObject * obj3 = 0 ; | |
3901 | char *kwnames[] = { | |
3902 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3903 | }; | |
3904 | ||
3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3908 | if (obj1) { | |
3909 | arg2 = (long) SWIG_AsLong(obj1); | |
3910 | if (PyErr_Occurred()) SWIG_fail; | |
3911 | } | |
3912 | if (obj2) { | |
3913 | arg3 = (int) SWIG_AsInt(obj2); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
3915 | } | |
3916 | if (obj3) { | |
3917 | { | |
3918 | arg4 = wxString_in_helper(obj3); | |
3919 | if (arg4 == NULL) SWIG_fail; | |
3920 | temp4 = True; | |
3921 | } | |
3922 | } | |
3923 | { | |
3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3925 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3926 | ||
3927 | wxPyEndAllowThreads(__tstate); | |
3928 | if (PyErr_Occurred()) SWIG_fail; | |
3929 | } | |
3930 | { | |
412d302d | 3931 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3932 | } |
3933 | { | |
3934 | if (temp4) | |
3935 | delete arg4; | |
3936 | } | |
3937 | return resultobj; | |
3938 | fail: | |
3939 | { | |
3940 | if (temp4) | |
3941 | delete arg4; | |
3942 | } | |
3943 | return NULL; | |
3944 | } | |
3945 | ||
3946 | ||
3947 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3948 | PyObject *resultobj; | |
3949 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3950 | wxToolBar *result; | |
3951 | PyObject * obj0 = 0 ; | |
3952 | char *kwnames[] = { | |
3953 | (char *) "self", NULL | |
3954 | }; | |
3955 | ||
3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3959 | { | |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3961 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3962 | ||
3963 | wxPyEndAllowThreads(__tstate); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
3965 | } | |
3966 | { | |
412d302d | 3967 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
3968 | } |
3969 | return resultobj; | |
3970 | fail: | |
3971 | return NULL; | |
3972 | } | |
3973 | ||
3974 | ||
3975 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3976 | PyObject *resultobj; | |
3977 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3978 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3979 | PyObject * obj0 = 0 ; | |
3980 | PyObject * obj1 = 0 ; | |
3981 | char *kwnames[] = { | |
3982 | (char *) "self",(char *) "toolbar", NULL | |
3983 | }; | |
3984 | ||
3985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
3987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
3989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3990 | { | |
3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3992 | (arg1)->SetToolBar(arg2); | |
3993 | ||
3994 | wxPyEndAllowThreads(__tstate); | |
3995 | if (PyErr_Occurred()) SWIG_fail; | |
3996 | } | |
3997 | Py_INCREF(Py_None); resultobj = Py_None; | |
3998 | return resultobj; | |
3999 | fail: | |
4000 | return NULL; | |
4001 | } | |
4002 | ||
4003 | ||
4004 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4005 | PyObject *resultobj; | |
4006 | wxFrame *arg1 = (wxFrame *) 0 ; | |
4007 | wxString *arg2 = 0 ; | |
4008 | bool arg3 ; | |
4009 | bool temp2 = False ; | |
4010 | PyObject * obj0 = 0 ; | |
4011 | PyObject * obj1 = 0 ; | |
4012 | PyObject * obj2 = 0 ; | |
4013 | char *kwnames[] = { | |
4014 | (char *) "self",(char *) "text",(char *) "show", NULL | |
4015 | }; | |
4016 | ||
4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
4019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4020 | { | |
4021 | arg2 = wxString_in_helper(obj1); | |
4022 | if (arg2 == NULL) SWIG_fail; | |
4023 | temp2 = True; | |
4024 | } | |
4025 | arg3 = (bool) SWIG_AsBool(obj2); | |
4026 | if (PyErr_Occurred()) SWIG_fail; | |
4027 | { | |
4028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4029 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
4030 | ||
4031 | wxPyEndAllowThreads(__tstate); | |
4032 | if (PyErr_Occurred()) SWIG_fail; | |
4033 | } | |
4034 | Py_INCREF(Py_None); resultobj = Py_None; | |
4035 | { | |
4036 | if (temp2) | |
4037 | delete arg2; | |
4038 | } | |
4039 | return resultobj; | |
4040 | fail: | |
4041 | { | |
4042 | if (temp2) | |
4043 | delete arg2; | |
4044 | } | |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
4049 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4050 | PyObject *resultobj; | |
4051 | wxFrame *arg1 = (wxFrame *) 0 ; | |
4052 | wxMenu *arg2 = (wxMenu *) NULL ; | |
4053 | PyObject * obj0 = 0 ; | |
4054 | PyObject * obj1 = 0 ; | |
4055 | char *kwnames[] = { | |
4056 | (char *) "self",(char *) "menu", NULL | |
4057 | }; | |
4058 | ||
4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
4060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame, | |
4061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4062 | if (obj1) { | |
4063 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
4064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4065 | } | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | (arg1)->DoMenuUpdates(arg2); | |
4069 | ||
4070 | wxPyEndAllowThreads(__tstate); | |
4071 | if (PyErr_Occurred()) SWIG_fail; | |
4072 | } | |
4073 | Py_INCREF(Py_None); resultobj = Py_None; | |
4074 | return resultobj; | |
4075 | fail: | |
4076 | return NULL; | |
4077 | } | |
4078 | ||
4079 | ||
f20a2e1f RD |
4080 | static PyObject *_wrap_Frame_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4081 | PyObject *resultobj; | |
4082 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4083 | wxVisualAttributes result; | |
4084 | PyObject * obj0 = 0 ; | |
4085 | char *kwnames[] = { | |
4086 | (char *) "variant", NULL | |
4087 | }; | |
4088 | ||
4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Frame_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4090 | if (obj0) { | |
4091 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4092 | if (PyErr_Occurred()) SWIG_fail; | |
4093 | } | |
4094 | { | |
0439c23b | 4095 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4097 | result = wxFrame::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4098 | ||
4099 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4100 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4101 | } |
4102 | { | |
4103 | wxVisualAttributes * resultptr; | |
4104 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4105 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4106 | } | |
4107 | return resultobj; | |
4108 | fail: | |
4109 | return NULL; | |
4110 | } | |
4111 | ||
4112 | ||
d55e5bfc RD |
4113 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { |
4114 | PyObject *obj; | |
4115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4116 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
4117 | Py_INCREF(obj); | |
4118 | return Py_BuildValue((char *)""); | |
4119 | } | |
4120 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4121 | PyObject *resultobj; | |
4122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4123 | int arg2 = (int) (int)-1 ; |
4124 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4125 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4126 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4127 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4128 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4129 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4130 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4131 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
4132 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4133 | wxDialog *result; | |
4134 | bool temp3 = False ; | |
4135 | wxPoint temp4 ; | |
4136 | wxSize temp5 ; | |
4137 | bool temp7 = False ; | |
4138 | PyObject * obj0 = 0 ; | |
4139 | PyObject * obj1 = 0 ; | |
4140 | PyObject * obj2 = 0 ; | |
4141 | PyObject * obj3 = 0 ; | |
4142 | PyObject * obj4 = 0 ; | |
4143 | PyObject * obj5 = 0 ; | |
4144 | PyObject * obj6 = 0 ; | |
4145 | char *kwnames[] = { | |
4146 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4147 | }; | |
4148 | ||
248ed943 | 4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4152 | if (obj1) { |
4153 | arg2 = (int const) SWIG_AsInt(obj1); | |
4154 | if (PyErr_Occurred()) SWIG_fail; | |
4155 | } | |
4156 | if (obj2) { | |
4157 | { | |
4158 | arg3 = wxString_in_helper(obj2); | |
4159 | if (arg3 == NULL) SWIG_fail; | |
4160 | temp3 = True; | |
4161 | } | |
d55e5bfc RD |
4162 | } |
4163 | if (obj3) { | |
4164 | { | |
4165 | arg4 = &temp4; | |
4166 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4167 | } | |
4168 | } | |
4169 | if (obj4) { | |
4170 | { | |
4171 | arg5 = &temp5; | |
4172 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4173 | } | |
4174 | } | |
4175 | if (obj5) { | |
4176 | arg6 = (long) SWIG_AsLong(obj5); | |
4177 | if (PyErr_Occurred()) SWIG_fail; | |
4178 | } | |
4179 | if (obj6) { | |
4180 | { | |
4181 | arg7 = wxString_in_helper(obj6); | |
4182 | if (arg7 == NULL) SWIG_fail; | |
4183 | temp7 = True; | |
4184 | } | |
4185 | } | |
4186 | { | |
0439c23b | 4187 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4189 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4190 | ||
4191 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4192 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4193 | } |
b0f7404b | 4194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); |
d55e5bfc RD |
4195 | { |
4196 | if (temp3) | |
4197 | delete arg3; | |
4198 | } | |
4199 | { | |
4200 | if (temp7) | |
4201 | delete arg7; | |
4202 | } | |
4203 | return resultobj; | |
4204 | fail: | |
4205 | { | |
4206 | if (temp3) | |
4207 | delete arg3; | |
4208 | } | |
4209 | { | |
4210 | if (temp7) | |
4211 | delete arg7; | |
4212 | } | |
4213 | return NULL; | |
4214 | } | |
4215 | ||
4216 | ||
4217 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4218 | PyObject *resultobj; | |
4219 | wxDialog *result; | |
4220 | char *kwnames[] = { | |
4221 | NULL | |
4222 | }; | |
4223 | ||
4224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
4225 | { | |
0439c23b | 4226 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4228 | result = (wxDialog *)new wxDialog(); | |
4229 | ||
4230 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4231 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4232 | } |
b0f7404b | 4233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDialog, 1); |
d55e5bfc RD |
4234 | return resultobj; |
4235 | fail: | |
4236 | return NULL; | |
4237 | } | |
4238 | ||
4239 | ||
4240 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4241 | PyObject *resultobj; | |
4242 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4243 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4244 | int arg3 = (int) (int)-1 ; |
4245 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4246 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4247 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4248 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4249 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4250 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4251 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
4252 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
4253 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4254 | bool result; | |
4255 | bool temp4 = False ; | |
4256 | wxPoint temp5 ; | |
4257 | wxSize temp6 ; | |
4258 | bool temp8 = False ; | |
4259 | PyObject * obj0 = 0 ; | |
4260 | PyObject * obj1 = 0 ; | |
4261 | PyObject * obj2 = 0 ; | |
4262 | PyObject * obj3 = 0 ; | |
4263 | PyObject * obj4 = 0 ; | |
4264 | PyObject * obj5 = 0 ; | |
4265 | PyObject * obj6 = 0 ; | |
4266 | PyObject * obj7 = 0 ; | |
4267 | char *kwnames[] = { | |
4268 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4269 | }; | |
4270 | ||
248ed943 | 4271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, |
4273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4274 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4276 | if (obj2) { |
4277 | arg3 = (int const) SWIG_AsInt(obj2); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
4280 | if (obj3) { | |
4281 | { | |
4282 | arg4 = wxString_in_helper(obj3); | |
4283 | if (arg4 == NULL) SWIG_fail; | |
4284 | temp4 = True; | |
4285 | } | |
d55e5bfc RD |
4286 | } |
4287 | if (obj4) { | |
4288 | { | |
4289 | arg5 = &temp5; | |
4290 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4291 | } | |
4292 | } | |
4293 | if (obj5) { | |
4294 | { | |
4295 | arg6 = &temp6; | |
4296 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4297 | } | |
4298 | } | |
4299 | if (obj6) { | |
4300 | arg7 = (long) SWIG_AsLong(obj6); | |
4301 | if (PyErr_Occurred()) SWIG_fail; | |
4302 | } | |
4303 | if (obj7) { | |
4304 | { | |
4305 | arg8 = wxString_in_helper(obj7); | |
4306 | if (arg8 == NULL) SWIG_fail; | |
4307 | temp8 = True; | |
4308 | } | |
4309 | } | |
4310 | { | |
4311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4312 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4313 | ||
4314 | wxPyEndAllowThreads(__tstate); | |
4315 | if (PyErr_Occurred()) SWIG_fail; | |
4316 | } | |
4317 | { | |
4318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4319 | } | |
4320 | { | |
4321 | if (temp4) | |
4322 | delete arg4; | |
4323 | } | |
4324 | { | |
4325 | if (temp8) | |
4326 | delete arg8; | |
4327 | } | |
4328 | return resultobj; | |
4329 | fail: | |
4330 | { | |
4331 | if (temp4) | |
4332 | delete arg4; | |
4333 | } | |
4334 | { | |
4335 | if (temp8) | |
4336 | delete arg8; | |
4337 | } | |
4338 | return NULL; | |
4339 | } | |
4340 | ||
4341 | ||
4342 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4343 | PyObject *resultobj; | |
4344 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4345 | int arg2 ; | |
4346 | PyObject * obj0 = 0 ; | |
4347 | PyObject * obj1 = 0 ; | |
4348 | char *kwnames[] = { | |
4349 | (char *) "self",(char *) "returnCode", NULL | |
4350 | }; | |
4351 | ||
4352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; | |
4353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4355 | arg2 = (int) SWIG_AsInt(obj1); | |
4356 | if (PyErr_Occurred()) SWIG_fail; | |
4357 | { | |
4358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4359 | (arg1)->SetReturnCode(arg2); | |
4360 | ||
4361 | wxPyEndAllowThreads(__tstate); | |
4362 | if (PyErr_Occurred()) SWIG_fail; | |
4363 | } | |
4364 | Py_INCREF(Py_None); resultobj = Py_None; | |
4365 | return resultobj; | |
4366 | fail: | |
4367 | return NULL; | |
4368 | } | |
4369 | ||
4370 | ||
4371 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4372 | PyObject *resultobj; | |
4373 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4374 | int result; | |
4375 | PyObject * obj0 = 0 ; | |
4376 | char *kwnames[] = { | |
4377 | (char *) "self", NULL | |
4378 | }; | |
4379 | ||
4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4383 | { | |
4384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4385 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4386 | ||
4387 | wxPyEndAllowThreads(__tstate); | |
4388 | if (PyErr_Occurred()) SWIG_fail; | |
4389 | } | |
4390 | resultobj = SWIG_FromInt((int)result); | |
4391 | return resultobj; | |
4392 | fail: | |
4393 | return NULL; | |
4394 | } | |
4395 | ||
4396 | ||
4397 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4398 | PyObject *resultobj; | |
4399 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4400 | wxString *arg2 = 0 ; | |
4401 | wxSizer *result; | |
4402 | bool temp2 = False ; | |
4403 | PyObject * obj0 = 0 ; | |
4404 | PyObject * obj1 = 0 ; | |
4405 | char *kwnames[] = { | |
4406 | (char *) "self",(char *) "message", NULL | |
4407 | }; | |
4408 | ||
4409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4412 | { | |
4413 | arg2 = wxString_in_helper(obj1); | |
4414 | if (arg2 == NULL) SWIG_fail; | |
4415 | temp2 = True; | |
4416 | } | |
4417 | { | |
4418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4419 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4420 | ||
4421 | wxPyEndAllowThreads(__tstate); | |
4422 | if (PyErr_Occurred()) SWIG_fail; | |
4423 | } | |
4424 | { | |
412d302d | 4425 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
4426 | } |
4427 | { | |
4428 | if (temp2) | |
4429 | delete arg2; | |
4430 | } | |
4431 | return resultobj; | |
4432 | fail: | |
4433 | { | |
4434 | if (temp2) | |
4435 | delete arg2; | |
4436 | } | |
4437 | return NULL; | |
4438 | } | |
4439 | ||
4440 | ||
4441 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject *resultobj; | |
4443 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4444 | long arg2 ; | |
4445 | wxSizer *result; | |
4446 | PyObject * obj0 = 0 ; | |
4447 | PyObject * obj1 = 0 ; | |
4448 | char *kwnames[] = { | |
4449 | (char *) "self",(char *) "flags", NULL | |
4450 | }; | |
4451 | ||
4452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; | |
4453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4455 | arg2 = (long) SWIG_AsLong(obj1); | |
4456 | if (PyErr_Occurred()) SWIG_fail; | |
4457 | { | |
4458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4459 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4460 | ||
4461 | wxPyEndAllowThreads(__tstate); | |
4462 | if (PyErr_Occurred()) SWIG_fail; | |
4463 | } | |
4464 | { | |
412d302d | 4465 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
4466 | } |
4467 | return resultobj; | |
4468 | fail: | |
4469 | return NULL; | |
4470 | } | |
4471 | ||
4472 | ||
4473 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj; | |
4475 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4476 | bool result; | |
4477 | PyObject * obj0 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "self", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4485 | { | |
4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4487 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4488 | ||
4489 | wxPyEndAllowThreads(__tstate); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | { | |
4493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4494 | } | |
4495 | return resultobj; | |
4496 | fail: | |
4497 | return NULL; | |
4498 | } | |
4499 | ||
4500 | ||
4501 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4502 | PyObject *resultobj; | |
4503 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4504 | int result; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | char *kwnames[] = { | |
4507 | (char *) "self", NULL | |
4508 | }; | |
4509 | ||
4510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4513 | { | |
4514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4515 | result = (int)(arg1)->ShowModal(); | |
4516 | ||
4517 | wxPyEndAllowThreads(__tstate); | |
4518 | if (PyErr_Occurred()) SWIG_fail; | |
4519 | } | |
4520 | resultobj = SWIG_FromInt((int)result); | |
4521 | return resultobj; | |
4522 | fail: | |
4523 | return NULL; | |
4524 | } | |
4525 | ||
4526 | ||
4527 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4528 | PyObject *resultobj; | |
4529 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4530 | int arg2 ; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | PyObject * obj1 = 0 ; | |
4533 | char *kwnames[] = { | |
4534 | (char *) "self",(char *) "retCode", NULL | |
4535 | }; | |
4536 | ||
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; | |
4538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDialog, | |
4539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4540 | arg2 = (int) SWIG_AsInt(obj1); | |
4541 | if (PyErr_Occurred()) SWIG_fail; | |
4542 | { | |
4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4544 | (arg1)->EndModal(arg2); | |
4545 | ||
4546 | wxPyEndAllowThreads(__tstate); | |
4547 | if (PyErr_Occurred()) SWIG_fail; | |
4548 | } | |
4549 | Py_INCREF(Py_None); resultobj = Py_None; | |
4550 | return resultobj; | |
4551 | fail: | |
4552 | return NULL; | |
4553 | } | |
4554 | ||
4555 | ||
f20a2e1f RD |
4556 | static PyObject *_wrap_Dialog_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4557 | PyObject *resultobj; | |
4558 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4559 | wxVisualAttributes result; | |
4560 | PyObject * obj0 = 0 ; | |
4561 | char *kwnames[] = { | |
4562 | (char *) "variant", NULL | |
4563 | }; | |
4564 | ||
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Dialog_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4566 | if (obj0) { | |
4567 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | { | |
0439c23b | 4571 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4573 | result = wxDialog::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4574 | ||
4575 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4576 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4577 | } |
4578 | { | |
4579 | wxVisualAttributes * resultptr; | |
4580 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4582 | } | |
4583 | return resultobj; | |
4584 | fail: | |
4585 | return NULL; | |
4586 | } | |
4587 | ||
4588 | ||
d55e5bfc RD |
4589 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { |
4590 | PyObject *obj; | |
4591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4592 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4593 | Py_INCREF(obj); | |
4594 | return Py_BuildValue((char *)""); | |
4595 | } | |
4596 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4597 | PyObject *resultobj; | |
4598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4599 | int arg2 = (int) (int)-1 ; |
4600 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4601 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4602 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4603 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4604 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4605 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4606 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4607 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4608 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4609 | wxMiniFrame *result; | |
4610 | bool temp3 = False ; | |
4611 | wxPoint temp4 ; | |
4612 | wxSize temp5 ; | |
4613 | bool temp7 = False ; | |
4614 | PyObject * obj0 = 0 ; | |
4615 | PyObject * obj1 = 0 ; | |
4616 | PyObject * obj2 = 0 ; | |
4617 | PyObject * obj3 = 0 ; | |
4618 | PyObject * obj4 = 0 ; | |
4619 | PyObject * obj5 = 0 ; | |
4620 | PyObject * obj6 = 0 ; | |
4621 | char *kwnames[] = { | |
4622 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4623 | }; | |
4624 | ||
248ed943 | 4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4628 | if (obj1) { |
4629 | arg2 = (int const) SWIG_AsInt(obj1); | |
4630 | if (PyErr_Occurred()) SWIG_fail; | |
4631 | } | |
4632 | if (obj2) { | |
4633 | { | |
4634 | arg3 = wxString_in_helper(obj2); | |
4635 | if (arg3 == NULL) SWIG_fail; | |
4636 | temp3 = True; | |
4637 | } | |
d55e5bfc RD |
4638 | } |
4639 | if (obj3) { | |
4640 | { | |
4641 | arg4 = &temp4; | |
4642 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4643 | } | |
4644 | } | |
4645 | if (obj4) { | |
4646 | { | |
4647 | arg5 = &temp5; | |
4648 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4649 | } | |
4650 | } | |
4651 | if (obj5) { | |
4652 | arg6 = (long) SWIG_AsLong(obj5); | |
4653 | if (PyErr_Occurred()) SWIG_fail; | |
4654 | } | |
4655 | if (obj6) { | |
4656 | { | |
4657 | arg7 = wxString_in_helper(obj6); | |
4658 | if (arg7 == NULL) SWIG_fail; | |
4659 | temp7 = True; | |
4660 | } | |
4661 | } | |
4662 | { | |
0439c23b | 4663 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4665 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4666 | ||
4667 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4668 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4669 | } |
4670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4671 | { | |
4672 | if (temp3) | |
4673 | delete arg3; | |
4674 | } | |
4675 | { | |
4676 | if (temp7) | |
4677 | delete arg7; | |
4678 | } | |
4679 | return resultobj; | |
4680 | fail: | |
4681 | { | |
4682 | if (temp3) | |
4683 | delete arg3; | |
4684 | } | |
4685 | { | |
4686 | if (temp7) | |
4687 | delete arg7; | |
4688 | } | |
4689 | return NULL; | |
4690 | } | |
4691 | ||
4692 | ||
4693 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4694 | PyObject *resultobj; | |
4695 | wxMiniFrame *result; | |
4696 | char *kwnames[] = { | |
4697 | NULL | |
4698 | }; | |
4699 | ||
4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4701 | { | |
0439c23b | 4702 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4704 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4705 | ||
4706 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4707 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4708 | } |
4709 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMiniFrame, 1); | |
4710 | return resultobj; | |
4711 | fail: | |
4712 | return NULL; | |
4713 | } | |
4714 | ||
4715 | ||
4716 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4717 | PyObject *resultobj; | |
4718 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4719 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4720 | int arg3 = (int) (int)-1 ; |
4721 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4722 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4723 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4724 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4725 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4726 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4727 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4728 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4729 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4730 | bool result; | |
4731 | bool temp4 = False ; | |
4732 | wxPoint temp5 ; | |
4733 | wxSize temp6 ; | |
4734 | bool temp8 = False ; | |
4735 | PyObject * obj0 = 0 ; | |
4736 | PyObject * obj1 = 0 ; | |
4737 | PyObject * obj2 = 0 ; | |
4738 | PyObject * obj3 = 0 ; | |
4739 | PyObject * obj4 = 0 ; | |
4740 | PyObject * obj5 = 0 ; | |
4741 | PyObject * obj6 = 0 ; | |
4742 | PyObject * obj7 = 0 ; | |
4743 | char *kwnames[] = { | |
4744 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4745 | }; | |
4746 | ||
248ed943 | 4747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMiniFrame, |
4749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4752 | if (obj2) { |
4753 | arg3 = (int const) SWIG_AsInt(obj2); | |
4754 | if (PyErr_Occurred()) SWIG_fail; | |
4755 | } | |
4756 | if (obj3) { | |
4757 | { | |
4758 | arg4 = wxString_in_helper(obj3); | |
4759 | if (arg4 == NULL) SWIG_fail; | |
4760 | temp4 = True; | |
4761 | } | |
d55e5bfc RD |
4762 | } |
4763 | if (obj4) { | |
4764 | { | |
4765 | arg5 = &temp5; | |
4766 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4767 | } | |
4768 | } | |
4769 | if (obj5) { | |
4770 | { | |
4771 | arg6 = &temp6; | |
4772 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4773 | } | |
4774 | } | |
4775 | if (obj6) { | |
4776 | arg7 = (long) SWIG_AsLong(obj6); | |
4777 | if (PyErr_Occurred()) SWIG_fail; | |
4778 | } | |
4779 | if (obj7) { | |
4780 | { | |
4781 | arg8 = wxString_in_helper(obj7); | |
4782 | if (arg8 == NULL) SWIG_fail; | |
4783 | temp8 = True; | |
4784 | } | |
4785 | } | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
4793 | { | |
4794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4795 | } | |
4796 | { | |
4797 | if (temp4) | |
4798 | delete arg4; | |
4799 | } | |
4800 | { | |
4801 | if (temp8) | |
4802 | delete arg8; | |
4803 | } | |
4804 | return resultobj; | |
4805 | fail: | |
4806 | { | |
4807 | if (temp4) | |
4808 | delete arg4; | |
4809 | } | |
4810 | { | |
4811 | if (temp8) | |
4812 | delete arg8; | |
4813 | } | |
4814 | return NULL; | |
4815 | } | |
4816 | ||
4817 | ||
4818 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4819 | PyObject *obj; | |
4820 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4821 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4822 | Py_INCREF(obj); | |
4823 | return Py_BuildValue((char *)""); | |
4824 | } | |
4825 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4826 | PyObject *resultobj; | |
4827 | wxBitmap *arg1 = 0 ; | |
4828 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4829 | int arg3 ; | |
4830 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4831 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4832 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4833 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4834 | long arg6 = (long) wxNO_BORDER ; | |
4835 | wxSplashScreenWindow *result; | |
4836 | wxPoint temp4 ; | |
4837 | wxSize temp5 ; | |
4838 | PyObject * obj0 = 0 ; | |
4839 | PyObject * obj1 = 0 ; | |
4840 | PyObject * obj2 = 0 ; | |
4841 | PyObject * obj3 = 0 ; | |
4842 | PyObject * obj4 = 0 ; | |
4843 | PyObject * obj5 = 0 ; | |
4844 | char *kwnames[] = { | |
4845 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4846 | }; | |
4847 | ||
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
4850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4851 | SWIG_fail; | |
4852 | if (arg1 == NULL) { | |
4853 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4854 | SWIG_fail; | |
4855 | } | |
4856 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4858 | arg3 = (int) SWIG_AsInt(obj2); | |
4859 | if (PyErr_Occurred()) SWIG_fail; | |
4860 | if (obj3) { | |
4861 | { | |
4862 | arg4 = &temp4; | |
4863 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4864 | } | |
4865 | } | |
4866 | if (obj4) { | |
4867 | { | |
4868 | arg5 = &temp5; | |
4869 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4870 | } | |
4871 | } | |
4872 | if (obj5) { | |
4873 | arg6 = (long) SWIG_AsLong(obj5); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | { | |
0439c23b | 4877 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4879 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4880 | ||
4881 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4882 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4883 | } |
4884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | return NULL; | |
4888 | } | |
4889 | ||
4890 | ||
4891 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4892 | PyObject *resultobj; | |
4893 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4894 | wxBitmap *arg2 = 0 ; | |
4895 | PyObject * obj0 = 0 ; | |
4896 | PyObject * obj1 = 0 ; | |
4897 | char *kwnames[] = { | |
4898 | (char *) "self",(char *) "bitmap", NULL | |
4899 | }; | |
4900 | ||
4901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4904 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4905 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4906 | SWIG_fail; | |
4907 | if (arg2 == NULL) { | |
4908 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4909 | SWIG_fail; | |
4910 | } | |
4911 | { | |
4912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4913 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4914 | ||
4915 | wxPyEndAllowThreads(__tstate); | |
4916 | if (PyErr_Occurred()) SWIG_fail; | |
4917 | } | |
4918 | Py_INCREF(Py_None); resultobj = Py_None; | |
4919 | return resultobj; | |
4920 | fail: | |
4921 | return NULL; | |
4922 | } | |
4923 | ||
4924 | ||
4925 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4926 | PyObject *resultobj; | |
4927 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4928 | wxBitmap *result; | |
4929 | PyObject * obj0 = 0 ; | |
4930 | char *kwnames[] = { | |
4931 | (char *) "self", NULL | |
4932 | }; | |
4933 | ||
4934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreenWindow, | |
4936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4937 | { | |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | { | |
4940 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4941 | result = (wxBitmap *) &_result_ref; | |
4942 | } | |
4943 | ||
4944 | wxPyEndAllowThreads(__tstate); | |
4945 | if (PyErr_Occurred()) SWIG_fail; | |
4946 | } | |
4947 | { | |
4948 | wxBitmap* resultptr = new wxBitmap(*result); | |
4949 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
4950 | } | |
4951 | return resultobj; | |
4952 | fail: | |
4953 | return NULL; | |
4954 | } | |
4955 | ||
4956 | ||
4957 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4958 | PyObject *obj; | |
4959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4960 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4961 | Py_INCREF(obj); | |
4962 | return Py_BuildValue((char *)""); | |
4963 | } | |
4964 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4965 | PyObject *resultobj; | |
4966 | wxBitmap *arg1 = 0 ; | |
4967 | long arg2 ; | |
4968 | int arg3 ; | |
4969 | wxWindow *arg4 = (wxWindow *) 0 ; | |
248ed943 | 4970 | int arg5 = (int) -1 ; |
d55e5bfc RD |
4971 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
4972 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4973 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4974 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4975 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4976 | wxSplashScreen *result; | |
4977 | wxPoint temp6 ; | |
4978 | wxSize temp7 ; | |
4979 | PyObject * obj0 = 0 ; | |
4980 | PyObject * obj1 = 0 ; | |
4981 | PyObject * obj2 = 0 ; | |
4982 | PyObject * obj3 = 0 ; | |
4983 | PyObject * obj4 = 0 ; | |
4984 | PyObject * obj5 = 0 ; | |
4985 | PyObject * obj6 = 0 ; | |
4986 | PyObject * obj7 = 0 ; | |
4987 | char *kwnames[] = { | |
4988 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4989 | }; | |
4990 | ||
248ed943 | 4991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
4993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4994 | SWIG_fail; | |
4995 | if (arg1 == NULL) { | |
4996 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4997 | SWIG_fail; | |
4998 | } | |
4999 | arg2 = (long) SWIG_AsLong(obj1); | |
5000 | if (PyErr_Occurred()) SWIG_fail; | |
5001 | arg3 = (int) SWIG_AsInt(obj2); | |
5002 | if (PyErr_Occurred()) SWIG_fail; | |
5003 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
5004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5005 | if (obj4) { |
5006 | arg5 = (int) SWIG_AsInt(obj4); | |
5007 | if (PyErr_Occurred()) SWIG_fail; | |
5008 | } | |
d55e5bfc RD |
5009 | if (obj5) { |
5010 | { | |
5011 | arg6 = &temp6; | |
5012 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
5013 | } | |
5014 | } | |
5015 | if (obj6) { | |
5016 | { | |
5017 | arg7 = &temp7; | |
5018 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
5019 | } | |
5020 | } | |
5021 | if (obj7) { | |
5022 | arg8 = (long) SWIG_AsLong(obj7); | |
5023 | if (PyErr_Occurred()) SWIG_fail; | |
5024 | } | |
5025 | { | |
0439c23b | 5026 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5028 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
5029 | ||
5030 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5031 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5032 | } |
5033 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreen, 1); | |
5034 | return resultobj; | |
5035 | fail: | |
5036 | return NULL; | |
5037 | } | |
5038 | ||
5039 | ||
5040 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5041 | PyObject *resultobj; | |
5042 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5043 | long result; | |
5044 | PyObject * obj0 = 0 ; | |
5045 | char *kwnames[] = { | |
5046 | (char *) "self", NULL | |
5047 | }; | |
5048 | ||
5049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
5050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5052 | { | |
5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5054 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
5055 | ||
5056 | wxPyEndAllowThreads(__tstate); | |
5057 | if (PyErr_Occurred()) SWIG_fail; | |
5058 | } | |
5059 | resultobj = SWIG_FromLong((long)result); | |
5060 | return resultobj; | |
5061 | fail: | |
5062 | return NULL; | |
5063 | } | |
5064 | ||
5065 | ||
5066 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5067 | PyObject *resultobj; | |
5068 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5069 | wxSplashScreenWindow *result; | |
5070 | PyObject * obj0 = 0 ; | |
5071 | char *kwnames[] = { | |
5072 | (char *) "self", NULL | |
5073 | }; | |
5074 | ||
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
5076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5078 | { | |
5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5080 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
5081 | ||
5082 | wxPyEndAllowThreads(__tstate); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
5085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplashScreenWindow, 0); | |
5086 | return resultobj; | |
5087 | fail: | |
5088 | return NULL; | |
5089 | } | |
5090 | ||
5091 | ||
5092 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5093 | PyObject *resultobj; | |
5094 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
5095 | int result; | |
5096 | PyObject * obj0 = 0 ; | |
5097 | char *kwnames[] = { | |
5098 | (char *) "self", NULL | |
5099 | }; | |
5100 | ||
5101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
5102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplashScreen, | |
5103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
5107 | ||
5108 | wxPyEndAllowThreads(__tstate); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | resultobj = SWIG_FromInt((int)result); | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | return NULL; | |
5115 | } | |
5116 | ||
5117 | ||
5118 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
5119 | PyObject *obj; | |
5120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5121 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
5122 | Py_INCREF(obj); | |
5123 | return Py_BuildValue((char *)""); | |
5124 | } | |
5125 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5126 | PyObject *resultobj; | |
5127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5128 | int arg2 = (int) -1 ; | |
5129 | long arg3 = (long) wxST_SIZEGRIP ; | |
5130 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
5131 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
5132 | wxStatusBar *result; | |
5133 | bool temp4 = False ; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | PyObject * obj1 = 0 ; | |
5136 | PyObject * obj2 = 0 ; | |
5137 | PyObject * obj3 = 0 ; | |
5138 | char *kwnames[] = { | |
5139 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5140 | }; | |
5141 | ||
5142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5145 | if (obj1) { | |
5146 | arg2 = (int) SWIG_AsInt(obj1); | |
5147 | if (PyErr_Occurred()) SWIG_fail; | |
5148 | } | |
5149 | if (obj2) { | |
5150 | arg3 = (long) SWIG_AsLong(obj2); | |
5151 | if (PyErr_Occurred()) SWIG_fail; | |
5152 | } | |
5153 | if (obj3) { | |
5154 | { | |
5155 | arg4 = wxString_in_helper(obj3); | |
5156 | if (arg4 == NULL) SWIG_fail; | |
5157 | temp4 = True; | |
5158 | } | |
5159 | } | |
5160 | { | |
0439c23b | 5161 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5163 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
5164 | ||
5165 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5166 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5167 | } |
b0f7404b | 5168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1); |
d55e5bfc RD |
5169 | { |
5170 | if (temp4) | |
5171 | delete arg4; | |
5172 | } | |
5173 | return resultobj; | |
5174 | fail: | |
5175 | { | |
5176 | if (temp4) | |
5177 | delete arg4; | |
5178 | } | |
5179 | return NULL; | |
5180 | } | |
5181 | ||
5182 | ||
5183 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5184 | PyObject *resultobj; | |
5185 | wxStatusBar *result; | |
5186 | char *kwnames[] = { | |
5187 | NULL | |
5188 | }; | |
5189 | ||
5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
5191 | { | |
0439c23b | 5192 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5194 | result = (wxStatusBar *)new wxStatusBar(); | |
5195 | ||
5196 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5197 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 5198 | } |
b0f7404b | 5199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStatusBar, 1); |
d55e5bfc RD |
5200 | return resultobj; |
5201 | fail: | |
5202 | return NULL; | |
5203 | } | |
5204 | ||
5205 | ||
5206 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5207 | PyObject *resultobj; | |
5208 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5210 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5211 | long arg4 = (long) wxST_SIZEGRIP ; |
5212 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
5213 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
5214 | bool result; | |
5215 | bool temp5 = False ; | |
5216 | PyObject * obj0 = 0 ; | |
5217 | PyObject * obj1 = 0 ; | |
5218 | PyObject * obj2 = 0 ; | |
5219 | PyObject * obj3 = 0 ; | |
5220 | PyObject * obj4 = 0 ; | |
5221 | char *kwnames[] = { | |
5222 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
5223 | }; | |
5224 | ||
248ed943 | 5225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
5226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, |
5227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5228 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5230 | if (obj2) { |
5231 | arg3 = (int) SWIG_AsInt(obj2); | |
5232 | if (PyErr_Occurred()) SWIG_fail; | |
5233 | } | |
d55e5bfc RD |
5234 | if (obj3) { |
5235 | arg4 = (long) SWIG_AsLong(obj3); | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | } | |
5238 | if (obj4) { | |
5239 | { | |
5240 | arg5 = wxString_in_helper(obj4); | |
5241 | if (arg5 == NULL) SWIG_fail; | |
5242 | temp5 = True; | |
5243 | } | |
5244 | } | |
5245 | { | |
5246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5247 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
5248 | ||
5249 | wxPyEndAllowThreads(__tstate); | |
5250 | if (PyErr_Occurred()) SWIG_fail; | |
5251 | } | |
5252 | { | |
5253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5254 | } | |
5255 | { | |
5256 | if (temp5) | |
5257 | delete arg5; | |
5258 | } | |
5259 | return resultobj; | |
5260 | fail: | |
5261 | { | |
5262 | if (temp5) | |
5263 | delete arg5; | |
5264 | } | |
5265 | return NULL; | |
5266 | } | |
5267 | ||
5268 | ||
5269 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5270 | PyObject *resultobj; | |
5271 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5272 | int arg2 = (int) 1 ; | |
5273 | PyObject * obj0 = 0 ; | |
5274 | PyObject * obj1 = 0 ; | |
5275 | char *kwnames[] = { | |
5276 | (char *) "self",(char *) "number", NULL | |
5277 | }; | |
5278 | ||
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; | |
5280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5282 | if (obj1) { | |
5283 | arg2 = (int) SWIG_AsInt(obj1); | |
5284 | if (PyErr_Occurred()) SWIG_fail; | |
5285 | } | |
5286 | { | |
5287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5288 | (arg1)->SetFieldsCount(arg2); | |
5289 | ||
5290 | wxPyEndAllowThreads(__tstate); | |
5291 | if (PyErr_Occurred()) SWIG_fail; | |
5292 | } | |
5293 | Py_INCREF(Py_None); resultobj = Py_None; | |
5294 | return resultobj; | |
5295 | fail: | |
5296 | return NULL; | |
5297 | } | |
5298 | ||
5299 | ||
5300 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5301 | PyObject *resultobj; | |
5302 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5303 | int result; | |
5304 | PyObject * obj0 = 0 ; | |
5305 | char *kwnames[] = { | |
5306 | (char *) "self", NULL | |
5307 | }; | |
5308 | ||
5309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
5310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5312 | { | |
5313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5314 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
5315 | ||
5316 | wxPyEndAllowThreads(__tstate); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | resultobj = SWIG_FromInt((int)result); | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
5326 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5327 | PyObject *resultobj; | |
5328 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5329 | wxString *arg2 = 0 ; | |
5330 | int arg3 = (int) 0 ; | |
5331 | bool temp2 = False ; | |
5332 | PyObject * obj0 = 0 ; | |
5333 | PyObject * obj1 = 0 ; | |
5334 | PyObject * obj2 = 0 ; | |
5335 | char *kwnames[] = { | |
5336 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5337 | }; | |
5338 | ||
5339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5342 | { | |
5343 | arg2 = wxString_in_helper(obj1); | |
5344 | if (arg2 == NULL) SWIG_fail; | |
5345 | temp2 = True; | |
5346 | } | |
5347 | if (obj2) { | |
5348 | arg3 = (int) SWIG_AsInt(obj2); | |
5349 | if (PyErr_Occurred()) SWIG_fail; | |
5350 | } | |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
5354 | ||
5355 | wxPyEndAllowThreads(__tstate); | |
5356 | if (PyErr_Occurred()) SWIG_fail; | |
5357 | } | |
5358 | Py_INCREF(Py_None); resultobj = Py_None; | |
5359 | { | |
5360 | if (temp2) | |
5361 | delete arg2; | |
5362 | } | |
5363 | return resultobj; | |
5364 | fail: | |
5365 | { | |
5366 | if (temp2) | |
5367 | delete arg2; | |
5368 | } | |
5369 | return NULL; | |
5370 | } | |
5371 | ||
5372 | ||
5373 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5374 | PyObject *resultobj; | |
5375 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5376 | int arg2 = (int) 0 ; | |
5377 | wxString result; | |
5378 | PyObject * obj0 = 0 ; | |
5379 | PyObject * obj1 = 0 ; | |
5380 | char *kwnames[] = { | |
5381 | (char *) "self",(char *) "number", NULL | |
5382 | }; | |
5383 | ||
5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5387 | if (obj1) { | |
5388 | arg2 = (int) SWIG_AsInt(obj1); | |
5389 | if (PyErr_Occurred()) SWIG_fail; | |
5390 | } | |
5391 | { | |
5392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5393 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
5394 | ||
5395 | wxPyEndAllowThreads(__tstate); | |
5396 | if (PyErr_Occurred()) SWIG_fail; | |
5397 | } | |
5398 | { | |
5399 | #if wxUSE_UNICODE | |
5400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5401 | #else | |
5402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5403 | #endif | |
5404 | } | |
5405 | return resultobj; | |
5406 | fail: | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
5411 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5412 | PyObject *resultobj; | |
5413 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5414 | wxString *arg2 = 0 ; | |
5415 | int arg3 = (int) 0 ; | |
5416 | bool temp2 = False ; | |
5417 | PyObject * obj0 = 0 ; | |
5418 | PyObject * obj1 = 0 ; | |
5419 | PyObject * obj2 = 0 ; | |
5420 | char *kwnames[] = { | |
5421 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5422 | }; | |
5423 | ||
5424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5427 | { | |
5428 | arg2 = wxString_in_helper(obj1); | |
5429 | if (arg2 == NULL) SWIG_fail; | |
5430 | temp2 = True; | |
5431 | } | |
5432 | if (obj2) { | |
5433 | arg3 = (int) SWIG_AsInt(obj2); | |
5434 | if (PyErr_Occurred()) SWIG_fail; | |
5435 | } | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | Py_INCREF(Py_None); resultobj = Py_None; | |
5444 | { | |
5445 | if (temp2) | |
5446 | delete arg2; | |
5447 | } | |
5448 | return resultobj; | |
5449 | fail: | |
5450 | { | |
5451 | if (temp2) | |
5452 | delete arg2; | |
5453 | } | |
5454 | return NULL; | |
5455 | } | |
5456 | ||
5457 | ||
5458 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5459 | PyObject *resultobj; | |
5460 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5461 | int arg2 = (int) 0 ; | |
5462 | PyObject * obj0 = 0 ; | |
5463 | PyObject * obj1 = 0 ; | |
5464 | char *kwnames[] = { | |
5465 | (char *) "self",(char *) "number", NULL | |
5466 | }; | |
5467 | ||
5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; | |
5469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5471 | if (obj1) { | |
5472 | arg2 = (int) SWIG_AsInt(obj1); | |
5473 | if (PyErr_Occurred()) SWIG_fail; | |
5474 | } | |
5475 | { | |
5476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5477 | (arg1)->PopStatusText(arg2); | |
5478 | ||
5479 | wxPyEndAllowThreads(__tstate); | |
5480 | if (PyErr_Occurred()) SWIG_fail; | |
5481 | } | |
5482 | Py_INCREF(Py_None); resultobj = Py_None; | |
5483 | return resultobj; | |
5484 | fail: | |
5485 | return NULL; | |
5486 | } | |
5487 | ||
5488 | ||
5489 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5490 | PyObject *resultobj; | |
5491 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5492 | int arg2 ; | |
5493 | int *arg3 = (int *) 0 ; | |
5494 | PyObject * obj0 = 0 ; | |
5495 | PyObject * obj1 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "self",(char *) "widths", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5503 | { | |
5504 | arg2 = PyList_Size(obj1); | |
5505 | arg3 = int_LIST_helper(obj1); | |
5506 | if (arg3 == NULL) SWIG_fail; | |
5507 | } | |
5508 | { | |
5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5510 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5511 | ||
5512 | wxPyEndAllowThreads(__tstate); | |
5513 | if (PyErr_Occurred()) SWIG_fail; | |
5514 | } | |
5515 | Py_INCREF(Py_None); resultobj = Py_None; | |
5516 | { | |
5517 | if (arg3) delete [] arg3; | |
5518 | } | |
5519 | return resultobj; | |
5520 | fail: | |
5521 | { | |
5522 | if (arg3) delete [] arg3; | |
5523 | } | |
5524 | return NULL; | |
5525 | } | |
5526 | ||
5527 | ||
5528 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5529 | PyObject *resultobj; | |
5530 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5531 | int arg2 ; | |
5532 | wxRect result; | |
5533 | PyObject * obj0 = 0 ; | |
5534 | PyObject * obj1 = 0 ; | |
5535 | char *kwnames[] = { | |
5536 | (char *) "self",(char *) "i", NULL | |
5537 | }; | |
5538 | ||
5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; | |
5540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5542 | arg2 = (int) SWIG_AsInt(obj1); | |
5543 | if (PyErr_Occurred()) SWIG_fail; | |
5544 | { | |
5545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5546 | result = wxStatusBar_GetFieldRect(arg1,arg2); | |
5547 | ||
5548 | wxPyEndAllowThreads(__tstate); | |
5549 | if (PyErr_Occurred()) SWIG_fail; | |
5550 | } | |
5551 | { | |
5552 | wxRect * resultptr; | |
5553 | resultptr = new wxRect((wxRect &) result); | |
5554 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
5555 | } | |
5556 | return resultobj; | |
5557 | fail: | |
5558 | return NULL; | |
5559 | } | |
5560 | ||
5561 | ||
5562 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5563 | PyObject *resultobj; | |
5564 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5565 | int arg2 ; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | PyObject * obj1 = 0 ; | |
5568 | char *kwnames[] = { | |
5569 | (char *) "self",(char *) "height", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; | |
5573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5575 | arg2 = (int) SWIG_AsInt(obj1); | |
5576 | if (PyErr_Occurred()) SWIG_fail; | |
5577 | { | |
5578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5579 | (arg1)->SetMinHeight(arg2); | |
5580 | ||
5581 | wxPyEndAllowThreads(__tstate); | |
5582 | if (PyErr_Occurred()) SWIG_fail; | |
5583 | } | |
5584 | Py_INCREF(Py_None); resultobj = Py_None; | |
5585 | return resultobj; | |
5586 | fail: | |
5587 | return NULL; | |
5588 | } | |
5589 | ||
5590 | ||
5591 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5592 | PyObject *resultobj; | |
5593 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5594 | int result; | |
5595 | PyObject * obj0 = 0 ; | |
5596 | char *kwnames[] = { | |
5597 | (char *) "self", NULL | |
5598 | }; | |
5599 | ||
5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5603 | { | |
5604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5605 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5606 | ||
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) SWIG_fail; | |
5609 | } | |
5610 | resultobj = SWIG_FromInt((int)result); | |
5611 | return resultobj; | |
5612 | fail: | |
5613 | return NULL; | |
5614 | } | |
5615 | ||
5616 | ||
5617 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5618 | PyObject *resultobj; | |
5619 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5620 | int result; | |
5621 | PyObject * obj0 = 0 ; | |
5622 | char *kwnames[] = { | |
5623 | (char *) "self", NULL | |
5624 | }; | |
5625 | ||
5626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStatusBar, | |
5628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5629 | { | |
5630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5631 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5632 | ||
5633 | wxPyEndAllowThreads(__tstate); | |
5634 | if (PyErr_Occurred()) SWIG_fail; | |
5635 | } | |
5636 | resultobj = SWIG_FromInt((int)result); | |
5637 | return resultobj; | |
5638 | fail: | |
5639 | return NULL; | |
5640 | } | |
5641 | ||
5642 | ||
f20a2e1f RD |
5643 | static PyObject *_wrap_StatusBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5644 | PyObject *resultobj; | |
5645 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5646 | wxVisualAttributes result; | |
5647 | PyObject * obj0 = 0 ; | |
5648 | char *kwnames[] = { | |
5649 | (char *) "variant", NULL | |
5650 | }; | |
5651 | ||
5652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StatusBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5653 | if (obj0) { | |
5654 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5655 | if (PyErr_Occurred()) SWIG_fail; | |
5656 | } | |
5657 | { | |
0439c23b | 5658 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5660 | result = wxStatusBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5661 | ||
5662 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5663 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5664 | } |
5665 | { | |
5666 | wxVisualAttributes * resultptr; | |
5667 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5668 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5669 | } | |
5670 | return resultobj; | |
5671 | fail: | |
5672 | return NULL; | |
5673 | } | |
5674 | ||
5675 | ||
d55e5bfc RD |
5676 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { |
5677 | PyObject *obj; | |
5678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5679 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5680 | Py_INCREF(obj); | |
5681 | return Py_BuildValue((char *)""); | |
5682 | } | |
5683 | static int _wrap_SplitterNameStr_set(PyObject *_val) { | |
5684 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5685 | return 1; | |
5686 | } | |
5687 | ||
5688 | ||
5689 | static PyObject *_wrap_SplitterNameStr_get() { | |
5690 | PyObject *pyobj; | |
5691 | ||
5692 | { | |
5693 | #if wxUSE_UNICODE | |
5694 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5695 | #else | |
5696 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5697 | #endif | |
5698 | } | |
5699 | return pyobj; | |
5700 | } | |
5701 | ||
5702 | ||
5703 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5704 | PyObject *resultobj; | |
5705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5706 | int arg2 = (int) -1 ; | |
5707 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5708 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5709 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5710 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5711 | long arg5 = (long) wxSP_3D ; | |
5712 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5713 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5714 | wxSplitterWindow *result; | |
5715 | wxPoint temp3 ; | |
5716 | wxSize temp4 ; | |
5717 | bool temp6 = False ; | |
5718 | PyObject * obj0 = 0 ; | |
5719 | PyObject * obj1 = 0 ; | |
5720 | PyObject * obj2 = 0 ; | |
5721 | PyObject * obj3 = 0 ; | |
5722 | PyObject * obj4 = 0 ; | |
5723 | PyObject * obj5 = 0 ; | |
5724 | char *kwnames[] = { | |
5725 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5726 | }; | |
5727 | ||
5728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
5729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5731 | if (obj1) { | |
5732 | arg2 = (int) SWIG_AsInt(obj1); | |
5733 | if (PyErr_Occurred()) SWIG_fail; | |
5734 | } | |
5735 | if (obj2) { | |
5736 | { | |
5737 | arg3 = &temp3; | |
5738 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5739 | } | |
5740 | } | |
5741 | if (obj3) { | |
5742 | { | |
5743 | arg4 = &temp4; | |
5744 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5745 | } | |
5746 | } | |
5747 | if (obj4) { | |
5748 | arg5 = (long) SWIG_AsLong(obj4); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
5750 | } | |
5751 | if (obj5) { | |
5752 | { | |
5753 | arg6 = wxString_in_helper(obj5); | |
5754 | if (arg6 == NULL) SWIG_fail; | |
5755 | temp6 = True; | |
5756 | } | |
5757 | } | |
5758 | { | |
0439c23b | 5759 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5761 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5762 | ||
5763 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5764 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5765 | } |
5766 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5767 | { | |
5768 | if (temp6) | |
5769 | delete arg6; | |
5770 | } | |
5771 | return resultobj; | |
5772 | fail: | |
5773 | { | |
5774 | if (temp6) | |
5775 | delete arg6; | |
5776 | } | |
5777 | return NULL; | |
5778 | } | |
5779 | ||
5780 | ||
5781 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5782 | PyObject *resultobj; | |
5783 | wxSplitterWindow *result; | |
5784 | char *kwnames[] = { | |
5785 | NULL | |
5786 | }; | |
5787 | ||
5788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5789 | { | |
0439c23b | 5790 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5792 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5793 | ||
5794 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5795 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5796 | } |
5797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterWindow, 1); | |
5798 | return resultobj; | |
5799 | fail: | |
5800 | return NULL; | |
5801 | } | |
5802 | ||
5803 | ||
5804 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5805 | PyObject *resultobj; | |
5806 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5807 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5808 | int arg3 = (int) -1 ; | |
5809 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5810 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5811 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5812 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5813 | long arg6 = (long) wxSP_3D ; | |
5814 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5815 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5816 | bool result; | |
5817 | wxPoint temp4 ; | |
5818 | wxSize temp5 ; | |
5819 | bool temp7 = False ; | |
5820 | PyObject * obj0 = 0 ; | |
5821 | PyObject * obj1 = 0 ; | |
5822 | PyObject * obj2 = 0 ; | |
5823 | PyObject * obj3 = 0 ; | |
5824 | PyObject * obj4 = 0 ; | |
5825 | PyObject * obj5 = 0 ; | |
5826 | PyObject * obj6 = 0 ; | |
5827 | char *kwnames[] = { | |
5828 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5829 | }; | |
5830 | ||
5831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
5832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5834 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5836 | if (obj2) { | |
5837 | arg3 = (int) SWIG_AsInt(obj2); | |
5838 | if (PyErr_Occurred()) SWIG_fail; | |
5839 | } | |
5840 | if (obj3) { | |
5841 | { | |
5842 | arg4 = &temp4; | |
5843 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5844 | } | |
5845 | } | |
5846 | if (obj4) { | |
5847 | { | |
5848 | arg5 = &temp5; | |
5849 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5850 | } | |
5851 | } | |
5852 | if (obj5) { | |
5853 | arg6 = (long) SWIG_AsLong(obj5); | |
5854 | if (PyErr_Occurred()) SWIG_fail; | |
5855 | } | |
5856 | if (obj6) { | |
5857 | { | |
5858 | arg7 = wxString_in_helper(obj6); | |
5859 | if (arg7 == NULL) SWIG_fail; | |
5860 | temp7 = True; | |
5861 | } | |
5862 | } | |
5863 | { | |
5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5865 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5866 | ||
5867 | wxPyEndAllowThreads(__tstate); | |
5868 | if (PyErr_Occurred()) SWIG_fail; | |
5869 | } | |
5870 | { | |
5871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5872 | } | |
5873 | { | |
5874 | if (temp7) | |
5875 | delete arg7; | |
5876 | } | |
5877 | return resultobj; | |
5878 | fail: | |
5879 | { | |
5880 | if (temp7) | |
5881 | delete arg7; | |
5882 | } | |
5883 | return NULL; | |
5884 | } | |
5885 | ||
5886 | ||
5887 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5888 | PyObject *resultobj; | |
5889 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5890 | wxWindow *result; | |
5891 | PyObject * obj0 = 0 ; | |
5892 | char *kwnames[] = { | |
5893 | (char *) "self", NULL | |
5894 | }; | |
5895 | ||
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5899 | { | |
5900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5901 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5902 | ||
5903 | wxPyEndAllowThreads(__tstate); | |
5904 | if (PyErr_Occurred()) SWIG_fail; | |
5905 | } | |
5906 | { | |
412d302d | 5907 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5908 | } |
5909 | return resultobj; | |
5910 | fail: | |
5911 | return NULL; | |
5912 | } | |
5913 | ||
5914 | ||
5915 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5916 | PyObject *resultobj; | |
5917 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5918 | wxWindow *result; | |
5919 | PyObject * obj0 = 0 ; | |
5920 | char *kwnames[] = { | |
5921 | (char *) "self", NULL | |
5922 | }; | |
5923 | ||
5924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5927 | { | |
5928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5929 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5930 | ||
5931 | wxPyEndAllowThreads(__tstate); | |
5932 | if (PyErr_Occurred()) SWIG_fail; | |
5933 | } | |
5934 | { | |
412d302d | 5935 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
5936 | } |
5937 | return resultobj; | |
5938 | fail: | |
5939 | return NULL; | |
5940 | } | |
5941 | ||
5942 | ||
5943 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5944 | PyObject *resultobj; | |
5945 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5946 | int arg2 ; | |
5947 | PyObject * obj0 = 0 ; | |
5948 | PyObject * obj1 = 0 ; | |
5949 | char *kwnames[] = { | |
5950 | (char *) "self",(char *) "mode", NULL | |
5951 | }; | |
5952 | ||
5953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; | |
5954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5956 | arg2 = (int) SWIG_AsInt(obj1); | |
5957 | if (PyErr_Occurred()) SWIG_fail; | |
5958 | { | |
5959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5960 | (arg1)->SetSplitMode(arg2); | |
5961 | ||
5962 | wxPyEndAllowThreads(__tstate); | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | } | |
5965 | Py_INCREF(Py_None); resultobj = Py_None; | |
5966 | return resultobj; | |
5967 | fail: | |
5968 | return NULL; | |
5969 | } | |
5970 | ||
5971 | ||
5972 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5973 | PyObject *resultobj; | |
5974 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5975 | int result; | |
5976 | PyObject * obj0 = 0 ; | |
5977 | char *kwnames[] = { | |
5978 | (char *) "self", NULL | |
5979 | }; | |
5980 | ||
5981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
5983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5984 | { | |
5985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5986 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5987 | ||
5988 | wxPyEndAllowThreads(__tstate); | |
5989 | if (PyErr_Occurred()) SWIG_fail; | |
5990 | } | |
5991 | resultobj = SWIG_FromInt((int)result); | |
5992 | return resultobj; | |
5993 | fail: | |
5994 | return NULL; | |
5995 | } | |
5996 | ||
5997 | ||
5998 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5999 | PyObject *resultobj; | |
6000 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6001 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6002 | PyObject * obj0 = 0 ; | |
6003 | PyObject * obj1 = 0 ; | |
6004 | char *kwnames[] = { | |
6005 | (char *) "self",(char *) "window", NULL | |
6006 | }; | |
6007 | ||
6008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) 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 | { | |
6014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6015 | (arg1)->Initialize(arg2); | |
6016 | ||
6017 | wxPyEndAllowThreads(__tstate); | |
6018 | if (PyErr_Occurred()) SWIG_fail; | |
6019 | } | |
6020 | Py_INCREF(Py_None); resultobj = Py_None; | |
6021 | return resultobj; | |
6022 | fail: | |
6023 | return NULL; | |
6024 | } | |
6025 | ||
6026 | ||
6027 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6028 | PyObject *resultobj; | |
6029 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6030 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6031 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6032 | int arg4 = (int) 0 ; | |
6033 | bool result; | |
6034 | PyObject * obj0 = 0 ; | |
6035 | PyObject * obj1 = 0 ; | |
6036 | PyObject * obj2 = 0 ; | |
6037 | PyObject * obj3 = 0 ; | |
6038 | char *kwnames[] = { | |
6039 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6040 | }; | |
6041 | ||
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6045 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6047 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6049 | if (obj3) { | |
6050 | arg4 = (int) SWIG_AsInt(obj3); | |
6051 | if (PyErr_Occurred()) SWIG_fail; | |
6052 | } | |
6053 | { | |
6054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6055 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
6056 | ||
6057 | wxPyEndAllowThreads(__tstate); | |
6058 | if (PyErr_Occurred()) SWIG_fail; | |
6059 | } | |
6060 | { | |
6061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6062 | } | |
6063 | return resultobj; | |
6064 | fail: | |
6065 | return NULL; | |
6066 | } | |
6067 | ||
6068 | ||
6069 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6070 | PyObject *resultobj; | |
6071 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6072 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6073 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6074 | int arg4 = (int) 0 ; | |
6075 | bool result; | |
6076 | PyObject * obj0 = 0 ; | |
6077 | PyObject * obj1 = 0 ; | |
6078 | PyObject * obj2 = 0 ; | |
6079 | PyObject * obj3 = 0 ; | |
6080 | char *kwnames[] = { | |
6081 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
6082 | }; | |
6083 | ||
6084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6087 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6089 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6091 | if (obj3) { | |
6092 | arg4 = (int) SWIG_AsInt(obj3); | |
6093 | if (PyErr_Occurred()) SWIG_fail; | |
6094 | } | |
6095 | { | |
6096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6097 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
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_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6112 | PyObject *resultobj; | |
6113 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6114 | wxWindow *arg2 = (wxWindow *) NULL ; | |
6115 | bool result; | |
6116 | PyObject * obj0 = 0 ; | |
6117 | PyObject * obj1 = 0 ; | |
6118 | char *kwnames[] = { | |
6119 | (char *) "self",(char *) "toRemove", NULL | |
6120 | }; | |
6121 | ||
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
6123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6125 | if (obj1) { | |
6126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6128 | } | |
6129 | { | |
6130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6131 | result = (bool)(arg1)->Unsplit(arg2); | |
6132 | ||
6133 | wxPyEndAllowThreads(__tstate); | |
6134 | if (PyErr_Occurred()) SWIG_fail; | |
6135 | } | |
6136 | { | |
6137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6138 | } | |
6139 | return resultobj; | |
6140 | fail: | |
6141 | return NULL; | |
6142 | } | |
6143 | ||
6144 | ||
6145 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6146 | PyObject *resultobj; | |
6147 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6148 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6149 | wxWindow *arg3 = (wxWindow *) 0 ; | |
6150 | bool result; | |
6151 | PyObject * obj0 = 0 ; | |
6152 | PyObject * obj1 = 0 ; | |
6153 | PyObject * obj2 = 0 ; | |
6154 | char *kwnames[] = { | |
6155 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
6156 | }; | |
6157 | ||
6158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6163 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
6164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6165 | { | |
6166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6167 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
6168 | ||
6169 | wxPyEndAllowThreads(__tstate); | |
6170 | if (PyErr_Occurred()) SWIG_fail; | |
6171 | } | |
6172 | { | |
6173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6174 | } | |
6175 | return resultobj; | |
6176 | fail: | |
6177 | return NULL; | |
6178 | } | |
6179 | ||
6180 | ||
6181 | static PyObject *_wrap_SplitterWindow_UpdateSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6182 | PyObject *resultobj; | |
6183 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6184 | PyObject * obj0 = 0 ; | |
6185 | char *kwnames[] = { | |
6186 | (char *) "self", NULL | |
6187 | }; | |
6188 | ||
6189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_UpdateSize",kwnames,&obj0)) goto fail; | |
6190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6192 | { | |
6193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6194 | (arg1)->UpdateSize(); | |
6195 | ||
6196 | wxPyEndAllowThreads(__tstate); | |
6197 | if (PyErr_Occurred()) SWIG_fail; | |
6198 | } | |
6199 | Py_INCREF(Py_None); resultobj = Py_None; | |
6200 | return resultobj; | |
6201 | fail: | |
6202 | return NULL; | |
6203 | } | |
6204 | ||
6205 | ||
6206 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6207 | PyObject *resultobj; | |
6208 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6209 | bool result; | |
6210 | PyObject * obj0 = 0 ; | |
6211 | char *kwnames[] = { | |
6212 | (char *) "self", NULL | |
6213 | }; | |
6214 | ||
6215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
6216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6218 | { | |
6219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6220 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
6221 | ||
6222 | wxPyEndAllowThreads(__tstate); | |
6223 | if (PyErr_Occurred()) SWIG_fail; | |
6224 | } | |
6225 | { | |
6226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6227 | } | |
6228 | return resultobj; | |
6229 | fail: | |
6230 | return NULL; | |
6231 | } | |
6232 | ||
6233 | ||
6234 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6235 | PyObject *resultobj; | |
6236 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6237 | int arg2 ; | |
6238 | PyObject * obj0 = 0 ; | |
6239 | PyObject * obj1 = 0 ; | |
6240 | char *kwnames[] = { | |
6241 | (char *) "self",(char *) "width", NULL | |
6242 | }; | |
6243 | ||
6244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; | |
6245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6247 | arg2 = (int) SWIG_AsInt(obj1); | |
6248 | if (PyErr_Occurred()) SWIG_fail; | |
6249 | { | |
6250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6251 | (arg1)->SetSashSize(arg2); | |
6252 | ||
6253 | wxPyEndAllowThreads(__tstate); | |
6254 | if (PyErr_Occurred()) SWIG_fail; | |
6255 | } | |
6256 | Py_INCREF(Py_None); resultobj = Py_None; | |
6257 | return resultobj; | |
6258 | fail: | |
6259 | return NULL; | |
6260 | } | |
6261 | ||
6262 | ||
6263 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6264 | PyObject *resultobj; | |
6265 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6266 | int arg2 ; | |
6267 | PyObject * obj0 = 0 ; | |
6268 | PyObject * obj1 = 0 ; | |
6269 | char *kwnames[] = { | |
6270 | (char *) "self",(char *) "width", NULL | |
6271 | }; | |
6272 | ||
6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
6274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6276 | arg2 = (int) SWIG_AsInt(obj1); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | { | |
6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6280 | (arg1)->SetBorderSize(arg2); | |
6281 | ||
6282 | wxPyEndAllowThreads(__tstate); | |
6283 | if (PyErr_Occurred()) SWIG_fail; | |
6284 | } | |
6285 | Py_INCREF(Py_None); resultobj = Py_None; | |
6286 | return resultobj; | |
6287 | fail: | |
6288 | return NULL; | |
6289 | } | |
6290 | ||
6291 | ||
6292 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6293 | PyObject *resultobj; | |
6294 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6295 | int result; | |
6296 | PyObject * obj0 = 0 ; | |
6297 | char *kwnames[] = { | |
6298 | (char *) "self", NULL | |
6299 | }; | |
6300 | ||
6301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
6302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6304 | { | |
6305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6306 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
6307 | ||
6308 | wxPyEndAllowThreads(__tstate); | |
6309 | if (PyErr_Occurred()) SWIG_fail; | |
6310 | } | |
6311 | resultobj = SWIG_FromInt((int)result); | |
6312 | return resultobj; | |
6313 | fail: | |
6314 | return NULL; | |
6315 | } | |
6316 | ||
6317 | ||
6318 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6319 | PyObject *resultobj; | |
6320 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6321 | int result; | |
6322 | PyObject * obj0 = 0 ; | |
6323 | char *kwnames[] = { | |
6324 | (char *) "self", NULL | |
6325 | }; | |
6326 | ||
6327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
6328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6330 | { | |
6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6332 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
6333 | ||
6334 | wxPyEndAllowThreads(__tstate); | |
6335 | if (PyErr_Occurred()) SWIG_fail; | |
6336 | } | |
6337 | resultobj = SWIG_FromInt((int)result); | |
6338 | return resultobj; | |
6339 | fail: | |
6340 | return NULL; | |
6341 | } | |
6342 | ||
6343 | ||
6344 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6345 | PyObject *resultobj; | |
6346 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6347 | int arg2 ; | |
6348 | bool arg3 = (bool) True ; | |
6349 | PyObject * obj0 = 0 ; | |
6350 | PyObject * obj1 = 0 ; | |
6351 | PyObject * obj2 = 0 ; | |
6352 | char *kwnames[] = { | |
6353 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
6354 | }; | |
6355 | ||
6356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6359 | arg2 = (int) SWIG_AsInt(obj1); | |
6360 | if (PyErr_Occurred()) SWIG_fail; | |
6361 | if (obj2) { | |
6362 | arg3 = (bool) SWIG_AsBool(obj2); | |
6363 | if (PyErr_Occurred()) SWIG_fail; | |
6364 | } | |
6365 | { | |
6366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6367 | (arg1)->SetSashPosition(arg2,arg3); | |
6368 | ||
6369 | wxPyEndAllowThreads(__tstate); | |
6370 | if (PyErr_Occurred()) SWIG_fail; | |
6371 | } | |
6372 | Py_INCREF(Py_None); resultobj = Py_None; | |
6373 | return resultobj; | |
6374 | fail: | |
6375 | return NULL; | |
6376 | } | |
6377 | ||
6378 | ||
6379 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6380 | PyObject *resultobj; | |
6381 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6382 | int result; | |
6383 | PyObject * obj0 = 0 ; | |
6384 | char *kwnames[] = { | |
6385 | (char *) "self", NULL | |
6386 | }; | |
6387 | ||
6388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
6389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6391 | { | |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
6394 | ||
6395 | wxPyEndAllowThreads(__tstate); | |
6396 | if (PyErr_Occurred()) SWIG_fail; | |
6397 | } | |
6398 | resultobj = SWIG_FromInt((int)result); | |
6399 | return resultobj; | |
6400 | fail: | |
6401 | return NULL; | |
6402 | } | |
6403 | ||
6404 | ||
6405 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6406 | PyObject *resultobj; | |
6407 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6408 | int arg2 ; | |
6409 | PyObject * obj0 = 0 ; | |
6410 | PyObject * obj1 = 0 ; | |
6411 | char *kwnames[] = { | |
6412 | (char *) "self",(char *) "min", NULL | |
6413 | }; | |
6414 | ||
6415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; | |
6416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6418 | arg2 = (int) SWIG_AsInt(obj1); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | { | |
6421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6422 | (arg1)->SetMinimumPaneSize(arg2); | |
6423 | ||
6424 | wxPyEndAllowThreads(__tstate); | |
6425 | if (PyErr_Occurred()) SWIG_fail; | |
6426 | } | |
6427 | Py_INCREF(Py_None); resultobj = Py_None; | |
6428 | return resultobj; | |
6429 | fail: | |
6430 | return NULL; | |
6431 | } | |
6432 | ||
6433 | ||
6434 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6435 | PyObject *resultobj; | |
6436 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6437 | int result; | |
6438 | PyObject * obj0 = 0 ; | |
6439 | char *kwnames[] = { | |
6440 | (char *) "self", NULL | |
6441 | }; | |
6442 | ||
6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
6444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6446 | { | |
6447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6448 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
6449 | ||
6450 | wxPyEndAllowThreads(__tstate); | |
6451 | if (PyErr_Occurred()) SWIG_fail; | |
6452 | } | |
6453 | resultobj = SWIG_FromInt((int)result); | |
6454 | return resultobj; | |
6455 | fail: | |
6456 | return NULL; | |
6457 | } | |
6458 | ||
6459 | ||
6460 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6461 | PyObject *resultobj; | |
6462 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6463 | int arg2 ; | |
6464 | int arg3 ; | |
6465 | int arg4 = (int) 5 ; | |
6466 | bool result; | |
6467 | PyObject * obj0 = 0 ; | |
6468 | PyObject * obj1 = 0 ; | |
6469 | PyObject * obj2 = 0 ; | |
6470 | PyObject * obj3 = 0 ; | |
6471 | char *kwnames[] = { | |
6472 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6473 | }; | |
6474 | ||
6475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6478 | arg2 = (int) SWIG_AsInt(obj1); | |
6479 | if (PyErr_Occurred()) SWIG_fail; | |
6480 | arg3 = (int) SWIG_AsInt(obj2); | |
6481 | if (PyErr_Occurred()) SWIG_fail; | |
6482 | if (obj3) { | |
6483 | arg4 = (int) SWIG_AsInt(obj3); | |
6484 | if (PyErr_Occurred()) SWIG_fail; | |
6485 | } | |
6486 | { | |
6487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6488 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6489 | ||
6490 | wxPyEndAllowThreads(__tstate); | |
6491 | if (PyErr_Occurred()) SWIG_fail; | |
6492 | } | |
6493 | { | |
6494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6495 | } | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
6502 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject *resultobj; | |
6504 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6505 | PyObject * obj0 = 0 ; | |
6506 | char *kwnames[] = { | |
6507 | (char *) "self", NULL | |
6508 | }; | |
6509 | ||
6510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | (arg1)->SizeWindows(); | |
6516 | ||
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
6520 | Py_INCREF(Py_None); resultobj = Py_None; | |
6521 | return resultobj; | |
6522 | fail: | |
6523 | return NULL; | |
6524 | } | |
6525 | ||
6526 | ||
6527 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6528 | PyObject *resultobj; | |
6529 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6530 | bool arg2 ; | |
6531 | PyObject * obj0 = 0 ; | |
6532 | PyObject * obj1 = 0 ; | |
6533 | char *kwnames[] = { | |
6534 | (char *) "self",(char *) "needUpdating", NULL | |
6535 | }; | |
6536 | ||
6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6540 | arg2 = (bool) SWIG_AsBool(obj1); | |
6541 | if (PyErr_Occurred()) SWIG_fail; | |
6542 | { | |
6543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6544 | (arg1)->SetNeedUpdating(arg2); | |
6545 | ||
6546 | wxPyEndAllowThreads(__tstate); | |
6547 | if (PyErr_Occurred()) SWIG_fail; | |
6548 | } | |
6549 | Py_INCREF(Py_None); resultobj = Py_None; | |
6550 | return resultobj; | |
6551 | fail: | |
6552 | return NULL; | |
6553 | } | |
6554 | ||
6555 | ||
6556 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6557 | PyObject *resultobj; | |
6558 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6559 | bool result; | |
6560 | PyObject * obj0 = 0 ; | |
6561 | char *kwnames[] = { | |
6562 | (char *) "self", NULL | |
6563 | }; | |
6564 | ||
6565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterWindow, | |
6567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6568 | { | |
6569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6570 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6571 | ||
6572 | wxPyEndAllowThreads(__tstate); | |
6573 | if (PyErr_Occurred()) SWIG_fail; | |
6574 | } | |
6575 | { | |
6576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6577 | } | |
6578 | return resultobj; | |
6579 | fail: | |
6580 | return NULL; | |
6581 | } | |
6582 | ||
6583 | ||
f20a2e1f RD |
6584 | static PyObject *_wrap_SplitterWindow_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6585 | PyObject *resultobj; | |
6586 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6587 | wxVisualAttributes result; | |
6588 | PyObject * obj0 = 0 ; | |
6589 | char *kwnames[] = { | |
6590 | (char *) "variant", NULL | |
6591 | }; | |
6592 | ||
6593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SplitterWindow_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6594 | if (obj0) { | |
6595 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6596 | if (PyErr_Occurred()) SWIG_fail; | |
6597 | } | |
6598 | { | |
0439c23b | 6599 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
6600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6601 | result = wxSplitterWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6602 | ||
6603 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6604 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
6605 | } |
6606 | { | |
6607 | wxVisualAttributes * resultptr; | |
6608 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6609 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6610 | } | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
d55e5bfc RD |
6617 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { |
6618 | PyObject *obj; | |
6619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6620 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6621 | Py_INCREF(obj); | |
6622 | return Py_BuildValue((char *)""); | |
6623 | } | |
6624 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6625 | PyObject *resultobj; | |
6626 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6627 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6628 | wxSplitterEvent *result; | |
6629 | PyObject * obj0 = 0 ; | |
6630 | PyObject * obj1 = 0 ; | |
6631 | char *kwnames[] = { | |
6632 | (char *) "type",(char *) "splitter", NULL | |
6633 | }; | |
6634 | ||
6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; | |
6636 | if (obj0) { | |
6637 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
6638 | if (PyErr_Occurred()) SWIG_fail; | |
6639 | } | |
6640 | if (obj1) { | |
6641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSplitterWindow, | |
6642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6643 | } | |
6644 | { | |
6645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6646 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6647 | ||
6648 | wxPyEndAllowThreads(__tstate); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
6651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSplitterEvent, 1); | |
6652 | return resultobj; | |
6653 | fail: | |
6654 | return NULL; | |
6655 | } | |
6656 | ||
6657 | ||
6658 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6659 | PyObject *resultobj; | |
6660 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6661 | int arg2 ; | |
6662 | PyObject * obj0 = 0 ; | |
6663 | PyObject * obj1 = 0 ; | |
6664 | char *kwnames[] = { | |
6665 | (char *) "self",(char *) "pos", NULL | |
6666 | }; | |
6667 | ||
6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; | |
6669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6671 | arg2 = (int) SWIG_AsInt(obj1); | |
6672 | if (PyErr_Occurred()) SWIG_fail; | |
6673 | { | |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6675 | (arg1)->SetSashPosition(arg2); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
6678 | if (PyErr_Occurred()) SWIG_fail; | |
6679 | } | |
6680 | Py_INCREF(Py_None); resultobj = Py_None; | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6690 | int result; | |
6691 | PyObject * obj0 = 0 ; | |
6692 | char *kwnames[] = { | |
6693 | (char *) "self", NULL | |
6694 | }; | |
6695 | ||
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
6706 | resultobj = SWIG_FromInt((int)result); | |
6707 | return resultobj; | |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
6713 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject *resultobj; | |
6715 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6716 | wxWindow *result; | |
6717 | PyObject * obj0 = 0 ; | |
6718 | char *kwnames[] = { | |
6719 | (char *) "self", NULL | |
6720 | }; | |
6721 | ||
6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6725 | { | |
6726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6727 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6728 | ||
6729 | wxPyEndAllowThreads(__tstate); | |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
6731 | } | |
6732 | { | |
412d302d | 6733 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
6734 | } |
6735 | return resultobj; | |
6736 | fail: | |
6737 | return NULL; | |
6738 | } | |
6739 | ||
6740 | ||
6741 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6742 | PyObject *resultobj; | |
6743 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6744 | int result; | |
6745 | PyObject * obj0 = 0 ; | |
6746 | char *kwnames[] = { | |
6747 | (char *) "self", NULL | |
6748 | }; | |
6749 | ||
6750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6753 | { | |
6754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6755 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6756 | ||
6757 | wxPyEndAllowThreads(__tstate); | |
6758 | if (PyErr_Occurred()) SWIG_fail; | |
6759 | } | |
6760 | resultobj = SWIG_FromInt((int)result); | |
6761 | return resultobj; | |
6762 | fail: | |
6763 | return NULL; | |
6764 | } | |
6765 | ||
6766 | ||
6767 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6768 | PyObject *resultobj; | |
6769 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6770 | int result; | |
6771 | PyObject * obj0 = 0 ; | |
6772 | char *kwnames[] = { | |
6773 | (char *) "self", NULL | |
6774 | }; | |
6775 | ||
6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSplitterEvent, | |
6778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6779 | { | |
6780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6781 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6782 | ||
6783 | wxPyEndAllowThreads(__tstate); | |
6784 | if (PyErr_Occurred()) SWIG_fail; | |
6785 | } | |
6786 | resultobj = SWIG_FromInt((int)result); | |
6787 | return resultobj; | |
6788 | fail: | |
6789 | return NULL; | |
6790 | } | |
6791 | ||
6792 | ||
6793 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6794 | PyObject *obj; | |
6795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6796 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6797 | Py_INCREF(obj); | |
6798 | return Py_BuildValue((char *)""); | |
6799 | } | |
6800 | static int _wrap_SashNameStr_set(PyObject *_val) { | |
6801 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6802 | return 1; | |
6803 | } | |
6804 | ||
6805 | ||
6806 | static PyObject *_wrap_SashNameStr_get() { | |
6807 | PyObject *pyobj; | |
6808 | ||
6809 | { | |
6810 | #if wxUSE_UNICODE | |
6811 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6812 | #else | |
6813 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6814 | #endif | |
6815 | } | |
6816 | return pyobj; | |
6817 | } | |
6818 | ||
6819 | ||
6820 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6821 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6822 | return 1; | |
6823 | } | |
6824 | ||
6825 | ||
6826 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6827 | PyObject *pyobj; | |
6828 | ||
6829 | { | |
6830 | #if wxUSE_UNICODE | |
6831 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6832 | #else | |
6833 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6834 | #endif | |
6835 | } | |
6836 | return pyobj; | |
6837 | } | |
6838 | ||
6839 | ||
6840 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject *resultobj; | |
6842 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6843 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6844 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6845 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6846 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6847 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6848 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6849 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6850 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6851 | wxSashWindow *result; | |
6852 | wxPoint temp3 ; | |
6853 | wxSize temp4 ; | |
6854 | bool temp6 = False ; | |
6855 | PyObject * obj0 = 0 ; | |
6856 | PyObject * obj1 = 0 ; | |
6857 | PyObject * obj2 = 0 ; | |
6858 | PyObject * obj3 = 0 ; | |
6859 | PyObject * obj4 = 0 ; | |
6860 | PyObject * obj5 = 0 ; | |
6861 | char *kwnames[] = { | |
6862 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6863 | }; | |
6864 | ||
248ed943 | 6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
6866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6868 | if (obj1) { |
6869 | arg2 = (int) SWIG_AsInt(obj1); | |
6870 | if (PyErr_Occurred()) SWIG_fail; | |
6871 | } | |
d55e5bfc RD |
6872 | if (obj2) { |
6873 | { | |
6874 | arg3 = &temp3; | |
6875 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6876 | } | |
6877 | } | |
6878 | if (obj3) { | |
6879 | { | |
6880 | arg4 = &temp4; | |
6881 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6882 | } | |
6883 | } | |
6884 | if (obj4) { | |
6885 | arg5 = (long) SWIG_AsLong(obj4); | |
6886 | if (PyErr_Occurred()) SWIG_fail; | |
6887 | } | |
6888 | if (obj5) { | |
6889 | { | |
6890 | arg6 = wxString_in_helper(obj5); | |
6891 | if (arg6 == NULL) SWIG_fail; | |
6892 | temp6 = True; | |
6893 | } | |
6894 | } | |
6895 | { | |
0439c23b | 6896 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6898 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6899 | ||
6900 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6901 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6902 | } |
6903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6904 | { | |
6905 | if (temp6) | |
6906 | delete arg6; | |
6907 | } | |
6908 | return resultobj; | |
6909 | fail: | |
6910 | { | |
6911 | if (temp6) | |
6912 | delete arg6; | |
6913 | } | |
6914 | return NULL; | |
6915 | } | |
6916 | ||
6917 | ||
6918 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6919 | PyObject *resultobj; | |
6920 | wxSashWindow *result; | |
6921 | char *kwnames[] = { | |
6922 | NULL | |
6923 | }; | |
6924 | ||
6925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6926 | { | |
0439c23b | 6927 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6929 | result = (wxSashWindow *)new wxSashWindow(); | |
6930 | ||
6931 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6932 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6933 | } |
6934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashWindow, 1); | |
6935 | return resultobj; | |
6936 | fail: | |
6937 | return NULL; | |
6938 | } | |
6939 | ||
6940 | ||
6941 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6942 | PyObject *resultobj; | |
6943 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6944 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6945 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6946 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6947 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6948 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6949 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6950 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6951 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6952 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6953 | bool result; | |
6954 | wxPoint temp4 ; | |
6955 | wxSize temp5 ; | |
6956 | bool temp7 = False ; | |
6957 | PyObject * obj0 = 0 ; | |
6958 | PyObject * obj1 = 0 ; | |
6959 | PyObject * obj2 = 0 ; | |
6960 | PyObject * obj3 = 0 ; | |
6961 | PyObject * obj4 = 0 ; | |
6962 | PyObject * obj5 = 0 ; | |
6963 | PyObject * obj6 = 0 ; | |
6964 | char *kwnames[] = { | |
6965 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6966 | }; | |
6967 | ||
248ed943 | 6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
6969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, |
6970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6971 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6973 | if (obj2) { |
6974 | arg3 = (int) SWIG_AsInt(obj2); | |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
6976 | } | |
d55e5bfc RD |
6977 | if (obj3) { |
6978 | { | |
6979 | arg4 = &temp4; | |
6980 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6981 | } | |
6982 | } | |
6983 | if (obj4) { | |
6984 | { | |
6985 | arg5 = &temp5; | |
6986 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6987 | } | |
6988 | } | |
6989 | if (obj5) { | |
6990 | arg6 = (long) SWIG_AsLong(obj5); | |
6991 | if (PyErr_Occurred()) SWIG_fail; | |
6992 | } | |
6993 | if (obj6) { | |
6994 | { | |
6995 | arg7 = wxString_in_helper(obj6); | |
6996 | if (arg7 == NULL) SWIG_fail; | |
6997 | temp7 = True; | |
6998 | } | |
6999 | } | |
7000 | { | |
7001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7002 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7003 | ||
7004 | wxPyEndAllowThreads(__tstate); | |
7005 | if (PyErr_Occurred()) SWIG_fail; | |
7006 | } | |
7007 | { | |
7008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7009 | } | |
7010 | { | |
7011 | if (temp7) | |
7012 | delete arg7; | |
7013 | } | |
7014 | return resultobj; | |
7015 | fail: | |
7016 | { | |
7017 | if (temp7) | |
7018 | delete arg7; | |
7019 | } | |
7020 | return NULL; | |
7021 | } | |
7022 | ||
7023 | ||
7024 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7025 | PyObject *resultobj; | |
7026 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7027 | int arg2 ; | |
7028 | bool arg3 ; | |
7029 | PyObject * obj0 = 0 ; | |
7030 | PyObject * obj1 = 0 ; | |
7031 | PyObject * obj2 = 0 ; | |
7032 | char *kwnames[] = { | |
7033 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
7034 | }; | |
7035 | ||
7036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7039 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7040 | if (PyErr_Occurred()) SWIG_fail; | |
7041 | arg3 = (bool) SWIG_AsBool(obj2); | |
7042 | if (PyErr_Occurred()) SWIG_fail; | |
7043 | { | |
7044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7045 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
7046 | ||
7047 | wxPyEndAllowThreads(__tstate); | |
7048 | if (PyErr_Occurred()) SWIG_fail; | |
7049 | } | |
7050 | Py_INCREF(Py_None); resultobj = Py_None; | |
7051 | return resultobj; | |
7052 | fail: | |
7053 | return NULL; | |
7054 | } | |
7055 | ||
7056 | ||
7057 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7058 | PyObject *resultobj; | |
7059 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7060 | int arg2 ; | |
7061 | bool result; | |
7062 | PyObject * obj0 = 0 ; | |
7063 | PyObject * obj1 = 0 ; | |
7064 | char *kwnames[] = { | |
7065 | (char *) "self",(char *) "edge", NULL | |
7066 | }; | |
7067 | ||
7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; | |
7069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7071 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | { | |
7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7075 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
7076 | ||
7077 | wxPyEndAllowThreads(__tstate); | |
7078 | if (PyErr_Occurred()) SWIG_fail; | |
7079 | } | |
7080 | { | |
7081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7082 | } | |
7083 | return resultobj; | |
7084 | fail: | |
7085 | return NULL; | |
7086 | } | |
7087 | ||
7088 | ||
7089 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject *resultobj; | |
7091 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7092 | int arg2 ; | |
7093 | bool arg3 ; | |
7094 | PyObject * obj0 = 0 ; | |
7095 | PyObject * obj1 = 0 ; | |
7096 | PyObject * obj2 = 0 ; | |
7097 | char *kwnames[] = { | |
7098 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
7099 | }; | |
7100 | ||
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7104 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7105 | if (PyErr_Occurred()) SWIG_fail; | |
7106 | arg3 = (bool) SWIG_AsBool(obj2); | |
7107 | if (PyErr_Occurred()) SWIG_fail; | |
7108 | { | |
7109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7110 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
7111 | ||
7112 | wxPyEndAllowThreads(__tstate); | |
7113 | if (PyErr_Occurred()) SWIG_fail; | |
7114 | } | |
7115 | Py_INCREF(Py_None); resultobj = Py_None; | |
7116 | return resultobj; | |
7117 | fail: | |
7118 | return NULL; | |
7119 | } | |
7120 | ||
7121 | ||
7122 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7123 | PyObject *resultobj; | |
7124 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7125 | int arg2 ; | |
7126 | bool result; | |
7127 | PyObject * obj0 = 0 ; | |
7128 | PyObject * obj1 = 0 ; | |
7129 | char *kwnames[] = { | |
7130 | (char *) "self",(char *) "edge", NULL | |
7131 | }; | |
7132 | ||
7133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; | |
7134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7136 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7137 | if (PyErr_Occurred()) SWIG_fail; | |
7138 | { | |
7139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7140 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
7141 | ||
7142 | wxPyEndAllowThreads(__tstate); | |
7143 | if (PyErr_Occurred()) SWIG_fail; | |
7144 | } | |
7145 | { | |
7146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7147 | } | |
7148 | return resultobj; | |
7149 | fail: | |
7150 | return NULL; | |
7151 | } | |
7152 | ||
7153 | ||
7154 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7155 | PyObject *resultobj; | |
7156 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7157 | int arg2 ; | |
7158 | int result; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | PyObject * obj1 = 0 ; | |
7161 | char *kwnames[] = { | |
7162 | (char *) "self",(char *) "edge", NULL | |
7163 | }; | |
7164 | ||
7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; | |
7166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7168 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7169 | if (PyErr_Occurred()) SWIG_fail; | |
7170 | { | |
7171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7172 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
7173 | ||
7174 | wxPyEndAllowThreads(__tstate); | |
7175 | if (PyErr_Occurred()) SWIG_fail; | |
7176 | } | |
7177 | resultobj = SWIG_FromInt((int)result); | |
7178 | return resultobj; | |
7179 | fail: | |
7180 | return NULL; | |
7181 | } | |
7182 | ||
7183 | ||
7184 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7185 | PyObject *resultobj; | |
7186 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7187 | int arg2 ; | |
7188 | PyObject * obj0 = 0 ; | |
7189 | PyObject * obj1 = 0 ; | |
7190 | char *kwnames[] = { | |
7191 | (char *) "self",(char *) "width", NULL | |
7192 | }; | |
7193 | ||
7194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7197 | arg2 = (int) SWIG_AsInt(obj1); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
7199 | { | |
7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7201 | (arg1)->SetDefaultBorderSize(arg2); | |
7202 | ||
7203 | wxPyEndAllowThreads(__tstate); | |
7204 | if (PyErr_Occurred()) SWIG_fail; | |
7205 | } | |
7206 | Py_INCREF(Py_None); resultobj = Py_None; | |
7207 | return resultobj; | |
7208 | fail: | |
7209 | return NULL; | |
7210 | } | |
7211 | ||
7212 | ||
7213 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7214 | PyObject *resultobj; | |
7215 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7216 | int result; | |
7217 | PyObject * obj0 = 0 ; | |
7218 | char *kwnames[] = { | |
7219 | (char *) "self", NULL | |
7220 | }; | |
7221 | ||
7222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
7223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7225 | { | |
7226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7227 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
7228 | ||
7229 | wxPyEndAllowThreads(__tstate); | |
7230 | if (PyErr_Occurred()) SWIG_fail; | |
7231 | } | |
7232 | resultobj = SWIG_FromInt((int)result); | |
7233 | return resultobj; | |
7234 | fail: | |
7235 | return NULL; | |
7236 | } | |
7237 | ||
7238 | ||
7239 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7240 | PyObject *resultobj; | |
7241 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7242 | int arg2 ; | |
7243 | PyObject * obj0 = 0 ; | |
7244 | PyObject * obj1 = 0 ; | |
7245 | char *kwnames[] = { | |
7246 | (char *) "self",(char *) "width", NULL | |
7247 | }; | |
7248 | ||
7249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; | |
7250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7252 | arg2 = (int) SWIG_AsInt(obj1); | |
7253 | if (PyErr_Occurred()) SWIG_fail; | |
7254 | { | |
7255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7256 | (arg1)->SetExtraBorderSize(arg2); | |
7257 | ||
7258 | wxPyEndAllowThreads(__tstate); | |
7259 | if (PyErr_Occurred()) SWIG_fail; | |
7260 | } | |
7261 | Py_INCREF(Py_None); resultobj = Py_None; | |
7262 | return resultobj; | |
7263 | fail: | |
7264 | return NULL; | |
7265 | } | |
7266 | ||
7267 | ||
7268 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7269 | PyObject *resultobj; | |
7270 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7271 | int result; | |
7272 | PyObject * obj0 = 0 ; | |
7273 | char *kwnames[] = { | |
7274 | (char *) "self", NULL | |
7275 | }; | |
7276 | ||
7277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
7278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | resultobj = SWIG_FromInt((int)result); | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
7294 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject *resultobj; | |
7296 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7297 | int arg2 ; | |
7298 | PyObject * obj0 = 0 ; | |
7299 | PyObject * obj1 = 0 ; | |
7300 | char *kwnames[] = { | |
7301 | (char *) "self",(char *) "min", NULL | |
7302 | }; | |
7303 | ||
7304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7307 | arg2 = (int) SWIG_AsInt(obj1); | |
7308 | if (PyErr_Occurred()) SWIG_fail; | |
7309 | { | |
7310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7311 | (arg1)->SetMinimumSizeX(arg2); | |
7312 | ||
7313 | wxPyEndAllowThreads(__tstate); | |
7314 | if (PyErr_Occurred()) SWIG_fail; | |
7315 | } | |
7316 | Py_INCREF(Py_None); resultobj = Py_None; | |
7317 | return resultobj; | |
7318 | fail: | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
7323 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject *resultobj; | |
7325 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7326 | int arg2 ; | |
7327 | PyObject * obj0 = 0 ; | |
7328 | PyObject * obj1 = 0 ; | |
7329 | char *kwnames[] = { | |
7330 | (char *) "self",(char *) "min", NULL | |
7331 | }; | |
7332 | ||
7333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7336 | arg2 = (int) SWIG_AsInt(obj1); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | { | |
7339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7340 | (arg1)->SetMinimumSizeY(arg2); | |
7341 | ||
7342 | wxPyEndAllowThreads(__tstate); | |
7343 | if (PyErr_Occurred()) SWIG_fail; | |
7344 | } | |
7345 | Py_INCREF(Py_None); resultobj = Py_None; | |
7346 | return resultobj; | |
7347 | fail: | |
7348 | return NULL; | |
7349 | } | |
7350 | ||
7351 | ||
7352 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7353 | PyObject *resultobj; | |
7354 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7355 | int result; | |
7356 | PyObject * obj0 = 0 ; | |
7357 | char *kwnames[] = { | |
7358 | (char *) "self", NULL | |
7359 | }; | |
7360 | ||
7361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
7362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
7371 | resultobj = SWIG_FromInt((int)result); | |
7372 | return resultobj; | |
7373 | fail: | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7379 | PyObject *resultobj; | |
7380 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7381 | int result; | |
7382 | PyObject * obj0 = 0 ; | |
7383 | char *kwnames[] = { | |
7384 | (char *) "self", NULL | |
7385 | }; | |
7386 | ||
7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
7388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
7397 | resultobj = SWIG_FromInt((int)result); | |
7398 | return resultobj; | |
7399 | fail: | |
7400 | return NULL; | |
7401 | } | |
7402 | ||
7403 | ||
7404 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject *resultobj; | |
7406 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7407 | int arg2 ; | |
7408 | PyObject * obj0 = 0 ; | |
7409 | PyObject * obj1 = 0 ; | |
7410 | char *kwnames[] = { | |
7411 | (char *) "self",(char *) "max", NULL | |
7412 | }; | |
7413 | ||
7414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; | |
7415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7417 | arg2 = (int) SWIG_AsInt(obj1); | |
7418 | if (PyErr_Occurred()) SWIG_fail; | |
7419 | { | |
7420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7421 | (arg1)->SetMaximumSizeX(arg2); | |
7422 | ||
7423 | wxPyEndAllowThreads(__tstate); | |
7424 | if (PyErr_Occurred()) SWIG_fail; | |
7425 | } | |
7426 | Py_INCREF(Py_None); resultobj = Py_None; | |
7427 | return resultobj; | |
7428 | fail: | |
7429 | return NULL; | |
7430 | } | |
7431 | ||
7432 | ||
7433 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7434 | PyObject *resultobj; | |
7435 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7436 | int arg2 ; | |
7437 | PyObject * obj0 = 0 ; | |
7438 | PyObject * obj1 = 0 ; | |
7439 | char *kwnames[] = { | |
7440 | (char *) "self",(char *) "max", NULL | |
7441 | }; | |
7442 | ||
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; | |
7444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7446 | arg2 = (int) SWIG_AsInt(obj1); | |
7447 | if (PyErr_Occurred()) SWIG_fail; | |
7448 | { | |
7449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7450 | (arg1)->SetMaximumSizeY(arg2); | |
7451 | ||
7452 | wxPyEndAllowThreads(__tstate); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | } | |
7455 | Py_INCREF(Py_None); resultobj = Py_None; | |
7456 | return resultobj; | |
7457 | fail: | |
7458 | return NULL; | |
7459 | } | |
7460 | ||
7461 | ||
7462 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject *resultobj; | |
7464 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7465 | int result; | |
7466 | PyObject * obj0 = 0 ; | |
7467 | char *kwnames[] = { | |
7468 | (char *) "self", NULL | |
7469 | }; | |
7470 | ||
7471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
7472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7474 | { | |
7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7476 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
7477 | ||
7478 | wxPyEndAllowThreads(__tstate); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
7481 | resultobj = SWIG_FromInt((int)result); | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7489 | PyObject *resultobj; | |
7490 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7491 | int result; | |
7492 | PyObject * obj0 = 0 ; | |
7493 | char *kwnames[] = { | |
7494 | (char *) "self", NULL | |
7495 | }; | |
7496 | ||
7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
7498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7500 | { | |
7501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7502 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
7503 | ||
7504 | wxPyEndAllowThreads(__tstate); | |
7505 | if (PyErr_Occurred()) SWIG_fail; | |
7506 | } | |
7507 | resultobj = SWIG_FromInt((int)result); | |
7508 | return resultobj; | |
7509 | fail: | |
7510 | return NULL; | |
7511 | } | |
7512 | ||
7513 | ||
7514 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7515 | PyObject *resultobj; | |
7516 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7517 | int arg2 ; | |
7518 | int arg3 ; | |
7519 | int arg4 = (int) 2 ; | |
7520 | int result; | |
7521 | PyObject * obj0 = 0 ; | |
7522 | PyObject * obj1 = 0 ; | |
7523 | PyObject * obj2 = 0 ; | |
7524 | PyObject * obj3 = 0 ; | |
7525 | char *kwnames[] = { | |
7526 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7527 | }; | |
7528 | ||
7529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
7530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7532 | arg2 = (int) SWIG_AsInt(obj1); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | arg3 = (int) SWIG_AsInt(obj2); | |
7535 | if (PyErr_Occurred()) SWIG_fail; | |
7536 | if (obj3) { | |
7537 | arg4 = (int) SWIG_AsInt(obj3); | |
7538 | if (PyErr_Occurred()) SWIG_fail; | |
7539 | } | |
7540 | { | |
7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7542 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7543 | ||
7544 | wxPyEndAllowThreads(__tstate); | |
7545 | if (PyErr_Occurred()) SWIG_fail; | |
7546 | } | |
7547 | resultobj = SWIG_FromInt((int)result); | |
7548 | return resultobj; | |
7549 | fail: | |
7550 | return NULL; | |
7551 | } | |
7552 | ||
7553 | ||
7554 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7555 | PyObject *resultobj; | |
7556 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7557 | PyObject * obj0 = 0 ; | |
7558 | char *kwnames[] = { | |
7559 | (char *) "self", NULL | |
7560 | }; | |
7561 | ||
7562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashWindow, | |
7564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7565 | { | |
7566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7567 | (arg1)->SizeWindows(); | |
7568 | ||
7569 | wxPyEndAllowThreads(__tstate); | |
7570 | if (PyErr_Occurred()) SWIG_fail; | |
7571 | } | |
7572 | Py_INCREF(Py_None); resultobj = Py_None; | |
7573 | return resultobj; | |
7574 | fail: | |
7575 | return NULL; | |
7576 | } | |
7577 | ||
7578 | ||
7579 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7580 | PyObject *obj; | |
7581 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7582 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7583 | Py_INCREF(obj); | |
7584 | return Py_BuildValue((char *)""); | |
7585 | } | |
7586 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7587 | PyObject *resultobj; | |
7588 | int arg1 = (int) 0 ; | |
7589 | int arg2 = (int) wxSASH_NONE ; | |
7590 | wxSashEvent *result; | |
7591 | PyObject * obj0 = 0 ; | |
7592 | PyObject * obj1 = 0 ; | |
7593 | char *kwnames[] = { | |
7594 | (char *) "id",(char *) "edge", NULL | |
7595 | }; | |
7596 | ||
7597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; | |
7598 | if (obj0) { | |
7599 | arg1 = (int) SWIG_AsInt(obj0); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
7601 | } | |
7602 | if (obj1) { | |
7603 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7604 | if (PyErr_Occurred()) SWIG_fail; | |
7605 | } | |
7606 | { | |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7609 | ||
7610 | wxPyEndAllowThreads(__tstate); | |
7611 | if (PyErr_Occurred()) SWIG_fail; | |
7612 | } | |
7613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashEvent, 1); | |
7614 | return resultobj; | |
7615 | fail: | |
7616 | return NULL; | |
7617 | } | |
7618 | ||
7619 | ||
7620 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7621 | PyObject *resultobj; | |
7622 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7623 | int arg2 ; | |
7624 | PyObject * obj0 = 0 ; | |
7625 | PyObject * obj1 = 0 ; | |
7626 | char *kwnames[] = { | |
7627 | (char *) "self",(char *) "edge", NULL | |
7628 | }; | |
7629 | ||
7630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
7631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7633 | arg2 = (wxSashEdgePosition) SWIG_AsInt(obj1); | |
7634 | if (PyErr_Occurred()) SWIG_fail; | |
7635 | { | |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) SWIG_fail; | |
7641 | } | |
7642 | Py_INCREF(Py_None); resultobj = Py_None; | |
7643 | return resultobj; | |
7644 | fail: | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
7649 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7650 | PyObject *resultobj; | |
7651 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7652 | int result; | |
7653 | PyObject * obj0 = 0 ; | |
7654 | char *kwnames[] = { | |
7655 | (char *) "self", NULL | |
7656 | }; | |
7657 | ||
7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7661 | { | |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7663 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7664 | ||
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
7668 | resultobj = SWIG_FromInt((int)result); | |
7669 | return resultobj; | |
7670 | fail: | |
7671 | return NULL; | |
7672 | } | |
7673 | ||
7674 | ||
7675 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7676 | PyObject *resultobj; | |
7677 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7678 | wxRect *arg2 = 0 ; | |
7679 | wxRect temp2 ; | |
7680 | PyObject * obj0 = 0 ; | |
7681 | PyObject * obj1 = 0 ; | |
7682 | char *kwnames[] = { | |
7683 | (char *) "self",(char *) "rect", NULL | |
7684 | }; | |
7685 | ||
7686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7689 | { | |
7690 | arg2 = &temp2; | |
7691 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7692 | } | |
7693 | { | |
7694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7695 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7696 | ||
7697 | wxPyEndAllowThreads(__tstate); | |
7698 | if (PyErr_Occurred()) SWIG_fail; | |
7699 | } | |
7700 | Py_INCREF(Py_None); resultobj = Py_None; | |
7701 | return resultobj; | |
7702 | fail: | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
7707 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7708 | PyObject *resultobj; | |
7709 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7710 | wxRect result; | |
7711 | PyObject * obj0 = 0 ; | |
7712 | char *kwnames[] = { | |
7713 | (char *) "self", NULL | |
7714 | }; | |
7715 | ||
7716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7719 | { | |
7720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7721 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7722 | ||
7723 | wxPyEndAllowThreads(__tstate); | |
7724 | if (PyErr_Occurred()) SWIG_fail; | |
7725 | } | |
7726 | { | |
7727 | wxRect * resultptr; | |
7728 | resultptr = new wxRect((wxRect &) result); | |
7729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
7730 | } | |
7731 | return resultobj; | |
7732 | fail: | |
7733 | return NULL; | |
7734 | } | |
7735 | ||
7736 | ||
7737 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7738 | PyObject *resultobj; | |
7739 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7740 | int arg2 ; | |
7741 | PyObject * obj0 = 0 ; | |
7742 | PyObject * obj1 = 0 ; | |
7743 | char *kwnames[] = { | |
7744 | (char *) "self",(char *) "status", NULL | |
7745 | }; | |
7746 | ||
7747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; | |
7748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7750 | arg2 = (wxSashDragStatus) SWIG_AsInt(obj1); | |
7751 | if (PyErr_Occurred()) SWIG_fail; | |
7752 | { | |
7753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7754 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7755 | ||
7756 | wxPyEndAllowThreads(__tstate); | |
7757 | if (PyErr_Occurred()) SWIG_fail; | |
7758 | } | |
7759 | Py_INCREF(Py_None); resultobj = Py_None; | |
7760 | return resultobj; | |
7761 | fail: | |
7762 | return NULL; | |
7763 | } | |
7764 | ||
7765 | ||
7766 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7767 | PyObject *resultobj; | |
7768 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7769 | int result; | |
7770 | PyObject * obj0 = 0 ; | |
7771 | char *kwnames[] = { | |
7772 | (char *) "self", NULL | |
7773 | }; | |
7774 | ||
7775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashEvent, | |
7777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7778 | { | |
7779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7780 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7781 | ||
7782 | wxPyEndAllowThreads(__tstate); | |
7783 | if (PyErr_Occurred()) SWIG_fail; | |
7784 | } | |
7785 | resultobj = SWIG_FromInt((int)result); | |
7786 | return resultobj; | |
7787 | fail: | |
7788 | return NULL; | |
7789 | } | |
7790 | ||
7791 | ||
7792 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7793 | PyObject *obj; | |
7794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7795 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7796 | Py_INCREF(obj); | |
7797 | return Py_BuildValue((char *)""); | |
7798 | } | |
7799 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7800 | PyObject *resultobj; | |
7801 | int arg1 = (int) 0 ; | |
7802 | wxQueryLayoutInfoEvent *result; | |
7803 | PyObject * obj0 = 0 ; | |
7804 | char *kwnames[] = { | |
7805 | (char *) "id", NULL | |
7806 | }; | |
7807 | ||
7808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; | |
7809 | if (obj0) { | |
7810 | arg1 = (int) SWIG_AsInt(obj0); | |
7811 | if (PyErr_Occurred()) SWIG_fail; | |
7812 | } | |
7813 | { | |
7814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7815 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7816 | ||
7817 | wxPyEndAllowThreads(__tstate); | |
7818 | if (PyErr_Occurred()) SWIG_fail; | |
7819 | } | |
7820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7821 | return resultobj; | |
7822 | fail: | |
7823 | return NULL; | |
7824 | } | |
7825 | ||
7826 | ||
7827 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7828 | PyObject *resultobj; | |
7829 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7830 | int arg2 ; | |
7831 | PyObject * obj0 = 0 ; | |
7832 | PyObject * obj1 = 0 ; | |
7833 | char *kwnames[] = { | |
7834 | (char *) "self",(char *) "length", NULL | |
7835 | }; | |
7836 | ||
7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; | |
7838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7840 | arg2 = (int) SWIG_AsInt(obj1); | |
7841 | if (PyErr_Occurred()) SWIG_fail; | |
7842 | { | |
7843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7844 | (arg1)->SetRequestedLength(arg2); | |
7845 | ||
7846 | wxPyEndAllowThreads(__tstate); | |
7847 | if (PyErr_Occurred()) SWIG_fail; | |
7848 | } | |
7849 | Py_INCREF(Py_None); resultobj = Py_None; | |
7850 | return resultobj; | |
7851 | fail: | |
7852 | return NULL; | |
7853 | } | |
7854 | ||
7855 | ||
7856 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7857 | PyObject *resultobj; | |
7858 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7859 | int result; | |
7860 | PyObject * obj0 = 0 ; | |
7861 | char *kwnames[] = { | |
7862 | (char *) "self", NULL | |
7863 | }; | |
7864 | ||
7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7868 | { | |
7869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7870 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7871 | ||
7872 | wxPyEndAllowThreads(__tstate); | |
7873 | if (PyErr_Occurred()) SWIG_fail; | |
7874 | } | |
7875 | resultobj = SWIG_FromInt((int)result); | |
7876 | return resultobj; | |
7877 | fail: | |
7878 | return NULL; | |
7879 | } | |
7880 | ||
7881 | ||
7882 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7883 | PyObject *resultobj; | |
7884 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7885 | int arg2 ; | |
7886 | PyObject * obj0 = 0 ; | |
7887 | PyObject * obj1 = 0 ; | |
7888 | char *kwnames[] = { | |
7889 | (char *) "self",(char *) "flags", NULL | |
7890 | }; | |
7891 | ||
7892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7895 | arg2 = (int) SWIG_AsInt(obj1); | |
7896 | if (PyErr_Occurred()) SWIG_fail; | |
7897 | { | |
7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7899 | (arg1)->SetFlags(arg2); | |
7900 | ||
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
7904 | Py_INCREF(Py_None); resultobj = Py_None; | |
7905 | return resultobj; | |
7906 | fail: | |
7907 | return NULL; | |
7908 | } | |
7909 | ||
7910 | ||
7911 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7912 | PyObject *resultobj; | |
7913 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7914 | int result; | |
7915 | PyObject * obj0 = 0 ; | |
7916 | char *kwnames[] = { | |
7917 | (char *) "self", NULL | |
7918 | }; | |
7919 | ||
7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7923 | { | |
7924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7925 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7926 | ||
7927 | wxPyEndAllowThreads(__tstate); | |
7928 | if (PyErr_Occurred()) SWIG_fail; | |
7929 | } | |
7930 | resultobj = SWIG_FromInt((int)result); | |
7931 | return resultobj; | |
7932 | fail: | |
7933 | return NULL; | |
7934 | } | |
7935 | ||
7936 | ||
7937 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7938 | PyObject *resultobj; | |
7939 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7940 | wxSize *arg2 = 0 ; | |
7941 | wxSize temp2 ; | |
7942 | PyObject * obj0 = 0 ; | |
7943 | PyObject * obj1 = 0 ; | |
7944 | char *kwnames[] = { | |
7945 | (char *) "self",(char *) "size", NULL | |
7946 | }; | |
7947 | ||
7948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7951 | { | |
7952 | arg2 = &temp2; | |
7953 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7954 | } | |
7955 | { | |
7956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7957 | (arg1)->SetSize((wxSize const &)*arg2); | |
7958 | ||
7959 | wxPyEndAllowThreads(__tstate); | |
7960 | if (PyErr_Occurred()) SWIG_fail; | |
7961 | } | |
7962 | Py_INCREF(Py_None); resultobj = Py_None; | |
7963 | return resultobj; | |
7964 | fail: | |
7965 | return NULL; | |
7966 | } | |
7967 | ||
7968 | ||
7969 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7970 | PyObject *resultobj; | |
7971 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7972 | wxSize result; | |
7973 | PyObject * obj0 = 0 ; | |
7974 | char *kwnames[] = { | |
7975 | (char *) "self", NULL | |
7976 | }; | |
7977 | ||
7978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
7980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7981 | { | |
7982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7983 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7984 | ||
7985 | wxPyEndAllowThreads(__tstate); | |
7986 | if (PyErr_Occurred()) SWIG_fail; | |
7987 | } | |
7988 | { | |
7989 | wxSize * resultptr; | |
7990 | resultptr = new wxSize((wxSize &) result); | |
7991 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
7992 | } | |
7993 | return resultobj; | |
7994 | fail: | |
7995 | return NULL; | |
7996 | } | |
7997 | ||
7998 | ||
7999 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8000 | PyObject *resultobj; | |
8001 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8002 | int arg2 ; | |
8003 | PyObject * obj0 = 0 ; | |
8004 | PyObject * obj1 = 0 ; | |
8005 | char *kwnames[] = { | |
8006 | (char *) "self",(char *) "orient", NULL | |
8007 | }; | |
8008 | ||
8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8012 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8013 | if (PyErr_Occurred()) SWIG_fail; | |
8014 | { | |
8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8016 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8017 | ||
8018 | wxPyEndAllowThreads(__tstate); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | } | |
8021 | Py_INCREF(Py_None); resultobj = Py_None; | |
8022 | return resultobj; | |
8023 | fail: | |
8024 | return NULL; | |
8025 | } | |
8026 | ||
8027 | ||
8028 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8029 | PyObject *resultobj; | |
8030 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8031 | int result; | |
8032 | PyObject * obj0 = 0 ; | |
8033 | char *kwnames[] = { | |
8034 | (char *) "self", NULL | |
8035 | }; | |
8036 | ||
8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
8038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8040 | { | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) SWIG_fail; | |
8046 | } | |
8047 | resultobj = SWIG_FromInt((int)result); | |
8048 | return resultobj; | |
8049 | fail: | |
8050 | return NULL; | |
8051 | } | |
8052 | ||
8053 | ||
8054 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8055 | PyObject *resultobj; | |
8056 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8057 | int arg2 ; | |
8058 | PyObject * obj0 = 0 ; | |
8059 | PyObject * obj1 = 0 ; | |
8060 | char *kwnames[] = { | |
8061 | (char *) "self",(char *) "align", NULL | |
8062 | }; | |
8063 | ||
8064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8067 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8068 | if (PyErr_Occurred()) SWIG_fail; | |
8069 | { | |
8070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8071 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8072 | ||
8073 | wxPyEndAllowThreads(__tstate); | |
8074 | if (PyErr_Occurred()) SWIG_fail; | |
8075 | } | |
8076 | Py_INCREF(Py_None); resultobj = Py_None; | |
8077 | return resultobj; | |
8078 | fail: | |
8079 | return NULL; | |
8080 | } | |
8081 | ||
8082 | ||
8083 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8084 | PyObject *resultobj; | |
8085 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
8086 | int result; | |
8087 | PyObject * obj0 = 0 ; | |
8088 | char *kwnames[] = { | |
8089 | (char *) "self", NULL | |
8090 | }; | |
8091 | ||
8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
8093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryLayoutInfoEvent, | |
8094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8095 | { | |
8096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8097 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
8098 | ||
8099 | wxPyEndAllowThreads(__tstate); | |
8100 | if (PyErr_Occurred()) SWIG_fail; | |
8101 | } | |
8102 | resultobj = SWIG_FromInt((int)result); | |
8103 | return resultobj; | |
8104 | fail: | |
8105 | return NULL; | |
8106 | } | |
8107 | ||
8108 | ||
8109 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
8110 | PyObject *obj; | |
8111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8112 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
8113 | Py_INCREF(obj); | |
8114 | return Py_BuildValue((char *)""); | |
8115 | } | |
8116 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8117 | PyObject *resultobj; | |
8118 | int arg1 = (int) 0 ; | |
8119 | wxCalculateLayoutEvent *result; | |
8120 | PyObject * obj0 = 0 ; | |
8121 | char *kwnames[] = { | |
8122 | (char *) "id", NULL | |
8123 | }; | |
8124 | ||
8125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; | |
8126 | if (obj0) { | |
8127 | arg1 = (int) SWIG_AsInt(obj0); | |
8128 | if (PyErr_Occurred()) SWIG_fail; | |
8129 | } | |
8130 | { | |
8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8132 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
8133 | ||
8134 | wxPyEndAllowThreads(__tstate); | |
8135 | if (PyErr_Occurred()) SWIG_fail; | |
8136 | } | |
8137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
8138 | return resultobj; | |
8139 | fail: | |
8140 | return NULL; | |
8141 | } | |
8142 | ||
8143 | ||
8144 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8145 | PyObject *resultobj; | |
8146 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8147 | int arg2 ; | |
8148 | PyObject * obj0 = 0 ; | |
8149 | PyObject * obj1 = 0 ; | |
8150 | char *kwnames[] = { | |
8151 | (char *) "self",(char *) "flags", NULL | |
8152 | }; | |
8153 | ||
8154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
8155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8157 | arg2 = (int) SWIG_AsInt(obj1); | |
8158 | if (PyErr_Occurred()) SWIG_fail; | |
8159 | { | |
8160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8161 | (arg1)->SetFlags(arg2); | |
8162 | ||
8163 | wxPyEndAllowThreads(__tstate); | |
8164 | if (PyErr_Occurred()) SWIG_fail; | |
8165 | } | |
8166 | Py_INCREF(Py_None); resultobj = Py_None; | |
8167 | return resultobj; | |
8168 | fail: | |
8169 | return NULL; | |
8170 | } | |
8171 | ||
8172 | ||
8173 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8174 | PyObject *resultobj; | |
8175 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8176 | int result; | |
8177 | PyObject * obj0 = 0 ; | |
8178 | char *kwnames[] = { | |
8179 | (char *) "self", NULL | |
8180 | }; | |
8181 | ||
8182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
8183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8185 | { | |
8186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8187 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
8188 | ||
8189 | wxPyEndAllowThreads(__tstate); | |
8190 | if (PyErr_Occurred()) SWIG_fail; | |
8191 | } | |
8192 | resultobj = SWIG_FromInt((int)result); | |
8193 | return resultobj; | |
8194 | fail: | |
8195 | return NULL; | |
8196 | } | |
8197 | ||
8198 | ||
8199 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8200 | PyObject *resultobj; | |
8201 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8202 | wxRect *arg2 = 0 ; | |
8203 | wxRect temp2 ; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | PyObject * obj1 = 0 ; | |
8206 | char *kwnames[] = { | |
8207 | (char *) "self",(char *) "rect", NULL | |
8208 | }; | |
8209 | ||
8210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
8211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8213 | { | |
8214 | arg2 = &temp2; | |
8215 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8216 | } | |
8217 | { | |
8218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8219 | (arg1)->SetRect((wxRect const &)*arg2); | |
8220 | ||
8221 | wxPyEndAllowThreads(__tstate); | |
8222 | if (PyErr_Occurred()) SWIG_fail; | |
8223 | } | |
8224 | Py_INCREF(Py_None); resultobj = Py_None; | |
8225 | return resultobj; | |
8226 | fail: | |
8227 | return NULL; | |
8228 | } | |
8229 | ||
8230 | ||
8231 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8232 | PyObject *resultobj; | |
8233 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
8234 | wxRect result; | |
8235 | PyObject * obj0 = 0 ; | |
8236 | char *kwnames[] = { | |
8237 | (char *) "self", NULL | |
8238 | }; | |
8239 | ||
8240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
8241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCalculateLayoutEvent, | |
8242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8243 | { | |
8244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8245 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
8246 | ||
8247 | wxPyEndAllowThreads(__tstate); | |
8248 | if (PyErr_Occurred()) SWIG_fail; | |
8249 | } | |
8250 | { | |
8251 | wxRect * resultptr; | |
8252 | resultptr = new wxRect((wxRect &) result); | |
8253 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
8254 | } | |
8255 | return resultobj; | |
8256 | fail: | |
8257 | return NULL; | |
8258 | } | |
8259 | ||
8260 | ||
8261 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
8262 | PyObject *obj; | |
8263 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8264 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
8265 | Py_INCREF(obj); | |
8266 | return Py_BuildValue((char *)""); | |
8267 | } | |
8268 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8269 | PyObject *resultobj; | |
8270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 8271 | int arg2 = (int) -1 ; |
d55e5bfc RD |
8272 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8273 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8274 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8275 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8276 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8277 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
8278 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8279 | wxSashLayoutWindow *result; | |
8280 | wxPoint temp3 ; | |
8281 | wxSize temp4 ; | |
8282 | bool temp6 = False ; | |
8283 | PyObject * obj0 = 0 ; | |
8284 | PyObject * obj1 = 0 ; | |
8285 | PyObject * obj2 = 0 ; | |
8286 | PyObject * obj3 = 0 ; | |
8287 | PyObject * obj4 = 0 ; | |
8288 | PyObject * obj5 = 0 ; | |
8289 | char *kwnames[] = { | |
8290 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8291 | }; | |
8292 | ||
248ed943 | 8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
8294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
8295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8296 | if (obj1) { |
8297 | arg2 = (int) SWIG_AsInt(obj1); | |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | } | |
d55e5bfc RD |
8300 | if (obj2) { |
8301 | { | |
8302 | arg3 = &temp3; | |
8303 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8304 | } | |
8305 | } | |
8306 | if (obj3) { | |
8307 | { | |
8308 | arg4 = &temp4; | |
8309 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8310 | } | |
8311 | } | |
8312 | if (obj4) { | |
8313 | arg5 = (long) SWIG_AsLong(obj4); | |
8314 | if (PyErr_Occurred()) SWIG_fail; | |
8315 | } | |
8316 | if (obj5) { | |
8317 | { | |
8318 | arg6 = wxString_in_helper(obj5); | |
8319 | if (arg6 == NULL) SWIG_fail; | |
8320 | temp6 = True; | |
8321 | } | |
8322 | } | |
8323 | { | |
0439c23b | 8324 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8326 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8327 | ||
8328 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8329 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8330 | } |
8331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8332 | { | |
8333 | if (temp6) | |
8334 | delete arg6; | |
8335 | } | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | { | |
8339 | if (temp6) | |
8340 | delete arg6; | |
8341 | } | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
8346 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject *resultobj; | |
8348 | wxSashLayoutWindow *result; | |
8349 | char *kwnames[] = { | |
8350 | NULL | |
8351 | }; | |
8352 | ||
8353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
8354 | { | |
0439c23b | 8355 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8357 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
8358 | ||
8359 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8360 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8361 | } |
8362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSashLayoutWindow, 1); | |
8363 | return resultobj; | |
8364 | fail: | |
8365 | return NULL; | |
8366 | } | |
8367 | ||
8368 | ||
8369 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8370 | PyObject *resultobj; | |
8371 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8372 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8373 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8374 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8375 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8376 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8377 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8378 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
8379 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
8380 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8381 | bool result; | |
8382 | wxPoint temp4 ; | |
8383 | wxSize temp5 ; | |
8384 | bool temp7 = False ; | |
8385 | PyObject * obj0 = 0 ; | |
8386 | PyObject * obj1 = 0 ; | |
8387 | PyObject * obj2 = 0 ; | |
8388 | PyObject * obj3 = 0 ; | |
8389 | PyObject * obj4 = 0 ; | |
8390 | PyObject * obj5 = 0 ; | |
8391 | PyObject * obj6 = 0 ; | |
8392 | char *kwnames[] = { | |
8393 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8394 | }; | |
8395 | ||
248ed943 | 8396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
8397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, |
8398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8399 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8401 | if (obj2) { |
8402 | arg3 = (int) SWIG_AsInt(obj2); | |
8403 | if (PyErr_Occurred()) SWIG_fail; | |
8404 | } | |
d55e5bfc RD |
8405 | if (obj3) { |
8406 | { | |
8407 | arg4 = &temp4; | |
8408 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8409 | } | |
8410 | } | |
8411 | if (obj4) { | |
8412 | { | |
8413 | arg5 = &temp5; | |
8414 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8415 | } | |
8416 | } | |
8417 | if (obj5) { | |
8418 | arg6 = (long) SWIG_AsLong(obj5); | |
8419 | if (PyErr_Occurred()) SWIG_fail; | |
8420 | } | |
8421 | if (obj6) { | |
8422 | { | |
8423 | arg7 = wxString_in_helper(obj6); | |
8424 | if (arg7 == NULL) SWIG_fail; | |
8425 | temp7 = True; | |
8426 | } | |
8427 | } | |
8428 | { | |
8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8430 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8431 | ||
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
8434 | } | |
8435 | { | |
8436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8437 | } | |
8438 | { | |
8439 | if (temp7) | |
8440 | delete arg7; | |
8441 | } | |
8442 | return resultobj; | |
8443 | fail: | |
8444 | { | |
8445 | if (temp7) | |
8446 | delete arg7; | |
8447 | } | |
8448 | return NULL; | |
8449 | } | |
8450 | ||
8451 | ||
8452 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8453 | PyObject *resultobj; | |
8454 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8455 | int result; | |
8456 | PyObject * obj0 = 0 ; | |
8457 | char *kwnames[] = { | |
8458 | (char *) "self", NULL | |
8459 | }; | |
8460 | ||
8461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
8462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8464 | { | |
8465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8466 | result = (int)(arg1)->GetAlignment(); | |
8467 | ||
8468 | wxPyEndAllowThreads(__tstate); | |
8469 | if (PyErr_Occurred()) SWIG_fail; | |
8470 | } | |
8471 | resultobj = SWIG_FromInt((int)result); | |
8472 | return resultobj; | |
8473 | fail: | |
8474 | return NULL; | |
8475 | } | |
8476 | ||
8477 | ||
8478 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8479 | PyObject *resultobj; | |
8480 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8481 | int result; | |
8482 | PyObject * obj0 = 0 ; | |
8483 | char *kwnames[] = { | |
8484 | (char *) "self", NULL | |
8485 | }; | |
8486 | ||
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
8488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8490 | { | |
8491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8492 | result = (int)(arg1)->GetOrientation(); | |
8493 | ||
8494 | wxPyEndAllowThreads(__tstate); | |
8495 | if (PyErr_Occurred()) SWIG_fail; | |
8496 | } | |
8497 | resultobj = SWIG_FromInt((int)result); | |
8498 | return resultobj; | |
8499 | fail: | |
8500 | return NULL; | |
8501 | } | |
8502 | ||
8503 | ||
8504 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8505 | PyObject *resultobj; | |
8506 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8507 | int arg2 ; | |
8508 | PyObject * obj0 = 0 ; | |
8509 | PyObject * obj1 = 0 ; | |
8510 | char *kwnames[] = { | |
8511 | (char *) "self",(char *) "alignment", NULL | |
8512 | }; | |
8513 | ||
8514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
8515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8517 | arg2 = (wxLayoutAlignment) SWIG_AsInt(obj1); | |
8518 | if (PyErr_Occurred()) SWIG_fail; | |
8519 | { | |
8520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8521 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8522 | ||
8523 | wxPyEndAllowThreads(__tstate); | |
8524 | if (PyErr_Occurred()) SWIG_fail; | |
8525 | } | |
8526 | Py_INCREF(Py_None); resultobj = Py_None; | |
8527 | return resultobj; | |
8528 | fail: | |
8529 | return NULL; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8534 | PyObject *resultobj; | |
8535 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8536 | wxSize *arg2 = 0 ; | |
8537 | wxSize temp2 ; | |
8538 | PyObject * obj0 = 0 ; | |
8539 | PyObject * obj1 = 0 ; | |
8540 | char *kwnames[] = { | |
8541 | (char *) "self",(char *) "size", NULL | |
8542 | }; | |
8543 | ||
8544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8547 | { | |
8548 | arg2 = &temp2; | |
8549 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8550 | } | |
8551 | { | |
8552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8553 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8554 | ||
8555 | wxPyEndAllowThreads(__tstate); | |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
8557 | } | |
8558 | Py_INCREF(Py_None); resultobj = Py_None; | |
8559 | return resultobj; | |
8560 | fail: | |
8561 | return NULL; | |
8562 | } | |
8563 | ||
8564 | ||
8565 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8566 | PyObject *resultobj; | |
8567 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8568 | int arg2 ; | |
8569 | PyObject * obj0 = 0 ; | |
8570 | PyObject * obj1 = 0 ; | |
8571 | char *kwnames[] = { | |
8572 | (char *) "self",(char *) "orientation", NULL | |
8573 | }; | |
8574 | ||
8575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
8576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSashLayoutWindow, | |
8577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8578 | arg2 = (wxLayoutOrientation) SWIG_AsInt(obj1); | |
8579 | if (PyErr_Occurred()) SWIG_fail; | |
8580 | { | |
8581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8582 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8583 | ||
8584 | wxPyEndAllowThreads(__tstate); | |
8585 | if (PyErr_Occurred()) SWIG_fail; | |
8586 | } | |
8587 | Py_INCREF(Py_None); resultobj = Py_None; | |
8588 | return resultobj; | |
8589 | fail: | |
8590 | return NULL; | |
8591 | } | |
8592 | ||
8593 | ||
8594 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8595 | PyObject *obj; | |
8596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8597 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8598 | Py_INCREF(obj); | |
8599 | return Py_BuildValue((char *)""); | |
8600 | } | |
8601 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8602 | PyObject *resultobj; | |
8603 | wxLayoutAlgorithm *result; | |
8604 | char *kwnames[] = { | |
8605 | NULL | |
8606 | }; | |
8607 | ||
8608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8617 | return resultobj; | |
8618 | fail: | |
8619 | return NULL; | |
8620 | } | |
8621 | ||
8622 | ||
8623 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8624 | PyObject *resultobj; | |
8625 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8626 | PyObject * obj0 = 0 ; | |
8627 | char *kwnames[] = { | |
8628 | (char *) "self", NULL | |
8629 | }; | |
8630 | ||
8631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8634 | { | |
8635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8636 | delete arg1; | |
8637 | ||
8638 | wxPyEndAllowThreads(__tstate); | |
8639 | if (PyErr_Occurred()) SWIG_fail; | |
8640 | } | |
8641 | Py_INCREF(Py_None); resultobj = Py_None; | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | return NULL; | |
8645 | } | |
8646 | ||
8647 | ||
8648 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8649 | PyObject *resultobj; | |
8650 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8651 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8652 | wxRect *arg3 = (wxRect *) NULL ; | |
8653 | bool result; | |
8654 | PyObject * obj0 = 0 ; | |
8655 | PyObject * obj1 = 0 ; | |
8656 | PyObject * obj2 = 0 ; | |
8657 | char *kwnames[] = { | |
8658 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8659 | }; | |
8660 | ||
8661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8664 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
8665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8666 | if (obj2) { | |
8667 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
8668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8669 | } | |
8670 | { | |
8671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8672 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8673 | ||
8674 | wxPyEndAllowThreads(__tstate); | |
8675 | if (PyErr_Occurred()) SWIG_fail; | |
8676 | } | |
8677 | { | |
8678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8679 | } | |
8680 | return resultobj; | |
8681 | fail: | |
8682 | return NULL; | |
8683 | } | |
8684 | ||
8685 | ||
8686 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8687 | PyObject *resultobj; | |
8688 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8689 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8690 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8691 | bool result; | |
8692 | PyObject * obj0 = 0 ; | |
8693 | PyObject * obj1 = 0 ; | |
8694 | PyObject * obj2 = 0 ; | |
8695 | char *kwnames[] = { | |
8696 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8697 | }; | |
8698 | ||
8699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
8703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8704 | if (obj2) { | |
8705 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8707 | } | |
8708 | { | |
8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8710 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8711 | ||
8712 | wxPyEndAllowThreads(__tstate); | |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
8714 | } | |
8715 | { | |
8716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8717 | } | |
8718 | return resultobj; | |
8719 | fail: | |
8720 | return NULL; | |
8721 | } | |
8722 | ||
8723 | ||
8724 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8725 | PyObject *resultobj; | |
8726 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8727 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8728 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8729 | bool result; | |
8730 | PyObject * obj0 = 0 ; | |
8731 | PyObject * obj1 = 0 ; | |
8732 | PyObject * obj2 = 0 ; | |
8733 | char *kwnames[] = { | |
8734 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8735 | }; | |
8736 | ||
8737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutAlgorithm, | |
8739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8740 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8742 | if (obj2) { | |
8743 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
8744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8745 | } | |
8746 | { | |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8748 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8749 | ||
8750 | wxPyEndAllowThreads(__tstate); | |
8751 | if (PyErr_Occurred()) SWIG_fail; | |
8752 | } | |
8753 | { | |
8754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8755 | } | |
8756 | return resultobj; | |
8757 | fail: | |
8758 | return NULL; | |
8759 | } | |
8760 | ||
8761 | ||
8762 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8763 | PyObject *obj; | |
8764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8765 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8766 | Py_INCREF(obj); | |
8767 | return Py_BuildValue((char *)""); | |
8768 | } | |
8769 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8770 | PyObject *resultobj; | |
8771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8772 | int arg2 = (int) wxBORDER_NONE ; | |
8773 | wxPopupWindow *result; | |
8774 | PyObject * obj0 = 0 ; | |
8775 | PyObject * obj1 = 0 ; | |
8776 | char *kwnames[] = { | |
8777 | (char *) "parent",(char *) "flags", NULL | |
8778 | }; | |
8779 | ||
8780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; | |
8781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8783 | if (obj1) { | |
8784 | arg2 = (int) SWIG_AsInt(obj1); | |
8785 | if (PyErr_Occurred()) SWIG_fail; | |
8786 | } | |
8787 | { | |
0439c23b | 8788 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8790 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8791 | ||
8792 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8793 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8794 | } |
8795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8796 | return resultobj; | |
8797 | fail: | |
8798 | return NULL; | |
8799 | } | |
8800 | ||
8801 | ||
8802 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8803 | PyObject *resultobj; | |
8804 | wxPopupWindow *result; | |
8805 | char *kwnames[] = { | |
8806 | NULL | |
8807 | }; | |
8808 | ||
8809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8810 | { | |
0439c23b | 8811 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8813 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8814 | ||
8815 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8816 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8817 | } |
8818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPopupWindow, 1); | |
8819 | return resultobj; | |
8820 | fail: | |
8821 | return NULL; | |
8822 | } | |
8823 | ||
8824 | ||
8825 | static PyObject *_wrap_PopupWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8826 | PyObject *resultobj; | |
8827 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8828 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8829 | int arg3 = (int) wxBORDER_NONE ; | |
8830 | bool result; | |
8831 | PyObject * obj0 = 0 ; | |
8832 | PyObject * obj1 = 0 ; | |
8833 | PyObject * obj2 = 0 ; | |
8834 | char *kwnames[] = { | |
8835 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
8836 | }; | |
8837 | ||
8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8841 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8843 | if (obj2) { | |
8844 | arg3 = (int) SWIG_AsInt(obj2); | |
8845 | if (PyErr_Occurred()) SWIG_fail; | |
8846 | } | |
8847 | { | |
8848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8849 | result = (bool)(arg1)->Create(arg2,arg3); | |
8850 | ||
8851 | wxPyEndAllowThreads(__tstate); | |
8852 | if (PyErr_Occurred()) SWIG_fail; | |
8853 | } | |
8854 | { | |
8855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8856 | } | |
8857 | return resultobj; | |
8858 | fail: | |
8859 | return NULL; | |
8860 | } | |
8861 | ||
8862 | ||
8863 | static PyObject *_wrap_PopupWindow_Position(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8864 | PyObject *resultobj; | |
8865 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8866 | wxPoint *arg2 = 0 ; | |
8867 | wxSize *arg3 = 0 ; | |
8868 | wxPoint temp2 ; | |
8869 | wxSize temp3 ; | |
8870 | PyObject * obj0 = 0 ; | |
8871 | PyObject * obj1 = 0 ; | |
8872 | PyObject * obj2 = 0 ; | |
8873 | char *kwnames[] = { | |
8874 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
8875 | }; | |
8876 | ||
8877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPopupWindow, | |
8879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8880 | { | |
8881 | arg2 = &temp2; | |
8882 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8883 | } | |
8884 | { | |
8885 | arg3 = &temp3; | |
8886 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
8887 | } | |
8888 | { | |
8889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8890 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8891 | ||
8892 | wxPyEndAllowThreads(__tstate); | |
8893 | if (PyErr_Occurred()) SWIG_fail; | |
8894 | } | |
8895 | Py_INCREF(Py_None); resultobj = Py_None; | |
8896 | return resultobj; | |
8897 | fail: | |
8898 | return NULL; | |
8899 | } | |
8900 | ||
8901 | ||
8902 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8903 | PyObject *obj; | |
8904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8905 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8906 | Py_INCREF(obj); | |
8907 | return Py_BuildValue((char *)""); | |
8908 | } | |
8909 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8910 | PyObject *resultobj; | |
8911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8912 | int arg2 = (int) wxBORDER_NONE ; | |
8913 | wxPyPopupTransientWindow *result; | |
8914 | PyObject * obj0 = 0 ; | |
8915 | PyObject * obj1 = 0 ; | |
8916 | char *kwnames[] = { | |
8917 | (char *) "parent",(char *) "style", NULL | |
8918 | }; | |
8919 | ||
8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; | |
8921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
8922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8923 | if (obj1) { | |
8924 | arg2 = (int) SWIG_AsInt(obj1); | |
8925 | if (PyErr_Occurred()) SWIG_fail; | |
8926 | } | |
8927 | { | |
0439c23b | 8928 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8930 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8931 | ||
8932 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8933 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8934 | } |
8935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8936 | return resultobj; | |
8937 | fail: | |
8938 | return NULL; | |
8939 | } | |
8940 | ||
8941 | ||
8942 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8943 | PyObject *resultobj; | |
8944 | wxPyPopupTransientWindow *result; | |
8945 | char *kwnames[] = { | |
8946 | NULL | |
8947 | }; | |
8948 | ||
8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8950 | { | |
0439c23b | 8951 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8953 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8954 | ||
8955 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8956 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8957 | } |
8958 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8959 | return resultobj; | |
8960 | fail: | |
8961 | return NULL; | |
8962 | } | |
8963 | ||
8964 | ||
8965 | static PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8966 | PyObject *resultobj; | |
8967 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8968 | PyObject *arg2 = (PyObject *) 0 ; | |
8969 | PyObject *arg3 = (PyObject *) 0 ; | |
8970 | PyObject * obj0 = 0 ; | |
8971 | PyObject * obj1 = 0 ; | |
8972 | PyObject * obj2 = 0 ; | |
8973 | char *kwnames[] = { | |
8974 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8975 | }; | |
8976 | ||
8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
8979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8980 | arg2 = obj1; | |
8981 | arg3 = obj2; | |
8982 | { | |
8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8984 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8985 | ||
8986 | wxPyEndAllowThreads(__tstate); | |
8987 | if (PyErr_Occurred()) SWIG_fail; | |
8988 | } | |
8989 | Py_INCREF(Py_None); resultobj = Py_None; | |
8990 | return resultobj; | |
8991 | fail: | |
8992 | return NULL; | |
8993 | } | |
8994 | ||
8995 | ||
8996 | static PyObject *_wrap_PopupTransientWindow_Popup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject *resultobj; | |
8998 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8999 | wxWindow *arg2 = (wxWindow *) NULL ; | |
9000 | PyObject * obj0 = 0 ; | |
9001 | PyObject * obj1 = 0 ; | |
9002 | char *kwnames[] = { | |
9003 | (char *) "self",(char *) "focus", NULL | |
9004 | }; | |
9005 | ||
9006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) goto fail; | |
9007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
9008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9009 | if (obj1) { | |
9010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9012 | } | |
9013 | { | |
9014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9015 | (arg1)->Popup(arg2); | |
9016 | ||
9017 | wxPyEndAllowThreads(__tstate); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | } | |
9020 | Py_INCREF(Py_None); resultobj = Py_None; | |
9021 | return resultobj; | |
9022 | fail: | |
9023 | return NULL; | |
9024 | } | |
9025 | ||
9026 | ||
9027 | static PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9028 | PyObject *resultobj; | |
9029 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
9030 | PyObject * obj0 = 0 ; | |
9031 | char *kwnames[] = { | |
9032 | (char *) "self", NULL | |
9033 | }; | |
9034 | ||
9035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PopupTransientWindow_Dismiss",kwnames,&obj0)) goto fail; | |
9036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPopupTransientWindow, | |
9037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9038 | { | |
9039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9040 | (arg1)->Dismiss(); | |
9041 | ||
9042 | wxPyEndAllowThreads(__tstate); | |
9043 | if (PyErr_Occurred()) SWIG_fail; | |
9044 | } | |
9045 | Py_INCREF(Py_None); resultobj = Py_None; | |
9046 | return resultobj; | |
9047 | fail: | |
9048 | return NULL; | |
9049 | } | |
9050 | ||
9051 | ||
9052 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
9053 | PyObject *obj; | |
9054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9055 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
9056 | Py_INCREF(obj); | |
9057 | return Py_BuildValue((char *)""); | |
9058 | } | |
9059 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9060 | PyObject *resultobj; | |
9061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9062 | wxString *arg2 = 0 ; | |
9063 | int arg3 = (int) 100 ; | |
9064 | wxRect *arg4 = (wxRect *) NULL ; | |
9065 | wxTipWindow *result; | |
9066 | bool temp2 = False ; | |
9067 | PyObject * obj0 = 0 ; | |
9068 | PyObject * obj1 = 0 ; | |
9069 | PyObject * obj2 = 0 ; | |
9070 | PyObject * obj3 = 0 ; | |
9071 | char *kwnames[] = { | |
9072 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
9073 | }; | |
9074 | ||
9075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9078 | { | |
9079 | arg2 = wxString_in_helper(obj1); | |
9080 | if (arg2 == NULL) SWIG_fail; | |
9081 | temp2 = True; | |
9082 | } | |
9083 | if (obj2) { | |
9084 | arg3 = (int) SWIG_AsInt(obj2); | |
9085 | if (PyErr_Occurred()) SWIG_fail; | |
9086 | } | |
9087 | if (obj3) { | |
9088 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
9089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9090 | } | |
9091 | { | |
0439c23b | 9092 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9094 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); | |
9095 | ||
9096 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9097 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9098 | } |
9099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipWindow, 1); | |
9100 | { | |
9101 | if (temp2) | |
9102 | delete arg2; | |
9103 | } | |
9104 | return resultobj; | |
9105 | fail: | |
9106 | { | |
9107 | if (temp2) | |
9108 | delete arg2; | |
9109 | } | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj; | |
9116 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
9117 | wxRect *arg2 = 0 ; | |
9118 | wxRect temp2 ; | |
9119 | PyObject * obj0 = 0 ; | |
9120 | PyObject * obj1 = 0 ; | |
9121 | char *kwnames[] = { | |
9122 | (char *) "self",(char *) "rectBound", NULL | |
9123 | }; | |
9124 | ||
9125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
9126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
9127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9128 | { | |
9129 | arg2 = &temp2; | |
9130 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
9131 | } | |
9132 | { | |
9133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9134 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
9135 | ||
9136 | wxPyEndAllowThreads(__tstate); | |
9137 | if (PyErr_Occurred()) SWIG_fail; | |
9138 | } | |
9139 | Py_INCREF(Py_None); resultobj = Py_None; | |
9140 | return resultobj; | |
9141 | fail: | |
9142 | return NULL; | |
9143 | } | |
9144 | ||
9145 | ||
9146 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9147 | PyObject *resultobj; | |
9148 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
9149 | PyObject * obj0 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
9155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipWindow, | |
9156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9157 | { | |
9158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9159 | (arg1)->Close(); | |
9160 | ||
9161 | wxPyEndAllowThreads(__tstate); | |
9162 | if (PyErr_Occurred()) SWIG_fail; | |
9163 | } | |
9164 | Py_INCREF(Py_None); resultobj = Py_None; | |
9165 | return resultobj; | |
9166 | fail: | |
9167 | return NULL; | |
9168 | } | |
9169 | ||
9170 | ||
9171 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
9172 | PyObject *obj; | |
9173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9174 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
9175 | Py_INCREF(obj); | |
9176 | return Py_BuildValue((char *)""); | |
9177 | } | |
9178 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9179 | PyObject *resultobj; | |
9180 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9181 | int arg2 = (int) wxID_ANY ; | |
9182 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9183 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9184 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9185 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9186 | long arg5 = (long) 0 ; | |
9187 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
9188 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9189 | wxPyVScrolledWindow *result; | |
9190 | wxPoint temp3 ; | |
9191 | wxSize temp4 ; | |
9192 | bool temp6 = False ; | |
9193 | PyObject * obj0 = 0 ; | |
9194 | PyObject * obj1 = 0 ; | |
9195 | PyObject * obj2 = 0 ; | |
9196 | PyObject * obj3 = 0 ; | |
9197 | PyObject * obj4 = 0 ; | |
9198 | PyObject * obj5 = 0 ; | |
9199 | char *kwnames[] = { | |
9200 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9201 | }; | |
9202 | ||
9203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9206 | if (obj1) { | |
9207 | arg2 = (int) SWIG_AsInt(obj1); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
9209 | } | |
9210 | if (obj2) { | |
9211 | { | |
9212 | arg3 = &temp3; | |
9213 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9214 | } | |
9215 | } | |
9216 | if (obj3) { | |
9217 | { | |
9218 | arg4 = &temp4; | |
9219 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9220 | } | |
9221 | } | |
9222 | if (obj4) { | |
9223 | arg5 = (long) SWIG_AsLong(obj4); | |
9224 | if (PyErr_Occurred()) SWIG_fail; | |
9225 | } | |
9226 | if (obj5) { | |
9227 | { | |
9228 | arg6 = wxString_in_helper(obj5); | |
9229 | if (arg6 == NULL) SWIG_fail; | |
9230 | temp6 = True; | |
9231 | } | |
9232 | } | |
9233 | { | |
0439c23b | 9234 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9236 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9237 | ||
9238 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9239 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9240 | } |
9241 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9242 | { | |
9243 | if (temp6) | |
9244 | delete arg6; | |
9245 | } | |
9246 | return resultobj; | |
9247 | fail: | |
9248 | { | |
9249 | if (temp6) | |
9250 | delete arg6; | |
9251 | } | |
9252 | return NULL; | |
9253 | } | |
9254 | ||
9255 | ||
9256 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9257 | PyObject *resultobj; | |
9258 | wxPyVScrolledWindow *result; | |
9259 | char *kwnames[] = { | |
9260 | NULL | |
9261 | }; | |
9262 | ||
9263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
9264 | { | |
0439c23b | 9265 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9267 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
9268 | ||
9269 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9270 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9271 | } |
9272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
9273 | return resultobj; | |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
9279 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9280 | PyObject *resultobj; | |
9281 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9282 | PyObject *arg2 = (PyObject *) 0 ; | |
9283 | PyObject *arg3 = (PyObject *) 0 ; | |
9284 | PyObject * obj0 = 0 ; | |
9285 | PyObject * obj1 = 0 ; | |
9286 | PyObject * obj2 = 0 ; | |
9287 | char *kwnames[] = { | |
9288 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9289 | }; | |
9290 | ||
9291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9294 | arg2 = obj1; | |
9295 | arg3 = obj2; | |
9296 | { | |
9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9298 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9299 | ||
9300 | wxPyEndAllowThreads(__tstate); | |
9301 | if (PyErr_Occurred()) SWIG_fail; | |
9302 | } | |
9303 | Py_INCREF(Py_None); resultobj = Py_None; | |
9304 | return resultobj; | |
9305 | fail: | |
9306 | return NULL; | |
9307 | } | |
9308 | ||
9309 | ||
9310 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9311 | PyObject *resultobj; | |
9312 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9313 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9314 | int arg3 = (int) wxID_ANY ; | |
9315 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9316 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9317 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9318 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9319 | long arg6 = (long) 0 ; | |
9320 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
9321 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9322 | bool result; | |
9323 | wxPoint temp4 ; | |
9324 | wxSize temp5 ; | |
9325 | bool temp7 = False ; | |
9326 | PyObject * obj0 = 0 ; | |
9327 | PyObject * obj1 = 0 ; | |
9328 | PyObject * obj2 = 0 ; | |
9329 | PyObject * obj3 = 0 ; | |
9330 | PyObject * obj4 = 0 ; | |
9331 | PyObject * obj5 = 0 ; | |
9332 | PyObject * obj6 = 0 ; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9342 | if (obj2) { | |
9343 | arg3 = (int) SWIG_AsInt(obj2); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | } | |
9346 | if (obj3) { | |
9347 | { | |
9348 | arg4 = &temp4; | |
9349 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9350 | } | |
9351 | } | |
9352 | if (obj4) { | |
9353 | { | |
9354 | arg5 = &temp5; | |
9355 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9356 | } | |
9357 | } | |
9358 | if (obj5) { | |
9359 | arg6 = (long) SWIG_AsLong(obj5); | |
9360 | if (PyErr_Occurred()) SWIG_fail; | |
9361 | } | |
9362 | if (obj6) { | |
9363 | { | |
9364 | arg7 = wxString_in_helper(obj6); | |
9365 | if (arg7 == NULL) SWIG_fail; | |
9366 | temp7 = True; | |
9367 | } | |
9368 | } | |
9369 | { | |
9370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9371 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9372 | ||
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | { | |
9377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9378 | } | |
9379 | { | |
9380 | if (temp7) | |
9381 | delete arg7; | |
9382 | } | |
9383 | return resultobj; | |
9384 | fail: | |
9385 | { | |
9386 | if (temp7) | |
9387 | delete arg7; | |
9388 | } | |
9389 | return NULL; | |
9390 | } | |
9391 | ||
9392 | ||
9393 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9394 | PyObject *resultobj; | |
9395 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9396 | size_t arg2 ; | |
9397 | PyObject * obj0 = 0 ; | |
9398 | PyObject * obj1 = 0 ; | |
9399 | char *kwnames[] = { | |
9400 | (char *) "self",(char *) "count", NULL | |
9401 | }; | |
9402 | ||
9403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
9404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9406 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9407 | if (PyErr_Occurred()) SWIG_fail; | |
9408 | { | |
9409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9410 | (arg1)->SetLineCount(arg2); | |
9411 | ||
9412 | wxPyEndAllowThreads(__tstate); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
9414 | } | |
9415 | Py_INCREF(Py_None); resultobj = Py_None; | |
9416 | return resultobj; | |
9417 | fail: | |
9418 | return NULL; | |
9419 | } | |
9420 | ||
9421 | ||
9422 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9423 | PyObject *resultobj; | |
9424 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9425 | size_t arg2 ; | |
9426 | bool result; | |
9427 | PyObject * obj0 = 0 ; | |
9428 | PyObject * obj1 = 0 ; | |
9429 | char *kwnames[] = { | |
9430 | (char *) "self",(char *) "line", NULL | |
9431 | }; | |
9432 | ||
9433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
9434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9436 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9437 | if (PyErr_Occurred()) SWIG_fail; | |
9438 | { | |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | result = (bool)(arg1)->ScrollToLine(arg2); | |
9441 | ||
9442 | wxPyEndAllowThreads(__tstate); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | } | |
9445 | { | |
9446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9447 | } | |
9448 | return resultobj; | |
9449 | fail: | |
9450 | return NULL; | |
9451 | } | |
9452 | ||
9453 | ||
9454 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9455 | PyObject *resultobj; | |
9456 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9457 | int arg2 ; | |
9458 | bool result; | |
9459 | PyObject * obj0 = 0 ; | |
9460 | PyObject * obj1 = 0 ; | |
9461 | char *kwnames[] = { | |
9462 | (char *) "self",(char *) "lines", NULL | |
9463 | }; | |
9464 | ||
9465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
9466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9468 | arg2 = (int) SWIG_AsInt(obj1); | |
9469 | if (PyErr_Occurred()) SWIG_fail; | |
9470 | { | |
9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9472 | result = (bool)(arg1)->ScrollLines(arg2); | |
9473 | ||
9474 | wxPyEndAllowThreads(__tstate); | |
9475 | if (PyErr_Occurred()) SWIG_fail; | |
9476 | } | |
9477 | { | |
9478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9479 | } | |
9480 | return resultobj; | |
9481 | fail: | |
9482 | return NULL; | |
9483 | } | |
9484 | ||
9485 | ||
9486 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9487 | PyObject *resultobj; | |
9488 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9489 | int arg2 ; | |
9490 | bool result; | |
9491 | PyObject * obj0 = 0 ; | |
9492 | PyObject * obj1 = 0 ; | |
9493 | char *kwnames[] = { | |
9494 | (char *) "self",(char *) "pages", NULL | |
9495 | }; | |
9496 | ||
9497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
9498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9500 | arg2 = (int) SWIG_AsInt(obj1); | |
9501 | if (PyErr_Occurred()) SWIG_fail; | |
9502 | { | |
9503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9504 | result = (bool)(arg1)->ScrollPages(arg2); | |
9505 | ||
9506 | wxPyEndAllowThreads(__tstate); | |
9507 | if (PyErr_Occurred()) SWIG_fail; | |
9508 | } | |
9509 | { | |
9510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9511 | } | |
9512 | return resultobj; | |
9513 | fail: | |
9514 | return NULL; | |
9515 | } | |
9516 | ||
9517 | ||
9518 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9519 | PyObject *resultobj; | |
9520 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9521 | size_t arg2 ; | |
9522 | PyObject * obj0 = 0 ; | |
9523 | PyObject * obj1 = 0 ; | |
9524 | char *kwnames[] = { | |
9525 | (char *) "self",(char *) "line", NULL | |
9526 | }; | |
9527 | ||
9528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
9529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9531 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9532 | if (PyErr_Occurred()) SWIG_fail; | |
9533 | { | |
9534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9535 | (arg1)->RefreshLine(arg2); | |
9536 | ||
9537 | wxPyEndAllowThreads(__tstate); | |
9538 | if (PyErr_Occurred()) SWIG_fail; | |
9539 | } | |
9540 | Py_INCREF(Py_None); resultobj = Py_None; | |
9541 | return resultobj; | |
9542 | fail: | |
9543 | return NULL; | |
9544 | } | |
9545 | ||
9546 | ||
9547 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9548 | PyObject *resultobj; | |
9549 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9550 | size_t arg2 ; | |
9551 | size_t arg3 ; | |
9552 | PyObject * obj0 = 0 ; | |
9553 | PyObject * obj1 = 0 ; | |
9554 | PyObject * obj2 = 0 ; | |
9555 | char *kwnames[] = { | |
9556 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9557 | }; | |
9558 | ||
9559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",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 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9563 | if (PyErr_Occurred()) SWIG_fail; | |
9564 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
9566 | { | |
9567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9568 | (arg1)->RefreshLines(arg2,arg3); | |
9569 | ||
9570 | wxPyEndAllowThreads(__tstate); | |
9571 | if (PyErr_Occurred()) SWIG_fail; | |
9572 | } | |
9573 | Py_INCREF(Py_None); resultobj = Py_None; | |
9574 | return resultobj; | |
9575 | fail: | |
9576 | return NULL; | |
9577 | } | |
9578 | ||
9579 | ||
9580 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9581 | PyObject *resultobj; | |
9582 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9583 | int arg2 ; | |
9584 | int arg3 ; | |
9585 | int result; | |
9586 | PyObject * obj0 = 0 ; | |
9587 | PyObject * obj1 = 0 ; | |
9588 | PyObject * obj2 = 0 ; | |
9589 | char *kwnames[] = { | |
9590 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9591 | }; | |
9592 | ||
9593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9596 | arg2 = (int) SWIG_AsInt(obj1); | |
9597 | if (PyErr_Occurred()) SWIG_fail; | |
9598 | arg3 = (int) SWIG_AsInt(obj2); | |
9599 | if (PyErr_Occurred()) SWIG_fail; | |
9600 | { | |
9601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9602 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9603 | ||
9604 | wxPyEndAllowThreads(__tstate); | |
9605 | if (PyErr_Occurred()) SWIG_fail; | |
9606 | } | |
9607 | resultobj = SWIG_FromInt((int)result); | |
9608 | return resultobj; | |
9609 | fail: | |
9610 | return NULL; | |
9611 | } | |
9612 | ||
9613 | ||
9614 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9615 | PyObject *resultobj; | |
9616 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9617 | wxPoint *arg2 = 0 ; | |
9618 | int result; | |
9619 | wxPoint temp2 ; | |
9620 | PyObject * obj0 = 0 ; | |
9621 | PyObject * obj1 = 0 ; | |
9622 | char *kwnames[] = { | |
9623 | (char *) "self",(char *) "pt", NULL | |
9624 | }; | |
9625 | ||
9626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9629 | { | |
9630 | arg2 = &temp2; | |
9631 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9632 | } | |
9633 | { | |
9634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9635 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9636 | ||
9637 | wxPyEndAllowThreads(__tstate); | |
9638 | if (PyErr_Occurred()) SWIG_fail; | |
9639 | } | |
9640 | resultobj = SWIG_FromInt((int)result); | |
9641 | return resultobj; | |
9642 | fail: | |
9643 | return NULL; | |
9644 | } | |
9645 | ||
9646 | ||
9647 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9648 | PyObject *resultobj; | |
9649 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9650 | PyObject * obj0 = 0 ; | |
9651 | char *kwnames[] = { | |
9652 | (char *) "self", NULL | |
9653 | }; | |
9654 | ||
9655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9658 | { | |
9659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9660 | (arg1)->RefreshAll(); | |
9661 | ||
9662 | wxPyEndAllowThreads(__tstate); | |
9663 | if (PyErr_Occurred()) SWIG_fail; | |
9664 | } | |
9665 | Py_INCREF(Py_None); resultobj = Py_None; | |
9666 | return resultobj; | |
9667 | fail: | |
9668 | return NULL; | |
9669 | } | |
9670 | ||
9671 | ||
9672 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9673 | PyObject *resultobj; | |
9674 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9675 | size_t result; | |
9676 | PyObject * obj0 = 0 ; | |
9677 | char *kwnames[] = { | |
9678 | (char *) "self", NULL | |
9679 | }; | |
9680 | ||
9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9684 | { | |
9685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9686 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9687 | ||
9688 | wxPyEndAllowThreads(__tstate); | |
9689 | if (PyErr_Occurred()) SWIG_fail; | |
9690 | } | |
9691 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9692 | return resultobj; | |
9693 | fail: | |
9694 | return NULL; | |
9695 | } | |
9696 | ||
9697 | ||
9698 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9699 | PyObject *resultobj; | |
9700 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9701 | size_t result; | |
9702 | PyObject * obj0 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9710 | { | |
9711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9712 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9713 | ||
9714 | wxPyEndAllowThreads(__tstate); | |
9715 | if (PyErr_Occurred()) SWIG_fail; | |
9716 | } | |
9717 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9718 | return resultobj; | |
9719 | fail: | |
9720 | return NULL; | |
9721 | } | |
9722 | ||
9723 | ||
9724 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9725 | PyObject *resultobj; | |
9726 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9727 | size_t result; | |
9728 | PyObject * obj0 = 0 ; | |
9729 | char *kwnames[] = { | |
9730 | (char *) "self", NULL | |
9731 | }; | |
9732 | ||
9733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9736 | { | |
9737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9738 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9739 | ||
9740 | wxPyEndAllowThreads(__tstate); | |
9741 | if (PyErr_Occurred()) SWIG_fail; | |
9742 | } | |
9743 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
9744 | return resultobj; | |
9745 | fail: | |
9746 | return NULL; | |
9747 | } | |
9748 | ||
9749 | ||
9750 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9751 | PyObject *resultobj; | |
9752 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9753 | size_t arg2 ; | |
9754 | bool result; | |
9755 | PyObject * obj0 = 0 ; | |
9756 | PyObject * obj1 = 0 ; | |
9757 | char *kwnames[] = { | |
9758 | (char *) "self",(char *) "line", NULL | |
9759 | }; | |
9760 | ||
9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVScrolledWindow, | |
9763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9764 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
9765 | if (PyErr_Occurred()) SWIG_fail; | |
9766 | { | |
9767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9768 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9769 | ||
9770 | wxPyEndAllowThreads(__tstate); | |
9771 | if (PyErr_Occurred()) SWIG_fail; | |
9772 | } | |
9773 | { | |
9774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9775 | } | |
9776 | return resultobj; | |
9777 | fail: | |
9778 | return NULL; | |
9779 | } | |
9780 | ||
9781 | ||
9782 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9783 | PyObject *obj; | |
9784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9785 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9786 | Py_INCREF(obj); | |
9787 | return Py_BuildValue((char *)""); | |
9788 | } | |
9789 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { | |
9790 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9791 | return 1; | |
9792 | } | |
9793 | ||
9794 | ||
9795 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9796 | PyObject *pyobj; | |
9797 | ||
9798 | { | |
9799 | #if wxUSE_UNICODE | |
9800 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9801 | #else | |
9802 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9803 | #endif | |
9804 | } | |
9805 | return pyobj; | |
9806 | } | |
9807 | ||
9808 | ||
9809 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9810 | PyObject *resultobj; | |
9811 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9812 | int arg2 = (int) wxID_ANY ; | |
9813 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9814 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9815 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9816 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9817 | long arg5 = (long) 0 ; | |
9818 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9819 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9820 | wxPyVListBox *result; | |
9821 | wxPoint temp3 ; | |
9822 | wxSize temp4 ; | |
9823 | bool temp6 = False ; | |
9824 | PyObject * obj0 = 0 ; | |
9825 | PyObject * obj1 = 0 ; | |
9826 | PyObject * obj2 = 0 ; | |
9827 | PyObject * obj3 = 0 ; | |
9828 | PyObject * obj4 = 0 ; | |
9829 | PyObject * obj5 = 0 ; | |
9830 | char *kwnames[] = { | |
9831 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9832 | }; | |
9833 | ||
9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9837 | if (obj1) { | |
9838 | arg2 = (int) SWIG_AsInt(obj1); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | } | |
9841 | if (obj2) { | |
9842 | { | |
9843 | arg3 = &temp3; | |
9844 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9845 | } | |
9846 | } | |
9847 | if (obj3) { | |
9848 | { | |
9849 | arg4 = &temp4; | |
9850 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9851 | } | |
9852 | } | |
9853 | if (obj4) { | |
9854 | arg5 = (long) SWIG_AsLong(obj4); | |
9855 | if (PyErr_Occurred()) SWIG_fail; | |
9856 | } | |
9857 | if (obj5) { | |
9858 | { | |
9859 | arg6 = wxString_in_helper(obj5); | |
9860 | if (arg6 == NULL) SWIG_fail; | |
9861 | temp6 = True; | |
9862 | } | |
9863 | } | |
9864 | { | |
0439c23b | 9865 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9867 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9868 | ||
9869 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9870 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9871 | } |
9872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9873 | { | |
9874 | if (temp6) | |
9875 | delete arg6; | |
9876 | } | |
9877 | return resultobj; | |
9878 | fail: | |
9879 | { | |
9880 | if (temp6) | |
9881 | delete arg6; | |
9882 | } | |
9883 | return NULL; | |
9884 | } | |
9885 | ||
9886 | ||
9887 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject *resultobj; | |
9889 | wxPyVListBox *result; | |
9890 | char *kwnames[] = { | |
9891 | NULL | |
9892 | }; | |
9893 | ||
9894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9895 | { | |
0439c23b | 9896 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9898 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9899 | ||
9900 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9901 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9902 | } |
9903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyVListBox, 1); | |
9904 | return resultobj; | |
9905 | fail: | |
9906 | return NULL; | |
9907 | } | |
9908 | ||
9909 | ||
9910 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9911 | PyObject *resultobj; | |
9912 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9913 | PyObject *arg2 = (PyObject *) 0 ; | |
9914 | PyObject *arg3 = (PyObject *) 0 ; | |
9915 | PyObject * obj0 = 0 ; | |
9916 | PyObject * obj1 = 0 ; | |
9917 | PyObject * obj2 = 0 ; | |
9918 | char *kwnames[] = { | |
9919 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9920 | }; | |
9921 | ||
9922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9925 | arg2 = obj1; | |
9926 | arg3 = obj2; | |
9927 | { | |
9928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9929 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9930 | ||
9931 | wxPyEndAllowThreads(__tstate); | |
9932 | if (PyErr_Occurred()) SWIG_fail; | |
9933 | } | |
9934 | Py_INCREF(Py_None); resultobj = Py_None; | |
9935 | return resultobj; | |
9936 | fail: | |
9937 | return NULL; | |
9938 | } | |
9939 | ||
9940 | ||
9941 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject *resultobj; | |
9943 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9944 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9945 | int arg3 = (int) wxID_ANY ; | |
9946 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9947 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9948 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9949 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9950 | long arg6 = (long) 0 ; | |
9951 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9952 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9953 | bool result; | |
9954 | wxPoint temp4 ; | |
9955 | wxSize temp5 ; | |
9956 | bool temp7 = False ; | |
9957 | PyObject * obj0 = 0 ; | |
9958 | PyObject * obj1 = 0 ; | |
9959 | PyObject * obj2 = 0 ; | |
9960 | PyObject * obj3 = 0 ; | |
9961 | PyObject * obj4 = 0 ; | |
9962 | PyObject * obj5 = 0 ; | |
9963 | PyObject * obj6 = 0 ; | |
9964 | char *kwnames[] = { | |
9965 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9966 | }; | |
9967 | ||
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
9970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9971 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9973 | if (obj2) { | |
9974 | arg3 = (int) SWIG_AsInt(obj2); | |
9975 | if (PyErr_Occurred()) SWIG_fail; | |
9976 | } | |
9977 | if (obj3) { | |
9978 | { | |
9979 | arg4 = &temp4; | |
9980 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9981 | } | |
9982 | } | |
9983 | if (obj4) { | |
9984 | { | |
9985 | arg5 = &temp5; | |
9986 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9987 | } | |
9988 | } | |
9989 | if (obj5) { | |
9990 | arg6 = (long) SWIG_AsLong(obj5); | |
9991 | if (PyErr_Occurred()) SWIG_fail; | |
9992 | } | |
9993 | if (obj6) { | |
9994 | { | |
9995 | arg7 = wxString_in_helper(obj6); | |
9996 | if (arg7 == NULL) SWIG_fail; | |
9997 | temp7 = True; | |
9998 | } | |
9999 | } | |
10000 | { | |
10001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10002 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10003 | ||
10004 | wxPyEndAllowThreads(__tstate); | |
10005 | if (PyErr_Occurred()) SWIG_fail; | |
10006 | } | |
10007 | { | |
10008 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10009 | } | |
10010 | { | |
10011 | if (temp7) | |
10012 | delete arg7; | |
10013 | } | |
10014 | return resultobj; | |
10015 | fail: | |
10016 | { | |
10017 | if (temp7) | |
10018 | delete arg7; | |
10019 | } | |
10020 | return NULL; | |
10021 | } | |
10022 | ||
10023 | ||
10024 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10025 | PyObject *resultobj; | |
10026 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10027 | size_t result; | |
10028 | PyObject * obj0 = 0 ; | |
10029 | char *kwnames[] = { | |
10030 | (char *) "self", NULL | |
10031 | }; | |
10032 | ||
10033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
10034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10036 | { | |
10037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10038 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
10039 | ||
10040 | wxPyEndAllowThreads(__tstate); | |
10041 | if (PyErr_Occurred()) SWIG_fail; | |
10042 | } | |
10043 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
10044 | return resultobj; | |
10045 | fail: | |
10046 | return NULL; | |
10047 | } | |
10048 | ||
10049 | ||
10050 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10051 | PyObject *resultobj; | |
10052 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10053 | bool result; | |
10054 | PyObject * obj0 = 0 ; | |
10055 | char *kwnames[] = { | |
10056 | (char *) "self", NULL | |
10057 | }; | |
10058 | ||
10059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
10060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10062 | { | |
10063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10064 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
10065 | ||
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
10069 | { | |
10070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10071 | } | |
10072 | return resultobj; | |
10073 | fail: | |
10074 | return NULL; | |
10075 | } | |
10076 | ||
10077 | ||
10078 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10079 | PyObject *resultobj; | |
10080 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10081 | int result; | |
10082 | PyObject * obj0 = 0 ; | |
10083 | char *kwnames[] = { | |
10084 | (char *) "self", NULL | |
10085 | }; | |
10086 | ||
10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
10088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10090 | { | |
10091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10092 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
10093 | ||
10094 | wxPyEndAllowThreads(__tstate); | |
10095 | if (PyErr_Occurred()) SWIG_fail; | |
10096 | } | |
10097 | resultobj = SWIG_FromInt((int)result); | |
10098 | return resultobj; | |
10099 | fail: | |
10100 | return NULL; | |
10101 | } | |
10102 | ||
10103 | ||
10104 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10105 | PyObject *resultobj; | |
10106 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10107 | size_t arg2 ; | |
10108 | bool result; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | PyObject * obj1 = 0 ; | |
10111 | char *kwnames[] = { | |
10112 | (char *) "self",(char *) "item", NULL | |
10113 | }; | |
10114 | ||
10115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
10116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10118 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10119 | if (PyErr_Occurred()) SWIG_fail; | |
10120 | { | |
10121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10122 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
10123 | ||
10124 | wxPyEndAllowThreads(__tstate); | |
10125 | if (PyErr_Occurred()) SWIG_fail; | |
10126 | } | |
10127 | { | |
10128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10129 | } | |
10130 | return resultobj; | |
10131 | fail: | |
10132 | return NULL; | |
10133 | } | |
10134 | ||
10135 | ||
10136 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10137 | PyObject *resultobj; | |
10138 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10139 | size_t arg2 ; | |
10140 | bool result; | |
10141 | PyObject * obj0 = 0 ; | |
10142 | PyObject * obj1 = 0 ; | |
10143 | char *kwnames[] = { | |
10144 | (char *) "self",(char *) "item", NULL | |
10145 | }; | |
10146 | ||
10147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
10148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10150 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10151 | if (PyErr_Occurred()) SWIG_fail; | |
10152 | { | |
10153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10154 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
10155 | ||
10156 | wxPyEndAllowThreads(__tstate); | |
10157 | if (PyErr_Occurred()) SWIG_fail; | |
10158 | } | |
10159 | { | |
10160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10161 | } | |
10162 | return resultobj; | |
10163 | fail: | |
10164 | return NULL; | |
10165 | } | |
10166 | ||
10167 | ||
10168 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10169 | PyObject *resultobj; | |
10170 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10171 | size_t result; | |
10172 | PyObject * obj0 = 0 ; | |
10173 | char *kwnames[] = { | |
10174 | (char *) "self", NULL | |
10175 | }; | |
10176 | ||
10177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
10178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10180 | { | |
10181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10182 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
10183 | ||
10184 | wxPyEndAllowThreads(__tstate); | |
10185 | if (PyErr_Occurred()) SWIG_fail; | |
10186 | } | |
10187 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
10188 | return resultobj; | |
10189 | fail: | |
10190 | return NULL; | |
10191 | } | |
10192 | ||
10193 | ||
10194 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10195 | PyObject *resultobj; | |
10196 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
09c21d3b | 10197 | PyObject *result; |
d55e5bfc | 10198 | PyObject * obj0 = 0 ; |
d55e5bfc | 10199 | char *kwnames[] = { |
09c21d3b | 10200 | (char *) "self", NULL |
d55e5bfc RD |
10201 | }; |
10202 | ||
09c21d3b | 10203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetFirstSelected",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
10204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, |
10205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
10206 | { |
10207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
09c21d3b | 10208 | result = (PyObject *)wxPyVListBox_GetFirstSelected(arg1); |
d55e5bfc RD |
10209 | |
10210 | wxPyEndAllowThreads(__tstate); | |
10211 | if (PyErr_Occurred()) SWIG_fail; | |
10212 | } | |
09c21d3b | 10213 | resultobj = result; |
d55e5bfc RD |
10214 | return resultobj; |
10215 | fail: | |
10216 | return NULL; | |
10217 | } | |
10218 | ||
10219 | ||
10220 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10221 | PyObject *resultobj; | |
10222 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
09c21d3b RD |
10223 | unsigned long arg2 ; |
10224 | PyObject *result; | |
d55e5bfc RD |
10225 | PyObject * obj0 = 0 ; |
10226 | PyObject * obj1 = 0 ; | |
10227 | char *kwnames[] = { | |
10228 | (char *) "self",(char *) "cookie", NULL | |
10229 | }; | |
10230 | ||
10231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
10232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
09c21d3b RD |
10234 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10235 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
10236 | { |
10237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
09c21d3b | 10238 | result = (PyObject *)wxPyVListBox_GetNextSelected(arg1,arg2); |
d55e5bfc RD |
10239 | |
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
09c21d3b | 10243 | resultobj = result; |
d55e5bfc RD |
10244 | return resultobj; |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10253 | wxPoint result; | |
10254 | PyObject * obj0 = 0 ; | |
10255 | char *kwnames[] = { | |
10256 | (char *) "self", NULL | |
10257 | }; | |
10258 | ||
10259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
10260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10262 | { | |
10263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10264 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
10265 | ||
10266 | wxPyEndAllowThreads(__tstate); | |
10267 | if (PyErr_Occurred()) SWIG_fail; | |
10268 | } | |
10269 | { | |
10270 | wxPoint * resultptr; | |
10271 | resultptr = new wxPoint((wxPoint &) result); | |
10272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
10273 | } | |
10274 | return resultobj; | |
10275 | fail: | |
10276 | return NULL; | |
10277 | } | |
10278 | ||
10279 | ||
10280 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10281 | PyObject *resultobj; | |
10282 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10283 | wxColour *result; | |
10284 | PyObject * obj0 = 0 ; | |
10285 | char *kwnames[] = { | |
10286 | (char *) "self", NULL | |
10287 | }; | |
10288 | ||
10289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
10290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10292 | { | |
10293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10294 | { | |
10295 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
10296 | result = (wxColour *) &_result_ref; | |
10297 | } | |
10298 | ||
10299 | wxPyEndAllowThreads(__tstate); | |
10300 | if (PyErr_Occurred()) SWIG_fail; | |
10301 | } | |
10302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
10303 | return resultobj; | |
10304 | fail: | |
10305 | return NULL; | |
10306 | } | |
10307 | ||
10308 | ||
10309 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10310 | PyObject *resultobj; | |
10311 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10312 | size_t arg2 ; | |
10313 | PyObject * obj0 = 0 ; | |
10314 | PyObject * obj1 = 0 ; | |
10315 | char *kwnames[] = { | |
10316 | (char *) "self",(char *) "count", NULL | |
10317 | }; | |
10318 | ||
10319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10322 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10323 | if (PyErr_Occurred()) SWIG_fail; | |
10324 | { | |
10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10326 | (arg1)->SetItemCount(arg2); | |
10327 | ||
10328 | wxPyEndAllowThreads(__tstate); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
10330 | } | |
10331 | Py_INCREF(Py_None); resultobj = Py_None; | |
10332 | return resultobj; | |
10333 | fail: | |
10334 | return NULL; | |
10335 | } | |
10336 | ||
10337 | ||
10338 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10339 | PyObject *resultobj; | |
10340 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10341 | PyObject * obj0 = 0 ; | |
10342 | char *kwnames[] = { | |
10343 | (char *) "self", NULL | |
10344 | }; | |
10345 | ||
10346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
10347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10349 | { | |
10350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10351 | (arg1)->Clear(); | |
10352 | ||
10353 | wxPyEndAllowThreads(__tstate); | |
10354 | if (PyErr_Occurred()) SWIG_fail; | |
10355 | } | |
10356 | Py_INCREF(Py_None); resultobj = Py_None; | |
10357 | return resultobj; | |
10358 | fail: | |
10359 | return NULL; | |
10360 | } | |
10361 | ||
10362 | ||
10363 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10364 | PyObject *resultobj; | |
10365 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10366 | int arg2 ; | |
10367 | PyObject * obj0 = 0 ; | |
10368 | PyObject * obj1 = 0 ; | |
10369 | char *kwnames[] = { | |
10370 | (char *) "self",(char *) "selection", NULL | |
10371 | }; | |
10372 | ||
10373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
10374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10376 | arg2 = (int) SWIG_AsInt(obj1); | |
10377 | if (PyErr_Occurred()) SWIG_fail; | |
10378 | { | |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10380 | (arg1)->SetSelection(arg2); | |
10381 | ||
10382 | wxPyEndAllowThreads(__tstate); | |
10383 | if (PyErr_Occurred()) SWIG_fail; | |
10384 | } | |
10385 | Py_INCREF(Py_None); resultobj = Py_None; | |
10386 | return resultobj; | |
10387 | fail: | |
10388 | return NULL; | |
10389 | } | |
10390 | ||
10391 | ||
10392 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject *resultobj; | |
10394 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10395 | size_t arg2 ; | |
10396 | bool arg3 = (bool) True ; | |
10397 | bool result; | |
10398 | PyObject * obj0 = 0 ; | |
10399 | PyObject * obj1 = 0 ; | |
10400 | PyObject * obj2 = 0 ; | |
10401 | char *kwnames[] = { | |
10402 | (char *) "self",(char *) "item",(char *) "select", NULL | |
10403 | }; | |
10404 | ||
10405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10408 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10409 | if (PyErr_Occurred()) SWIG_fail; | |
10410 | if (obj2) { | |
10411 | arg3 = (bool) SWIG_AsBool(obj2); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
10413 | } | |
10414 | { | |
10415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10416 | result = (bool)(arg1)->Select(arg2,arg3); | |
10417 | ||
10418 | wxPyEndAllowThreads(__tstate); | |
10419 | if (PyErr_Occurred()) SWIG_fail; | |
10420 | } | |
10421 | { | |
10422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10423 | } | |
10424 | return resultobj; | |
10425 | fail: | |
10426 | return NULL; | |
10427 | } | |
10428 | ||
10429 | ||
10430 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10431 | PyObject *resultobj; | |
10432 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10433 | size_t arg2 ; | |
10434 | size_t arg3 ; | |
10435 | bool result; | |
10436 | PyObject * obj0 = 0 ; | |
10437 | PyObject * obj1 = 0 ; | |
10438 | PyObject * obj2 = 0 ; | |
10439 | char *kwnames[] = { | |
10440 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10441 | }; | |
10442 | ||
10443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10446 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10447 | if (PyErr_Occurred()) SWIG_fail; | |
10448 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
10449 | if (PyErr_Occurred()) SWIG_fail; | |
10450 | { | |
10451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10452 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
10453 | ||
10454 | wxPyEndAllowThreads(__tstate); | |
10455 | if (PyErr_Occurred()) SWIG_fail; | |
10456 | } | |
10457 | { | |
10458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10459 | } | |
10460 | return resultobj; | |
10461 | fail: | |
10462 | return NULL; | |
10463 | } | |
10464 | ||
10465 | ||
10466 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10467 | PyObject *resultobj; | |
10468 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10469 | size_t arg2 ; | |
10470 | PyObject * obj0 = 0 ; | |
10471 | PyObject * obj1 = 0 ; | |
10472 | char *kwnames[] = { | |
10473 | (char *) "self",(char *) "item", NULL | |
10474 | }; | |
10475 | ||
10476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
10477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10479 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10480 | if (PyErr_Occurred()) SWIG_fail; | |
10481 | { | |
10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10483 | (arg1)->Toggle(arg2); | |
10484 | ||
10485 | wxPyEndAllowThreads(__tstate); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | Py_INCREF(Py_None); resultobj = Py_None; | |
10489 | return resultobj; | |
10490 | fail: | |
10491 | return NULL; | |
10492 | } | |
10493 | ||
10494 | ||
10495 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10496 | PyObject *resultobj; | |
10497 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10498 | bool result; | |
10499 | PyObject * obj0 = 0 ; | |
10500 | char *kwnames[] = { | |
10501 | (char *) "self", NULL | |
10502 | }; | |
10503 | ||
10504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
10505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10507 | { | |
10508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10509 | result = (bool)(arg1)->SelectAll(); | |
10510 | ||
10511 | wxPyEndAllowThreads(__tstate); | |
10512 | if (PyErr_Occurred()) SWIG_fail; | |
10513 | } | |
10514 | { | |
10515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10516 | } | |
10517 | return resultobj; | |
10518 | fail: | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
10523 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10524 | PyObject *resultobj; | |
10525 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10526 | bool result; | |
10527 | PyObject * obj0 = 0 ; | |
10528 | char *kwnames[] = { | |
10529 | (char *) "self", NULL | |
10530 | }; | |
10531 | ||
10532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
10533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10535 | { | |
10536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10537 | result = (bool)(arg1)->DeselectAll(); | |
10538 | ||
10539 | wxPyEndAllowThreads(__tstate); | |
10540 | if (PyErr_Occurred()) SWIG_fail; | |
10541 | } | |
10542 | { | |
10543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10544 | } | |
10545 | return resultobj; | |
10546 | fail: | |
10547 | return NULL; | |
10548 | } | |
10549 | ||
10550 | ||
10551 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10552 | PyObject *resultobj; | |
10553 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10554 | wxPoint *arg2 = 0 ; | |
10555 | wxPoint temp2 ; | |
10556 | PyObject * obj0 = 0 ; | |
10557 | PyObject * obj1 = 0 ; | |
10558 | char *kwnames[] = { | |
10559 | (char *) "self",(char *) "pt", NULL | |
10560 | }; | |
10561 | ||
10562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10565 | { | |
10566 | arg2 = &temp2; | |
10567 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10568 | } | |
10569 | { | |
10570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10571 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10572 | ||
10573 | wxPyEndAllowThreads(__tstate); | |
10574 | if (PyErr_Occurred()) SWIG_fail; | |
10575 | } | |
10576 | Py_INCREF(Py_None); resultobj = Py_None; | |
10577 | return resultobj; | |
10578 | fail: | |
10579 | return NULL; | |
10580 | } | |
10581 | ||
10582 | ||
10583 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10584 | PyObject *resultobj; | |
10585 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10586 | int arg2 ; | |
10587 | int arg3 ; | |
10588 | PyObject * obj0 = 0 ; | |
10589 | PyObject * obj1 = 0 ; | |
10590 | PyObject * obj2 = 0 ; | |
10591 | char *kwnames[] = { | |
10592 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10593 | }; | |
10594 | ||
10595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10598 | arg2 = (int) SWIG_AsInt(obj1); | |
10599 | if (PyErr_Occurred()) SWIG_fail; | |
10600 | arg3 = (int) SWIG_AsInt(obj2); | |
10601 | if (PyErr_Occurred()) SWIG_fail; | |
10602 | { | |
10603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10604 | (arg1)->SetMargins(arg2,arg3); | |
10605 | ||
10606 | wxPyEndAllowThreads(__tstate); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
10609 | Py_INCREF(Py_None); resultobj = Py_None; | |
10610 | return resultobj; | |
10611 | fail: | |
10612 | return NULL; | |
10613 | } | |
10614 | ||
10615 | ||
10616 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10617 | PyObject *resultobj; | |
10618 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10619 | wxColour *arg2 = 0 ; | |
10620 | wxColour temp2 ; | |
10621 | PyObject * obj0 = 0 ; | |
10622 | PyObject * obj1 = 0 ; | |
10623 | char *kwnames[] = { | |
10624 | (char *) "self",(char *) "col", NULL | |
10625 | }; | |
10626 | ||
10627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyVListBox, | |
10629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10630 | { | |
10631 | arg2 = &temp2; | |
10632 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10633 | } | |
10634 | { | |
10635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10636 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10637 | ||
10638 | wxPyEndAllowThreads(__tstate); | |
10639 | if (PyErr_Occurred()) SWIG_fail; | |
10640 | } | |
10641 | Py_INCREF(Py_None); resultobj = Py_None; | |
10642 | return resultobj; | |
10643 | fail: | |
10644 | return NULL; | |
10645 | } | |
10646 | ||
10647 | ||
10648 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10649 | PyObject *obj; | |
10650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10651 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10652 | Py_INCREF(obj); | |
10653 | return Py_BuildValue((char *)""); | |
10654 | } | |
10655 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10658 | int arg2 = (int) wxID_ANY ; | |
10659 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10660 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10661 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10662 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10663 | long arg5 = (long) 0 ; | |
10664 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10665 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10666 | wxPyHtmlListBox *result; | |
10667 | wxPoint temp3 ; | |
10668 | wxSize temp4 ; | |
10669 | bool temp6 = False ; | |
10670 | PyObject * obj0 = 0 ; | |
10671 | PyObject * obj1 = 0 ; | |
10672 | PyObject * obj2 = 0 ; | |
10673 | PyObject * obj3 = 0 ; | |
10674 | PyObject * obj4 = 0 ; | |
10675 | PyObject * obj5 = 0 ; | |
10676 | char *kwnames[] = { | |
10677 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10678 | }; | |
10679 | ||
10680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10683 | if (obj1) { | |
10684 | arg2 = (int) SWIG_AsInt(obj1); | |
10685 | if (PyErr_Occurred()) SWIG_fail; | |
10686 | } | |
10687 | if (obj2) { | |
10688 | { | |
10689 | arg3 = &temp3; | |
10690 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10691 | } | |
10692 | } | |
10693 | if (obj3) { | |
10694 | { | |
10695 | arg4 = &temp4; | |
10696 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10697 | } | |
10698 | } | |
10699 | if (obj4) { | |
10700 | arg5 = (long) SWIG_AsLong(obj4); | |
10701 | if (PyErr_Occurred()) SWIG_fail; | |
10702 | } | |
10703 | if (obj5) { | |
10704 | { | |
10705 | arg6 = wxString_in_helper(obj5); | |
10706 | if (arg6 == NULL) SWIG_fail; | |
10707 | temp6 = True; | |
10708 | } | |
10709 | } | |
10710 | { | |
0439c23b | 10711 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10713 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10714 | ||
10715 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10716 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10717 | } |
10718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10719 | { | |
10720 | if (temp6) | |
10721 | delete arg6; | |
10722 | } | |
10723 | return resultobj; | |
10724 | fail: | |
10725 | { | |
10726 | if (temp6) | |
10727 | delete arg6; | |
10728 | } | |
10729 | return NULL; | |
10730 | } | |
10731 | ||
10732 | ||
10733 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10734 | PyObject *resultobj; | |
10735 | wxPyHtmlListBox *result; | |
10736 | char *kwnames[] = { | |
10737 | NULL | |
10738 | }; | |
10739 | ||
10740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10741 | { | |
0439c23b | 10742 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10744 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10745 | ||
10746 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10747 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10748 | } |
10749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10750 | return resultobj; | |
10751 | fail: | |
10752 | return NULL; | |
10753 | } | |
10754 | ||
10755 | ||
10756 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10757 | PyObject *resultobj; | |
10758 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10759 | PyObject *arg2 = (PyObject *) 0 ; | |
10760 | PyObject *arg3 = (PyObject *) 0 ; | |
10761 | PyObject * obj0 = 0 ; | |
10762 | PyObject * obj1 = 0 ; | |
10763 | PyObject * obj2 = 0 ; | |
10764 | char *kwnames[] = { | |
10765 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10766 | }; | |
10767 | ||
10768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10771 | arg2 = obj1; | |
10772 | arg3 = obj2; | |
10773 | { | |
10774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10775 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10776 | ||
10777 | wxPyEndAllowThreads(__tstate); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
10780 | Py_INCREF(Py_None); resultobj = Py_None; | |
10781 | return resultobj; | |
10782 | fail: | |
10783 | return NULL; | |
10784 | } | |
10785 | ||
10786 | ||
10787 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10788 | PyObject *resultobj; | |
10789 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10790 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10791 | int arg3 = (int) wxID_ANY ; | |
10792 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10793 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10794 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10795 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10796 | long arg6 = (long) 0 ; | |
10797 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10798 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10799 | bool result; | |
10800 | wxPoint temp4 ; | |
10801 | wxSize temp5 ; | |
10802 | bool temp7 = False ; | |
10803 | PyObject * obj0 = 0 ; | |
10804 | PyObject * obj1 = 0 ; | |
10805 | PyObject * obj2 = 0 ; | |
10806 | PyObject * obj3 = 0 ; | |
10807 | PyObject * obj4 = 0 ; | |
10808 | PyObject * obj5 = 0 ; | |
10809 | PyObject * obj6 = 0 ; | |
10810 | char *kwnames[] = { | |
10811 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10812 | }; | |
10813 | ||
10814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10819 | if (obj2) { | |
10820 | arg3 = (int) SWIG_AsInt(obj2); | |
10821 | if (PyErr_Occurred()) SWIG_fail; | |
10822 | } | |
10823 | if (obj3) { | |
10824 | { | |
10825 | arg4 = &temp4; | |
10826 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10827 | } | |
10828 | } | |
10829 | if (obj4) { | |
10830 | { | |
10831 | arg5 = &temp5; | |
10832 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10833 | } | |
10834 | } | |
10835 | if (obj5) { | |
10836 | arg6 = (long) SWIG_AsLong(obj5); | |
10837 | if (PyErr_Occurred()) SWIG_fail; | |
10838 | } | |
10839 | if (obj6) { | |
10840 | { | |
10841 | arg7 = wxString_in_helper(obj6); | |
10842 | if (arg7 == NULL) SWIG_fail; | |
10843 | temp7 = True; | |
10844 | } | |
10845 | } | |
10846 | { | |
10847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10848 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10849 | ||
10850 | wxPyEndAllowThreads(__tstate); | |
10851 | if (PyErr_Occurred()) SWIG_fail; | |
10852 | } | |
10853 | { | |
10854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10855 | } | |
10856 | { | |
10857 | if (temp7) | |
10858 | delete arg7; | |
10859 | } | |
10860 | return resultobj; | |
10861 | fail: | |
10862 | { | |
10863 | if (temp7) | |
10864 | delete arg7; | |
10865 | } | |
10866 | return NULL; | |
10867 | } | |
10868 | ||
10869 | ||
10870 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10871 | PyObject *resultobj; | |
10872 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10873 | PyObject * obj0 = 0 ; | |
10874 | char *kwnames[] = { | |
10875 | (char *) "self", NULL | |
10876 | }; | |
10877 | ||
10878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10881 | { | |
10882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10883 | (arg1)->RefreshAll(); | |
10884 | ||
10885 | wxPyEndAllowThreads(__tstate); | |
10886 | if (PyErr_Occurred()) SWIG_fail; | |
10887 | } | |
10888 | Py_INCREF(Py_None); resultobj = Py_None; | |
10889 | return resultobj; | |
10890 | fail: | |
10891 | return NULL; | |
10892 | } | |
10893 | ||
10894 | ||
10895 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10896 | PyObject *resultobj; | |
10897 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10898 | size_t arg2 ; | |
10899 | PyObject * obj0 = 0 ; | |
10900 | PyObject * obj1 = 0 ; | |
10901 | char *kwnames[] = { | |
10902 | (char *) "self",(char *) "count", NULL | |
10903 | }; | |
10904 | ||
10905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10908 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
10909 | if (PyErr_Occurred()) SWIG_fail; | |
10910 | { | |
10911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10912 | (arg1)->SetItemCount(arg2); | |
10913 | ||
10914 | wxPyEndAllowThreads(__tstate); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | } | |
10917 | Py_INCREF(Py_None); resultobj = Py_None; | |
10918 | return resultobj; | |
10919 | fail: | |
10920 | return NULL; | |
10921 | } | |
10922 | ||
10923 | ||
c24da6d6 RD |
10924 | static PyObject *_wrap_HtmlListBox_GetFileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { |
10925 | PyObject *resultobj; | |
10926 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10927 | wxFileSystem *result; | |
10928 | PyObject * obj0 = 0 ; | |
10929 | char *kwnames[] = { | |
10930 | (char *) "self", NULL | |
10931 | }; | |
10932 | ||
10933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_GetFileSystem",kwnames,&obj0)) goto fail; | |
10934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyHtmlListBox, | |
10935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10936 | { | |
10937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10938 | { | |
10939 | wxFileSystem &_result_ref = (arg1)->GetFileSystem(); | |
10940 | result = (wxFileSystem *) &_result_ref; | |
10941 | } | |
10942 | ||
10943 | wxPyEndAllowThreads(__tstate); | |
10944 | if (PyErr_Occurred()) SWIG_fail; | |
10945 | } | |
10946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileSystem, 0); | |
10947 | return resultobj; | |
10948 | fail: | |
10949 | return NULL; | |
10950 | } | |
10951 | ||
10952 | ||
d55e5bfc RD |
10953 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { |
10954 | PyObject *obj; | |
10955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10956 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10957 | Py_INCREF(obj); | |
10958 | return Py_BuildValue((char *)""); | |
10959 | } | |
10960 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10961 | PyObject *resultobj; | |
10962 | wxTaskBarIcon *result; | |
10963 | char *kwnames[] = { | |
10964 | NULL | |
10965 | }; | |
10966 | ||
10967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10968 | { | |
0439c23b | 10969 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10971 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10972 | ||
10973 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10974 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10975 | } |
10976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIcon, 1); | |
10977 | return resultobj; | |
10978 | fail: | |
10979 | return NULL; | |
10980 | } | |
10981 | ||
10982 | ||
10983 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10984 | PyObject *resultobj; | |
10985 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10986 | PyObject * obj0 = 0 ; | |
10987 | char *kwnames[] = { | |
10988 | (char *) "self", NULL | |
10989 | }; | |
10990 | ||
10991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
10993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10994 | { | |
10995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10996 | delete arg1; | |
10997 | ||
10998 | wxPyEndAllowThreads(__tstate); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | } | |
11001 | Py_INCREF(Py_None); resultobj = Py_None; | |
11002 | return resultobj; | |
11003 | fail: | |
11004 | return NULL; | |
11005 | } | |
11006 | ||
11007 | ||
11008 | static PyObject *_wrap_TaskBarIcon_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11009 | PyObject *resultobj; | |
11010 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11011 | PyObject * obj0 = 0 ; | |
11012 | char *kwnames[] = { | |
11013 | (char *) "self", NULL | |
11014 | }; | |
11015 | ||
11016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_Destroy",kwnames,&obj0)) goto fail; | |
11017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11019 | { | |
11020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11021 | wxTaskBarIcon_Destroy(arg1); | |
11022 | ||
11023 | wxPyEndAllowThreads(__tstate); | |
11024 | if (PyErr_Occurred()) SWIG_fail; | |
11025 | } | |
11026 | Py_INCREF(Py_None); resultobj = Py_None; | |
11027 | return resultobj; | |
11028 | fail: | |
11029 | return NULL; | |
11030 | } | |
11031 | ||
11032 | ||
11033 | static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11034 | PyObject *resultobj; | |
11035 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11036 | bool result; | |
11037 | PyObject * obj0 = 0 ; | |
11038 | char *kwnames[] = { | |
11039 | (char *) "self", NULL | |
11040 | }; | |
11041 | ||
11042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsOk",kwnames,&obj0)) goto fail; | |
11043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11045 | { | |
11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11047 | result = (bool)((wxTaskBarIcon const *)arg1)->IsOk(); | |
11048 | ||
11049 | wxPyEndAllowThreads(__tstate); | |
11050 | if (PyErr_Occurred()) SWIG_fail; | |
11051 | } | |
11052 | { | |
11053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11054 | } | |
11055 | return resultobj; | |
11056 | fail: | |
11057 | return NULL; | |
11058 | } | |
11059 | ||
11060 | ||
11061 | static PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11062 | PyObject *resultobj; | |
11063 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11064 | bool result; | |
11065 | PyObject * obj0 = 0 ; | |
11066 | char *kwnames[] = { | |
11067 | (char *) "self", NULL | |
11068 | }; | |
11069 | ||
11070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsIconInstalled",kwnames,&obj0)) goto fail; | |
11071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11073 | { | |
11074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11075 | result = (bool)((wxTaskBarIcon const *)arg1)->IsIconInstalled(); | |
11076 | ||
11077 | wxPyEndAllowThreads(__tstate); | |
11078 | if (PyErr_Occurred()) SWIG_fail; | |
11079 | } | |
11080 | { | |
11081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11082 | } | |
11083 | return resultobj; | |
11084 | fail: | |
11085 | return NULL; | |
11086 | } | |
11087 | ||
11088 | ||
11089 | static PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11090 | PyObject *resultobj; | |
11091 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11092 | wxIcon *arg2 = 0 ; | |
11093 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11094 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11095 | bool result; | |
11096 | bool temp3 = False ; | |
11097 | PyObject * obj0 = 0 ; | |
11098 | PyObject * obj1 = 0 ; | |
11099 | PyObject * obj2 = 0 ; | |
11100 | char *kwnames[] = { | |
11101 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
11102 | }; | |
11103 | ||
11104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
11108 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11109 | SWIG_fail; | |
11110 | if (arg2 == NULL) { | |
11111 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11112 | SWIG_fail; | |
11113 | } | |
11114 | if (obj2) { | |
11115 | { | |
11116 | arg3 = wxString_in_helper(obj2); | |
11117 | if (arg3 == NULL) SWIG_fail; | |
11118 | temp3 = True; | |
11119 | } | |
11120 | } | |
11121 | { | |
11122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11123 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
11124 | ||
11125 | wxPyEndAllowThreads(__tstate); | |
11126 | if (PyErr_Occurred()) SWIG_fail; | |
11127 | } | |
11128 | { | |
11129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11130 | } | |
11131 | { | |
11132 | if (temp3) | |
11133 | delete arg3; | |
11134 | } | |
11135 | return resultobj; | |
11136 | fail: | |
11137 | { | |
11138 | if (temp3) | |
11139 | delete arg3; | |
11140 | } | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | static PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj; | |
11147 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11148 | bool result; | |
11149 | PyObject * obj0 = 0 ; | |
11150 | char *kwnames[] = { | |
11151 | (char *) "self", NULL | |
11152 | }; | |
11153 | ||
11154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_RemoveIcon",kwnames,&obj0)) goto fail; | |
11155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11157 | { | |
11158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11159 | result = (bool)(arg1)->RemoveIcon(); | |
11160 | ||
11161 | wxPyEndAllowThreads(__tstate); | |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
11163 | } | |
11164 | { | |
11165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11166 | } | |
11167 | return resultobj; | |
11168 | fail: | |
11169 | return NULL; | |
11170 | } | |
11171 | ||
11172 | ||
11173 | static PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11174 | PyObject *resultobj; | |
11175 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
11176 | wxMenu *arg2 = (wxMenu *) 0 ; | |
11177 | bool result; | |
11178 | PyObject * obj0 = 0 ; | |
11179 | PyObject * obj1 = 0 ; | |
11180 | char *kwnames[] = { | |
11181 | (char *) "self",(char *) "menu", NULL | |
11182 | }; | |
11183 | ||
11184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) goto fail; | |
11185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTaskBarIcon, | |
11186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
11188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11189 | { | |
11190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11191 | result = (bool)(arg1)->PopupMenu(arg2); | |
11192 | ||
11193 | wxPyEndAllowThreads(__tstate); | |
11194 | if (PyErr_Occurred()) SWIG_fail; | |
11195 | } | |
11196 | { | |
11197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11198 | } | |
11199 | return resultobj; | |
11200 | fail: | |
11201 | return NULL; | |
11202 | } | |
11203 | ||
11204 | ||
11205 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
11206 | PyObject *obj; | |
11207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11208 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
11209 | Py_INCREF(obj); | |
11210 | return Py_BuildValue((char *)""); | |
11211 | } | |
11212 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11213 | PyObject *resultobj; | |
11214 | wxEventType arg1 ; | |
11215 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
11216 | wxTaskBarIconEvent *result; | |
11217 | PyObject * obj0 = 0 ; | |
11218 | PyObject * obj1 = 0 ; | |
11219 | char *kwnames[] = { | |
11220 | (char *) "evtType",(char *) "tbIcon", NULL | |
11221 | }; | |
11222 | ||
11223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; | |
11224 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11225 | if (PyErr_Occurred()) SWIG_fail; | |
11226 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTaskBarIcon, | |
11227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11228 | { | |
11229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11230 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
11231 | ||
11232 | wxPyEndAllowThreads(__tstate); | |
11233 | if (PyErr_Occurred()) SWIG_fail; | |
11234 | } | |
11235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
11236 | return resultobj; | |
11237 | fail: | |
11238 | return NULL; | |
11239 | } | |
11240 | ||
11241 | ||
11242 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
11243 | PyObject *obj; | |
11244 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11245 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
11246 | Py_INCREF(obj); | |
11247 | return Py_BuildValue((char *)""); | |
11248 | } | |
11249 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { | |
11250 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
11251 | return 1; | |
11252 | } | |
11253 | ||
11254 | ||
11255 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
11256 | PyObject *pyobj; | |
11257 | ||
11258 | { | |
11259 | #if wxUSE_UNICODE | |
11260 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11261 | #else | |
11262 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
11263 | #endif | |
11264 | } | |
11265 | return pyobj; | |
11266 | } | |
11267 | ||
11268 | ||
11269 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
11270 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
11271 | return 1; | |
11272 | } | |
11273 | ||
11274 | ||
11275 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
11276 | PyObject *pyobj; | |
11277 | ||
11278 | { | |
11279 | #if wxUSE_UNICODE | |
11280 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11281 | #else | |
11282 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
11283 | #endif | |
11284 | } | |
11285 | return pyobj; | |
11286 | } | |
11287 | ||
11288 | ||
11289 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
11290 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
11291 | return 1; | |
11292 | } | |
11293 | ||
11294 | ||
11295 | static PyObject *_wrap_DirDialogNameStr_get() { | |
11296 | PyObject *pyobj; | |
11297 | ||
11298 | { | |
11299 | #if wxUSE_UNICODE | |
11300 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11301 | #else | |
11302 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
11303 | #endif | |
11304 | } | |
11305 | return pyobj; | |
11306 | } | |
11307 | ||
11308 | ||
11309 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
11310 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
11311 | return 1; | |
11312 | } | |
11313 | ||
11314 | ||
11315 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
11316 | PyObject *pyobj; | |
11317 | ||
11318 | { | |
11319 | #if wxUSE_UNICODE | |
11320 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11321 | #else | |
11322 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
11323 | #endif | |
11324 | } | |
11325 | return pyobj; | |
11326 | } | |
11327 | ||
11328 | ||
11329 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
11330 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
11331 | return 1; | |
11332 | } | |
11333 | ||
11334 | ||
11335 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
11336 | PyObject *pyobj; | |
11337 | ||
11338 | { | |
11339 | #if wxUSE_UNICODE | |
11340 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11341 | #else | |
11342 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
11343 | #endif | |
11344 | } | |
11345 | return pyobj; | |
11346 | } | |
11347 | ||
11348 | ||
11349 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
11350 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
11351 | return 1; | |
11352 | } | |
11353 | ||
11354 | ||
11355 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
11356 | PyObject *pyobj; | |
11357 | ||
11358 | { | |
11359 | #if wxUSE_UNICODE | |
11360 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11361 | #else | |
11362 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
11363 | #endif | |
11364 | } | |
11365 | return pyobj; | |
11366 | } | |
11367 | ||
11368 | ||
11369 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11370 | PyObject *resultobj; | |
11371 | wxColourData *result; | |
11372 | char *kwnames[] = { | |
11373 | NULL | |
11374 | }; | |
11375 | ||
11376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
11377 | { | |
11378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11379 | result = (wxColourData *)new wxColourData(); | |
11380 | ||
11381 | wxPyEndAllowThreads(__tstate); | |
11382 | if (PyErr_Occurred()) SWIG_fail; | |
11383 | } | |
11384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 1); | |
11385 | return resultobj; | |
11386 | fail: | |
11387 | return NULL; | |
11388 | } | |
11389 | ||
11390 | ||
11391 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11392 | PyObject *resultobj; | |
11393 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11394 | PyObject * obj0 = 0 ; | |
11395 | char *kwnames[] = { | |
11396 | (char *) "self", NULL | |
11397 | }; | |
11398 | ||
11399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
11400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11402 | { | |
11403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11404 | delete arg1; | |
11405 | ||
11406 | wxPyEndAllowThreads(__tstate); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | } | |
11409 | Py_INCREF(Py_None); resultobj = Py_None; | |
11410 | return resultobj; | |
11411 | fail: | |
11412 | return NULL; | |
11413 | } | |
11414 | ||
11415 | ||
11416 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11417 | PyObject *resultobj; | |
11418 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11419 | bool result; | |
11420 | PyObject * obj0 = 0 ; | |
11421 | char *kwnames[] = { | |
11422 | (char *) "self", NULL | |
11423 | }; | |
11424 | ||
11425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
11426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11428 | { | |
11429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11430 | result = (bool)(arg1)->GetChooseFull(); | |
11431 | ||
11432 | wxPyEndAllowThreads(__tstate); | |
11433 | if (PyErr_Occurred()) SWIG_fail; | |
11434 | } | |
11435 | { | |
11436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11437 | } | |
11438 | return resultobj; | |
11439 | fail: | |
11440 | return NULL; | |
11441 | } | |
11442 | ||
11443 | ||
11444 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11445 | PyObject *resultobj; | |
11446 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11447 | wxColour result; | |
11448 | PyObject * obj0 = 0 ; | |
11449 | char *kwnames[] = { | |
11450 | (char *) "self", NULL | |
11451 | }; | |
11452 | ||
11453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
11454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | result = (arg1)->GetColour(); | |
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_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11475 | PyObject *resultobj; | |
11476 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11477 | int arg2 ; | |
11478 | wxColour result; | |
11479 | PyObject * obj0 = 0 ; | |
11480 | PyObject * obj1 = 0 ; | |
11481 | char *kwnames[] = { | |
11482 | (char *) "self",(char *) "i", NULL | |
11483 | }; | |
11484 | ||
11485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; | |
11486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11488 | arg2 = (int) SWIG_AsInt(obj1); | |
11489 | if (PyErr_Occurred()) SWIG_fail; | |
11490 | { | |
11491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11492 | result = (arg1)->GetCustomColour(arg2); | |
11493 | ||
11494 | wxPyEndAllowThreads(__tstate); | |
11495 | if (PyErr_Occurred()) SWIG_fail; | |
11496 | } | |
11497 | { | |
11498 | wxColour * resultptr; | |
11499 | resultptr = new wxColour((wxColour &) result); | |
11500 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
11501 | } | |
11502 | return resultobj; | |
11503 | fail: | |
11504 | return NULL; | |
11505 | } | |
11506 | ||
11507 | ||
11508 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11509 | PyObject *resultobj; | |
11510 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11511 | int arg2 ; | |
11512 | PyObject * obj0 = 0 ; | |
11513 | PyObject * obj1 = 0 ; | |
11514 | char *kwnames[] = { | |
11515 | (char *) "self",(char *) "flag", NULL | |
11516 | }; | |
11517 | ||
11518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; | |
11519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11521 | arg2 = (int) SWIG_AsInt(obj1); | |
11522 | if (PyErr_Occurred()) SWIG_fail; | |
11523 | { | |
11524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11525 | (arg1)->SetChooseFull(arg2); | |
11526 | ||
11527 | wxPyEndAllowThreads(__tstate); | |
11528 | if (PyErr_Occurred()) SWIG_fail; | |
11529 | } | |
11530 | Py_INCREF(Py_None); resultobj = Py_None; | |
11531 | return resultobj; | |
11532 | fail: | |
11533 | return NULL; | |
11534 | } | |
11535 | ||
11536 | ||
11537 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11538 | PyObject *resultobj; | |
11539 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11540 | wxColour *arg2 = 0 ; | |
11541 | wxColour temp2 ; | |
11542 | PyObject * obj0 = 0 ; | |
11543 | PyObject * obj1 = 0 ; | |
11544 | char *kwnames[] = { | |
11545 | (char *) "self",(char *) "colour", NULL | |
11546 | }; | |
11547 | ||
11548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
11549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11551 | { | |
11552 | arg2 = &temp2; | |
11553 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11554 | } | |
11555 | { | |
11556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11557 | (arg1)->SetColour((wxColour const &)*arg2); | |
11558 | ||
11559 | wxPyEndAllowThreads(__tstate); | |
11560 | if (PyErr_Occurred()) SWIG_fail; | |
11561 | } | |
11562 | Py_INCREF(Py_None); resultobj = Py_None; | |
11563 | return resultobj; | |
11564 | fail: | |
11565 | return NULL; | |
11566 | } | |
11567 | ||
11568 | ||
11569 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11570 | PyObject *resultobj; | |
11571 | wxColourData *arg1 = (wxColourData *) 0 ; | |
11572 | int arg2 ; | |
11573 | wxColour *arg3 = 0 ; | |
11574 | wxColour temp3 ; | |
11575 | PyObject * obj0 = 0 ; | |
11576 | PyObject * obj1 = 0 ; | |
11577 | PyObject * obj2 = 0 ; | |
11578 | char *kwnames[] = { | |
11579 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
11580 | }; | |
11581 | ||
11582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourData, | |
11584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11585 | arg2 = (int) SWIG_AsInt(obj1); | |
11586 | if (PyErr_Occurred()) SWIG_fail; | |
11587 | { | |
11588 | arg3 = &temp3; | |
11589 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11590 | } | |
11591 | { | |
11592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11593 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
11594 | ||
11595 | wxPyEndAllowThreads(__tstate); | |
11596 | if (PyErr_Occurred()) SWIG_fail; | |
11597 | } | |
11598 | Py_INCREF(Py_None); resultobj = Py_None; | |
11599 | return resultobj; | |
11600 | fail: | |
11601 | return NULL; | |
11602 | } | |
11603 | ||
11604 | ||
11605 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
11606 | PyObject *obj; | |
11607 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11608 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
11609 | Py_INCREF(obj); | |
11610 | return Py_BuildValue((char *)""); | |
11611 | } | |
11612 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11613 | PyObject *resultobj; | |
11614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11615 | wxColourData *arg2 = (wxColourData *) NULL ; | |
11616 | wxColourDialog *result; | |
11617 | PyObject * obj0 = 0 ; | |
11618 | PyObject * obj1 = 0 ; | |
11619 | char *kwnames[] = { | |
11620 | (char *) "parent",(char *) "data", NULL | |
11621 | }; | |
11622 | ||
11623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11626 | if (obj1) { | |
11627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColourData, | |
11628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11629 | } | |
11630 | { | |
0439c23b | 11631 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11633 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11634 | ||
11635 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11636 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11637 | } |
11638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDialog, 1); | |
11639 | return resultobj; | |
11640 | fail: | |
11641 | return NULL; | |
11642 | } | |
11643 | ||
11644 | ||
11645 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11646 | PyObject *resultobj; | |
11647 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11648 | wxColourData *result; | |
11649 | PyObject * obj0 = 0 ; | |
11650 | char *kwnames[] = { | |
11651 | (char *) "self", NULL | |
11652 | }; | |
11653 | ||
11654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDialog, | |
11656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11657 | { | |
11658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11659 | { | |
11660 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11661 | result = (wxColourData *) &_result_ref; | |
11662 | } | |
11663 | ||
11664 | wxPyEndAllowThreads(__tstate); | |
11665 | if (PyErr_Occurred()) SWIG_fail; | |
11666 | } | |
11667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourData, 0); | |
11668 | return resultobj; | |
11669 | fail: | |
11670 | return NULL; | |
11671 | } | |
11672 | ||
11673 | ||
11674 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11675 | PyObject *obj; | |
11676 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11677 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11678 | Py_INCREF(obj); | |
11679 | return Py_BuildValue((char *)""); | |
11680 | } | |
11681 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11682 | PyObject *resultobj; | |
11683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11684 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11685 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11686 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11687 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11688 | long arg4 = (long) 0 ; | |
11689 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11690 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11691 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11692 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11693 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11694 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11695 | wxDirDialog *result; | |
11696 | bool temp2 = False ; | |
11697 | bool temp3 = False ; | |
11698 | wxPoint temp5 ; | |
11699 | wxSize temp6 ; | |
11700 | bool temp7 = False ; | |
11701 | PyObject * obj0 = 0 ; | |
11702 | PyObject * obj1 = 0 ; | |
11703 | PyObject * obj2 = 0 ; | |
11704 | PyObject * obj3 = 0 ; | |
11705 | PyObject * obj4 = 0 ; | |
11706 | PyObject * obj5 = 0 ; | |
11707 | PyObject * obj6 = 0 ; | |
11708 | char *kwnames[] = { | |
11709 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11710 | }; | |
11711 | ||
11712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11715 | if (obj1) { | |
11716 | { | |
11717 | arg2 = wxString_in_helper(obj1); | |
11718 | if (arg2 == NULL) SWIG_fail; | |
11719 | temp2 = True; | |
11720 | } | |
11721 | } | |
11722 | if (obj2) { | |
11723 | { | |
11724 | arg3 = wxString_in_helper(obj2); | |
11725 | if (arg3 == NULL) SWIG_fail; | |
11726 | temp3 = True; | |
11727 | } | |
11728 | } | |
11729 | if (obj3) { | |
11730 | arg4 = (long) SWIG_AsLong(obj3); | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | } | |
11733 | if (obj4) { | |
11734 | { | |
11735 | arg5 = &temp5; | |
11736 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11737 | } | |
11738 | } | |
11739 | if (obj5) { | |
11740 | { | |
11741 | arg6 = &temp6; | |
11742 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11743 | } | |
11744 | } | |
11745 | if (obj6) { | |
11746 | { | |
11747 | arg7 = wxString_in_helper(obj6); | |
11748 | if (arg7 == NULL) SWIG_fail; | |
11749 | temp7 = True; | |
11750 | } | |
11751 | } | |
11752 | { | |
0439c23b | 11753 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11755 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11756 | ||
11757 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11758 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11759 | } |
11760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirDialog, 1); | |
11761 | { | |
11762 | if (temp2) | |
11763 | delete arg2; | |
11764 | } | |
11765 | { | |
11766 | if (temp3) | |
11767 | delete arg3; | |
11768 | } | |
11769 | { | |
11770 | if (temp7) | |
11771 | delete arg7; | |
11772 | } | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | { | |
11776 | if (temp2) | |
11777 | delete arg2; | |
11778 | } | |
11779 | { | |
11780 | if (temp3) | |
11781 | delete arg3; | |
11782 | } | |
11783 | { | |
11784 | if (temp7) | |
11785 | delete arg7; | |
11786 | } | |
11787 | return NULL; | |
11788 | } | |
11789 | ||
11790 | ||
11791 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11792 | PyObject *resultobj; | |
11793 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11794 | wxString result; | |
11795 | PyObject * obj0 = 0 ; | |
11796 | char *kwnames[] = { | |
11797 | (char *) "self", NULL | |
11798 | }; | |
11799 | ||
11800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11803 | { | |
11804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11805 | result = (arg1)->GetPath(); | |
11806 | ||
11807 | wxPyEndAllowThreads(__tstate); | |
11808 | if (PyErr_Occurred()) SWIG_fail; | |
11809 | } | |
11810 | { | |
11811 | #if wxUSE_UNICODE | |
11812 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11813 | #else | |
11814 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11815 | #endif | |
11816 | } | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | return NULL; | |
11820 | } | |
11821 | ||
11822 | ||
11823 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11824 | PyObject *resultobj; | |
11825 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11826 | wxString result; | |
11827 | PyObject * obj0 = 0 ; | |
11828 | char *kwnames[] = { | |
11829 | (char *) "self", NULL | |
11830 | }; | |
11831 | ||
11832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (arg1)->GetMessage(); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | #if wxUSE_UNICODE | |
11844 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11845 | #else | |
11846 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11847 | #endif | |
11848 | } | |
11849 | return resultobj; | |
11850 | fail: | |
11851 | return NULL; | |
11852 | } | |
11853 | ||
11854 | ||
11855 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11856 | PyObject *resultobj; | |
11857 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11858 | long result; | |
11859 | PyObject * obj0 = 0 ; | |
11860 | char *kwnames[] = { | |
11861 | (char *) "self", NULL | |
11862 | }; | |
11863 | ||
11864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11867 | { | |
11868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11869 | result = (long)(arg1)->GetStyle(); | |
11870 | ||
11871 | wxPyEndAllowThreads(__tstate); | |
11872 | if (PyErr_Occurred()) SWIG_fail; | |
11873 | } | |
11874 | resultobj = SWIG_FromLong((long)result); | |
11875 | return resultobj; | |
11876 | fail: | |
11877 | return NULL; | |
11878 | } | |
11879 | ||
11880 | ||
11881 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11882 | PyObject *resultobj; | |
11883 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11884 | wxString *arg2 = 0 ; | |
11885 | bool temp2 = False ; | |
11886 | PyObject * obj0 = 0 ; | |
11887 | PyObject * obj1 = 0 ; | |
11888 | char *kwnames[] = { | |
11889 | (char *) "self",(char *) "message", NULL | |
11890 | }; | |
11891 | ||
11892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11895 | { | |
11896 | arg2 = wxString_in_helper(obj1); | |
11897 | if (arg2 == NULL) SWIG_fail; | |
11898 | temp2 = True; | |
11899 | } | |
11900 | { | |
11901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11902 | (arg1)->SetMessage((wxString const &)*arg2); | |
11903 | ||
11904 | wxPyEndAllowThreads(__tstate); | |
11905 | if (PyErr_Occurred()) SWIG_fail; | |
11906 | } | |
11907 | Py_INCREF(Py_None); resultobj = Py_None; | |
11908 | { | |
11909 | if (temp2) | |
11910 | delete arg2; | |
11911 | } | |
11912 | return resultobj; | |
11913 | fail: | |
11914 | { | |
11915 | if (temp2) | |
11916 | delete arg2; | |
11917 | } | |
11918 | return NULL; | |
11919 | } | |
11920 | ||
11921 | ||
11922 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11923 | PyObject *resultobj; | |
11924 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11925 | wxString *arg2 = 0 ; | |
11926 | bool temp2 = False ; | |
11927 | PyObject * obj0 = 0 ; | |
11928 | PyObject * obj1 = 0 ; | |
11929 | char *kwnames[] = { | |
11930 | (char *) "self",(char *) "path", NULL | |
11931 | }; | |
11932 | ||
11933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirDialog, | |
11935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11936 | { | |
11937 | arg2 = wxString_in_helper(obj1); | |
11938 | if (arg2 == NULL) SWIG_fail; | |
11939 | temp2 = True; | |
11940 | } | |
11941 | { | |
11942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11943 | (arg1)->SetPath((wxString const &)*arg2); | |
11944 | ||
11945 | wxPyEndAllowThreads(__tstate); | |
11946 | if (PyErr_Occurred()) SWIG_fail; | |
11947 | } | |
11948 | Py_INCREF(Py_None); resultobj = Py_None; | |
11949 | { | |
11950 | if (temp2) | |
11951 | delete arg2; | |
11952 | } | |
11953 | return resultobj; | |
11954 | fail: | |
11955 | { | |
11956 | if (temp2) | |
11957 | delete arg2; | |
11958 | } | |
11959 | return NULL; | |
11960 | } | |
11961 | ||
11962 | ||
11963 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11964 | PyObject *obj; | |
11965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11966 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11967 | Py_INCREF(obj); | |
11968 | return Py_BuildValue((char *)""); | |
11969 | } | |
11970 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11971 | PyObject *resultobj; | |
11972 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11973 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11974 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11975 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11976 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11977 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11978 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11979 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11980 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11981 | long arg6 = (long) 0 ; | |
11982 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11983 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11984 | wxFileDialog *result; | |
11985 | bool temp2 = False ; | |
11986 | bool temp3 = False ; | |
11987 | bool temp4 = False ; | |
11988 | bool temp5 = False ; | |
11989 | wxPoint temp7 ; | |
11990 | PyObject * obj0 = 0 ; | |
11991 | PyObject * obj1 = 0 ; | |
11992 | PyObject * obj2 = 0 ; | |
11993 | PyObject * obj3 = 0 ; | |
11994 | PyObject * obj4 = 0 ; | |
11995 | PyObject * obj5 = 0 ; | |
11996 | PyObject * obj6 = 0 ; | |
11997 | char *kwnames[] = { | |
11998 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11999 | }; | |
12000 | ||
12001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
12002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12004 | if (obj1) { | |
12005 | { | |
12006 | arg2 = wxString_in_helper(obj1); | |
12007 | if (arg2 == NULL) SWIG_fail; | |
12008 | temp2 = True; | |
12009 | } | |
12010 | } | |
12011 | if (obj2) { | |
12012 | { | |
12013 | arg3 = wxString_in_helper(obj2); | |
12014 | if (arg3 == NULL) SWIG_fail; | |
12015 | temp3 = True; | |
12016 | } | |
12017 | } | |
12018 | if (obj3) { | |
12019 | { | |
12020 | arg4 = wxString_in_helper(obj3); | |
12021 | if (arg4 == NULL) SWIG_fail; | |
12022 | temp4 = True; | |
12023 | } | |
12024 | } | |
12025 | if (obj4) { | |
12026 | { | |
12027 | arg5 = wxString_in_helper(obj4); | |
12028 | if (arg5 == NULL) SWIG_fail; | |
12029 | temp5 = True; | |
12030 | } | |
12031 | } | |
12032 | if (obj5) { | |
12033 | arg6 = (long) SWIG_AsLong(obj5); | |
12034 | if (PyErr_Occurred()) SWIG_fail; | |
12035 | } | |
12036 | if (obj6) { | |
12037 | { | |
12038 | arg7 = &temp7; | |
12039 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12040 | } | |
12041 | } | |
12042 | { | |
0439c23b | 12043 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12045 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
12046 | ||
12047 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12048 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12049 | } |
12050 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDialog, 1); | |
12051 | { | |
12052 | if (temp2) | |
12053 | delete arg2; | |
12054 | } | |
12055 | { | |
12056 | if (temp3) | |
12057 | delete arg3; | |
12058 | } | |
12059 | { | |
12060 | if (temp4) | |
12061 | delete arg4; | |
12062 | } | |
12063 | { | |
12064 | if (temp5) | |
12065 | delete arg5; | |
12066 | } | |
12067 | return resultobj; | |
12068 | fail: | |
12069 | { | |
12070 | if (temp2) | |
12071 | delete arg2; | |
12072 | } | |
12073 | { | |
12074 | if (temp3) | |
12075 | delete arg3; | |
12076 | } | |
12077 | { | |
12078 | if (temp4) | |
12079 | delete arg4; | |
12080 | } | |
12081 | { | |
12082 | if (temp5) | |
12083 | delete arg5; | |
12084 | } | |
12085 | return NULL; | |
12086 | } | |
12087 | ||
12088 | ||
12089 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12090 | PyObject *resultobj; | |
12091 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12092 | wxString *arg2 = 0 ; | |
12093 | bool temp2 = False ; | |
12094 | PyObject * obj0 = 0 ; | |
12095 | PyObject * obj1 = 0 ; | |
12096 | char *kwnames[] = { | |
12097 | (char *) "self",(char *) "message", NULL | |
12098 | }; | |
12099 | ||
12100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
12101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12103 | { | |
12104 | arg2 = wxString_in_helper(obj1); | |
12105 | if (arg2 == NULL) SWIG_fail; | |
12106 | temp2 = True; | |
12107 | } | |
12108 | { | |
12109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12110 | (arg1)->SetMessage((wxString const &)*arg2); | |
12111 | ||
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | Py_INCREF(Py_None); resultobj = Py_None; | |
12116 | { | |
12117 | if (temp2) | |
12118 | delete arg2; | |
12119 | } | |
12120 | return resultobj; | |
12121 | fail: | |
12122 | { | |
12123 | if (temp2) | |
12124 | delete arg2; | |
12125 | } | |
12126 | return NULL; | |
12127 | } | |
12128 | ||
12129 | ||
12130 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12131 | PyObject *resultobj; | |
12132 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12133 | wxString *arg2 = 0 ; | |
12134 | bool temp2 = False ; | |
12135 | PyObject * obj0 = 0 ; | |
12136 | PyObject * obj1 = 0 ; | |
12137 | char *kwnames[] = { | |
12138 | (char *) "self",(char *) "path", NULL | |
12139 | }; | |
12140 | ||
12141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
12142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12144 | { | |
12145 | arg2 = wxString_in_helper(obj1); | |
12146 | if (arg2 == NULL) SWIG_fail; | |
12147 | temp2 = True; | |
12148 | } | |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | (arg1)->SetPath((wxString const &)*arg2); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | Py_INCREF(Py_None); resultobj = Py_None; | |
12157 | { | |
12158 | if (temp2) | |
12159 | delete arg2; | |
12160 | } | |
12161 | return resultobj; | |
12162 | fail: | |
12163 | { | |
12164 | if (temp2) | |
12165 | delete arg2; | |
12166 | } | |
12167 | return NULL; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12172 | PyObject *resultobj; | |
12173 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12174 | wxString *arg2 = 0 ; | |
12175 | bool temp2 = False ; | |
12176 | PyObject * obj0 = 0 ; | |
12177 | PyObject * obj1 = 0 ; | |
12178 | char *kwnames[] = { | |
12179 | (char *) "self",(char *) "dir", NULL | |
12180 | }; | |
12181 | ||
12182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
12183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12185 | { | |
12186 | arg2 = wxString_in_helper(obj1); | |
12187 | if (arg2 == NULL) SWIG_fail; | |
12188 | temp2 = True; | |
12189 | } | |
12190 | { | |
12191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12192 | (arg1)->SetDirectory((wxString const &)*arg2); | |
12193 | ||
12194 | wxPyEndAllowThreads(__tstate); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | } | |
12197 | Py_INCREF(Py_None); resultobj = Py_None; | |
12198 | { | |
12199 | if (temp2) | |
12200 | delete arg2; | |
12201 | } | |
12202 | return resultobj; | |
12203 | fail: | |
12204 | { | |
12205 | if (temp2) | |
12206 | delete arg2; | |
12207 | } | |
12208 | return NULL; | |
12209 | } | |
12210 | ||
12211 | ||
12212 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12213 | PyObject *resultobj; | |
12214 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12215 | wxString *arg2 = 0 ; | |
12216 | bool temp2 = False ; | |
12217 | PyObject * obj0 = 0 ; | |
12218 | PyObject * obj1 = 0 ; | |
12219 | char *kwnames[] = { | |
12220 | (char *) "self",(char *) "name", NULL | |
12221 | }; | |
12222 | ||
12223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
12224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12226 | { | |
12227 | arg2 = wxString_in_helper(obj1); | |
12228 | if (arg2 == NULL) SWIG_fail; | |
12229 | temp2 = True; | |
12230 | } | |
12231 | { | |
12232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12233 | (arg1)->SetFilename((wxString const &)*arg2); | |
12234 | ||
12235 | wxPyEndAllowThreads(__tstate); | |
12236 | if (PyErr_Occurred()) SWIG_fail; | |
12237 | } | |
12238 | Py_INCREF(Py_None); resultobj = Py_None; | |
12239 | { | |
12240 | if (temp2) | |
12241 | delete arg2; | |
12242 | } | |
12243 | return resultobj; | |
12244 | fail: | |
12245 | { | |
12246 | if (temp2) | |
12247 | delete arg2; | |
12248 | } | |
12249 | return NULL; | |
12250 | } | |
12251 | ||
12252 | ||
12253 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12254 | PyObject *resultobj; | |
12255 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12256 | wxString *arg2 = 0 ; | |
12257 | bool temp2 = False ; | |
12258 | PyObject * obj0 = 0 ; | |
12259 | PyObject * obj1 = 0 ; | |
12260 | char *kwnames[] = { | |
12261 | (char *) "self",(char *) "wildCard", NULL | |
12262 | }; | |
12263 | ||
12264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
12265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12267 | { | |
12268 | arg2 = wxString_in_helper(obj1); | |
12269 | if (arg2 == NULL) SWIG_fail; | |
12270 | temp2 = True; | |
12271 | } | |
12272 | { | |
12273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12274 | (arg1)->SetWildcard((wxString const &)*arg2); | |
12275 | ||
12276 | wxPyEndAllowThreads(__tstate); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | } | |
12279 | Py_INCREF(Py_None); resultobj = Py_None; | |
12280 | { | |
12281 | if (temp2) | |
12282 | delete arg2; | |
12283 | } | |
12284 | return resultobj; | |
12285 | fail: | |
12286 | { | |
12287 | if (temp2) | |
12288 | delete arg2; | |
12289 | } | |
12290 | return NULL; | |
12291 | } | |
12292 | ||
12293 | ||
12294 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12295 | PyObject *resultobj; | |
12296 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12297 | long arg2 ; | |
12298 | PyObject * obj0 = 0 ; | |
12299 | PyObject * obj1 = 0 ; | |
12300 | char *kwnames[] = { | |
12301 | (char *) "self",(char *) "style", NULL | |
12302 | }; | |
12303 | ||
12304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; | |
12305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12307 | arg2 = (long) SWIG_AsLong(obj1); | |
12308 | if (PyErr_Occurred()) SWIG_fail; | |
12309 | { | |
12310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12311 | (arg1)->SetStyle(arg2); | |
12312 | ||
12313 | wxPyEndAllowThreads(__tstate); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | } | |
12316 | Py_INCREF(Py_None); resultobj = Py_None; | |
12317 | return resultobj; | |
12318 | fail: | |
12319 | return NULL; | |
12320 | } | |
12321 | ||
12322 | ||
12323 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12324 | PyObject *resultobj; | |
12325 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12326 | int arg2 ; | |
12327 | PyObject * obj0 = 0 ; | |
12328 | PyObject * obj1 = 0 ; | |
12329 | char *kwnames[] = { | |
12330 | (char *) "self",(char *) "filterIndex", NULL | |
12331 | }; | |
12332 | ||
12333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
12334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12336 | arg2 = (int) SWIG_AsInt(obj1); | |
12337 | if (PyErr_Occurred()) SWIG_fail; | |
12338 | { | |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | (arg1)->SetFilterIndex(arg2); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
12345 | Py_INCREF(Py_None); resultobj = Py_None; | |
12346 | return resultobj; | |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
12352 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12353 | PyObject *resultobj; | |
12354 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12355 | wxString result; | |
12356 | PyObject * obj0 = 0 ; | |
12357 | char *kwnames[] = { | |
12358 | (char *) "self", NULL | |
12359 | }; | |
12360 | ||
12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
12362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12364 | { | |
12365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12366 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
12367 | ||
12368 | wxPyEndAllowThreads(__tstate); | |
12369 | if (PyErr_Occurred()) SWIG_fail; | |
12370 | } | |
12371 | { | |
12372 | #if wxUSE_UNICODE | |
12373 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12374 | #else | |
12375 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12376 | #endif | |
12377 | } | |
12378 | return resultobj; | |
12379 | fail: | |
12380 | return NULL; | |
12381 | } | |
12382 | ||
12383 | ||
12384 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12385 | PyObject *resultobj; | |
12386 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12387 | wxString result; | |
12388 | PyObject * obj0 = 0 ; | |
12389 | char *kwnames[] = { | |
12390 | (char *) "self", NULL | |
12391 | }; | |
12392 | ||
12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
12394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12396 | { | |
12397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12398 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
12399 | ||
12400 | wxPyEndAllowThreads(__tstate); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | } | |
12403 | { | |
12404 | #if wxUSE_UNICODE | |
12405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12406 | #else | |
12407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12408 | #endif | |
12409 | } | |
12410 | return resultobj; | |
12411 | fail: | |
12412 | return NULL; | |
12413 | } | |
12414 | ||
12415 | ||
12416 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12417 | PyObject *resultobj; | |
12418 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12419 | wxString result; | |
12420 | PyObject * obj0 = 0 ; | |
12421 | char *kwnames[] = { | |
12422 | (char *) "self", NULL | |
12423 | }; | |
12424 | ||
12425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
12426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12428 | { | |
12429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12430 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
12431 | ||
12432 | wxPyEndAllowThreads(__tstate); | |
12433 | if (PyErr_Occurred()) SWIG_fail; | |
12434 | } | |
12435 | { | |
12436 | #if wxUSE_UNICODE | |
12437 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12438 | #else | |
12439 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12440 | #endif | |
12441 | } | |
12442 | return resultobj; | |
12443 | fail: | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12449 | PyObject *resultobj; | |
12450 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12451 | wxString result; | |
12452 | PyObject * obj0 = 0 ; | |
12453 | char *kwnames[] = { | |
12454 | (char *) "self", NULL | |
12455 | }; | |
12456 | ||
12457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
12458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12460 | { | |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
12463 | ||
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | { | |
12468 | #if wxUSE_UNICODE | |
12469 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12470 | #else | |
12471 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12472 | #endif | |
12473 | } | |
12474 | return resultobj; | |
12475 | fail: | |
12476 | return NULL; | |
12477 | } | |
12478 | ||
12479 | ||
12480 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12481 | PyObject *resultobj; | |
12482 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12483 | wxString result; | |
12484 | PyObject * obj0 = 0 ; | |
12485 | char *kwnames[] = { | |
12486 | (char *) "self", NULL | |
12487 | }; | |
12488 | ||
12489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
12490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12492 | { | |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
12495 | ||
12496 | wxPyEndAllowThreads(__tstate); | |
12497 | if (PyErr_Occurred()) SWIG_fail; | |
12498 | } | |
12499 | { | |
12500 | #if wxUSE_UNICODE | |
12501 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12502 | #else | |
12503 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12504 | #endif | |
12505 | } | |
12506 | return resultobj; | |
12507 | fail: | |
12508 | return NULL; | |
12509 | } | |
12510 | ||
12511 | ||
12512 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12513 | PyObject *resultobj; | |
12514 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12515 | long result; | |
12516 | PyObject * obj0 = 0 ; | |
12517 | char *kwnames[] = { | |
12518 | (char *) "self", NULL | |
12519 | }; | |
12520 | ||
12521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
12522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12524 | { | |
12525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12526 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
12527 | ||
12528 | wxPyEndAllowThreads(__tstate); | |
12529 | if (PyErr_Occurred()) SWIG_fail; | |
12530 | } | |
12531 | resultobj = SWIG_FromLong((long)result); | |
12532 | return resultobj; | |
12533 | fail: | |
12534 | return NULL; | |
12535 | } | |
12536 | ||
12537 | ||
12538 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12539 | PyObject *resultobj; | |
12540 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12541 | int result; | |
12542 | PyObject * obj0 = 0 ; | |
12543 | char *kwnames[] = { | |
12544 | (char *) "self", NULL | |
12545 | }; | |
12546 | ||
12547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
12548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12550 | { | |
12551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12552 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
12553 | ||
12554 | wxPyEndAllowThreads(__tstate); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | } | |
12557 | resultobj = SWIG_FromInt((int)result); | |
12558 | return resultobj; | |
12559 | fail: | |
12560 | return NULL; | |
12561 | } | |
12562 | ||
12563 | ||
12564 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12565 | PyObject *resultobj; | |
12566 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12567 | PyObject *result; | |
12568 | PyObject * obj0 = 0 ; | |
12569 | char *kwnames[] = { | |
12570 | (char *) "self", NULL | |
12571 | }; | |
12572 | ||
12573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
12574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12576 | { | |
12577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12578 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
12579 | ||
12580 | wxPyEndAllowThreads(__tstate); | |
12581 | if (PyErr_Occurred()) SWIG_fail; | |
12582 | } | |
12583 | resultobj = result; | |
12584 | return resultobj; | |
12585 | fail: | |
12586 | return NULL; | |
12587 | } | |
12588 | ||
12589 | ||
12590 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12591 | PyObject *resultobj; | |
12592 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12593 | PyObject *result; | |
12594 | PyObject * obj0 = 0 ; | |
12595 | char *kwnames[] = { | |
12596 | (char *) "self", NULL | |
12597 | }; | |
12598 | ||
12599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDialog, | |
12601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12602 | { | |
12603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12604 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12605 | ||
12606 | wxPyEndAllowThreads(__tstate); | |
12607 | if (PyErr_Occurred()) SWIG_fail; | |
12608 | } | |
12609 | resultobj = result; | |
12610 | return resultobj; | |
12611 | fail: | |
12612 | return NULL; | |
12613 | } | |
12614 | ||
12615 | ||
12616 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12617 | PyObject *obj; | |
12618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12619 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12620 | Py_INCREF(obj); | |
12621 | return Py_BuildValue((char *)""); | |
12622 | } | |
12623 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12624 | PyObject *resultobj; | |
12625 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12626 | wxString *arg2 = 0 ; | |
12627 | wxString *arg3 = 0 ; | |
12628 | int arg4 = (int) 0 ; | |
248ed943 | 12629 | wxString *arg5 = (wxString *) NULL ; |
d55e5bfc RD |
12630 | long arg6 = (long) wxCHOICEDLG_STYLE ; |
12631 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12632 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12633 | wxMultiChoiceDialog *result; | |
12634 | bool temp2 = False ; | |
12635 | bool temp3 = False ; | |
12636 | wxPoint temp6 ; | |
12637 | PyObject * obj0 = 0 ; | |
12638 | PyObject * obj1 = 0 ; | |
12639 | PyObject * obj2 = 0 ; | |
12640 | PyObject * obj3 = 0 ; | |
12641 | PyObject * obj4 = 0 ; | |
12642 | PyObject * obj5 = 0 ; | |
12643 | char *kwnames[] = { | |
12644 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12645 | }; | |
12646 | ||
12647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12650 | { | |
12651 | arg2 = wxString_in_helper(obj1); | |
12652 | if (arg2 == NULL) SWIG_fail; | |
12653 | temp2 = True; | |
12654 | } | |
12655 | { | |
12656 | arg3 = wxString_in_helper(obj2); | |
12657 | if (arg3 == NULL) SWIG_fail; | |
12658 | temp3 = True; | |
12659 | } | |
12660 | if (obj3) { | |
12661 | { | |
12662 | arg4 = PyList_Size(obj3); | |
12663 | arg5 = wxString_LIST_helper(obj3); | |
12664 | if (arg5 == NULL) SWIG_fail; | |
12665 | } | |
12666 | } | |
12667 | if (obj4) { | |
12668 | arg6 = (long) SWIG_AsLong(obj4); | |
12669 | if (PyErr_Occurred()) SWIG_fail; | |
12670 | } | |
12671 | if (obj5) { | |
12672 | { | |
12673 | arg7 = &temp6; | |
12674 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12675 | } | |
12676 | } | |
12677 | { | |
0439c23b | 12678 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12680 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12681 | ||
12682 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12683 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12684 | } |
12685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12686 | { | |
12687 | if (temp2) | |
12688 | delete arg2; | |
12689 | } | |
12690 | { | |
12691 | if (temp3) | |
12692 | delete arg3; | |
12693 | } | |
12694 | { | |
12695 | if (arg5) delete [] arg5; | |
12696 | } | |
12697 | return resultobj; | |
12698 | fail: | |
12699 | { | |
12700 | if (temp2) | |
12701 | delete arg2; | |
12702 | } | |
12703 | { | |
12704 | if (temp3) | |
12705 | delete arg3; | |
12706 | } | |
12707 | { | |
12708 | if (arg5) delete [] arg5; | |
12709 | } | |
12710 | return NULL; | |
12711 | } | |
12712 | ||
12713 | ||
12714 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12715 | PyObject *resultobj; | |
12716 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12717 | wxArrayInt *arg2 = 0 ; | |
12718 | bool temp2 = False ; | |
12719 | PyObject * obj0 = 0 ; | |
12720 | PyObject * obj1 = 0 ; | |
12721 | char *kwnames[] = { | |
12722 | (char *) "self",(char *) "selections", NULL | |
12723 | }; | |
12724 | ||
12725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12728 | { | |
12729 | if (! PySequence_Check(obj1)) { | |
12730 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12731 | SWIG_fail; | |
12732 | } | |
12733 | arg2 = new wxArrayInt; | |
12734 | temp2 = True; | |
12735 | int i, len=PySequence_Length(obj1); | |
12736 | for (i=0; i<len; i++) { | |
12737 | PyObject* item = PySequence_GetItem(obj1, i); | |
12738 | PyObject* number = PyNumber_Int(item); | |
12739 | arg2->Add(PyInt_AS_LONG(number)); | |
12740 | Py_DECREF(item); | |
12741 | Py_DECREF(number); | |
12742 | } | |
12743 | } | |
12744 | { | |
12745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12746 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12747 | ||
12748 | wxPyEndAllowThreads(__tstate); | |
12749 | if (PyErr_Occurred()) SWIG_fail; | |
12750 | } | |
12751 | Py_INCREF(Py_None); resultobj = Py_None; | |
12752 | { | |
12753 | if (temp2) delete arg2; | |
12754 | } | |
12755 | return resultobj; | |
12756 | fail: | |
12757 | { | |
12758 | if (temp2) delete arg2; | |
12759 | } | |
12760 | return NULL; | |
12761 | } | |
12762 | ||
12763 | ||
12764 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12765 | PyObject *resultobj; | |
12766 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12767 | PyObject *result; | |
12768 | PyObject * obj0 = 0 ; | |
12769 | char *kwnames[] = { | |
12770 | (char *) "self", NULL | |
12771 | }; | |
12772 | ||
12773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMultiChoiceDialog, | |
12775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12776 | { | |
12777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12778 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12779 | ||
12780 | wxPyEndAllowThreads(__tstate); | |
12781 | if (PyErr_Occurred()) SWIG_fail; | |
12782 | } | |
12783 | resultobj = result; | |
12784 | return resultobj; | |
12785 | fail: | |
12786 | return NULL; | |
12787 | } | |
12788 | ||
12789 | ||
12790 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12791 | PyObject *obj; | |
12792 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12793 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12794 | Py_INCREF(obj); | |
12795 | return Py_BuildValue((char *)""); | |
12796 | } | |
12797 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12798 | PyObject *resultobj; | |
12799 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12800 | wxString *arg2 = 0 ; | |
12801 | wxString *arg3 = 0 ; | |
12802 | int arg4 ; | |
12803 | wxString *arg5 = (wxString *) 0 ; | |
12804 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12805 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12806 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12807 | wxSingleChoiceDialog *result; | |
12808 | bool temp2 = False ; | |
12809 | bool temp3 = False ; | |
12810 | wxPoint temp6 ; | |
12811 | PyObject * obj0 = 0 ; | |
12812 | PyObject * obj1 = 0 ; | |
12813 | PyObject * obj2 = 0 ; | |
12814 | PyObject * obj3 = 0 ; | |
12815 | PyObject * obj4 = 0 ; | |
12816 | PyObject * obj5 = 0 ; | |
12817 | char *kwnames[] = { | |
12818 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12819 | }; | |
12820 | ||
12821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
12822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12824 | { | |
12825 | arg2 = wxString_in_helper(obj1); | |
12826 | if (arg2 == NULL) SWIG_fail; | |
12827 | temp2 = True; | |
12828 | } | |
12829 | { | |
12830 | arg3 = wxString_in_helper(obj2); | |
12831 | if (arg3 == NULL) SWIG_fail; | |
12832 | temp3 = True; | |
12833 | } | |
12834 | { | |
12835 | arg4 = PyList_Size(obj3); | |
12836 | arg5 = wxString_LIST_helper(obj3); | |
12837 | if (arg5 == NULL) SWIG_fail; | |
12838 | } | |
12839 | if (obj4) { | |
12840 | arg6 = (long) SWIG_AsLong(obj4); | |
12841 | if (PyErr_Occurred()) SWIG_fail; | |
12842 | } | |
12843 | if (obj5) { | |
12844 | { | |
12845 | arg7 = &temp6; | |
12846 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12847 | } | |
12848 | } | |
12849 | { | |
0439c23b | 12850 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12852 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12853 | ||
12854 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12855 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12856 | } |
12857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12858 | { | |
12859 | if (temp2) | |
12860 | delete arg2; | |
12861 | } | |
12862 | { | |
12863 | if (temp3) | |
12864 | delete arg3; | |
12865 | } | |
12866 | { | |
12867 | if (arg5) delete [] arg5; | |
12868 | } | |
12869 | return resultobj; | |
12870 | fail: | |
12871 | { | |
12872 | if (temp2) | |
12873 | delete arg2; | |
12874 | } | |
12875 | { | |
12876 | if (temp3) | |
12877 | delete arg3; | |
12878 | } | |
12879 | { | |
12880 | if (arg5) delete [] arg5; | |
12881 | } | |
12882 | return NULL; | |
12883 | } | |
12884 | ||
12885 | ||
12886 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12887 | PyObject *resultobj; | |
12888 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12889 | int result; | |
12890 | PyObject * obj0 = 0 ; | |
12891 | char *kwnames[] = { | |
12892 | (char *) "self", NULL | |
12893 | }; | |
12894 | ||
12895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12898 | { | |
12899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12900 | result = (int)(arg1)->GetSelection(); | |
12901 | ||
12902 | wxPyEndAllowThreads(__tstate); | |
12903 | if (PyErr_Occurred()) SWIG_fail; | |
12904 | } | |
12905 | resultobj = SWIG_FromInt((int)result); | |
12906 | return resultobj; | |
12907 | fail: | |
12908 | return NULL; | |
12909 | } | |
12910 | ||
12911 | ||
12912 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12913 | PyObject *resultobj; | |
12914 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12915 | wxString result; | |
12916 | PyObject * obj0 = 0 ; | |
12917 | char *kwnames[] = { | |
12918 | (char *) "self", NULL | |
12919 | }; | |
12920 | ||
12921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12924 | { | |
12925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12926 | result = (arg1)->GetStringSelection(); | |
12927 | ||
12928 | wxPyEndAllowThreads(__tstate); | |
12929 | if (PyErr_Occurred()) SWIG_fail; | |
12930 | } | |
12931 | { | |
12932 | #if wxUSE_UNICODE | |
12933 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12934 | #else | |
12935 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12936 | #endif | |
12937 | } | |
12938 | return resultobj; | |
12939 | fail: | |
12940 | return NULL; | |
12941 | } | |
12942 | ||
12943 | ||
12944 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12945 | PyObject *resultobj; | |
12946 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12947 | int arg2 ; | |
12948 | PyObject * obj0 = 0 ; | |
12949 | PyObject * obj1 = 0 ; | |
12950 | char *kwnames[] = { | |
12951 | (char *) "self",(char *) "sel", NULL | |
12952 | }; | |
12953 | ||
12954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleChoiceDialog, | |
12956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12957 | arg2 = (int) SWIG_AsInt(obj1); | |
12958 | if (PyErr_Occurred()) SWIG_fail; | |
12959 | { | |
12960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12961 | (arg1)->SetSelection(arg2); | |
12962 | ||
12963 | wxPyEndAllowThreads(__tstate); | |
12964 | if (PyErr_Occurred()) SWIG_fail; | |
12965 | } | |
12966 | Py_INCREF(Py_None); resultobj = Py_None; | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | return NULL; | |
12970 | } | |
12971 | ||
12972 | ||
12973 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12974 | PyObject *obj; | |
12975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12976 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12977 | Py_INCREF(obj); | |
12978 | return Py_BuildValue((char *)""); | |
12979 | } | |
12980 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12981 | PyObject *resultobj; | |
12982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12983 | wxString *arg2 = 0 ; | |
12984 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12985 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12986 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12987 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12988 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12989 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12990 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12991 | wxTextEntryDialog *result; | |
12992 | bool temp2 = False ; | |
12993 | bool temp3 = False ; | |
12994 | bool temp4 = False ; | |
12995 | wxPoint temp6 ; | |
12996 | PyObject * obj0 = 0 ; | |
12997 | PyObject * obj1 = 0 ; | |
12998 | PyObject * obj2 = 0 ; | |
12999 | PyObject * obj3 = 0 ; | |
13000 | PyObject * obj4 = 0 ; | |
13001 | PyObject * obj5 = 0 ; | |
13002 | char *kwnames[] = { | |
13003 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
13004 | }; | |
13005 | ||
13006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
13007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13009 | { | |
13010 | arg2 = wxString_in_helper(obj1); | |
13011 | if (arg2 == NULL) SWIG_fail; | |
13012 | temp2 = True; | |
13013 | } | |
13014 | if (obj2) { | |
13015 | { | |
13016 | arg3 = wxString_in_helper(obj2); | |
13017 | if (arg3 == NULL) SWIG_fail; | |
13018 | temp3 = True; | |
13019 | } | |
13020 | } | |
13021 | if (obj3) { | |
13022 | { | |
13023 | arg4 = wxString_in_helper(obj3); | |
13024 | if (arg4 == NULL) SWIG_fail; | |
13025 | temp4 = True; | |
13026 | } | |
13027 | } | |
13028 | if (obj4) { | |
13029 | arg5 = (long) SWIG_AsLong(obj4); | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | } | |
13032 | if (obj5) { | |
13033 | { | |
13034 | arg6 = &temp6; | |
13035 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
13036 | } | |
13037 | } | |
13038 | { | |
0439c23b | 13039 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13041 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13044 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13045 | } |
13046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextEntryDialog, 1); | |
13047 | { | |
13048 | if (temp2) | |
13049 | delete arg2; | |
13050 | } | |
13051 | { | |
13052 | if (temp3) | |
13053 | delete arg3; | |
13054 | } | |
13055 | { | |
13056 | if (temp4) | |
13057 | delete arg4; | |
13058 | } | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | { | |
13062 | if (temp2) | |
13063 | delete arg2; | |
13064 | } | |
13065 | { | |
13066 | if (temp3) | |
13067 | delete arg3; | |
13068 | } | |
13069 | { | |
13070 | if (temp4) | |
13071 | delete arg4; | |
13072 | } | |
13073 | return NULL; | |
13074 | } | |
13075 | ||
13076 | ||
13077 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13078 | PyObject *resultobj; | |
13079 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
13080 | wxString result; | |
13081 | PyObject * obj0 = 0 ; | |
13082 | char *kwnames[] = { | |
13083 | (char *) "self", NULL | |
13084 | }; | |
13085 | ||
13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
13087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
13088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13089 | { | |
13090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13091 | result = (arg1)->GetValue(); | |
13092 | ||
13093 | wxPyEndAllowThreads(__tstate); | |
13094 | if (PyErr_Occurred()) SWIG_fail; | |
13095 | } | |
13096 | { | |
13097 | #if wxUSE_UNICODE | |
13098 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13099 | #else | |
13100 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13101 | #endif | |
13102 | } | |
13103 | return resultobj; | |
13104 | fail: | |
13105 | return NULL; | |
13106 | } | |
13107 | ||
13108 | ||
13109 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13110 | PyObject *resultobj; | |
13111 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
13112 | wxString *arg2 = 0 ; | |
13113 | bool temp2 = False ; | |
13114 | PyObject * obj0 = 0 ; | |
13115 | PyObject * obj1 = 0 ; | |
13116 | char *kwnames[] = { | |
13117 | (char *) "self",(char *) "value", NULL | |
13118 | }; | |
13119 | ||
13120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextEntryDialog, | |
13122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13123 | { | |
13124 | arg2 = wxString_in_helper(obj1); | |
13125 | if (arg2 == NULL) SWIG_fail; | |
13126 | temp2 = True; | |
13127 | } | |
13128 | { | |
13129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13130 | (arg1)->SetValue((wxString const &)*arg2); | |
13131 | ||
13132 | wxPyEndAllowThreads(__tstate); | |
13133 | if (PyErr_Occurred()) SWIG_fail; | |
13134 | } | |
13135 | Py_INCREF(Py_None); resultobj = Py_None; | |
13136 | { | |
13137 | if (temp2) | |
13138 | delete arg2; | |
13139 | } | |
13140 | return resultobj; | |
13141 | fail: | |
13142 | { | |
13143 | if (temp2) | |
13144 | delete arg2; | |
13145 | } | |
13146 | return NULL; | |
13147 | } | |
13148 | ||
13149 | ||
13150 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
13151 | PyObject *obj; | |
13152 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13153 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
13154 | Py_INCREF(obj); | |
13155 | return Py_BuildValue((char *)""); | |
13156 | } | |
13157 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13158 | PyObject *resultobj; | |
13159 | wxFontData *result; | |
13160 | char *kwnames[] = { | |
13161 | NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
13165 | { | |
13166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13167 | result = (wxFontData *)new wxFontData(); | |
13168 | ||
13169 | wxPyEndAllowThreads(__tstate); | |
13170 | if (PyErr_Occurred()) SWIG_fail; | |
13171 | } | |
13172 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 1); | |
13173 | return resultobj; | |
13174 | fail: | |
13175 | return NULL; | |
13176 | } | |
13177 | ||
13178 | ||
13179 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13180 | PyObject *resultobj; | |
13181 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13182 | PyObject * obj0 = 0 ; | |
13183 | char *kwnames[] = { | |
13184 | (char *) "self", NULL | |
13185 | }; | |
13186 | ||
13187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
13188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13190 | { | |
13191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13192 | delete arg1; | |
13193 | ||
13194 | wxPyEndAllowThreads(__tstate); | |
13195 | if (PyErr_Occurred()) SWIG_fail; | |
13196 | } | |
13197 | Py_INCREF(Py_None); resultobj = Py_None; | |
13198 | return resultobj; | |
13199 | fail: | |
13200 | return NULL; | |
13201 | } | |
13202 | ||
13203 | ||
13204 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13205 | PyObject *resultobj; | |
13206 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13207 | bool arg2 ; | |
13208 | PyObject * obj0 = 0 ; | |
13209 | PyObject * obj1 = 0 ; | |
13210 | char *kwnames[] = { | |
13211 | (char *) "self",(char *) "enable", NULL | |
13212 | }; | |
13213 | ||
13214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
13215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13217 | arg2 = (bool) SWIG_AsBool(obj1); | |
13218 | if (PyErr_Occurred()) SWIG_fail; | |
13219 | { | |
13220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13221 | (arg1)->EnableEffects(arg2); | |
13222 | ||
13223 | wxPyEndAllowThreads(__tstate); | |
13224 | if (PyErr_Occurred()) SWIG_fail; | |
13225 | } | |
13226 | Py_INCREF(Py_None); resultobj = Py_None; | |
13227 | return resultobj; | |
13228 | fail: | |
13229 | return NULL; | |
13230 | } | |
13231 | ||
13232 | ||
13233 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13234 | PyObject *resultobj; | |
13235 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13236 | bool result; | |
13237 | PyObject * obj0 = 0 ; | |
13238 | char *kwnames[] = { | |
13239 | (char *) "self", NULL | |
13240 | }; | |
13241 | ||
13242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
13243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13245 | { | |
13246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13247 | result = (bool)(arg1)->GetAllowSymbols(); | |
13248 | ||
13249 | wxPyEndAllowThreads(__tstate); | |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
13251 | } | |
13252 | { | |
13253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13254 | } | |
13255 | return resultobj; | |
13256 | fail: | |
13257 | return NULL; | |
13258 | } | |
13259 | ||
13260 | ||
13261 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13262 | PyObject *resultobj; | |
13263 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13264 | wxColour result; | |
13265 | PyObject * obj0 = 0 ; | |
13266 | char *kwnames[] = { | |
13267 | (char *) "self", NULL | |
13268 | }; | |
13269 | ||
13270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
13271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13273 | { | |
13274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13275 | result = (arg1)->GetColour(); | |
13276 | ||
13277 | wxPyEndAllowThreads(__tstate); | |
13278 | if (PyErr_Occurred()) SWIG_fail; | |
13279 | } | |
13280 | { | |
13281 | wxColour * resultptr; | |
13282 | resultptr = new wxColour((wxColour &) result); | |
13283 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
13284 | } | |
13285 | return resultobj; | |
13286 | fail: | |
13287 | return NULL; | |
13288 | } | |
13289 | ||
13290 | ||
13291 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13292 | PyObject *resultobj; | |
13293 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13294 | wxFont result; | |
13295 | PyObject * obj0 = 0 ; | |
13296 | char *kwnames[] = { | |
13297 | (char *) "self", NULL | |
13298 | }; | |
13299 | ||
13300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
13301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13303 | { | |
13304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13305 | result = (arg1)->GetChosenFont(); | |
13306 | ||
13307 | wxPyEndAllowThreads(__tstate); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
13309 | } | |
13310 | { | |
13311 | wxFont * resultptr; | |
13312 | resultptr = new wxFont((wxFont &) result); | |
13313 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13314 | } | |
13315 | return resultobj; | |
13316 | fail: | |
13317 | return NULL; | |
13318 | } | |
13319 | ||
13320 | ||
13321 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13322 | PyObject *resultobj; | |
13323 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13324 | bool result; | |
13325 | PyObject * obj0 = 0 ; | |
13326 | char *kwnames[] = { | |
13327 | (char *) "self", NULL | |
13328 | }; | |
13329 | ||
13330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
13331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13333 | { | |
13334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13335 | result = (bool)(arg1)->GetEnableEffects(); | |
13336 | ||
13337 | wxPyEndAllowThreads(__tstate); | |
13338 | if (PyErr_Occurred()) SWIG_fail; | |
13339 | } | |
13340 | { | |
13341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13342 | } | |
13343 | return resultobj; | |
13344 | fail: | |
13345 | return NULL; | |
13346 | } | |
13347 | ||
13348 | ||
13349 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13350 | PyObject *resultobj; | |
13351 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13352 | wxFont result; | |
13353 | PyObject * obj0 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13361 | { | |
13362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13363 | result = (arg1)->GetInitialFont(); | |
13364 | ||
13365 | wxPyEndAllowThreads(__tstate); | |
13366 | if (PyErr_Occurred()) SWIG_fail; | |
13367 | } | |
13368 | { | |
13369 | wxFont * resultptr; | |
13370 | resultptr = new wxFont((wxFont &) result); | |
13371 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
13372 | } | |
13373 | return resultobj; | |
13374 | fail: | |
13375 | return NULL; | |
13376 | } | |
13377 | ||
13378 | ||
13379 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13380 | PyObject *resultobj; | |
13381 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13382 | bool result; | |
13383 | PyObject * obj0 = 0 ; | |
13384 | char *kwnames[] = { | |
13385 | (char *) "self", NULL | |
13386 | }; | |
13387 | ||
13388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
13389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13391 | { | |
13392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13393 | result = (bool)(arg1)->GetShowHelp(); | |
13394 | ||
13395 | wxPyEndAllowThreads(__tstate); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
13397 | } | |
13398 | { | |
13399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13400 | } | |
13401 | return resultobj; | |
13402 | fail: | |
13403 | return NULL; | |
13404 | } | |
13405 | ||
13406 | ||
13407 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13408 | PyObject *resultobj; | |
13409 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13410 | bool arg2 ; | |
13411 | PyObject * obj0 = 0 ; | |
13412 | PyObject * obj1 = 0 ; | |
13413 | char *kwnames[] = { | |
13414 | (char *) "self",(char *) "allowSymbols", NULL | |
13415 | }; | |
13416 | ||
13417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
13418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13420 | arg2 = (bool) SWIG_AsBool(obj1); | |
13421 | if (PyErr_Occurred()) SWIG_fail; | |
13422 | { | |
13423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13424 | (arg1)->SetAllowSymbols(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_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13437 | PyObject *resultobj; | |
13438 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13439 | wxFont *arg2 = 0 ; | |
13440 | PyObject * obj0 = 0 ; | |
13441 | PyObject * obj1 = 0 ; | |
13442 | char *kwnames[] = { | |
13443 | (char *) "self",(char *) "font", NULL | |
13444 | }; | |
13445 | ||
13446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
13447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13451 | SWIG_fail; | |
13452 | if (arg2 == NULL) { | |
13453 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13454 | SWIG_fail; | |
13455 | } | |
13456 | { | |
13457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13458 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
13459 | ||
13460 | wxPyEndAllowThreads(__tstate); | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
13463 | Py_INCREF(Py_None); resultobj = Py_None; | |
13464 | return resultobj; | |
13465 | fail: | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
13470 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13471 | PyObject *resultobj; | |
13472 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13473 | wxColour *arg2 = 0 ; | |
13474 | wxColour temp2 ; | |
13475 | PyObject * obj0 = 0 ; | |
13476 | PyObject * obj1 = 0 ; | |
13477 | char *kwnames[] = { | |
13478 | (char *) "self",(char *) "colour", NULL | |
13479 | }; | |
13480 | ||
13481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
13482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13484 | { | |
13485 | arg2 = &temp2; | |
13486 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
13487 | } | |
13488 | { | |
13489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13490 | (arg1)->SetColour((wxColour 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_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13503 | PyObject *resultobj; | |
13504 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13505 | wxFont *arg2 = 0 ; | |
13506 | PyObject * obj0 = 0 ; | |
13507 | PyObject * obj1 = 0 ; | |
13508 | char *kwnames[] = { | |
13509 | (char *) "self",(char *) "font", NULL | |
13510 | }; | |
13511 | ||
13512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
13513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
13516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13517 | SWIG_fail; | |
13518 | if (arg2 == NULL) { | |
13519 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13520 | SWIG_fail; | |
13521 | } | |
13522 | { | |
13523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13524 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
13525 | ||
13526 | wxPyEndAllowThreads(__tstate); | |
13527 | if (PyErr_Occurred()) SWIG_fail; | |
13528 | } | |
13529 | Py_INCREF(Py_None); resultobj = Py_None; | |
13530 | return resultobj; | |
13531 | fail: | |
13532 | return NULL; | |
13533 | } | |
13534 | ||
13535 | ||
13536 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13537 | PyObject *resultobj; | |
13538 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13539 | int arg2 ; | |
13540 | int arg3 ; | |
13541 | PyObject * obj0 = 0 ; | |
13542 | PyObject * obj1 = 0 ; | |
13543 | PyObject * obj2 = 0 ; | |
13544 | char *kwnames[] = { | |
13545 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13546 | }; | |
13547 | ||
13548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13551 | arg2 = (int) SWIG_AsInt(obj1); | |
13552 | if (PyErr_Occurred()) SWIG_fail; | |
13553 | arg3 = (int) SWIG_AsInt(obj2); | |
13554 | if (PyErr_Occurred()) SWIG_fail; | |
13555 | { | |
13556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13557 | (arg1)->SetRange(arg2,arg3); | |
13558 | ||
13559 | wxPyEndAllowThreads(__tstate); | |
13560 | if (PyErr_Occurred()) SWIG_fail; | |
13561 | } | |
13562 | Py_INCREF(Py_None); resultobj = Py_None; | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13570 | PyObject *resultobj; | |
13571 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13572 | bool arg2 ; | |
13573 | PyObject * obj0 = 0 ; | |
13574 | PyObject * obj1 = 0 ; | |
13575 | char *kwnames[] = { | |
13576 | (char *) "self",(char *) "showHelp", NULL | |
13577 | }; | |
13578 | ||
13579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontData, | |
13581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13582 | arg2 = (bool) SWIG_AsBool(obj1); | |
13583 | if (PyErr_Occurred()) SWIG_fail; | |
13584 | { | |
13585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13586 | (arg1)->SetShowHelp(arg2); | |
13587 | ||
13588 | wxPyEndAllowThreads(__tstate); | |
13589 | if (PyErr_Occurred()) SWIG_fail; | |
13590 | } | |
13591 | Py_INCREF(Py_None); resultobj = Py_None; | |
13592 | return resultobj; | |
13593 | fail: | |
13594 | return NULL; | |
13595 | } | |
13596 | ||
13597 | ||
13598 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13599 | PyObject *obj; | |
13600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13601 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13602 | Py_INCREF(obj); | |
13603 | return Py_BuildValue((char *)""); | |
13604 | } | |
13605 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13606 | PyObject *resultobj; | |
13607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13608 | wxFontData *arg2 = 0 ; | |
13609 | wxFontDialog *result; | |
13610 | PyObject * obj0 = 0 ; | |
13611 | PyObject * obj1 = 0 ; | |
13612 | char *kwnames[] = { | |
13613 | (char *) "parent",(char *) "data", NULL | |
13614 | }; | |
13615 | ||
13616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFontData, | |
13620 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13621 | SWIG_fail; | |
13622 | if (arg2 == NULL) { | |
13623 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13624 | SWIG_fail; | |
13625 | } | |
13626 | { | |
0439c23b | 13627 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13629 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13630 | ||
13631 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13632 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13633 | } |
13634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontDialog, 1); | |
13635 | return resultobj; | |
13636 | fail: | |
13637 | return NULL; | |
13638 | } | |
13639 | ||
13640 | ||
13641 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13642 | PyObject *resultobj; | |
13643 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13644 | wxFontData *result; | |
13645 | PyObject * obj0 = 0 ; | |
13646 | char *kwnames[] = { | |
13647 | (char *) "self", NULL | |
13648 | }; | |
13649 | ||
13650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontDialog, | |
13652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13653 | { | |
13654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13655 | { | |
13656 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13657 | result = (wxFontData *) &_result_ref; | |
13658 | } | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
13663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontData, 0); | |
13664 | return resultobj; | |
13665 | fail: | |
13666 | return NULL; | |
13667 | } | |
13668 | ||
13669 | ||
13670 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13671 | PyObject *obj; | |
13672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13673 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13674 | Py_INCREF(obj); | |
13675 | return Py_BuildValue((char *)""); | |
13676 | } | |
13677 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13678 | PyObject *resultobj; | |
13679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13680 | wxString *arg2 = 0 ; | |
13681 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13682 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13683 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13684 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13685 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13686 | wxMessageDialog *result; | |
13687 | bool temp2 = False ; | |
13688 | bool temp3 = False ; | |
13689 | wxPoint temp5 ; | |
13690 | PyObject * obj0 = 0 ; | |
13691 | PyObject * obj1 = 0 ; | |
13692 | PyObject * obj2 = 0 ; | |
13693 | PyObject * obj3 = 0 ; | |
13694 | PyObject * obj4 = 0 ; | |
13695 | char *kwnames[] = { | |
13696 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13697 | }; | |
13698 | ||
13699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13702 | { | |
13703 | arg2 = wxString_in_helper(obj1); | |
13704 | if (arg2 == NULL) SWIG_fail; | |
13705 | temp2 = True; | |
13706 | } | |
13707 | if (obj2) { | |
13708 | { | |
13709 | arg3 = wxString_in_helper(obj2); | |
13710 | if (arg3 == NULL) SWIG_fail; | |
13711 | temp3 = True; | |
13712 | } | |
13713 | } | |
13714 | if (obj3) { | |
13715 | arg4 = (long) SWIG_AsLong(obj3); | |
13716 | if (PyErr_Occurred()) SWIG_fail; | |
13717 | } | |
13718 | if (obj4) { | |
13719 | { | |
13720 | arg5 = &temp5; | |
13721 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13722 | } | |
13723 | } | |
13724 | { | |
0439c23b | 13725 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13727 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13728 | ||
13729 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13730 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13731 | } |
13732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMessageDialog, 1); | |
13733 | { | |
13734 | if (temp2) | |
13735 | delete arg2; | |
13736 | } | |
13737 | { | |
13738 | if (temp3) | |
13739 | delete arg3; | |
13740 | } | |
13741 | return resultobj; | |
13742 | fail: | |
13743 | { | |
13744 | if (temp2) | |
13745 | delete arg2; | |
13746 | } | |
13747 | { | |
13748 | if (temp3) | |
13749 | delete arg3; | |
13750 | } | |
13751 | return NULL; | |
13752 | } | |
13753 | ||
13754 | ||
13755 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13756 | PyObject *obj; | |
13757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13758 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13759 | Py_INCREF(obj); | |
13760 | return Py_BuildValue((char *)""); | |
13761 | } | |
13762 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13763 | PyObject *resultobj; | |
13764 | wxString *arg1 = 0 ; | |
13765 | wxString *arg2 = 0 ; | |
13766 | int arg3 = (int) 100 ; | |
13767 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13768 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13769 | wxProgressDialog *result; | |
13770 | bool temp1 = False ; | |
13771 | bool temp2 = False ; | |
13772 | PyObject * obj0 = 0 ; | |
13773 | PyObject * obj1 = 0 ; | |
13774 | PyObject * obj2 = 0 ; | |
13775 | PyObject * obj3 = 0 ; | |
13776 | PyObject * obj4 = 0 ; | |
13777 | char *kwnames[] = { | |
13778 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13779 | }; | |
13780 | ||
13781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13782 | { | |
13783 | arg1 = wxString_in_helper(obj0); | |
13784 | if (arg1 == NULL) SWIG_fail; | |
13785 | temp1 = True; | |
13786 | } | |
13787 | { | |
13788 | arg2 = wxString_in_helper(obj1); | |
13789 | if (arg2 == NULL) SWIG_fail; | |
13790 | temp2 = True; | |
13791 | } | |
13792 | if (obj2) { | |
13793 | arg3 = (int) SWIG_AsInt(obj2); | |
13794 | if (PyErr_Occurred()) SWIG_fail; | |
13795 | } | |
13796 | if (obj3) { | |
13797 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
13798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13799 | } | |
13800 | if (obj4) { | |
13801 | arg5 = (int) SWIG_AsInt(obj4); | |
13802 | if (PyErr_Occurred()) SWIG_fail; | |
13803 | } | |
13804 | { | |
0439c23b | 13805 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13807 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13808 | ||
13809 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13810 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13811 | } |
13812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProgressDialog, 1); | |
13813 | { | |
13814 | if (temp1) | |
13815 | delete arg1; | |
13816 | } | |
13817 | { | |
13818 | if (temp2) | |
13819 | delete arg2; | |
13820 | } | |
13821 | return resultobj; | |
13822 | fail: | |
13823 | { | |
13824 | if (temp1) | |
13825 | delete arg1; | |
13826 | } | |
13827 | { | |
13828 | if (temp2) | |
13829 | delete arg2; | |
13830 | } | |
13831 | return NULL; | |
13832 | } | |
13833 | ||
13834 | ||
13835 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13836 | PyObject *resultobj; | |
13837 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13838 | int arg2 ; | |
13839 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13840 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13841 | bool result; | |
13842 | bool temp3 = False ; | |
13843 | PyObject * obj0 = 0 ; | |
13844 | PyObject * obj1 = 0 ; | |
13845 | PyObject * obj2 = 0 ; | |
13846 | char *kwnames[] = { | |
13847 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13848 | }; | |
13849 | ||
13850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13853 | arg2 = (int) SWIG_AsInt(obj1); | |
13854 | if (PyErr_Occurred()) SWIG_fail; | |
13855 | if (obj2) { | |
13856 | { | |
13857 | arg3 = wxString_in_helper(obj2); | |
13858 | if (arg3 == NULL) SWIG_fail; | |
13859 | temp3 = True; | |
13860 | } | |
13861 | } | |
13862 | { | |
13863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13864 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13865 | ||
13866 | wxPyEndAllowThreads(__tstate); | |
13867 | if (PyErr_Occurred()) SWIG_fail; | |
13868 | } | |
13869 | { | |
13870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13871 | } | |
13872 | { | |
13873 | if (temp3) | |
13874 | delete arg3; | |
13875 | } | |
13876 | return resultobj; | |
13877 | fail: | |
13878 | { | |
13879 | if (temp3) | |
13880 | delete arg3; | |
13881 | } | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13887 | PyObject *resultobj; | |
13888 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13889 | PyObject * obj0 = 0 ; | |
13890 | char *kwnames[] = { | |
13891 | (char *) "self", NULL | |
13892 | }; | |
13893 | ||
13894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProgressDialog, | |
13896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13897 | { | |
13898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13899 | (arg1)->Resume(); | |
13900 | ||
13901 | wxPyEndAllowThreads(__tstate); | |
13902 | if (PyErr_Occurred()) SWIG_fail; | |
13903 | } | |
13904 | Py_INCREF(Py_None); resultobj = Py_None; | |
13905 | return resultobj; | |
13906 | fail: | |
13907 | return NULL; | |
13908 | } | |
13909 | ||
13910 | ||
13911 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13912 | PyObject *obj; | |
13913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13914 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13915 | Py_INCREF(obj); | |
13916 | return Py_BuildValue((char *)""); | |
13917 | } | |
13918 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13919 | PyObject *resultobj; | |
13920 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13921 | int arg2 = (int) 0 ; | |
13922 | wxFindDialogEvent *result; | |
13923 | PyObject * obj0 = 0 ; | |
13924 | PyObject * obj1 = 0 ; | |
13925 | char *kwnames[] = { | |
13926 | (char *) "commandType",(char *) "id", NULL | |
13927 | }; | |
13928 | ||
13929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; | |
13930 | if (obj0) { | |
13931 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13932 | if (PyErr_Occurred()) SWIG_fail; | |
13933 | } | |
13934 | if (obj1) { | |
13935 | arg2 = (int) SWIG_AsInt(obj1); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
13938 | { | |
13939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13940 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13941 | ||
13942 | wxPyEndAllowThreads(__tstate); | |
13943 | if (PyErr_Occurred()) SWIG_fail; | |
13944 | } | |
13945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindDialogEvent, 1); | |
13946 | return resultobj; | |
13947 | fail: | |
13948 | return NULL; | |
13949 | } | |
13950 | ||
13951 | ||
13952 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13953 | PyObject *resultobj; | |
13954 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13955 | int result; | |
13956 | PyObject * obj0 = 0 ; | |
13957 | char *kwnames[] = { | |
13958 | (char *) "self", NULL | |
13959 | }; | |
13960 | ||
13961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13964 | { | |
13965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13966 | result = (int)(arg1)->GetFlags(); | |
13967 | ||
13968 | wxPyEndAllowThreads(__tstate); | |
13969 | if (PyErr_Occurred()) SWIG_fail; | |
13970 | } | |
13971 | resultobj = SWIG_FromInt((int)result); | |
13972 | return resultobj; | |
13973 | fail: | |
13974 | return NULL; | |
13975 | } | |
13976 | ||
13977 | ||
13978 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13979 | PyObject *resultobj; | |
13980 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13981 | wxString *result; | |
13982 | PyObject * obj0 = 0 ; | |
13983 | char *kwnames[] = { | |
13984 | (char *) "self", NULL | |
13985 | }; | |
13986 | ||
13987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
13989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13990 | { | |
13991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13992 | { | |
13993 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13994 | result = (wxString *) &_result_ref; | |
13995 | } | |
13996 | ||
13997 | wxPyEndAllowThreads(__tstate); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
14000 | { | |
14001 | #if wxUSE_UNICODE | |
14002 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14003 | #else | |
14004 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14005 | #endif | |
14006 | } | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj; | |
14015 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14016 | wxString *result; | |
14017 | PyObject * obj0 = 0 ; | |
14018 | char *kwnames[] = { | |
14019 | (char *) "self", NULL | |
14020 | }; | |
14021 | ||
14022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
14023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14025 | { | |
14026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14027 | { | |
14028 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
14029 | result = (wxString *) &_result_ref; | |
14030 | } | |
14031 | ||
14032 | wxPyEndAllowThreads(__tstate); | |
14033 | if (PyErr_Occurred()) SWIG_fail; | |
14034 | } | |
14035 | { | |
14036 | #if wxUSE_UNICODE | |
14037 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14038 | #else | |
14039 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14040 | #endif | |
14041 | } | |
14042 | return resultobj; | |
14043 | fail: | |
14044 | return NULL; | |
14045 | } | |
14046 | ||
14047 | ||
14048 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14049 | PyObject *resultobj; | |
14050 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14051 | wxFindReplaceDialog *result; | |
14052 | PyObject * obj0 = 0 ; | |
14053 | char *kwnames[] = { | |
14054 | (char *) "self", NULL | |
14055 | }; | |
14056 | ||
14057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
14058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14060 | { | |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
14063 | ||
14064 | wxPyEndAllowThreads(__tstate); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
14067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 0); | |
14068 | return resultobj; | |
14069 | fail: | |
14070 | return NULL; | |
14071 | } | |
14072 | ||
14073 | ||
14074 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14075 | PyObject *resultobj; | |
14076 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14077 | int arg2 ; | |
14078 | PyObject * obj0 = 0 ; | |
14079 | PyObject * obj1 = 0 ; | |
14080 | char *kwnames[] = { | |
14081 | (char *) "self",(char *) "flags", NULL | |
14082 | }; | |
14083 | ||
14084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
14085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14087 | arg2 = (int) SWIG_AsInt(obj1); | |
14088 | if (PyErr_Occurred()) SWIG_fail; | |
14089 | { | |
14090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14091 | (arg1)->SetFlags(arg2); | |
14092 | ||
14093 | wxPyEndAllowThreads(__tstate); | |
14094 | if (PyErr_Occurred()) SWIG_fail; | |
14095 | } | |
14096 | Py_INCREF(Py_None); resultobj = Py_None; | |
14097 | return resultobj; | |
14098 | fail: | |
14099 | return NULL; | |
14100 | } | |
14101 | ||
14102 | ||
14103 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14104 | PyObject *resultobj; | |
14105 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14106 | wxString *arg2 = 0 ; | |
14107 | bool temp2 = False ; | |
14108 | PyObject * obj0 = 0 ; | |
14109 | PyObject * obj1 = 0 ; | |
14110 | char *kwnames[] = { | |
14111 | (char *) "self",(char *) "str", NULL | |
14112 | }; | |
14113 | ||
14114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
14115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14117 | { | |
14118 | arg2 = wxString_in_helper(obj1); | |
14119 | if (arg2 == NULL) SWIG_fail; | |
14120 | temp2 = True; | |
14121 | } | |
14122 | { | |
14123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14124 | (arg1)->SetFindString((wxString const &)*arg2); | |
14125 | ||
14126 | wxPyEndAllowThreads(__tstate); | |
14127 | if (PyErr_Occurred()) SWIG_fail; | |
14128 | } | |
14129 | Py_INCREF(Py_None); resultobj = Py_None; | |
14130 | { | |
14131 | if (temp2) | |
14132 | delete arg2; | |
14133 | } | |
14134 | return resultobj; | |
14135 | fail: | |
14136 | { | |
14137 | if (temp2) | |
14138 | delete arg2; | |
14139 | } | |
14140 | return NULL; | |
14141 | } | |
14142 | ||
14143 | ||
14144 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14145 | PyObject *resultobj; | |
14146 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
14147 | wxString *arg2 = 0 ; | |
14148 | bool temp2 = False ; | |
14149 | PyObject * obj0 = 0 ; | |
14150 | PyObject * obj1 = 0 ; | |
14151 | char *kwnames[] = { | |
14152 | (char *) "self",(char *) "str", NULL | |
14153 | }; | |
14154 | ||
14155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindDialogEvent, | |
14157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14158 | { | |
14159 | arg2 = wxString_in_helper(obj1); | |
14160 | if (arg2 == NULL) SWIG_fail; | |
14161 | temp2 = True; | |
14162 | } | |
14163 | { | |
14164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14165 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14166 | ||
14167 | wxPyEndAllowThreads(__tstate); | |
14168 | if (PyErr_Occurred()) SWIG_fail; | |
14169 | } | |
14170 | Py_INCREF(Py_None); resultobj = Py_None; | |
14171 | { | |
14172 | if (temp2) | |
14173 | delete arg2; | |
14174 | } | |
14175 | return resultobj; | |
14176 | fail: | |
14177 | { | |
14178 | if (temp2) | |
14179 | delete arg2; | |
14180 | } | |
14181 | return NULL; | |
14182 | } | |
14183 | ||
14184 | ||
14185 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
14186 | PyObject *obj; | |
14187 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14188 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
14189 | Py_INCREF(obj); | |
14190 | return Py_BuildValue((char *)""); | |
14191 | } | |
14192 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14193 | PyObject *resultobj; | |
14194 | int arg1 = (int) 0 ; | |
14195 | wxFindReplaceData *result; | |
14196 | PyObject * obj0 = 0 ; | |
14197 | char *kwnames[] = { | |
14198 | (char *) "flags", NULL | |
14199 | }; | |
14200 | ||
14201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; | |
14202 | if (obj0) { | |
14203 | arg1 = (int) SWIG_AsInt(obj0); | |
14204 | if (PyErr_Occurred()) SWIG_fail; | |
14205 | } | |
14206 | { | |
14207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14208 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
14209 | ||
14210 | wxPyEndAllowThreads(__tstate); | |
14211 | if (PyErr_Occurred()) SWIG_fail; | |
14212 | } | |
14213 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 1); | |
14214 | return resultobj; | |
14215 | fail: | |
14216 | return NULL; | |
14217 | } | |
14218 | ||
14219 | ||
14220 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14221 | PyObject *resultobj; | |
14222 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | char *kwnames[] = { | |
14225 | (char *) "self", NULL | |
14226 | }; | |
14227 | ||
14228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
14229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14231 | { | |
14232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14233 | delete arg1; | |
14234 | ||
14235 | wxPyEndAllowThreads(__tstate); | |
14236 | if (PyErr_Occurred()) SWIG_fail; | |
14237 | } | |
14238 | Py_INCREF(Py_None); resultobj = Py_None; | |
14239 | return resultobj; | |
14240 | fail: | |
14241 | return NULL; | |
14242 | } | |
14243 | ||
14244 | ||
14245 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14246 | PyObject *resultobj; | |
14247 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14248 | wxString *result; | |
14249 | PyObject * obj0 = 0 ; | |
14250 | char *kwnames[] = { | |
14251 | (char *) "self", NULL | |
14252 | }; | |
14253 | ||
14254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
14255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14257 | { | |
14258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14259 | { | |
14260 | wxString const &_result_ref = (arg1)->GetFindString(); | |
14261 | result = (wxString *) &_result_ref; | |
14262 | } | |
14263 | ||
14264 | wxPyEndAllowThreads(__tstate); | |
14265 | if (PyErr_Occurred()) SWIG_fail; | |
14266 | } | |
14267 | { | |
14268 | #if wxUSE_UNICODE | |
14269 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14270 | #else | |
14271 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14272 | #endif | |
14273 | } | |
14274 | return resultobj; | |
14275 | fail: | |
14276 | return NULL; | |
14277 | } | |
14278 | ||
14279 | ||
14280 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14281 | PyObject *resultobj; | |
14282 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14283 | wxString *result; | |
14284 | PyObject * obj0 = 0 ; | |
14285 | char *kwnames[] = { | |
14286 | (char *) "self", NULL | |
14287 | }; | |
14288 | ||
14289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
14290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14292 | { | |
14293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14294 | { | |
14295 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
14296 | result = (wxString *) &_result_ref; | |
14297 | } | |
14298 | ||
14299 | wxPyEndAllowThreads(__tstate); | |
14300 | if (PyErr_Occurred()) SWIG_fail; | |
14301 | } | |
14302 | { | |
14303 | #if wxUSE_UNICODE | |
14304 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
14305 | #else | |
14306 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
14307 | #endif | |
14308 | } | |
14309 | return resultobj; | |
14310 | fail: | |
14311 | return NULL; | |
14312 | } | |
14313 | ||
14314 | ||
14315 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14316 | PyObject *resultobj; | |
14317 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14318 | int result; | |
14319 | PyObject * obj0 = 0 ; | |
14320 | char *kwnames[] = { | |
14321 | (char *) "self", NULL | |
14322 | }; | |
14323 | ||
14324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
14325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14327 | { | |
14328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14329 | result = (int)(arg1)->GetFlags(); | |
14330 | ||
14331 | wxPyEndAllowThreads(__tstate); | |
14332 | if (PyErr_Occurred()) SWIG_fail; | |
14333 | } | |
14334 | resultobj = SWIG_FromInt((int)result); | |
14335 | return resultobj; | |
14336 | fail: | |
14337 | return NULL; | |
14338 | } | |
14339 | ||
14340 | ||
14341 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14342 | PyObject *resultobj; | |
14343 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14344 | int arg2 ; | |
14345 | PyObject * obj0 = 0 ; | |
14346 | PyObject * obj1 = 0 ; | |
14347 | char *kwnames[] = { | |
14348 | (char *) "self",(char *) "flags", NULL | |
14349 | }; | |
14350 | ||
14351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
14352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14354 | arg2 = (int) SWIG_AsInt(obj1); | |
14355 | if (PyErr_Occurred()) SWIG_fail; | |
14356 | { | |
14357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14358 | (arg1)->SetFlags(arg2); | |
14359 | ||
14360 | wxPyEndAllowThreads(__tstate); | |
14361 | if (PyErr_Occurred()) SWIG_fail; | |
14362 | } | |
14363 | Py_INCREF(Py_None); resultobj = Py_None; | |
14364 | return resultobj; | |
14365 | fail: | |
14366 | return NULL; | |
14367 | } | |
14368 | ||
14369 | ||
14370 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14371 | PyObject *resultobj; | |
14372 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14373 | wxString *arg2 = 0 ; | |
14374 | bool temp2 = False ; | |
14375 | PyObject * obj0 = 0 ; | |
14376 | PyObject * obj1 = 0 ; | |
14377 | char *kwnames[] = { | |
14378 | (char *) "self",(char *) "str", NULL | |
14379 | }; | |
14380 | ||
14381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
14382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14384 | { | |
14385 | arg2 = wxString_in_helper(obj1); | |
14386 | if (arg2 == NULL) SWIG_fail; | |
14387 | temp2 = True; | |
14388 | } | |
14389 | { | |
14390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14391 | (arg1)->SetFindString((wxString const &)*arg2); | |
14392 | ||
14393 | wxPyEndAllowThreads(__tstate); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | } | |
14396 | Py_INCREF(Py_None); resultobj = Py_None; | |
14397 | { | |
14398 | if (temp2) | |
14399 | delete arg2; | |
14400 | } | |
14401 | return resultobj; | |
14402 | fail: | |
14403 | { | |
14404 | if (temp2) | |
14405 | delete arg2; | |
14406 | } | |
14407 | return NULL; | |
14408 | } | |
14409 | ||
14410 | ||
14411 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14412 | PyObject *resultobj; | |
14413 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
14414 | wxString *arg2 = 0 ; | |
14415 | bool temp2 = False ; | |
14416 | PyObject * obj0 = 0 ; | |
14417 | PyObject * obj1 = 0 ; | |
14418 | char *kwnames[] = { | |
14419 | (char *) "self",(char *) "str", NULL | |
14420 | }; | |
14421 | ||
14422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
14423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceData, | |
14424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14425 | { | |
14426 | arg2 = wxString_in_helper(obj1); | |
14427 | if (arg2 == NULL) SWIG_fail; | |
14428 | temp2 = True; | |
14429 | } | |
14430 | { | |
14431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14432 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
14433 | ||
14434 | wxPyEndAllowThreads(__tstate); | |
14435 | if (PyErr_Occurred()) SWIG_fail; | |
14436 | } | |
14437 | Py_INCREF(Py_None); resultobj = Py_None; | |
14438 | { | |
14439 | if (temp2) | |
14440 | delete arg2; | |
14441 | } | |
14442 | return resultobj; | |
14443 | fail: | |
14444 | { | |
14445 | if (temp2) | |
14446 | delete arg2; | |
14447 | } | |
14448 | return NULL; | |
14449 | } | |
14450 | ||
14451 | ||
14452 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
14453 | PyObject *obj; | |
14454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14455 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
14456 | Py_INCREF(obj); | |
14457 | return Py_BuildValue((char *)""); | |
14458 | } | |
14459 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14460 | PyObject *resultobj; | |
14461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14462 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14463 | wxString *arg3 = 0 ; | |
14464 | int arg4 = (int) 0 ; | |
14465 | wxFindReplaceDialog *result; | |
14466 | bool temp3 = False ; | |
14467 | PyObject * obj0 = 0 ; | |
14468 | PyObject * obj1 = 0 ; | |
14469 | PyObject * obj2 = 0 ; | |
14470 | PyObject * obj3 = 0 ; | |
14471 | char *kwnames[] = { | |
14472 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14473 | }; | |
14474 | ||
14475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14480 | { | |
14481 | arg3 = wxString_in_helper(obj2); | |
14482 | if (arg3 == NULL) SWIG_fail; | |
14483 | temp3 = True; | |
14484 | } | |
14485 | if (obj3) { | |
14486 | arg4 = (int) SWIG_AsInt(obj3); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
14489 | { | |
0439c23b | 14490 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14492 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
14493 | ||
14494 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14495 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14496 | } |
14497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14498 | { | |
14499 | if (temp3) | |
14500 | delete arg3; | |
14501 | } | |
14502 | return resultobj; | |
14503 | fail: | |
14504 | { | |
14505 | if (temp3) | |
14506 | delete arg3; | |
14507 | } | |
14508 | return NULL; | |
14509 | } | |
14510 | ||
14511 | ||
14512 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14513 | PyObject *resultobj; | |
14514 | wxFindReplaceDialog *result; | |
14515 | char *kwnames[] = { | |
14516 | NULL | |
14517 | }; | |
14518 | ||
14519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14520 | { | |
0439c23b | 14521 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14523 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14524 | ||
14525 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14526 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14527 | } |
14528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14529 | return resultobj; | |
14530 | fail: | |
14531 | return NULL; | |
14532 | } | |
14533 | ||
14534 | ||
14535 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14536 | PyObject *resultobj; | |
14537 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14538 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14539 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14540 | wxString *arg4 = 0 ; | |
14541 | int arg5 = (int) 0 ; | |
14542 | bool result; | |
14543 | bool temp4 = False ; | |
14544 | PyObject * obj0 = 0 ; | |
14545 | PyObject * obj1 = 0 ; | |
14546 | PyObject * obj2 = 0 ; | |
14547 | PyObject * obj3 = 0 ; | |
14548 | PyObject * obj4 = 0 ; | |
14549 | char *kwnames[] = { | |
14550 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14551 | }; | |
14552 | ||
14553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14556 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14558 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFindReplaceData, | |
14559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14560 | { | |
14561 | arg4 = wxString_in_helper(obj3); | |
14562 | if (arg4 == NULL) SWIG_fail; | |
14563 | temp4 = True; | |
14564 | } | |
14565 | if (obj4) { | |
14566 | arg5 = (int) SWIG_AsInt(obj4); | |
14567 | if (PyErr_Occurred()) SWIG_fail; | |
14568 | } | |
14569 | { | |
14570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14571 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
14572 | ||
14573 | wxPyEndAllowThreads(__tstate); | |
14574 | if (PyErr_Occurred()) SWIG_fail; | |
14575 | } | |
14576 | { | |
14577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14578 | } | |
14579 | { | |
14580 | if (temp4) | |
14581 | delete arg4; | |
14582 | } | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | { | |
14586 | if (temp4) | |
14587 | delete arg4; | |
14588 | } | |
14589 | return NULL; | |
14590 | } | |
14591 | ||
14592 | ||
14593 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14594 | PyObject *resultobj; | |
14595 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14596 | wxFindReplaceData *result; | |
14597 | PyObject * obj0 = 0 ; | |
14598 | char *kwnames[] = { | |
14599 | (char *) "self", NULL | |
14600 | }; | |
14601 | ||
14602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14605 | { | |
14606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14607 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14608 | ||
14609 | wxPyEndAllowThreads(__tstate); | |
14610 | if (PyErr_Occurred()) SWIG_fail; | |
14611 | } | |
14612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFindReplaceData, 0); | |
14613 | return resultobj; | |
14614 | fail: | |
14615 | return NULL; | |
14616 | } | |
14617 | ||
14618 | ||
14619 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14620 | PyObject *resultobj; | |
14621 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14622 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14623 | PyObject * obj0 = 0 ; | |
14624 | PyObject * obj1 = 0 ; | |
14625 | char *kwnames[] = { | |
14626 | (char *) "self",(char *) "data", NULL | |
14627 | }; | |
14628 | ||
14629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFindReplaceDialog, | |
14631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFindReplaceData, | |
14633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14634 | { | |
14635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14636 | (arg1)->SetData(arg2); | |
14637 | ||
14638 | wxPyEndAllowThreads(__tstate); | |
14639 | if (PyErr_Occurred()) SWIG_fail; | |
14640 | } | |
14641 | Py_INCREF(Py_None); resultobj = Py_None; | |
14642 | return resultobj; | |
14643 | fail: | |
14644 | return NULL; | |
14645 | } | |
14646 | ||
14647 | ||
14648 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14649 | PyObject *obj; | |
14650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14651 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14652 | Py_INCREF(obj); | |
14653 | return Py_BuildValue((char *)""); | |
14654 | } | |
14655 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14656 | PyObject *resultobj; | |
14657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
14658 | int arg2 = (int) (int)-1 ; |
14659 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14660 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
14661 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14662 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14663 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14664 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14665 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14666 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14667 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14668 | wxMDIParentFrame *result; | |
14669 | bool temp3 = False ; | |
14670 | wxPoint temp4 ; | |
14671 | wxSize temp5 ; | |
14672 | bool temp7 = False ; | |
14673 | PyObject * obj0 = 0 ; | |
14674 | PyObject * obj1 = 0 ; | |
14675 | PyObject * obj2 = 0 ; | |
14676 | PyObject * obj3 = 0 ; | |
14677 | PyObject * obj4 = 0 ; | |
14678 | PyObject * obj5 = 0 ; | |
14679 | PyObject * obj6 = 0 ; | |
14680 | char *kwnames[] = { | |
14681 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14682 | }; | |
14683 | ||
248ed943 | 14684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
14685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
14687 | if (obj1) { |
14688 | arg2 = (int const) SWIG_AsInt(obj1); | |
14689 | if (PyErr_Occurred()) SWIG_fail; | |
14690 | } | |
14691 | if (obj2) { | |
14692 | { | |
14693 | arg3 = wxString_in_helper(obj2); | |
14694 | if (arg3 == NULL) SWIG_fail; | |
14695 | temp3 = True; | |
14696 | } | |
d55e5bfc RD |
14697 | } |
14698 | if (obj3) { | |
14699 | { | |
14700 | arg4 = &temp4; | |
14701 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14702 | } | |
14703 | } | |
14704 | if (obj4) { | |
14705 | { | |
14706 | arg5 = &temp5; | |
14707 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14708 | } | |
14709 | } | |
14710 | if (obj5) { | |
14711 | arg6 = (long) SWIG_AsLong(obj5); | |
14712 | if (PyErr_Occurred()) SWIG_fail; | |
14713 | } | |
14714 | if (obj6) { | |
14715 | { | |
14716 | arg7 = wxString_in_helper(obj6); | |
14717 | if (arg7 == NULL) SWIG_fail; | |
14718 | temp7 = True; | |
14719 | } | |
14720 | } | |
14721 | { | |
0439c23b | 14722 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14724 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14725 | ||
14726 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14727 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14728 | } |
14729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14730 | { | |
14731 | if (temp3) | |
14732 | delete arg3; | |
14733 | } | |
14734 | { | |
14735 | if (temp7) | |
14736 | delete arg7; | |
14737 | } | |
14738 | return resultobj; | |
14739 | fail: | |
14740 | { | |
14741 | if (temp3) | |
14742 | delete arg3; | |
14743 | } | |
14744 | { | |
14745 | if (temp7) | |
14746 | delete arg7; | |
14747 | } | |
14748 | return NULL; | |
14749 | } | |
14750 | ||
14751 | ||
14752 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14753 | PyObject *resultobj; | |
14754 | wxMDIParentFrame *result; | |
14755 | char *kwnames[] = { | |
14756 | NULL | |
14757 | }; | |
14758 | ||
14759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14760 | { | |
0439c23b | 14761 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
14762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14763 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14764 | ||
14765 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14766 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
14767 | } |
14768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIParentFrame, 1); | |
14769 | return resultobj; | |
14770 | fail: | |
14771 | return NULL; | |
14772 | } | |
14773 | ||
14774 | ||
14775 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14776 | PyObject *resultobj; | |
14777 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14778 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
14779 | int arg3 = (int) (int)-1 ; |
14780 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14781 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
14782 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
14783 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14784 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14785 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14786 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14787 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14788 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14789 | bool result; | |
14790 | bool temp4 = False ; | |
14791 | wxPoint temp5 ; | |
14792 | wxSize temp6 ; | |
14793 | bool temp8 = False ; | |
14794 | PyObject * obj0 = 0 ; | |
14795 | PyObject * obj1 = 0 ; | |
14796 | PyObject * obj2 = 0 ; | |
14797 | PyObject * obj3 = 0 ; | |
14798 | PyObject * obj4 = 0 ; | |
14799 | PyObject * obj5 = 0 ; | |
14800 | PyObject * obj6 = 0 ; | |
14801 | PyObject * obj7 = 0 ; | |
14802 | char *kwnames[] = { | |
14803 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14804 | }; | |
14805 | ||
248ed943 | 14806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
14807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, |
14808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
14811 | if (obj2) { |
14812 | arg3 = (int const) SWIG_AsInt(obj2); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
14814 | } | |
14815 | if (obj3) { | |
14816 | { | |
14817 | arg4 = wxString_in_helper(obj3); | |
14818 | if (arg4 == NULL) SWIG_fail; | |
14819 | temp4 = True; | |
14820 | } | |
d55e5bfc RD |
14821 | } |
14822 | if (obj4) { | |
14823 | { | |
14824 | arg5 = &temp5; | |
14825 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14826 | } | |
14827 | } | |
14828 | if (obj5) { | |
14829 | { | |
14830 | arg6 = &temp6; | |
14831 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14832 | } | |
14833 | } | |
14834 | if (obj6) { | |
14835 | arg7 = (long) SWIG_AsLong(obj6); | |
14836 | if (PyErr_Occurred()) SWIG_fail; | |
14837 | } | |
14838 | if (obj7) { | |
14839 | { | |
14840 | arg8 = wxString_in_helper(obj7); | |
14841 | if (arg8 == NULL) SWIG_fail; | |
14842 | temp8 = True; | |
14843 | } | |
14844 | } | |
14845 | { | |
14846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14847 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14848 | ||
14849 | wxPyEndAllowThreads(__tstate); | |
14850 | if (PyErr_Occurred()) SWIG_fail; | |
14851 | } | |
14852 | { | |
14853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14854 | } | |
14855 | { | |
14856 | if (temp4) | |
14857 | delete arg4; | |
14858 | } | |
14859 | { | |
14860 | if (temp8) | |
14861 | delete arg8; | |
14862 | } | |
14863 | return resultobj; | |
14864 | fail: | |
14865 | { | |
14866 | if (temp4) | |
14867 | delete arg4; | |
14868 | } | |
14869 | { | |
14870 | if (temp8) | |
14871 | delete arg8; | |
14872 | } | |
14873 | return NULL; | |
14874 | } | |
14875 | ||
14876 | ||
14877 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14878 | PyObject *resultobj; | |
14879 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14880 | PyObject * obj0 = 0 ; | |
14881 | char *kwnames[] = { | |
14882 | (char *) "self", NULL | |
14883 | }; | |
14884 | ||
14885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14888 | { | |
14889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14890 | (arg1)->ActivateNext(); | |
14891 | ||
14892 | wxPyEndAllowThreads(__tstate); | |
14893 | if (PyErr_Occurred()) SWIG_fail; | |
14894 | } | |
14895 | Py_INCREF(Py_None); resultobj = Py_None; | |
14896 | return resultobj; | |
14897 | fail: | |
14898 | return NULL; | |
14899 | } | |
14900 | ||
14901 | ||
14902 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14903 | PyObject *resultobj; | |
14904 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14905 | PyObject * obj0 = 0 ; | |
14906 | char *kwnames[] = { | |
14907 | (char *) "self", NULL | |
14908 | }; | |
14909 | ||
14910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14913 | { | |
14914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14915 | (arg1)->ActivatePrevious(); | |
14916 | ||
14917 | wxPyEndAllowThreads(__tstate); | |
14918 | if (PyErr_Occurred()) SWIG_fail; | |
14919 | } | |
14920 | Py_INCREF(Py_None); resultobj = Py_None; | |
14921 | return resultobj; | |
14922 | fail: | |
14923 | return NULL; | |
14924 | } | |
14925 | ||
14926 | ||
14927 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14928 | PyObject *resultobj; | |
14929 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14930 | PyObject * obj0 = 0 ; | |
14931 | char *kwnames[] = { | |
14932 | (char *) "self", NULL | |
14933 | }; | |
14934 | ||
14935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14938 | { | |
14939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14940 | (arg1)->ArrangeIcons(); | |
14941 | ||
14942 | wxPyEndAllowThreads(__tstate); | |
14943 | if (PyErr_Occurred()) SWIG_fail; | |
14944 | } | |
14945 | Py_INCREF(Py_None); resultobj = Py_None; | |
14946 | return resultobj; | |
14947 | fail: | |
14948 | return NULL; | |
14949 | } | |
14950 | ||
14951 | ||
14952 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14953 | PyObject *resultobj; | |
14954 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14955 | PyObject * obj0 = 0 ; | |
14956 | char *kwnames[] = { | |
14957 | (char *) "self", NULL | |
14958 | }; | |
14959 | ||
14960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14963 | { | |
14964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14965 | (arg1)->Cascade(); | |
14966 | ||
14967 | wxPyEndAllowThreads(__tstate); | |
14968 | if (PyErr_Occurred()) SWIG_fail; | |
14969 | } | |
14970 | Py_INCREF(Py_None); resultobj = Py_None; | |
14971 | return resultobj; | |
14972 | fail: | |
14973 | return NULL; | |
14974 | } | |
14975 | ||
14976 | ||
14977 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14978 | PyObject *resultobj; | |
14979 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14980 | wxMDIChildFrame *result; | |
14981 | PyObject * obj0 = 0 ; | |
14982 | char *kwnames[] = { | |
14983 | (char *) "self", NULL | |
14984 | }; | |
14985 | ||
14986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
14988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14989 | { | |
14990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14991 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14992 | ||
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
14996 | { | |
412d302d | 14997 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14998 | } |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
15005 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15006 | PyObject *resultobj; | |
15007 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15008 | wxMDIClientWindow *result; | |
15009 | PyObject * obj0 = 0 ; | |
15010 | char *kwnames[] = { | |
15011 | (char *) "self", NULL | |
15012 | }; | |
15013 | ||
15014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
15015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15017 | { | |
15018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15019 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
15020 | ||
15021 | wxPyEndAllowThreads(__tstate); | |
15022 | if (PyErr_Occurred()) SWIG_fail; | |
15023 | } | |
15024 | { | |
412d302d | 15025 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15026 | } |
15027 | return resultobj; | |
15028 | fail: | |
15029 | return NULL; | |
15030 | } | |
15031 | ||
15032 | ||
15033 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15034 | PyObject *resultobj; | |
15035 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15036 | wxWindow *result; | |
15037 | PyObject * obj0 = 0 ; | |
15038 | char *kwnames[] = { | |
15039 | (char *) "self", NULL | |
15040 | }; | |
15041 | ||
15042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
15043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15045 | { | |
15046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15047 | result = (wxWindow *)(arg1)->GetToolBar(); | |
15048 | ||
15049 | wxPyEndAllowThreads(__tstate); | |
15050 | if (PyErr_Occurred()) SWIG_fail; | |
15051 | } | |
15052 | { | |
412d302d | 15053 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15054 | } |
15055 | return resultobj; | |
15056 | fail: | |
15057 | return NULL; | |
15058 | } | |
15059 | ||
15060 | ||
15061 | static PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15062 | PyObject *resultobj; | |
15063 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15064 | wxMenu *result; | |
15065 | PyObject * obj0 = 0 ; | |
15066 | char *kwnames[] = { | |
15067 | (char *) "self", NULL | |
15068 | }; | |
15069 | ||
15070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetWindowMenu",kwnames,&obj0)) goto fail; | |
15071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15073 | { | |
15074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15075 | result = (wxMenu *)(arg1)->GetWindowMenu(); | |
15076 | ||
15077 | wxPyEndAllowThreads(__tstate); | |
15078 | if (PyErr_Occurred()) SWIG_fail; | |
15079 | } | |
15080 | { | |
412d302d | 15081 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15082 | } |
15083 | return resultobj; | |
15084 | fail: | |
15085 | return NULL; | |
15086 | } | |
15087 | ||
15088 | ||
15089 | static PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15090 | PyObject *resultobj; | |
15091 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15092 | wxMenu *arg2 = (wxMenu *) 0 ; | |
15093 | PyObject * obj0 = 0 ; | |
15094 | PyObject * obj1 = 0 ; | |
15095 | char *kwnames[] = { | |
15096 | (char *) "self",(char *) "menu", NULL | |
15097 | }; | |
15098 | ||
15099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) goto fail; | |
15100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15102 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
15103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15104 | { | |
15105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15106 | (arg1)->SetWindowMenu(arg2); | |
15107 | ||
15108 | wxPyEndAllowThreads(__tstate); | |
15109 | if (PyErr_Occurred()) SWIG_fail; | |
15110 | } | |
15111 | Py_INCREF(Py_None); resultobj = Py_None; | |
15112 | return resultobj; | |
15113 | fail: | |
15114 | return NULL; | |
15115 | } | |
15116 | ||
15117 | ||
15118 | static PyObject *_wrap_MDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15119 | PyObject *resultobj; | |
15120 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15121 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
15122 | PyObject * obj0 = 0 ; | |
15123 | PyObject * obj1 = 0 ; | |
15124 | char *kwnames[] = { | |
15125 | (char *) "self",(char *) "toolbar", NULL | |
15126 | }; | |
15127 | ||
15128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
15129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBar, | |
15132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15133 | { | |
15134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15135 | (arg1)->SetToolBar(arg2); | |
15136 | ||
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
15140 | Py_INCREF(Py_None); resultobj = Py_None; | |
15141 | return resultobj; | |
15142 | fail: | |
15143 | return NULL; | |
15144 | } | |
15145 | ||
15146 | ||
15147 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15148 | PyObject *resultobj; | |
15149 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15150 | PyObject * obj0 = 0 ; | |
15151 | char *kwnames[] = { | |
15152 | (char *) "self", NULL | |
15153 | }; | |
15154 | ||
15155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
15156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15158 | { | |
15159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15160 | (arg1)->Tile(); | |
15161 | ||
15162 | wxPyEndAllowThreads(__tstate); | |
15163 | if (PyErr_Occurred()) SWIG_fail; | |
15164 | } | |
15165 | Py_INCREF(Py_None); resultobj = Py_None; | |
15166 | return resultobj; | |
15167 | fail: | |
15168 | return NULL; | |
15169 | } | |
15170 | ||
15171 | ||
15172 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
15173 | PyObject *obj; | |
15174 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15175 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
15176 | Py_INCREF(obj); | |
15177 | return Py_BuildValue((char *)""); | |
15178 | } | |
15179 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15180 | PyObject *resultobj; | |
15181 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
248ed943 RD |
15182 | int arg2 = (int) (int)-1 ; |
15183 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15184 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
15185 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15186 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15187 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15188 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15189 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
15190 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
15191 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15192 | wxMDIChildFrame *result; | |
15193 | bool temp3 = False ; | |
15194 | wxPoint temp4 ; | |
15195 | wxSize temp5 ; | |
15196 | bool temp7 = False ; | |
15197 | PyObject * obj0 = 0 ; | |
15198 | PyObject * obj1 = 0 ; | |
15199 | PyObject * obj2 = 0 ; | |
15200 | PyObject * obj3 = 0 ; | |
15201 | PyObject * obj4 = 0 ; | |
15202 | PyObject * obj5 = 0 ; | |
15203 | PyObject * obj6 = 0 ; | |
15204 | char *kwnames[] = { | |
15205 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15206 | }; | |
15207 | ||
248ed943 | 15208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, |
15210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15211 | if (obj1) { |
15212 | arg2 = (int const) SWIG_AsInt(obj1); | |
15213 | if (PyErr_Occurred()) SWIG_fail; | |
15214 | } | |
15215 | if (obj2) { | |
15216 | { | |
15217 | arg3 = wxString_in_helper(obj2); | |
15218 | if (arg3 == NULL) SWIG_fail; | |
15219 | temp3 = True; | |
15220 | } | |
d55e5bfc RD |
15221 | } |
15222 | if (obj3) { | |
15223 | { | |
15224 | arg4 = &temp4; | |
15225 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15226 | } | |
15227 | } | |
15228 | if (obj4) { | |
15229 | { | |
15230 | arg5 = &temp5; | |
15231 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15232 | } | |
15233 | } | |
15234 | if (obj5) { | |
15235 | arg6 = (long) SWIG_AsLong(obj5); | |
15236 | if (PyErr_Occurred()) SWIG_fail; | |
15237 | } | |
15238 | if (obj6) { | |
15239 | { | |
15240 | arg7 = wxString_in_helper(obj6); | |
15241 | if (arg7 == NULL) SWIG_fail; | |
15242 | temp7 = True; | |
15243 | } | |
15244 | } | |
15245 | { | |
0439c23b | 15246 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15248 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15249 | ||
15250 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15251 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15252 | } |
b0f7404b | 15253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIChildFrame, 1); |
d55e5bfc RD |
15254 | { |
15255 | if (temp3) | |
15256 | delete arg3; | |
15257 | } | |
15258 | { | |
15259 | if (temp7) | |
15260 | delete arg7; | |
15261 | } | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | { | |
15265 | if (temp3) | |
15266 | delete arg3; | |
15267 | } | |
15268 | { | |
15269 | if (temp7) | |
15270 | delete arg7; | |
15271 | } | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
15276 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15277 | PyObject *resultobj; | |
15278 | wxMDIChildFrame *result; | |
15279 | char *kwnames[] = { | |
15280 | NULL | |
15281 | }; | |
15282 | ||
15283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
15284 | { | |
0439c23b | 15285 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15287 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
15288 | ||
15289 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15290 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15291 | } |
b0f7404b | 15292 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIChildFrame, 1); |
d55e5bfc RD |
15293 | return resultobj; |
15294 | fail: | |
15295 | return NULL; | |
15296 | } | |
15297 | ||
15298 | ||
15299 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15300 | PyObject *resultobj; | |
15301 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15302 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
248ed943 RD |
15303 | int arg3 = (int) (int)-1 ; |
15304 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15305 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
15306 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
15307 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
15308 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
15309 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
15310 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
15311 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
15312 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15313 | bool result; | |
15314 | bool temp4 = False ; | |
15315 | wxPoint temp5 ; | |
15316 | wxSize temp6 ; | |
15317 | bool temp8 = False ; | |
15318 | PyObject * obj0 = 0 ; | |
15319 | PyObject * obj1 = 0 ; | |
15320 | PyObject * obj2 = 0 ; | |
15321 | PyObject * obj3 = 0 ; | |
15322 | PyObject * obj4 = 0 ; | |
15323 | PyObject * obj5 = 0 ; | |
15324 | PyObject * obj6 = 0 ; | |
15325 | PyObject * obj7 = 0 ; | |
15326 | char *kwnames[] = { | |
15327 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15328 | }; | |
15329 | ||
248ed943 | 15330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
15331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, |
15332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15335 | if (obj2) { |
15336 | arg3 = (int const) SWIG_AsInt(obj2); | |
15337 | if (PyErr_Occurred()) SWIG_fail; | |
15338 | } | |
15339 | if (obj3) { | |
15340 | { | |
15341 | arg4 = wxString_in_helper(obj3); | |
15342 | if (arg4 == NULL) SWIG_fail; | |
15343 | temp4 = True; | |
15344 | } | |
d55e5bfc RD |
15345 | } |
15346 | if (obj4) { | |
15347 | { | |
15348 | arg5 = &temp5; | |
15349 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
15350 | } | |
15351 | } | |
15352 | if (obj5) { | |
15353 | { | |
15354 | arg6 = &temp6; | |
15355 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
15356 | } | |
15357 | } | |
15358 | if (obj6) { | |
15359 | arg7 = (long) SWIG_AsLong(obj6); | |
15360 | if (PyErr_Occurred()) SWIG_fail; | |
15361 | } | |
15362 | if (obj7) { | |
15363 | { | |
15364 | arg8 = wxString_in_helper(obj7); | |
15365 | if (arg8 == NULL) SWIG_fail; | |
15366 | temp8 = True; | |
15367 | } | |
15368 | } | |
15369 | { | |
15370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15371 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
15372 | ||
15373 | wxPyEndAllowThreads(__tstate); | |
15374 | if (PyErr_Occurred()) SWIG_fail; | |
15375 | } | |
15376 | { | |
15377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15378 | } | |
15379 | { | |
15380 | if (temp4) | |
15381 | delete arg4; | |
15382 | } | |
15383 | { | |
15384 | if (temp8) | |
15385 | delete arg8; | |
15386 | } | |
15387 | return resultobj; | |
15388 | fail: | |
15389 | { | |
15390 | if (temp4) | |
15391 | delete arg4; | |
15392 | } | |
15393 | { | |
15394 | if (temp8) | |
15395 | delete arg8; | |
15396 | } | |
15397 | return NULL; | |
15398 | } | |
15399 | ||
15400 | ||
15401 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15402 | PyObject *resultobj; | |
15403 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15404 | PyObject * obj0 = 0 ; | |
15405 | char *kwnames[] = { | |
15406 | (char *) "self", NULL | |
15407 | }; | |
15408 | ||
15409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
15410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15412 | { | |
15413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15414 | (arg1)->Activate(); | |
15415 | ||
15416 | wxPyEndAllowThreads(__tstate); | |
15417 | if (PyErr_Occurred()) SWIG_fail; | |
15418 | } | |
15419 | Py_INCREF(Py_None); resultobj = Py_None; | |
15420 | return resultobj; | |
15421 | fail: | |
15422 | return NULL; | |
15423 | } | |
15424 | ||
15425 | ||
15426 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15427 | PyObject *resultobj; | |
15428 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15429 | bool arg2 ; | |
15430 | PyObject * obj0 = 0 ; | |
15431 | PyObject * obj1 = 0 ; | |
15432 | char *kwnames[] = { | |
15433 | (char *) "self",(char *) "maximize", NULL | |
15434 | }; | |
15435 | ||
15436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
15437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15439 | arg2 = (bool) SWIG_AsBool(obj1); | |
15440 | if (PyErr_Occurred()) SWIG_fail; | |
15441 | { | |
15442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15443 | (arg1)->Maximize(arg2); | |
15444 | ||
15445 | wxPyEndAllowThreads(__tstate); | |
15446 | if (PyErr_Occurred()) SWIG_fail; | |
15447 | } | |
15448 | Py_INCREF(Py_None); resultobj = Py_None; | |
15449 | return resultobj; | |
15450 | fail: | |
15451 | return NULL; | |
15452 | } | |
15453 | ||
15454 | ||
15455 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15456 | PyObject *resultobj; | |
15457 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
15458 | PyObject * obj0 = 0 ; | |
15459 | char *kwnames[] = { | |
15460 | (char *) "self", NULL | |
15461 | }; | |
15462 | ||
15463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
15464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIChildFrame, | |
15465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | (arg1)->Restore(); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | Py_INCREF(Py_None); resultobj = Py_None; | |
15474 | return resultobj; | |
15475 | fail: | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
15480 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
15481 | PyObject *obj; | |
15482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15483 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
15484 | Py_INCREF(obj); | |
15485 | return Py_BuildValue((char *)""); | |
15486 | } | |
15487 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15488 | PyObject *resultobj; | |
15489 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
15490 | long arg2 = (long) 0 ; | |
15491 | wxMDIClientWindow *result; | |
15492 | PyObject * obj0 = 0 ; | |
15493 | PyObject * obj1 = 0 ; | |
15494 | char *kwnames[] = { | |
15495 | (char *) "parent",(char *) "style", NULL | |
15496 | }; | |
15497 | ||
15498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; | |
15499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIParentFrame, | |
15500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15501 | if (obj1) { | |
15502 | arg2 = (long) SWIG_AsLong(obj1); | |
15503 | if (PyErr_Occurred()) SWIG_fail; | |
15504 | } | |
15505 | { | |
0439c23b | 15506 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15508 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
15509 | ||
15510 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15511 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15512 | } |
b0f7404b | 15513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIClientWindow, 1); |
d55e5bfc RD |
15514 | return resultobj; |
15515 | fail: | |
15516 | return NULL; | |
15517 | } | |
15518 | ||
15519 | ||
15520 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15521 | PyObject *resultobj; | |
15522 | wxMDIClientWindow *result; | |
15523 | char *kwnames[] = { | |
15524 | NULL | |
15525 | }; | |
15526 | ||
15527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
15528 | { | |
0439c23b | 15529 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15531 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
15532 | ||
15533 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15534 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15535 | } |
b0f7404b | 15536 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMDIClientWindow, 1); |
d55e5bfc RD |
15537 | return resultobj; |
15538 | fail: | |
15539 | return NULL; | |
15540 | } | |
15541 | ||
15542 | ||
15543 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15544 | PyObject *resultobj; | |
15545 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
15546 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
15547 | long arg3 = (long) 0 ; | |
15548 | bool result; | |
15549 | PyObject * obj0 = 0 ; | |
15550 | PyObject * obj1 = 0 ; | |
15551 | PyObject * obj2 = 0 ; | |
15552 | char *kwnames[] = { | |
15553 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
15554 | }; | |
15555 | ||
15556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMDIClientWindow, | |
15558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMDIParentFrame, | |
15560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15561 | if (obj2) { | |
15562 | arg3 = (long) SWIG_AsLong(obj2); | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
15564 | } | |
15565 | { | |
15566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15567 | result = (bool)(arg1)->Create(arg2,arg3); | |
15568 | ||
15569 | wxPyEndAllowThreads(__tstate); | |
15570 | if (PyErr_Occurred()) SWIG_fail; | |
15571 | } | |
15572 | { | |
15573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15574 | } | |
15575 | return resultobj; | |
15576 | fail: | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
15581 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15582 | PyObject *obj; | |
15583 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15584 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15585 | Py_INCREF(obj); | |
15586 | return Py_BuildValue((char *)""); | |
15587 | } | |
15588 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15589 | PyObject *resultobj; | |
15590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 15591 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
15592 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15593 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15594 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15595 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15596 | long arg5 = (long) 0 ; | |
15597 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15598 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15599 | wxPyWindow *result; | |
15600 | wxPoint temp3 ; | |
15601 | wxSize temp4 ; | |
15602 | bool temp6 = False ; | |
15603 | PyObject * obj0 = 0 ; | |
15604 | PyObject * obj1 = 0 ; | |
15605 | PyObject * obj2 = 0 ; | |
15606 | PyObject * obj3 = 0 ; | |
15607 | PyObject * obj4 = 0 ; | |
15608 | PyObject * obj5 = 0 ; | |
15609 | char *kwnames[] = { | |
15610 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15611 | }; | |
15612 | ||
248ed943 | 15613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
15614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15616 | if (obj1) { |
15617 | arg2 = (int const) SWIG_AsInt(obj1); | |
15618 | if (PyErr_Occurred()) SWIG_fail; | |
15619 | } | |
d55e5bfc RD |
15620 | if (obj2) { |
15621 | { | |
15622 | arg3 = &temp3; | |
15623 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15624 | } | |
15625 | } | |
15626 | if (obj3) { | |
15627 | { | |
15628 | arg4 = &temp4; | |
15629 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15630 | } | |
15631 | } | |
15632 | if (obj4) { | |
15633 | arg5 = (long) SWIG_AsLong(obj4); | |
15634 | if (PyErr_Occurred()) SWIG_fail; | |
15635 | } | |
15636 | if (obj5) { | |
15637 | { | |
15638 | arg6 = wxString_in_helper(obj5); | |
15639 | if (arg6 == NULL) SWIG_fail; | |
15640 | temp6 = True; | |
15641 | } | |
15642 | } | |
15643 | { | |
0439c23b | 15644 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15646 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15647 | ||
15648 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15649 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15650 | } |
15651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15652 | { | |
15653 | if (temp6) | |
15654 | delete arg6; | |
15655 | } | |
15656 | return resultobj; | |
15657 | fail: | |
15658 | { | |
15659 | if (temp6) | |
15660 | delete arg6; | |
15661 | } | |
15662 | return NULL; | |
15663 | } | |
15664 | ||
15665 | ||
15666 | static PyObject *_wrap_new_PrePyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15667 | PyObject *resultobj; | |
15668 | wxPyWindow *result; | |
15669 | char *kwnames[] = { | |
15670 | NULL | |
15671 | }; | |
15672 | ||
15673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyWindow",kwnames)) goto fail; | |
15674 | { | |
0439c23b | 15675 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15677 | result = (wxPyWindow *)new wxPyWindow(); | |
15678 | ||
15679 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15680 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15681 | } |
15682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyWindow, 1); | |
15683 | return resultobj; | |
15684 | fail: | |
15685 | return NULL; | |
15686 | } | |
15687 | ||
15688 | ||
15689 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15690 | PyObject *resultobj; | |
15691 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15692 | PyObject *arg2 = (PyObject *) 0 ; | |
15693 | PyObject *arg3 = (PyObject *) 0 ; | |
15694 | PyObject * obj0 = 0 ; | |
15695 | PyObject * obj1 = 0 ; | |
15696 | PyObject * obj2 = 0 ; | |
15697 | char *kwnames[] = { | |
15698 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15699 | }; | |
15700 | ||
15701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15704 | arg2 = obj1; | |
15705 | arg3 = obj2; | |
15706 | { | |
15707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15708 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15709 | ||
15710 | wxPyEndAllowThreads(__tstate); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
15713 | Py_INCREF(Py_None); resultobj = Py_None; | |
15714 | return resultobj; | |
15715 | fail: | |
15716 | return NULL; | |
15717 | } | |
15718 | ||
15719 | ||
caef1a4d RD |
15720 | static PyObject *_wrap_PyWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
15721 | PyObject *resultobj; | |
15722 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15723 | wxSize *arg2 = 0 ; | |
15724 | wxSize temp2 ; | |
15725 | PyObject * obj0 = 0 ; | |
15726 | PyObject * obj1 = 0 ; | |
15727 | char *kwnames[] = { | |
15728 | (char *) "self",(char *) "size", NULL | |
15729 | }; | |
15730 | ||
15731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
15732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15734 | { | |
15735 | arg2 = &temp2; | |
15736 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15737 | } | |
15738 | { | |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | Py_INCREF(Py_None); resultobj = Py_None; | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
d55e5bfc RD |
15752 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
15753 | PyObject *resultobj; | |
15754 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15755 | int arg2 ; | |
15756 | int arg3 ; | |
15757 | int arg4 ; | |
15758 | int arg5 ; | |
15759 | PyObject * obj0 = 0 ; | |
15760 | PyObject * obj1 = 0 ; | |
15761 | PyObject * obj2 = 0 ; | |
15762 | PyObject * obj3 = 0 ; | |
15763 | PyObject * obj4 = 0 ; | |
15764 | char *kwnames[] = { | |
15765 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15766 | }; | |
15767 | ||
15768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15771 | arg2 = (int) SWIG_AsInt(obj1); | |
15772 | if (PyErr_Occurred()) SWIG_fail; | |
15773 | arg3 = (int) SWIG_AsInt(obj2); | |
15774 | if (PyErr_Occurred()) SWIG_fail; | |
15775 | arg4 = (int) SWIG_AsInt(obj3); | |
15776 | if (PyErr_Occurred()) SWIG_fail; | |
15777 | arg5 = (int) SWIG_AsInt(obj4); | |
15778 | if (PyErr_Occurred()) SWIG_fail; | |
15779 | { | |
15780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15781 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15782 | ||
15783 | wxPyEndAllowThreads(__tstate); | |
15784 | if (PyErr_Occurred()) SWIG_fail; | |
15785 | } | |
15786 | Py_INCREF(Py_None); resultobj = Py_None; | |
15787 | return resultobj; | |
15788 | fail: | |
15789 | return NULL; | |
15790 | } | |
15791 | ||
15792 | ||
15793 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15794 | PyObject *resultobj; | |
15795 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15796 | int arg2 ; | |
15797 | int arg3 ; | |
15798 | int arg4 ; | |
15799 | int arg5 ; | |
15800 | int arg6 = (int) wxSIZE_AUTO ; | |
15801 | PyObject * obj0 = 0 ; | |
15802 | PyObject * obj1 = 0 ; | |
15803 | PyObject * obj2 = 0 ; | |
15804 | PyObject * obj3 = 0 ; | |
15805 | PyObject * obj4 = 0 ; | |
15806 | PyObject * obj5 = 0 ; | |
15807 | char *kwnames[] = { | |
15808 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15809 | }; | |
15810 | ||
15811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15814 | arg2 = (int) SWIG_AsInt(obj1); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | arg3 = (int) SWIG_AsInt(obj2); | |
15817 | if (PyErr_Occurred()) SWIG_fail; | |
15818 | arg4 = (int) SWIG_AsInt(obj3); | |
15819 | if (PyErr_Occurred()) SWIG_fail; | |
15820 | arg5 = (int) SWIG_AsInt(obj4); | |
15821 | if (PyErr_Occurred()) SWIG_fail; | |
15822 | if (obj5) { | |
15823 | arg6 = (int) SWIG_AsInt(obj5); | |
15824 | if (PyErr_Occurred()) SWIG_fail; | |
15825 | } | |
15826 | { | |
15827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15828 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15829 | ||
15830 | wxPyEndAllowThreads(__tstate); | |
15831 | if (PyErr_Occurred()) SWIG_fail; | |
15832 | } | |
15833 | Py_INCREF(Py_None); resultobj = Py_None; | |
15834 | return resultobj; | |
15835 | fail: | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15841 | PyObject *resultobj; | |
15842 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15843 | int arg2 ; | |
15844 | int arg3 ; | |
15845 | PyObject * obj0 = 0 ; | |
15846 | PyObject * obj1 = 0 ; | |
15847 | PyObject * obj2 = 0 ; | |
15848 | char *kwnames[] = { | |
15849 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15850 | }; | |
15851 | ||
15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15855 | arg2 = (int) SWIG_AsInt(obj1); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
15857 | arg3 = (int) SWIG_AsInt(obj2); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | { | |
15860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15861 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15862 | ||
15863 | wxPyEndAllowThreads(__tstate); | |
15864 | if (PyErr_Occurred()) SWIG_fail; | |
15865 | } | |
15866 | Py_INCREF(Py_None); resultobj = Py_None; | |
15867 | return resultobj; | |
15868 | fail: | |
15869 | return NULL; | |
15870 | } | |
15871 | ||
15872 | ||
15873 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15874 | PyObject *resultobj; | |
15875 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15876 | int arg2 ; | |
15877 | int arg3 ; | |
15878 | PyObject * obj0 = 0 ; | |
15879 | PyObject * obj1 = 0 ; | |
15880 | PyObject * obj2 = 0 ; | |
15881 | char *kwnames[] = { | |
15882 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15883 | }; | |
15884 | ||
15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15888 | arg2 = (int) SWIG_AsInt(obj1); | |
15889 | if (PyErr_Occurred()) SWIG_fail; | |
15890 | arg3 = (int) SWIG_AsInt(obj2); | |
15891 | if (PyErr_Occurred()) SWIG_fail; | |
15892 | { | |
15893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15894 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15895 | ||
15896 | wxPyEndAllowThreads(__tstate); | |
15897 | if (PyErr_Occurred()) SWIG_fail; | |
15898 | } | |
15899 | Py_INCREF(Py_None); resultobj = Py_None; | |
15900 | return resultobj; | |
15901 | fail: | |
15902 | return NULL; | |
15903 | } | |
15904 | ||
15905 | ||
15906 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15907 | PyObject *resultobj; | |
15908 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15909 | int *arg2 = (int *) 0 ; | |
15910 | int *arg3 = (int *) 0 ; | |
15911 | int temp2 ; | |
15912 | int temp3 ; | |
15913 | PyObject * obj0 = 0 ; | |
15914 | char *kwnames[] = { | |
15915 | (char *) "self", NULL | |
15916 | }; | |
15917 | ||
15918 | arg2 = &temp2; | |
15919 | arg3 = &temp3; | |
15920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15923 | { | |
15924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15925 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15926 | ||
15927 | wxPyEndAllowThreads(__tstate); | |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
15929 | } | |
15930 | Py_INCREF(Py_None); resultobj = Py_None; | |
15931 | { | |
15932 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15933 | resultobj = t_output_helper(resultobj,o); | |
15934 | } | |
15935 | { | |
15936 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15937 | resultobj = t_output_helper(resultobj,o); | |
15938 | } | |
15939 | return resultobj; | |
15940 | fail: | |
15941 | return NULL; | |
15942 | } | |
15943 | ||
15944 | ||
15945 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15946 | PyObject *resultobj; | |
15947 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15948 | int *arg2 = (int *) 0 ; | |
15949 | int *arg3 = (int *) 0 ; | |
15950 | int temp2 ; | |
15951 | int temp3 ; | |
15952 | PyObject * obj0 = 0 ; | |
15953 | char *kwnames[] = { | |
15954 | (char *) "self", NULL | |
15955 | }; | |
15956 | ||
15957 | arg2 = &temp2; | |
15958 | arg3 = &temp3; | |
15959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
15961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15962 | { | |
15963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15964 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15965 | ||
15966 | wxPyEndAllowThreads(__tstate); | |
15967 | if (PyErr_Occurred()) SWIG_fail; | |
15968 | } | |
15969 | Py_INCREF(Py_None); resultobj = Py_None; | |
15970 | { | |
15971 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15972 | resultobj = t_output_helper(resultobj,o); | |
15973 | } | |
15974 | { | |
15975 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15976 | resultobj = t_output_helper(resultobj,o); | |
15977 | } | |
15978 | return resultobj; | |
15979 | fail: | |
15980 | return NULL; | |
15981 | } | |
15982 | ||
15983 | ||
15984 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15985 | PyObject *resultobj; | |
15986 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15987 | int *arg2 = (int *) 0 ; | |
15988 | int *arg3 = (int *) 0 ; | |
15989 | int temp2 ; | |
15990 | int temp3 ; | |
15991 | PyObject * obj0 = 0 ; | |
15992 | char *kwnames[] = { | |
15993 | (char *) "self", NULL | |
15994 | }; | |
15995 | ||
15996 | arg2 = &temp2; | |
15997 | arg3 = &temp3; | |
15998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16001 | { | |
16002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16003 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | Py_INCREF(Py_None); resultobj = Py_None; | |
16009 | { | |
16010 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16011 | resultobj = t_output_helper(resultobj,o); | |
16012 | } | |
16013 | { | |
16014 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16015 | resultobj = t_output_helper(resultobj,o); | |
16016 | } | |
16017 | return resultobj; | |
16018 | fail: | |
16019 | return NULL; | |
16020 | } | |
16021 | ||
16022 | ||
16023 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16024 | PyObject *resultobj; | |
16025 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16026 | wxSize result; | |
16027 | PyObject * obj0 = 0 ; | |
16028 | char *kwnames[] = { | |
16029 | (char *) "self", NULL | |
16030 | }; | |
16031 | ||
16032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16035 | { | |
16036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16037 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
16038 | ||
16039 | wxPyEndAllowThreads(__tstate); | |
16040 | if (PyErr_Occurred()) SWIG_fail; | |
16041 | } | |
16042 | { | |
16043 | wxSize * resultptr; | |
16044 | resultptr = new wxSize((wxSize &) result); | |
16045 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16046 | } | |
16047 | return resultobj; | |
16048 | fail: | |
16049 | return NULL; | |
16050 | } | |
16051 | ||
16052 | ||
16053 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16054 | PyObject *resultobj; | |
16055 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16056 | wxSize result; | |
16057 | PyObject * obj0 = 0 ; | |
16058 | char *kwnames[] = { | |
16059 | (char *) "self", NULL | |
16060 | }; | |
16061 | ||
16062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16065 | { | |
16066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16067 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
16068 | ||
16069 | wxPyEndAllowThreads(__tstate); | |
16070 | if (PyErr_Occurred()) SWIG_fail; | |
16071 | } | |
16072 | { | |
16073 | wxSize * resultptr; | |
16074 | resultptr = new wxSize((wxSize &) result); | |
16075 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16076 | } | |
16077 | return resultobj; | |
16078 | fail: | |
16079 | return NULL; | |
16080 | } | |
16081 | ||
16082 | ||
16083 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16084 | PyObject *resultobj; | |
16085 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16086 | PyObject * obj0 = 0 ; | |
16087 | char *kwnames[] = { | |
16088 | (char *) "self", NULL | |
16089 | }; | |
16090 | ||
16091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
16092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16094 | { | |
16095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16096 | (arg1)->base_InitDialog(); | |
16097 | ||
16098 | wxPyEndAllowThreads(__tstate); | |
16099 | if (PyErr_Occurred()) SWIG_fail; | |
16100 | } | |
16101 | Py_INCREF(Py_None); resultobj = Py_None; | |
16102 | return resultobj; | |
16103 | fail: | |
16104 | return NULL; | |
16105 | } | |
16106 | ||
16107 | ||
16108 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16109 | PyObject *resultobj; | |
16110 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16111 | bool result; | |
16112 | PyObject * obj0 = 0 ; | |
16113 | char *kwnames[] = { | |
16114 | (char *) "self", NULL | |
16115 | }; | |
16116 | ||
16117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16120 | { | |
16121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16122 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16123 | ||
16124 | wxPyEndAllowThreads(__tstate); | |
16125 | if (PyErr_Occurred()) SWIG_fail; | |
16126 | } | |
16127 | { | |
16128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16129 | } | |
16130 | return resultobj; | |
16131 | fail: | |
16132 | return NULL; | |
16133 | } | |
16134 | ||
16135 | ||
16136 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16137 | PyObject *resultobj; | |
16138 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16139 | bool result; | |
16140 | PyObject * obj0 = 0 ; | |
16141 | char *kwnames[] = { | |
16142 | (char *) "self", NULL | |
16143 | }; | |
16144 | ||
16145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16148 | { | |
16149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16150 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16151 | ||
16152 | wxPyEndAllowThreads(__tstate); | |
16153 | if (PyErr_Occurred()) SWIG_fail; | |
16154 | } | |
16155 | { | |
16156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16157 | } | |
16158 | return resultobj; | |
16159 | fail: | |
16160 | return NULL; | |
16161 | } | |
16162 | ||
16163 | ||
16164 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16165 | PyObject *resultobj; | |
16166 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16167 | bool result; | |
16168 | PyObject * obj0 = 0 ; | |
16169 | char *kwnames[] = { | |
16170 | (char *) "self", NULL | |
16171 | }; | |
16172 | ||
16173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
16174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16176 | { | |
16177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16178 | result = (bool)(arg1)->base_Validate(); | |
16179 | ||
16180 | wxPyEndAllowThreads(__tstate); | |
16181 | if (PyErr_Occurred()) SWIG_fail; | |
16182 | } | |
16183 | { | |
16184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16185 | } | |
16186 | return resultobj; | |
16187 | fail: | |
16188 | return NULL; | |
16189 | } | |
16190 | ||
16191 | ||
16192 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16193 | PyObject *resultobj; | |
16194 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16195 | bool result; | |
16196 | PyObject * obj0 = 0 ; | |
16197 | char *kwnames[] = { | |
16198 | (char *) "self", NULL | |
16199 | }; | |
16200 | ||
16201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16204 | { | |
16205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16206 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
16207 | ||
16208 | wxPyEndAllowThreads(__tstate); | |
16209 | if (PyErr_Occurred()) SWIG_fail; | |
16210 | } | |
16211 | { | |
16212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16213 | } | |
16214 | return resultobj; | |
16215 | fail: | |
16216 | return NULL; | |
16217 | } | |
16218 | ||
16219 | ||
16220 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16221 | PyObject *resultobj; | |
16222 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16223 | bool result; | |
16224 | PyObject * obj0 = 0 ; | |
16225 | char *kwnames[] = { | |
16226 | (char *) "self", NULL | |
16227 | }; | |
16228 | ||
16229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16232 | { | |
16233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16234 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16235 | ||
16236 | wxPyEndAllowThreads(__tstate); | |
16237 | if (PyErr_Occurred()) SWIG_fail; | |
16238 | } | |
16239 | { | |
16240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16241 | } | |
16242 | return resultobj; | |
16243 | fail: | |
16244 | return NULL; | |
16245 | } | |
16246 | ||
16247 | ||
16248 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16249 | PyObject *resultobj; | |
16250 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16251 | wxSize result; | |
16252 | PyObject * obj0 = 0 ; | |
16253 | char *kwnames[] = { | |
16254 | (char *) "self", NULL | |
16255 | }; | |
16256 | ||
16257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16260 | { | |
16261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16262 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
16263 | ||
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
16267 | { | |
16268 | wxSize * resultptr; | |
16269 | resultptr = new wxSize((wxSize &) result); | |
16270 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16271 | } | |
16272 | return resultobj; | |
16273 | fail: | |
16274 | return NULL; | |
16275 | } | |
16276 | ||
16277 | ||
16278 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16279 | PyObject *resultobj; | |
16280 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16281 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16282 | PyObject * obj0 = 0 ; | |
16283 | PyObject * obj1 = 0 ; | |
16284 | char *kwnames[] = { | |
16285 | (char *) "self",(char *) "child", NULL | |
16286 | }; | |
16287 | ||
16288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16293 | { | |
16294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16295 | (arg1)->base_AddChild(arg2); | |
16296 | ||
16297 | wxPyEndAllowThreads(__tstate); | |
16298 | if (PyErr_Occurred()) SWIG_fail; | |
16299 | } | |
16300 | Py_INCREF(Py_None); resultobj = Py_None; | |
16301 | return resultobj; | |
16302 | fail: | |
16303 | return NULL; | |
16304 | } | |
16305 | ||
16306 | ||
16307 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16308 | PyObject *resultobj; | |
16309 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16310 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16311 | PyObject * obj0 = 0 ; | |
16312 | PyObject * obj1 = 0 ; | |
16313 | char *kwnames[] = { | |
16314 | (char *) "self",(char *) "child", NULL | |
16315 | }; | |
16316 | ||
16317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16322 | { | |
16323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16324 | (arg1)->base_RemoveChild(arg2); | |
16325 | ||
16326 | wxPyEndAllowThreads(__tstate); | |
16327 | if (PyErr_Occurred()) SWIG_fail; | |
16328 | } | |
16329 | Py_INCREF(Py_None); resultobj = Py_None; | |
16330 | return resultobj; | |
16331 | fail: | |
16332 | return NULL; | |
16333 | } | |
16334 | ||
16335 | ||
16336 | static PyObject *_wrap_PyWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16337 | PyObject *resultobj; | |
16338 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16339 | bool result; | |
16340 | PyObject * obj0 = 0 ; | |
16341 | char *kwnames[] = { | |
16342 | (char *) "self", NULL | |
16343 | }; | |
16344 | ||
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
16346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16348 | { | |
16349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 16350 | result = (bool)((wxPyWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
16351 | |
16352 | wxPyEndAllowThreads(__tstate); | |
16353 | if (PyErr_Occurred()) SWIG_fail; | |
16354 | } | |
16355 | { | |
16356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16357 | } | |
16358 | return resultobj; | |
16359 | fail: | |
16360 | return NULL; | |
16361 | } | |
16362 | ||
16363 | ||
16364 | static PyObject *_wrap_PyWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16365 | PyObject *resultobj; | |
16366 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16367 | wxColour *arg2 = 0 ; | |
16368 | wxColour temp2 ; | |
16369 | PyObject * obj0 = 0 ; | |
16370 | PyObject * obj1 = 0 ; | |
16371 | char *kwnames[] = { | |
16372 | (char *) "self",(char *) "c", NULL | |
16373 | }; | |
16374 | ||
16375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
16376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16378 | { | |
16379 | arg2 = &temp2; | |
16380 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16381 | } | |
16382 | { | |
16383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16384 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
16385 | ||
16386 | wxPyEndAllowThreads(__tstate); | |
16387 | if (PyErr_Occurred()) SWIG_fail; | |
16388 | } | |
16389 | Py_INCREF(Py_None); resultobj = Py_None; | |
16390 | return resultobj; | |
16391 | fail: | |
16392 | return NULL; | |
16393 | } | |
16394 | ||
16395 | ||
caef1a4d RD |
16396 | static PyObject *_wrap_PyWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
16397 | PyObject *resultobj; | |
16398 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
16399 | wxVisualAttributes result; | |
16400 | PyObject * obj0 = 0 ; | |
16401 | char *kwnames[] = { | |
16402 | (char *) "self", NULL | |
16403 | }; | |
16404 | ||
16405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
16406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyWindow, | |
16407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16408 | { | |
16409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16410 | result = (arg1)->base_GetDefaultAttributes(); | |
16411 | ||
16412 | wxPyEndAllowThreads(__tstate); | |
16413 | if (PyErr_Occurred()) SWIG_fail; | |
16414 | } | |
16415 | { | |
16416 | wxVisualAttributes * resultptr; | |
16417 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
16418 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
16419 | } | |
16420 | return resultobj; | |
16421 | fail: | |
16422 | return NULL; | |
16423 | } | |
16424 | ||
16425 | ||
d55e5bfc RD |
16426 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { |
16427 | PyObject *obj; | |
16428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16429 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
16430 | Py_INCREF(obj); | |
16431 | return Py_BuildValue((char *)""); | |
16432 | } | |
16433 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16434 | PyObject *resultobj; | |
16435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 16436 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
16437 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
16438 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
16439 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
16440 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
16441 | long arg5 = (long) 0 ; | |
16442 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
16443 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
16444 | wxPyPanel *result; | |
16445 | wxPoint temp3 ; | |
16446 | wxSize temp4 ; | |
16447 | bool temp6 = False ; | |
16448 | PyObject * obj0 = 0 ; | |
16449 | PyObject * obj1 = 0 ; | |
16450 | PyObject * obj2 = 0 ; | |
16451 | PyObject * obj3 = 0 ; | |
16452 | PyObject * obj4 = 0 ; | |
16453 | PyObject * obj5 = 0 ; | |
16454 | char *kwnames[] = { | |
16455 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
16456 | }; | |
16457 | ||
248ed943 | 16458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
16459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
16461 | if (obj1) { |
16462 | arg2 = (int const) SWIG_AsInt(obj1); | |
16463 | if (PyErr_Occurred()) SWIG_fail; | |
16464 | } | |
d55e5bfc RD |
16465 | if (obj2) { |
16466 | { | |
16467 | arg3 = &temp3; | |
16468 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
16469 | } | |
16470 | } | |
16471 | if (obj3) { | |
16472 | { | |
16473 | arg4 = &temp4; | |
16474 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
16475 | } | |
16476 | } | |
16477 | if (obj4) { | |
16478 | arg5 = (long) SWIG_AsLong(obj4); | |
16479 | if (PyErr_Occurred()) SWIG_fail; | |
16480 | } | |
16481 | if (obj5) { | |
16482 | { | |
16483 | arg6 = wxString_in_helper(obj5); | |
16484 | if (arg6 == NULL) SWIG_fail; | |
16485 | temp6 = True; | |
16486 | } | |
16487 | } | |
16488 | { | |
0439c23b | 16489 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16491 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
16492 | ||
16493 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16494 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16495 | } |
16496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16497 | { | |
16498 | if (temp6) | |
16499 | delete arg6; | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | { | |
16504 | if (temp6) | |
16505 | delete arg6; | |
16506 | } | |
16507 | return NULL; | |
16508 | } | |
16509 | ||
16510 | ||
16511 | static PyObject *_wrap_new_PrePyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16512 | PyObject *resultobj; | |
16513 | wxPyPanel *result; | |
16514 | char *kwnames[] = { | |
16515 | NULL | |
16516 | }; | |
16517 | ||
16518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyPanel",kwnames)) goto fail; | |
16519 | { | |
0439c23b | 16520 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
16521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
16522 | result = (wxPyPanel *)new wxPyPanel(); | |
16523 | ||
16524 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 16525 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
16526 | } |
16527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPanel, 1); | |
16528 | return resultobj; | |
16529 | fail: | |
16530 | return NULL; | |
16531 | } | |
16532 | ||
16533 | ||
16534 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16535 | PyObject *resultobj; | |
16536 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16537 | PyObject *arg2 = (PyObject *) 0 ; | |
16538 | PyObject *arg3 = (PyObject *) 0 ; | |
16539 | PyObject * obj0 = 0 ; | |
16540 | PyObject * obj1 = 0 ; | |
16541 | PyObject * obj2 = 0 ; | |
16542 | char *kwnames[] = { | |
16543 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
16544 | }; | |
16545 | ||
16546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16549 | arg2 = obj1; | |
16550 | arg3 = obj2; | |
16551 | { | |
16552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16553 | (arg1)->_setCallbackInfo(arg2,arg3); | |
16554 | ||
16555 | wxPyEndAllowThreads(__tstate); | |
16556 | if (PyErr_Occurred()) SWIG_fail; | |
16557 | } | |
16558 | Py_INCREF(Py_None); resultobj = Py_None; | |
16559 | return resultobj; | |
16560 | fail: | |
16561 | return NULL; | |
16562 | } | |
16563 | ||
16564 | ||
caef1a4d RD |
16565 | static PyObject *_wrap_PyPanel_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
16566 | PyObject *resultobj; | |
16567 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16568 | wxSize *arg2 = 0 ; | |
16569 | wxSize temp2 ; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | PyObject * obj1 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self",(char *) "size", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
16577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16579 | { | |
16580 | arg2 = &temp2; | |
16581 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16582 | } | |
16583 | { | |
16584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16585 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
16586 | ||
16587 | wxPyEndAllowThreads(__tstate); | |
16588 | if (PyErr_Occurred()) SWIG_fail; | |
16589 | } | |
16590 | Py_INCREF(Py_None); resultobj = Py_None; | |
16591 | return resultobj; | |
16592 | fail: | |
16593 | return NULL; | |
16594 | } | |
16595 | ||
16596 | ||
d55e5bfc RD |
16597 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
16598 | PyObject *resultobj; | |
16599 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16600 | int arg2 ; | |
16601 | int arg3 ; | |
16602 | int arg4 ; | |
16603 | int arg5 ; | |
16604 | PyObject * obj0 = 0 ; | |
16605 | PyObject * obj1 = 0 ; | |
16606 | PyObject * obj2 = 0 ; | |
16607 | PyObject * obj3 = 0 ; | |
16608 | PyObject * obj4 = 0 ; | |
16609 | char *kwnames[] = { | |
16610 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
16611 | }; | |
16612 | ||
16613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
16614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16616 | arg2 = (int) SWIG_AsInt(obj1); | |
16617 | if (PyErr_Occurred()) SWIG_fail; | |
16618 | arg3 = (int) SWIG_AsInt(obj2); | |
16619 | if (PyErr_Occurred()) SWIG_fail; | |
16620 | arg4 = (int) SWIG_AsInt(obj3); | |
16621 | if (PyErr_Occurred()) SWIG_fail; | |
16622 | arg5 = (int) SWIG_AsInt(obj4); | |
16623 | if (PyErr_Occurred()) SWIG_fail; | |
16624 | { | |
16625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16626 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
16627 | ||
16628 | wxPyEndAllowThreads(__tstate); | |
16629 | if (PyErr_Occurred()) SWIG_fail; | |
16630 | } | |
16631 | Py_INCREF(Py_None); resultobj = Py_None; | |
16632 | return resultobj; | |
16633 | fail: | |
16634 | return NULL; | |
16635 | } | |
16636 | ||
16637 | ||
16638 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16639 | PyObject *resultobj; | |
16640 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16641 | int arg2 ; | |
16642 | int arg3 ; | |
16643 | int arg4 ; | |
16644 | int arg5 ; | |
16645 | int arg6 = (int) wxSIZE_AUTO ; | |
16646 | PyObject * obj0 = 0 ; | |
16647 | PyObject * obj1 = 0 ; | |
16648 | PyObject * obj2 = 0 ; | |
16649 | PyObject * obj3 = 0 ; | |
16650 | PyObject * obj4 = 0 ; | |
16651 | PyObject * obj5 = 0 ; | |
16652 | char *kwnames[] = { | |
16653 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
16654 | }; | |
16655 | ||
16656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
16657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16659 | arg2 = (int) SWIG_AsInt(obj1); | |
16660 | if (PyErr_Occurred()) SWIG_fail; | |
16661 | arg3 = (int) SWIG_AsInt(obj2); | |
16662 | if (PyErr_Occurred()) SWIG_fail; | |
16663 | arg4 = (int) SWIG_AsInt(obj3); | |
16664 | if (PyErr_Occurred()) SWIG_fail; | |
16665 | arg5 = (int) SWIG_AsInt(obj4); | |
16666 | if (PyErr_Occurred()) SWIG_fail; | |
16667 | if (obj5) { | |
16668 | arg6 = (int) SWIG_AsInt(obj5); | |
16669 | if (PyErr_Occurred()) SWIG_fail; | |
16670 | } | |
16671 | { | |
16672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16673 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
16674 | ||
16675 | wxPyEndAllowThreads(__tstate); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | Py_INCREF(Py_None); resultobj = Py_None; | |
16679 | return resultobj; | |
16680 | fail: | |
16681 | return NULL; | |
16682 | } | |
16683 | ||
16684 | ||
16685 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16686 | PyObject *resultobj; | |
16687 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16688 | int arg2 ; | |
16689 | int arg3 ; | |
16690 | PyObject * obj0 = 0 ; | |
16691 | PyObject * obj1 = 0 ; | |
16692 | PyObject * obj2 = 0 ; | |
16693 | char *kwnames[] = { | |
16694 | (char *) "self",(char *) "width",(char *) "height", NULL | |
16695 | }; | |
16696 | ||
16697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16700 | arg2 = (int) SWIG_AsInt(obj1); | |
16701 | if (PyErr_Occurred()) SWIG_fail; | |
16702 | arg3 = (int) SWIG_AsInt(obj2); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | { | |
16705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16706 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
16707 | ||
16708 | wxPyEndAllowThreads(__tstate); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
16710 | } | |
16711 | Py_INCREF(Py_None); resultobj = Py_None; | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
16715 | } | |
16716 | ||
16717 | ||
16718 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16719 | PyObject *resultobj; | |
16720 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16721 | int arg2 ; | |
16722 | int arg3 ; | |
16723 | PyObject * obj0 = 0 ; | |
16724 | PyObject * obj1 = 0 ; | |
16725 | PyObject * obj2 = 0 ; | |
16726 | char *kwnames[] = { | |
16727 | (char *) "self",(char *) "x",(char *) "y", NULL | |
16728 | }; | |
16729 | ||
16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16733 | arg2 = (int) SWIG_AsInt(obj1); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | arg3 = (int) SWIG_AsInt(obj2); | |
16736 | if (PyErr_Occurred()) SWIG_fail; | |
16737 | { | |
16738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16739 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16740 | ||
16741 | wxPyEndAllowThreads(__tstate); | |
16742 | if (PyErr_Occurred()) SWIG_fail; | |
16743 | } | |
16744 | Py_INCREF(Py_None); resultobj = Py_None; | |
16745 | return resultobj; | |
16746 | fail: | |
16747 | return NULL; | |
16748 | } | |
16749 | ||
16750 | ||
16751 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16752 | PyObject *resultobj; | |
16753 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16754 | int *arg2 = (int *) 0 ; | |
16755 | int *arg3 = (int *) 0 ; | |
16756 | int temp2 ; | |
16757 | int temp3 ; | |
16758 | PyObject * obj0 = 0 ; | |
16759 | char *kwnames[] = { | |
16760 | (char *) "self", NULL | |
16761 | }; | |
16762 | ||
16763 | arg2 = &temp2; | |
16764 | arg3 = &temp3; | |
16765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16768 | { | |
16769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16770 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16771 | ||
16772 | wxPyEndAllowThreads(__tstate); | |
16773 | if (PyErr_Occurred()) SWIG_fail; | |
16774 | } | |
16775 | Py_INCREF(Py_None); resultobj = Py_None; | |
16776 | { | |
16777 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16778 | resultobj = t_output_helper(resultobj,o); | |
16779 | } | |
16780 | { | |
16781 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16782 | resultobj = t_output_helper(resultobj,o); | |
16783 | } | |
16784 | return resultobj; | |
16785 | fail: | |
16786 | return NULL; | |
16787 | } | |
16788 | ||
16789 | ||
16790 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16791 | PyObject *resultobj; | |
16792 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16793 | int *arg2 = (int *) 0 ; | |
16794 | int *arg3 = (int *) 0 ; | |
16795 | int temp2 ; | |
16796 | int temp3 ; | |
16797 | PyObject * obj0 = 0 ; | |
16798 | char *kwnames[] = { | |
16799 | (char *) "self", NULL | |
16800 | }; | |
16801 | ||
16802 | arg2 = &temp2; | |
16803 | arg3 = &temp3; | |
16804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16807 | { | |
16808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16809 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16810 | ||
16811 | wxPyEndAllowThreads(__tstate); | |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
16813 | } | |
16814 | Py_INCREF(Py_None); resultobj = Py_None; | |
16815 | { | |
16816 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16817 | resultobj = t_output_helper(resultobj,o); | |
16818 | } | |
16819 | { | |
16820 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16821 | resultobj = t_output_helper(resultobj,o); | |
16822 | } | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | return NULL; | |
16826 | } | |
16827 | ||
16828 | ||
16829 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16830 | PyObject *resultobj; | |
16831 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16832 | int *arg2 = (int *) 0 ; | |
16833 | int *arg3 = (int *) 0 ; | |
16834 | int temp2 ; | |
16835 | int temp3 ; | |
16836 | PyObject * obj0 = 0 ; | |
16837 | char *kwnames[] = { | |
16838 | (char *) "self", NULL | |
16839 | }; | |
16840 | ||
16841 | arg2 = &temp2; | |
16842 | arg3 = &temp3; | |
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16846 | { | |
16847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16848 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16849 | ||
16850 | wxPyEndAllowThreads(__tstate); | |
16851 | if (PyErr_Occurred()) SWIG_fail; | |
16852 | } | |
16853 | Py_INCREF(Py_None); resultobj = Py_None; | |
16854 | { | |
16855 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16856 | resultobj = t_output_helper(resultobj,o); | |
16857 | } | |
16858 | { | |
16859 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16860 | resultobj = t_output_helper(resultobj,o); | |
16861 | } | |
16862 | return resultobj; | |
16863 | fail: | |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
16868 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16869 | PyObject *resultobj; | |
16870 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16871 | wxSize result; | |
16872 | PyObject * obj0 = 0 ; | |
16873 | char *kwnames[] = { | |
16874 | (char *) "self", NULL | |
16875 | }; | |
16876 | ||
16877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16880 | { | |
16881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16882 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16883 | ||
16884 | wxPyEndAllowThreads(__tstate); | |
16885 | if (PyErr_Occurred()) SWIG_fail; | |
16886 | } | |
16887 | { | |
16888 | wxSize * resultptr; | |
16889 | resultptr = new wxSize((wxSize &) result); | |
16890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16891 | } | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | return NULL; | |
16895 | } | |
16896 | ||
16897 | ||
16898 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16899 | PyObject *resultobj; | |
16900 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16901 | wxSize result; | |
16902 | PyObject * obj0 = 0 ; | |
16903 | char *kwnames[] = { | |
16904 | (char *) "self", NULL | |
16905 | }; | |
16906 | ||
16907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16910 | { | |
16911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16912 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16913 | ||
16914 | wxPyEndAllowThreads(__tstate); | |
16915 | if (PyErr_Occurred()) SWIG_fail; | |
16916 | } | |
16917 | { | |
16918 | wxSize * resultptr; | |
16919 | resultptr = new wxSize((wxSize &) result); | |
16920 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16921 | } | |
16922 | return resultobj; | |
16923 | fail: | |
16924 | return NULL; | |
16925 | } | |
16926 | ||
16927 | ||
16928 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16929 | PyObject *resultobj; | |
16930 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16931 | PyObject * obj0 = 0 ; | |
16932 | char *kwnames[] = { | |
16933 | (char *) "self", NULL | |
16934 | }; | |
16935 | ||
16936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16939 | { | |
16940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16941 | (arg1)->base_InitDialog(); | |
16942 | ||
16943 | wxPyEndAllowThreads(__tstate); | |
16944 | if (PyErr_Occurred()) SWIG_fail; | |
16945 | } | |
16946 | Py_INCREF(Py_None); resultobj = Py_None; | |
16947 | return resultobj; | |
16948 | fail: | |
16949 | return NULL; | |
16950 | } | |
16951 | ||
16952 | ||
16953 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16954 | PyObject *resultobj; | |
16955 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16956 | bool result; | |
16957 | PyObject * obj0 = 0 ; | |
16958 | char *kwnames[] = { | |
16959 | (char *) "self", NULL | |
16960 | }; | |
16961 | ||
16962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16965 | { | |
16966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16967 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16968 | ||
16969 | wxPyEndAllowThreads(__tstate); | |
16970 | if (PyErr_Occurred()) SWIG_fail; | |
16971 | } | |
16972 | { | |
16973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16974 | } | |
16975 | return resultobj; | |
16976 | fail: | |
16977 | return NULL; | |
16978 | } | |
16979 | ||
16980 | ||
16981 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16982 | PyObject *resultobj; | |
16983 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16984 | bool result; | |
16985 | PyObject * obj0 = 0 ; | |
16986 | char *kwnames[] = { | |
16987 | (char *) "self", NULL | |
16988 | }; | |
16989 | ||
16990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
16992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16993 | { | |
16994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16995 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16996 | ||
16997 | wxPyEndAllowThreads(__tstate); | |
16998 | if (PyErr_Occurred()) SWIG_fail; | |
16999 | } | |
17000 | { | |
17001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17002 | } | |
17003 | return resultobj; | |
17004 | fail: | |
17005 | return NULL; | |
17006 | } | |
17007 | ||
17008 | ||
17009 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17010 | PyObject *resultobj; | |
17011 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17012 | bool result; | |
17013 | PyObject * obj0 = 0 ; | |
17014 | char *kwnames[] = { | |
17015 | (char *) "self", NULL | |
17016 | }; | |
17017 | ||
17018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
17019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17021 | { | |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | result = (bool)(arg1)->base_Validate(); | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | { | |
17029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17030 | } | |
17031 | return resultobj; | |
17032 | fail: | |
17033 | return NULL; | |
17034 | } | |
17035 | ||
17036 | ||
17037 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17038 | PyObject *resultobj; | |
17039 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17040 | bool result; | |
17041 | PyObject * obj0 = 0 ; | |
17042 | char *kwnames[] = { | |
17043 | (char *) "self", NULL | |
17044 | }; | |
17045 | ||
17046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17049 | { | |
17050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17051 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
17052 | ||
17053 | wxPyEndAllowThreads(__tstate); | |
17054 | if (PyErr_Occurred()) SWIG_fail; | |
17055 | } | |
17056 | { | |
17057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17058 | } | |
17059 | return resultobj; | |
17060 | fail: | |
17061 | return NULL; | |
17062 | } | |
17063 | ||
17064 | ||
17065 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17066 | PyObject *resultobj; | |
17067 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17068 | bool result; | |
17069 | PyObject * obj0 = 0 ; | |
17070 | char *kwnames[] = { | |
17071 | (char *) "self", NULL | |
17072 | }; | |
17073 | ||
17074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17077 | { | |
17078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17079 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17080 | ||
17081 | wxPyEndAllowThreads(__tstate); | |
17082 | if (PyErr_Occurred()) SWIG_fail; | |
17083 | } | |
17084 | { | |
17085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17086 | } | |
17087 | return resultobj; | |
17088 | fail: | |
17089 | return NULL; | |
17090 | } | |
17091 | ||
17092 | ||
17093 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17094 | PyObject *resultobj; | |
17095 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17096 | wxSize result; | |
17097 | PyObject * obj0 = 0 ; | |
17098 | char *kwnames[] = { | |
17099 | (char *) "self", NULL | |
17100 | }; | |
17101 | ||
17102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17105 | { | |
17106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17107 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
17108 | ||
17109 | wxPyEndAllowThreads(__tstate); | |
17110 | if (PyErr_Occurred()) SWIG_fail; | |
17111 | } | |
17112 | { | |
17113 | wxSize * resultptr; | |
17114 | resultptr = new wxSize((wxSize &) result); | |
17115 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17116 | } | |
17117 | return resultobj; | |
17118 | fail: | |
17119 | return NULL; | |
17120 | } | |
17121 | ||
17122 | ||
17123 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17124 | PyObject *resultobj; | |
17125 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17126 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17127 | PyObject * obj0 = 0 ; | |
17128 | PyObject * obj1 = 0 ; | |
17129 | char *kwnames[] = { | |
17130 | (char *) "self",(char *) "child", NULL | |
17131 | }; | |
17132 | ||
17133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17136 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17138 | { | |
17139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17140 | (arg1)->base_AddChild(arg2); | |
17141 | ||
17142 | wxPyEndAllowThreads(__tstate); | |
17143 | if (PyErr_Occurred()) SWIG_fail; | |
17144 | } | |
17145 | Py_INCREF(Py_None); resultobj = Py_None; | |
17146 | return resultobj; | |
17147 | fail: | |
17148 | return NULL; | |
17149 | } | |
17150 | ||
17151 | ||
17152 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17153 | PyObject *resultobj; | |
17154 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17155 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17156 | PyObject * obj0 = 0 ; | |
17157 | PyObject * obj1 = 0 ; | |
17158 | char *kwnames[] = { | |
17159 | (char *) "self",(char *) "child", NULL | |
17160 | }; | |
17161 | ||
17162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
17163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17165 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17167 | { | |
17168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17169 | (arg1)->base_RemoveChild(arg2); | |
17170 | ||
17171 | wxPyEndAllowThreads(__tstate); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | } | |
17174 | Py_INCREF(Py_None); resultobj = Py_None; | |
17175 | return resultobj; | |
17176 | fail: | |
17177 | return NULL; | |
17178 | } | |
17179 | ||
17180 | ||
17181 | static PyObject *_wrap_PyPanel_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17182 | PyObject *resultobj; | |
17183 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17184 | bool result; | |
17185 | PyObject * obj0 = 0 ; | |
17186 | char *kwnames[] = { | |
17187 | (char *) "self", NULL | |
17188 | }; | |
17189 | ||
17190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
17191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17193 | { | |
17194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 17195 | result = (bool)((wxPyPanel const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
17196 | |
17197 | wxPyEndAllowThreads(__tstate); | |
17198 | if (PyErr_Occurred()) SWIG_fail; | |
17199 | } | |
17200 | { | |
17201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17202 | } | |
17203 | return resultobj; | |
17204 | fail: | |
17205 | return NULL; | |
17206 | } | |
17207 | ||
17208 | ||
17209 | static PyObject *_wrap_PyPanel_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17210 | PyObject *resultobj; | |
17211 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17212 | wxColour *arg2 = 0 ; | |
17213 | wxColour temp2 ; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | PyObject * obj1 = 0 ; | |
17216 | char *kwnames[] = { | |
17217 | (char *) "self",(char *) "c", NULL | |
17218 | }; | |
17219 | ||
17220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
17221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17223 | { | |
17224 | arg2 = &temp2; | |
17225 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17226 | } | |
17227 | { | |
17228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17229 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
17230 | ||
17231 | wxPyEndAllowThreads(__tstate); | |
17232 | if (PyErr_Occurred()) SWIG_fail; | |
17233 | } | |
17234 | Py_INCREF(Py_None); resultobj = Py_None; | |
17235 | return resultobj; | |
17236 | fail: | |
17237 | return NULL; | |
17238 | } | |
17239 | ||
17240 | ||
caef1a4d RD |
17241 | static PyObject *_wrap_PyPanel_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
17242 | PyObject *resultobj; | |
17243 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
17244 | wxVisualAttributes result; | |
17245 | PyObject * obj0 = 0 ; | |
17246 | char *kwnames[] = { | |
17247 | (char *) "self", NULL | |
17248 | }; | |
17249 | ||
17250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
17251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPanel, | |
17252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17253 | { | |
17254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17255 | result = (arg1)->base_GetDefaultAttributes(); | |
17256 | ||
17257 | wxPyEndAllowThreads(__tstate); | |
17258 | if (PyErr_Occurred()) SWIG_fail; | |
17259 | } | |
17260 | { | |
17261 | wxVisualAttributes * resultptr; | |
17262 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
17263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
17264 | } | |
17265 | return resultobj; | |
17266 | fail: | |
17267 | return NULL; | |
17268 | } | |
17269 | ||
17270 | ||
d55e5bfc RD |
17271 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { |
17272 | PyObject *obj; | |
17273 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17274 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
17275 | Py_INCREF(obj); | |
17276 | return Py_BuildValue((char *)""); | |
17277 | } | |
17278 | static PyObject *_wrap_new_PyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17279 | PyObject *resultobj; | |
17280 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 17281 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
17282 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17283 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17284 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17285 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17286 | long arg5 = (long) 0 ; | |
17287 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
17288 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17289 | wxPyScrolledWindow *result; | |
17290 | wxPoint temp3 ; | |
17291 | wxSize temp4 ; | |
17292 | bool temp6 = False ; | |
17293 | PyObject * obj0 = 0 ; | |
17294 | PyObject * obj1 = 0 ; | |
17295 | PyObject * obj2 = 0 ; | |
17296 | PyObject * obj3 = 0 ; | |
17297 | PyObject * obj4 = 0 ; | |
17298 | PyObject * obj5 = 0 ; | |
17299 | char *kwnames[] = { | |
17300 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17301 | }; | |
17302 | ||
248ed943 | 17303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_PyScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
17304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
17306 | if (obj1) { |
17307 | arg2 = (int const) SWIG_AsInt(obj1); | |
17308 | if (PyErr_Occurred()) SWIG_fail; | |
17309 | } | |
d55e5bfc RD |
17310 | if (obj2) { |
17311 | { | |
17312 | arg3 = &temp3; | |
17313 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17314 | } | |
17315 | } | |
17316 | if (obj3) { | |
17317 | { | |
17318 | arg4 = &temp4; | |
17319 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17320 | } | |
17321 | } | |
17322 | if (obj4) { | |
17323 | arg5 = (long) SWIG_AsLong(obj4); | |
17324 | if (PyErr_Occurred()) SWIG_fail; | |
17325 | } | |
17326 | if (obj5) { | |
17327 | { | |
17328 | arg6 = wxString_in_helper(obj5); | |
17329 | if (arg6 == NULL) SWIG_fail; | |
17330 | temp6 = True; | |
17331 | } | |
17332 | } | |
17333 | { | |
0439c23b | 17334 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17336 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17337 | ||
17338 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17339 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17340 | } |
17341 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17342 | { | |
17343 | if (temp6) | |
17344 | delete arg6; | |
17345 | } | |
17346 | return resultobj; | |
17347 | fail: | |
17348 | { | |
17349 | if (temp6) | |
17350 | delete arg6; | |
17351 | } | |
17352 | return NULL; | |
17353 | } | |
17354 | ||
17355 | ||
17356 | static PyObject *_wrap_new_PrePyScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17357 | PyObject *resultobj; | |
17358 | wxPyScrolledWindow *result; | |
17359 | char *kwnames[] = { | |
17360 | NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyScrolledWindow",kwnames)) goto fail; | |
17364 | { | |
0439c23b | 17365 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
17366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
17367 | result = (wxPyScrolledWindow *)new wxPyScrolledWindow(); | |
17368 | ||
17369 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 17370 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
17371 | } |
17372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyScrolledWindow, 1); | |
17373 | return resultobj; | |
17374 | fail: | |
17375 | return NULL; | |
17376 | } | |
17377 | ||
17378 | ||
17379 | static PyObject *_wrap_PyScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17380 | PyObject *resultobj; | |
17381 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17382 | PyObject *arg2 = (PyObject *) 0 ; | |
17383 | PyObject *arg3 = (PyObject *) 0 ; | |
17384 | PyObject * obj0 = 0 ; | |
17385 | PyObject * obj1 = 0 ; | |
17386 | PyObject * obj2 = 0 ; | |
17387 | char *kwnames[] = { | |
17388 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17389 | }; | |
17390 | ||
17391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17394 | arg2 = obj1; | |
17395 | arg3 = obj2; | |
17396 | { | |
17397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17398 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17399 | ||
17400 | wxPyEndAllowThreads(__tstate); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
17402 | } | |
17403 | Py_INCREF(Py_None); resultobj = Py_None; | |
17404 | return resultobj; | |
17405 | fail: | |
17406 | return NULL; | |
17407 | } | |
17408 | ||
17409 | ||
caef1a4d RD |
17410 | static PyObject *_wrap_PyScrolledWindow_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
17411 | PyObject *resultobj; | |
17412 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17413 | wxSize *arg2 = 0 ; | |
17414 | wxSize temp2 ; | |
17415 | PyObject * obj0 = 0 ; | |
17416 | PyObject * obj1 = 0 ; | |
17417 | char *kwnames[] = { | |
17418 | (char *) "self",(char *) "size", NULL | |
17419 | }; | |
17420 | ||
17421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
17422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17424 | { | |
17425 | arg2 = &temp2; | |
17426 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17427 | } | |
17428 | { | |
17429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17430 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
17431 | ||
17432 | wxPyEndAllowThreads(__tstate); | |
17433 | if (PyErr_Occurred()) SWIG_fail; | |
17434 | } | |
17435 | Py_INCREF(Py_None); resultobj = Py_None; | |
17436 | return resultobj; | |
17437 | fail: | |
17438 | return NULL; | |
17439 | } | |
17440 | ||
17441 | ||
d55e5bfc RD |
17442 | static PyObject *_wrap_PyScrolledWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
17443 | PyObject *resultobj; | |
17444 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17445 | int arg2 ; | |
17446 | int arg3 ; | |
17447 | int arg4 ; | |
17448 | int arg5 ; | |
17449 | PyObject * obj0 = 0 ; | |
17450 | PyObject * obj1 = 0 ; | |
17451 | PyObject * obj2 = 0 ; | |
17452 | PyObject * obj3 = 0 ; | |
17453 | PyObject * obj4 = 0 ; | |
17454 | char *kwnames[] = { | |
17455 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
17456 | }; | |
17457 | ||
17458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyScrolledWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
17459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17461 | arg2 = (int) SWIG_AsInt(obj1); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | arg3 = (int) SWIG_AsInt(obj2); | |
17464 | if (PyErr_Occurred()) SWIG_fail; | |
17465 | arg4 = (int) SWIG_AsInt(obj3); | |
17466 | if (PyErr_Occurred()) SWIG_fail; | |
17467 | arg5 = (int) SWIG_AsInt(obj4); | |
17468 | if (PyErr_Occurred()) SWIG_fail; | |
17469 | { | |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17471 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
17472 | ||
17473 | wxPyEndAllowThreads(__tstate); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
17476 | Py_INCREF(Py_None); resultobj = Py_None; | |
17477 | return resultobj; | |
17478 | fail: | |
17479 | return NULL; | |
17480 | } | |
17481 | ||
17482 | ||
17483 | static PyObject *_wrap_PyScrolledWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17484 | PyObject *resultobj; | |
17485 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17486 | int arg2 ; | |
17487 | int arg3 ; | |
17488 | int arg4 ; | |
17489 | int arg5 ; | |
17490 | int arg6 = (int) wxSIZE_AUTO ; | |
17491 | PyObject * obj0 = 0 ; | |
17492 | PyObject * obj1 = 0 ; | |
17493 | PyObject * obj2 = 0 ; | |
17494 | PyObject * obj3 = 0 ; | |
17495 | PyObject * obj4 = 0 ; | |
17496 | PyObject * obj5 = 0 ; | |
17497 | char *kwnames[] = { | |
17498 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
17499 | }; | |
17500 | ||
17501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyScrolledWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17504 | arg2 = (int) SWIG_AsInt(obj1); | |
17505 | if (PyErr_Occurred()) SWIG_fail; | |
17506 | arg3 = (int) SWIG_AsInt(obj2); | |
17507 | if (PyErr_Occurred()) SWIG_fail; | |
17508 | arg4 = (int) SWIG_AsInt(obj3); | |
17509 | if (PyErr_Occurred()) SWIG_fail; | |
17510 | arg5 = (int) SWIG_AsInt(obj4); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | if (obj5) { | |
17513 | arg6 = (int) SWIG_AsInt(obj5); | |
17514 | if (PyErr_Occurred()) SWIG_fail; | |
17515 | } | |
17516 | { | |
17517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17518 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
17519 | ||
17520 | wxPyEndAllowThreads(__tstate); | |
17521 | if (PyErr_Occurred()) SWIG_fail; | |
17522 | } | |
17523 | Py_INCREF(Py_None); resultobj = Py_None; | |
17524 | return resultobj; | |
17525 | fail: | |
17526 | return NULL; | |
17527 | } | |
17528 | ||
17529 | ||
17530 | static PyObject *_wrap_PyScrolledWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17531 | PyObject *resultobj; | |
17532 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17533 | int arg2 ; | |
17534 | int arg3 ; | |
17535 | PyObject * obj0 = 0 ; | |
17536 | PyObject * obj1 = 0 ; | |
17537 | PyObject * obj2 = 0 ; | |
17538 | char *kwnames[] = { | |
17539 | (char *) "self",(char *) "width",(char *) "height", NULL | |
17540 | }; | |
17541 | ||
17542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17545 | arg2 = (int) SWIG_AsInt(obj1); | |
17546 | if (PyErr_Occurred()) SWIG_fail; | |
17547 | arg3 = (int) SWIG_AsInt(obj2); | |
17548 | if (PyErr_Occurred()) SWIG_fail; | |
17549 | { | |
17550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17551 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
17552 | ||
17553 | wxPyEndAllowThreads(__tstate); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
17556 | Py_INCREF(Py_None); resultobj = Py_None; | |
17557 | return resultobj; | |
17558 | fail: | |
17559 | return NULL; | |
17560 | } | |
17561 | ||
17562 | ||
17563 | static PyObject *_wrap_PyScrolledWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17564 | PyObject *resultobj; | |
17565 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17566 | int arg2 ; | |
17567 | int arg3 ; | |
17568 | PyObject * obj0 = 0 ; | |
17569 | PyObject * obj1 = 0 ; | |
17570 | PyObject * obj2 = 0 ; | |
17571 | char *kwnames[] = { | |
17572 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyScrolledWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17578 | arg2 = (int) SWIG_AsInt(obj1); | |
17579 | if (PyErr_Occurred()) SWIG_fail; | |
17580 | arg3 = (int) SWIG_AsInt(obj2); | |
17581 | if (PyErr_Occurred()) SWIG_fail; | |
17582 | { | |
17583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17584 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
17585 | ||
17586 | wxPyEndAllowThreads(__tstate); | |
17587 | if (PyErr_Occurred()) SWIG_fail; | |
17588 | } | |
17589 | Py_INCREF(Py_None); resultobj = Py_None; | |
17590 | return resultobj; | |
17591 | fail: | |
17592 | return NULL; | |
17593 | } | |
17594 | ||
17595 | ||
17596 | static PyObject *_wrap_PyScrolledWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17597 | PyObject *resultobj; | |
17598 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17599 | int *arg2 = (int *) 0 ; | |
17600 | int *arg3 = (int *) 0 ; | |
17601 | int temp2 ; | |
17602 | int temp3 ; | |
17603 | PyObject * obj0 = 0 ; | |
17604 | char *kwnames[] = { | |
17605 | (char *) "self", NULL | |
17606 | }; | |
17607 | ||
17608 | arg2 = &temp2; | |
17609 | arg3 = &temp3; | |
17610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
17611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17613 | { | |
17614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17615 | ((wxPyScrolledWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
17616 | ||
17617 | wxPyEndAllowThreads(__tstate); | |
17618 | if (PyErr_Occurred()) SWIG_fail; | |
17619 | } | |
17620 | Py_INCREF(Py_None); resultobj = Py_None; | |
17621 | { | |
17622 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17623 | resultobj = t_output_helper(resultobj,o); | |
17624 | } | |
17625 | { | |
17626 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17627 | resultobj = t_output_helper(resultobj,o); | |
17628 | } | |
17629 | return resultobj; | |
17630 | fail: | |
17631 | return NULL; | |
17632 | } | |
17633 | ||
17634 | ||
17635 | static PyObject *_wrap_PyScrolledWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17636 | PyObject *resultobj; | |
17637 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17638 | int *arg2 = (int *) 0 ; | |
17639 | int *arg3 = (int *) 0 ; | |
17640 | int temp2 ; | |
17641 | int temp3 ; | |
17642 | PyObject * obj0 = 0 ; | |
17643 | char *kwnames[] = { | |
17644 | (char *) "self", NULL | |
17645 | }; | |
17646 | ||
17647 | arg2 = &temp2; | |
17648 | arg3 = &temp3; | |
17649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
17650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17652 | { | |
17653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17654 | ((wxPyScrolledWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
17655 | ||
17656 | wxPyEndAllowThreads(__tstate); | |
17657 | if (PyErr_Occurred()) SWIG_fail; | |
17658 | } | |
17659 | Py_INCREF(Py_None); resultobj = Py_None; | |
17660 | { | |
17661 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17662 | resultobj = t_output_helper(resultobj,o); | |
17663 | } | |
17664 | { | |
17665 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17666 | resultobj = t_output_helper(resultobj,o); | |
17667 | } | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | return NULL; | |
17671 | } | |
17672 | ||
17673 | ||
17674 | static PyObject *_wrap_PyScrolledWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17675 | PyObject *resultobj; | |
17676 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17677 | int *arg2 = (int *) 0 ; | |
17678 | int *arg3 = (int *) 0 ; | |
17679 | int temp2 ; | |
17680 | int temp3 ; | |
17681 | PyObject * obj0 = 0 ; | |
17682 | char *kwnames[] = { | |
17683 | (char *) "self", NULL | |
17684 | }; | |
17685 | ||
17686 | arg2 = &temp2; | |
17687 | arg3 = &temp3; | |
17688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
17689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17691 | { | |
17692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17693 | ((wxPyScrolledWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
17694 | ||
17695 | wxPyEndAllowThreads(__tstate); | |
17696 | if (PyErr_Occurred()) SWIG_fail; | |
17697 | } | |
17698 | Py_INCREF(Py_None); resultobj = Py_None; | |
17699 | { | |
17700 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
17701 | resultobj = t_output_helper(resultobj,o); | |
17702 | } | |
17703 | { | |
17704 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
17705 | resultobj = t_output_helper(resultobj,o); | |
17706 | } | |
17707 | return resultobj; | |
17708 | fail: | |
17709 | return NULL; | |
17710 | } | |
17711 | ||
17712 | ||
17713 | static PyObject *_wrap_PyScrolledWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17714 | PyObject *resultobj; | |
17715 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17716 | wxSize result; | |
17717 | PyObject * obj0 = 0 ; | |
17718 | char *kwnames[] = { | |
17719 | (char *) "self", NULL | |
17720 | }; | |
17721 | ||
17722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
17723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17725 | { | |
17726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17727 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetVirtualSize(); | |
17728 | ||
17729 | wxPyEndAllowThreads(__tstate); | |
17730 | if (PyErr_Occurred()) SWIG_fail; | |
17731 | } | |
17732 | { | |
17733 | wxSize * resultptr; | |
17734 | resultptr = new wxSize((wxSize &) result); | |
17735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17736 | } | |
17737 | return resultobj; | |
17738 | fail: | |
17739 | return NULL; | |
17740 | } | |
17741 | ||
17742 | ||
17743 | static PyObject *_wrap_PyScrolledWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17744 | PyObject *resultobj; | |
17745 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17746 | wxSize result; | |
17747 | PyObject * obj0 = 0 ; | |
17748 | char *kwnames[] = { | |
17749 | (char *) "self", NULL | |
17750 | }; | |
17751 | ||
17752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
17753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17755 | { | |
17756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17757 | result = ((wxPyScrolledWindow const *)arg1)->base_DoGetBestSize(); | |
17758 | ||
17759 | wxPyEndAllowThreads(__tstate); | |
17760 | if (PyErr_Occurred()) SWIG_fail; | |
17761 | } | |
17762 | { | |
17763 | wxSize * resultptr; | |
17764 | resultptr = new wxSize((wxSize &) result); | |
17765 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17766 | } | |
17767 | return resultobj; | |
17768 | fail: | |
17769 | return NULL; | |
17770 | } | |
17771 | ||
17772 | ||
17773 | static PyObject *_wrap_PyScrolledWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17774 | PyObject *resultobj; | |
17775 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17776 | PyObject * obj0 = 0 ; | |
17777 | char *kwnames[] = { | |
17778 | (char *) "self", NULL | |
17779 | }; | |
17780 | ||
17781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
17782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17784 | { | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | (arg1)->base_InitDialog(); | |
17787 | ||
17788 | wxPyEndAllowThreads(__tstate); | |
17789 | if (PyErr_Occurred()) SWIG_fail; | |
17790 | } | |
17791 | Py_INCREF(Py_None); resultobj = Py_None; | |
17792 | return resultobj; | |
17793 | fail: | |
17794 | return NULL; | |
17795 | } | |
17796 | ||
17797 | ||
17798 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17799 | PyObject *resultobj; | |
17800 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17801 | bool result; | |
17802 | PyObject * obj0 = 0 ; | |
17803 | char *kwnames[] = { | |
17804 | (char *) "self", NULL | |
17805 | }; | |
17806 | ||
17807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
17808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17810 | { | |
17811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17812 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
17813 | ||
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | { | |
17818 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17819 | } | |
17820 | return resultobj; | |
17821 | fail: | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
17826 | static PyObject *_wrap_PyScrolledWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17827 | PyObject *resultobj; | |
17828 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17829 | bool result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
17836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17838 | { | |
17839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17840 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
17841 | ||
17842 | wxPyEndAllowThreads(__tstate); | |
17843 | if (PyErr_Occurred()) SWIG_fail; | |
17844 | } | |
17845 | { | |
17846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17847 | } | |
17848 | return resultobj; | |
17849 | fail: | |
17850 | return NULL; | |
17851 | } | |
17852 | ||
17853 | ||
17854 | static PyObject *_wrap_PyScrolledWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17855 | PyObject *resultobj; | |
17856 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17857 | bool result; | |
17858 | PyObject * obj0 = 0 ; | |
17859 | char *kwnames[] = { | |
17860 | (char *) "self", NULL | |
17861 | }; | |
17862 | ||
17863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_Validate",kwnames,&obj0)) goto fail; | |
17864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17866 | { | |
17867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17868 | result = (bool)(arg1)->base_Validate(); | |
17869 | ||
17870 | wxPyEndAllowThreads(__tstate); | |
17871 | if (PyErr_Occurred()) SWIG_fail; | |
17872 | } | |
17873 | { | |
17874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17875 | } | |
17876 | return resultobj; | |
17877 | fail: | |
17878 | return NULL; | |
17879 | } | |
17880 | ||
17881 | ||
17882 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17883 | PyObject *resultobj; | |
17884 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17885 | bool result; | |
17886 | PyObject * obj0 = 0 ; | |
17887 | char *kwnames[] = { | |
17888 | (char *) "self", NULL | |
17889 | }; | |
17890 | ||
17891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
17892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17894 | { | |
17895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17896 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocus(); | |
17897 | ||
17898 | wxPyEndAllowThreads(__tstate); | |
17899 | if (PyErr_Occurred()) SWIG_fail; | |
17900 | } | |
17901 | { | |
17902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17903 | } | |
17904 | return resultobj; | |
17905 | fail: | |
17906 | return NULL; | |
17907 | } | |
17908 | ||
17909 | ||
17910 | static PyObject *_wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17911 | PyObject *resultobj; | |
17912 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17913 | bool result; | |
17914 | PyObject * obj0 = 0 ; | |
17915 | char *kwnames[] = { | |
17916 | (char *) "self", NULL | |
17917 | }; | |
17918 | ||
17919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
17920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17922 | { | |
17923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17924 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
17925 | ||
17926 | wxPyEndAllowThreads(__tstate); | |
17927 | if (PyErr_Occurred()) SWIG_fail; | |
17928 | } | |
17929 | { | |
17930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17931 | } | |
17932 | return resultobj; | |
17933 | fail: | |
17934 | return NULL; | |
17935 | } | |
17936 | ||
17937 | ||
17938 | static PyObject *_wrap_PyScrolledWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17939 | PyObject *resultobj; | |
17940 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17941 | wxSize result; | |
17942 | PyObject * obj0 = 0 ; | |
17943 | char *kwnames[] = { | |
17944 | (char *) "self", NULL | |
17945 | }; | |
17946 | ||
17947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
17948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17950 | { | |
17951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17952 | result = ((wxPyScrolledWindow const *)arg1)->base_GetMaxSize(); | |
17953 | ||
17954 | wxPyEndAllowThreads(__tstate); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
17956 | } | |
17957 | { | |
17958 | wxSize * resultptr; | |
17959 | resultptr = new wxSize((wxSize &) result); | |
17960 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17961 | } | |
17962 | return resultobj; | |
17963 | fail: | |
17964 | return NULL; | |
17965 | } | |
17966 | ||
17967 | ||
17968 | static PyObject *_wrap_PyScrolledWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17969 | PyObject *resultobj; | |
17970 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
17971 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17972 | PyObject * obj0 = 0 ; | |
17973 | PyObject * obj1 = 0 ; | |
17974 | char *kwnames[] = { | |
17975 | (char *) "self",(char *) "child", NULL | |
17976 | }; | |
17977 | ||
17978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
17979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
17980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17983 | { | |
17984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17985 | (arg1)->base_AddChild(arg2); | |
17986 | ||
17987 | wxPyEndAllowThreads(__tstate); | |
17988 | if (PyErr_Occurred()) SWIG_fail; | |
17989 | } | |
17990 | Py_INCREF(Py_None); resultobj = Py_None; | |
17991 | return resultobj; | |
17992 | fail: | |
17993 | return NULL; | |
17994 | } | |
17995 | ||
17996 | ||
17997 | static PyObject *_wrap_PyScrolledWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17998 | PyObject *resultobj; | |
17999 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18000 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18001 | PyObject * obj0 = 0 ; | |
18002 | PyObject * obj1 = 0 ; | |
18003 | char *kwnames[] = { | |
18004 | (char *) "self",(char *) "child", NULL | |
18005 | }; | |
18006 | ||
18007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
18008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18012 | { | |
18013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18014 | (arg1)->base_RemoveChild(arg2); | |
18015 | ||
18016 | wxPyEndAllowThreads(__tstate); | |
18017 | if (PyErr_Occurred()) SWIG_fail; | |
18018 | } | |
18019 | Py_INCREF(Py_None); resultobj = Py_None; | |
18020 | return resultobj; | |
18021 | fail: | |
18022 | return NULL; | |
18023 | } | |
18024 | ||
18025 | ||
18026 | static PyObject *_wrap_PyScrolledWindow_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18027 | PyObject *resultobj; | |
18028 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18029 | bool result; | |
18030 | PyObject * obj0 = 0 ; | |
18031 | char *kwnames[] = { | |
18032 | (char *) "self", NULL | |
18033 | }; | |
18034 | ||
18035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
18036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18038 | { | |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 18040 | result = (bool)((wxPyScrolledWindow const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
18041 | |
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
18045 | { | |
18046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18047 | } | |
18048 | return resultobj; | |
18049 | fail: | |
18050 | return NULL; | |
18051 | } | |
18052 | ||
18053 | ||
18054 | static PyObject *_wrap_PyScrolledWindow_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18055 | PyObject *resultobj; | |
18056 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18057 | wxColour *arg2 = 0 ; | |
18058 | wxColour temp2 ; | |
18059 | PyObject * obj0 = 0 ; | |
18060 | PyObject * obj1 = 0 ; | |
18061 | char *kwnames[] = { | |
18062 | (char *) "self",(char *) "c", NULL | |
18063 | }; | |
18064 | ||
18065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyScrolledWindow_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
18066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18068 | { | |
18069 | arg2 = &temp2; | |
18070 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18071 | } | |
18072 | { | |
18073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18074 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
18075 | ||
18076 | wxPyEndAllowThreads(__tstate); | |
18077 | if (PyErr_Occurred()) SWIG_fail; | |
18078 | } | |
18079 | Py_INCREF(Py_None); resultobj = Py_None; | |
18080 | return resultobj; | |
18081 | fail: | |
18082 | return NULL; | |
18083 | } | |
18084 | ||
18085 | ||
caef1a4d RD |
18086 | static PyObject *_wrap_PyScrolledWindow_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18087 | PyObject *resultobj; | |
18088 | wxPyScrolledWindow *arg1 = (wxPyScrolledWindow *) 0 ; | |
18089 | wxVisualAttributes result; | |
18090 | PyObject * obj0 = 0 ; | |
18091 | char *kwnames[] = { | |
18092 | (char *) "self", NULL | |
18093 | }; | |
18094 | ||
18095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyScrolledWindow_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
18096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyScrolledWindow, | |
18097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18098 | { | |
18099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18100 | result = (arg1)->base_GetDefaultAttributes(); | |
18101 | ||
18102 | wxPyEndAllowThreads(__tstate); | |
18103 | if (PyErr_Occurred()) SWIG_fail; | |
18104 | } | |
18105 | { | |
18106 | wxVisualAttributes * resultptr; | |
18107 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18108 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18109 | } | |
18110 | return resultobj; | |
18111 | fail: | |
18112 | return NULL; | |
18113 | } | |
18114 | ||
18115 | ||
d55e5bfc RD |
18116 | static PyObject * PyScrolledWindow_swigregister(PyObject *self, PyObject *args) { |
18117 | PyObject *obj; | |
18118 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18119 | SWIG_TypeClientData(SWIGTYPE_p_wxPyScrolledWindow, obj); | |
18120 | Py_INCREF(obj); | |
18121 | return Py_BuildValue((char *)""); | |
18122 | } | |
18123 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { | |
18124 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
18125 | return 1; | |
18126 | } | |
18127 | ||
18128 | ||
18129 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
18130 | PyObject *pyobj; | |
18131 | ||
18132 | { | |
18133 | #if wxUSE_UNICODE | |
18134 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
18135 | #else | |
18136 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
18137 | #endif | |
18138 | } | |
18139 | return pyobj; | |
18140 | } | |
18141 | ||
18142 | ||
18143 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
18144 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
18145 | return 1; | |
18146 | } | |
18147 | ||
18148 | ||
18149 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
18150 | PyObject *pyobj; | |
18151 | ||
18152 | { | |
18153 | #if wxUSE_UNICODE | |
18154 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
18155 | #else | |
18156 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
18157 | #endif | |
18158 | } | |
18159 | return pyobj; | |
18160 | } | |
18161 | ||
18162 | ||
09c21d3b | 18163 | static PyObject *_wrap_new_PrintData__SWIG_0(PyObject *self, PyObject *args) { |
d55e5bfc RD |
18164 | PyObject *resultobj; |
18165 | wxPrintData *result; | |
d55e5bfc | 18166 | |
09c21d3b | 18167 | if(!PyArg_ParseTuple(args,(char *)":new_PrintData")) goto fail; |
d55e5bfc RD |
18168 | { |
18169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18170 | result = (wxPrintData *)new wxPrintData(); | |
18171 | ||
18172 | wxPyEndAllowThreads(__tstate); | |
18173 | if (PyErr_Occurred()) SWIG_fail; | |
18174 | } | |
18175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
09c21d3b RD |
18182 | static PyObject *_wrap_new_PrintData__SWIG_1(PyObject *self, PyObject *args) { |
18183 | PyObject *resultobj; | |
18184 | wxPrintData *arg1 = 0 ; | |
18185 | wxPrintData *result; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | ||
18188 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintData",&obj0)) goto fail; | |
18189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18190 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18191 | SWIG_fail; | |
18192 | if (arg1 == NULL) { | |
18193 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18194 | SWIG_fail; | |
18195 | } | |
18196 | { | |
18197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18198 | result = (wxPrintData *)new wxPrintData((wxPrintData const &)*arg1); | |
18199 | ||
18200 | wxPyEndAllowThreads(__tstate); | |
18201 | if (PyErr_Occurred()) SWIG_fail; | |
18202 | } | |
18203 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 1); | |
18204 | return resultobj; | |
18205 | fail: | |
18206 | return NULL; | |
18207 | } | |
18208 | ||
18209 | ||
18210 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args) { | |
18211 | int argc; | |
18212 | PyObject *argv[2]; | |
18213 | int ii; | |
18214 | ||
18215 | argc = PyObject_Length(args); | |
18216 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
18217 | argv[ii] = PyTuple_GetItem(args,ii); | |
18218 | } | |
18219 | if (argc == 0) { | |
18220 | return _wrap_new_PrintData__SWIG_0(self,args); | |
18221 | } | |
18222 | if (argc == 1) { | |
18223 | int _v; | |
18224 | { | |
18225 | void *ptr; | |
18226 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
18227 | _v = 0; | |
18228 | PyErr_Clear(); | |
18229 | } else { | |
18230 | _v = 1; | |
18231 | } | |
18232 | } | |
18233 | if (_v) { | |
18234 | return _wrap_new_PrintData__SWIG_1(self,args); | |
18235 | } | |
18236 | } | |
18237 | ||
18238 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintData'"); | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
d55e5bfc RD |
18243 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
18244 | PyObject *resultobj; | |
18245 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18246 | PyObject * obj0 = 0 ; | |
18247 | char *kwnames[] = { | |
18248 | (char *) "self", NULL | |
18249 | }; | |
18250 | ||
18251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
18252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18254 | { | |
18255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18256 | delete arg1; | |
18257 | ||
18258 | wxPyEndAllowThreads(__tstate); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | Py_INCREF(Py_None); resultobj = Py_None; | |
18262 | return resultobj; | |
18263 | fail: | |
18264 | return NULL; | |
18265 | } | |
18266 | ||
18267 | ||
18268 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18269 | PyObject *resultobj; | |
18270 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18271 | int result; | |
18272 | PyObject * obj0 = 0 ; | |
18273 | char *kwnames[] = { | |
18274 | (char *) "self", NULL | |
18275 | }; | |
18276 | ||
18277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
18278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18280 | { | |
18281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18282 | result = (int)(arg1)->GetNoCopies(); | |
18283 | ||
18284 | wxPyEndAllowThreads(__tstate); | |
18285 | if (PyErr_Occurred()) SWIG_fail; | |
18286 | } | |
18287 | resultobj = SWIG_FromInt((int)result); | |
18288 | return resultobj; | |
18289 | fail: | |
18290 | return NULL; | |
18291 | } | |
18292 | ||
18293 | ||
18294 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18295 | PyObject *resultobj; | |
18296 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18297 | bool result; | |
18298 | PyObject * obj0 = 0 ; | |
18299 | char *kwnames[] = { | |
18300 | (char *) "self", NULL | |
18301 | }; | |
18302 | ||
18303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
18304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18306 | { | |
18307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18308 | result = (bool)(arg1)->GetCollate(); | |
18309 | ||
18310 | wxPyEndAllowThreads(__tstate); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
18312 | } | |
18313 | { | |
18314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18315 | } | |
18316 | return resultobj; | |
18317 | fail: | |
18318 | return NULL; | |
18319 | } | |
18320 | ||
18321 | ||
18322 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18323 | PyObject *resultobj; | |
18324 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18325 | int result; | |
18326 | PyObject * obj0 = 0 ; | |
18327 | char *kwnames[] = { | |
18328 | (char *) "self", NULL | |
18329 | }; | |
18330 | ||
18331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
18332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18334 | { | |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | result = (int)(arg1)->GetOrientation(); | |
18337 | ||
18338 | wxPyEndAllowThreads(__tstate); | |
18339 | if (PyErr_Occurred()) SWIG_fail; | |
18340 | } | |
18341 | resultobj = SWIG_FromInt((int)result); | |
18342 | return resultobj; | |
18343 | fail: | |
18344 | return NULL; | |
18345 | } | |
18346 | ||
18347 | ||
18348 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18349 | PyObject *resultobj; | |
18350 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18351 | bool result; | |
18352 | PyObject * obj0 = 0 ; | |
18353 | char *kwnames[] = { | |
18354 | (char *) "self", NULL | |
18355 | }; | |
18356 | ||
18357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
18358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18360 | { | |
18361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18362 | result = (bool)(arg1)->Ok(); | |
18363 | ||
18364 | wxPyEndAllowThreads(__tstate); | |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
18366 | } | |
18367 | { | |
18368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18369 | } | |
18370 | return resultobj; | |
18371 | fail: | |
18372 | return NULL; | |
18373 | } | |
18374 | ||
18375 | ||
18376 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18377 | PyObject *resultobj; | |
18378 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18379 | wxString *result; | |
18380 | PyObject * obj0 = 0 ; | |
18381 | char *kwnames[] = { | |
18382 | (char *) "self", NULL | |
18383 | }; | |
18384 | ||
18385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
18386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18388 | { | |
18389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18390 | { | |
18391 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
18392 | result = (wxString *) &_result_ref; | |
18393 | } | |
18394 | ||
18395 | wxPyEndAllowThreads(__tstate); | |
18396 | if (PyErr_Occurred()) SWIG_fail; | |
18397 | } | |
18398 | { | |
18399 | #if wxUSE_UNICODE | |
18400 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18401 | #else | |
18402 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18403 | #endif | |
18404 | } | |
18405 | return resultobj; | |
18406 | fail: | |
18407 | return NULL; | |
18408 | } | |
18409 | ||
18410 | ||
18411 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18412 | PyObject *resultobj; | |
18413 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18414 | bool result; | |
18415 | PyObject * obj0 = 0 ; | |
18416 | char *kwnames[] = { | |
18417 | (char *) "self", NULL | |
18418 | }; | |
18419 | ||
18420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
18421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18423 | { | |
18424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18425 | result = (bool)(arg1)->GetColour(); | |
18426 | ||
18427 | wxPyEndAllowThreads(__tstate); | |
18428 | if (PyErr_Occurred()) SWIG_fail; | |
18429 | } | |
18430 | { | |
18431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18432 | } | |
18433 | return resultobj; | |
18434 | fail: | |
18435 | return NULL; | |
18436 | } | |
18437 | ||
18438 | ||
18439 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18440 | PyObject *resultobj; | |
18441 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18442 | int result; | |
18443 | PyObject * obj0 = 0 ; | |
18444 | char *kwnames[] = { | |
18445 | (char *) "self", NULL | |
18446 | }; | |
18447 | ||
18448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
18449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18451 | { | |
18452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18453 | result = (int)(arg1)->GetDuplex(); | |
18454 | ||
18455 | wxPyEndAllowThreads(__tstate); | |
18456 | if (PyErr_Occurred()) SWIG_fail; | |
18457 | } | |
18458 | resultobj = SWIG_FromInt((int)result); | |
18459 | return resultobj; | |
18460 | fail: | |
18461 | return NULL; | |
18462 | } | |
18463 | ||
18464 | ||
18465 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18466 | PyObject *resultobj; | |
18467 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18468 | int result; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | char *kwnames[] = { | |
18471 | (char *) "self", NULL | |
18472 | }; | |
18473 | ||
18474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
18475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18477 | { | |
18478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18479 | result = (int)(arg1)->GetPaperId(); | |
18480 | ||
18481 | wxPyEndAllowThreads(__tstate); | |
18482 | if (PyErr_Occurred()) SWIG_fail; | |
18483 | } | |
18484 | resultobj = SWIG_FromInt((int)result); | |
18485 | return resultobj; | |
18486 | fail: | |
18487 | return NULL; | |
18488 | } | |
18489 | ||
18490 | ||
18491 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18492 | PyObject *resultobj; | |
18493 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18494 | wxSize *result; | |
18495 | PyObject * obj0 = 0 ; | |
18496 | char *kwnames[] = { | |
18497 | (char *) "self", NULL | |
18498 | }; | |
18499 | ||
18500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
18501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18503 | { | |
18504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18505 | { | |
18506 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
18507 | result = (wxSize *) &_result_ref; | |
18508 | } | |
18509 | ||
18510 | wxPyEndAllowThreads(__tstate); | |
18511 | if (PyErr_Occurred()) SWIG_fail; | |
18512 | } | |
18513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
18514 | return resultobj; | |
18515 | fail: | |
18516 | return NULL; | |
18517 | } | |
18518 | ||
18519 | ||
18520 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18521 | PyObject *resultobj; | |
18522 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18523 | int result; | |
18524 | PyObject * obj0 = 0 ; | |
18525 | char *kwnames[] = { | |
18526 | (char *) "self", NULL | |
18527 | }; | |
18528 | ||
18529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
18530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18532 | { | |
18533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18534 | result = (int)(arg1)->GetQuality(); | |
18535 | ||
18536 | wxPyEndAllowThreads(__tstate); | |
18537 | if (PyErr_Occurred()) SWIG_fail; | |
18538 | } | |
18539 | resultobj = SWIG_FromInt((int)result); | |
18540 | return resultobj; | |
18541 | fail: | |
18542 | return NULL; | |
18543 | } | |
18544 | ||
18545 | ||
18546 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18547 | PyObject *resultobj; | |
18548 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18549 | int arg2 ; | |
18550 | PyObject * obj0 = 0 ; | |
18551 | PyObject * obj1 = 0 ; | |
18552 | char *kwnames[] = { | |
18553 | (char *) "self",(char *) "v", NULL | |
18554 | }; | |
18555 | ||
18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
18557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18559 | arg2 = (int) SWIG_AsInt(obj1); | |
18560 | if (PyErr_Occurred()) SWIG_fail; | |
18561 | { | |
18562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18563 | (arg1)->SetNoCopies(arg2); | |
18564 | ||
18565 | wxPyEndAllowThreads(__tstate); | |
18566 | if (PyErr_Occurred()) SWIG_fail; | |
18567 | } | |
18568 | Py_INCREF(Py_None); resultobj = Py_None; | |
18569 | return resultobj; | |
18570 | fail: | |
18571 | return NULL; | |
18572 | } | |
18573 | ||
18574 | ||
18575 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18576 | PyObject *resultobj; | |
18577 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18578 | bool arg2 ; | |
18579 | PyObject * obj0 = 0 ; | |
18580 | PyObject * obj1 = 0 ; | |
18581 | char *kwnames[] = { | |
18582 | (char *) "self",(char *) "flag", NULL | |
18583 | }; | |
18584 | ||
18585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
18586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18588 | arg2 = (bool) SWIG_AsBool(obj1); | |
18589 | if (PyErr_Occurred()) SWIG_fail; | |
18590 | { | |
18591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18592 | (arg1)->SetCollate(arg2); | |
18593 | ||
18594 | wxPyEndAllowThreads(__tstate); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
18597 | Py_INCREF(Py_None); resultobj = Py_None; | |
18598 | return resultobj; | |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
18604 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18605 | PyObject *resultobj; | |
18606 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18607 | int arg2 ; | |
18608 | PyObject * obj0 = 0 ; | |
18609 | PyObject * obj1 = 0 ; | |
18610 | char *kwnames[] = { | |
18611 | (char *) "self",(char *) "orient", NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
18615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18617 | arg2 = (int) SWIG_AsInt(obj1); | |
18618 | if (PyErr_Occurred()) SWIG_fail; | |
18619 | { | |
18620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18621 | (arg1)->SetOrientation(arg2); | |
18622 | ||
18623 | wxPyEndAllowThreads(__tstate); | |
18624 | if (PyErr_Occurred()) SWIG_fail; | |
18625 | } | |
18626 | Py_INCREF(Py_None); resultobj = Py_None; | |
18627 | return resultobj; | |
18628 | fail: | |
18629 | return NULL; | |
18630 | } | |
18631 | ||
18632 | ||
18633 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18634 | PyObject *resultobj; | |
18635 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18636 | wxString *arg2 = 0 ; | |
18637 | bool temp2 = False ; | |
18638 | PyObject * obj0 = 0 ; | |
18639 | PyObject * obj1 = 0 ; | |
18640 | char *kwnames[] = { | |
18641 | (char *) "self",(char *) "name", NULL | |
18642 | }; | |
18643 | ||
18644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
18645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18647 | { | |
18648 | arg2 = wxString_in_helper(obj1); | |
18649 | if (arg2 == NULL) SWIG_fail; | |
18650 | temp2 = True; | |
18651 | } | |
18652 | { | |
18653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18654 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
18655 | ||
18656 | wxPyEndAllowThreads(__tstate); | |
18657 | if (PyErr_Occurred()) SWIG_fail; | |
18658 | } | |
18659 | Py_INCREF(Py_None); resultobj = Py_None; | |
18660 | { | |
18661 | if (temp2) | |
18662 | delete arg2; | |
18663 | } | |
18664 | return resultobj; | |
18665 | fail: | |
18666 | { | |
18667 | if (temp2) | |
18668 | delete arg2; | |
18669 | } | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj; | |
18676 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18677 | bool arg2 ; | |
18678 | PyObject * obj0 = 0 ; | |
18679 | PyObject * obj1 = 0 ; | |
18680 | char *kwnames[] = { | |
18681 | (char *) "self",(char *) "colour", NULL | |
18682 | }; | |
18683 | ||
18684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
18685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18687 | arg2 = (bool) SWIG_AsBool(obj1); | |
18688 | if (PyErr_Occurred()) SWIG_fail; | |
18689 | { | |
18690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18691 | (arg1)->SetColour(arg2); | |
18692 | ||
18693 | wxPyEndAllowThreads(__tstate); | |
18694 | if (PyErr_Occurred()) SWIG_fail; | |
18695 | } | |
18696 | Py_INCREF(Py_None); resultobj = Py_None; | |
18697 | return resultobj; | |
18698 | fail: | |
18699 | return NULL; | |
18700 | } | |
18701 | ||
18702 | ||
18703 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18704 | PyObject *resultobj; | |
18705 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18706 | int arg2 ; | |
18707 | PyObject * obj0 = 0 ; | |
18708 | PyObject * obj1 = 0 ; | |
18709 | char *kwnames[] = { | |
18710 | (char *) "self",(char *) "duplex", NULL | |
18711 | }; | |
18712 | ||
18713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; | |
18714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18716 | arg2 = (wxDuplexMode) SWIG_AsInt(obj1); | |
18717 | if (PyErr_Occurred()) SWIG_fail; | |
18718 | { | |
18719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18720 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
18721 | ||
18722 | wxPyEndAllowThreads(__tstate); | |
18723 | if (PyErr_Occurred()) SWIG_fail; | |
18724 | } | |
18725 | Py_INCREF(Py_None); resultobj = Py_None; | |
18726 | return resultobj; | |
18727 | fail: | |
18728 | return NULL; | |
18729 | } | |
18730 | ||
18731 | ||
18732 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18733 | PyObject *resultobj; | |
18734 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18735 | int arg2 ; | |
18736 | PyObject * obj0 = 0 ; | |
18737 | PyObject * obj1 = 0 ; | |
18738 | char *kwnames[] = { | |
18739 | (char *) "self",(char *) "sizeId", NULL | |
18740 | }; | |
18741 | ||
18742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
18743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18745 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
18746 | if (PyErr_Occurred()) SWIG_fail; | |
18747 | { | |
18748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18749 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18750 | ||
18751 | wxPyEndAllowThreads(__tstate); | |
18752 | if (PyErr_Occurred()) SWIG_fail; | |
18753 | } | |
18754 | Py_INCREF(Py_None); resultobj = Py_None; | |
18755 | return resultobj; | |
18756 | fail: | |
18757 | return NULL; | |
18758 | } | |
18759 | ||
18760 | ||
18761 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18762 | PyObject *resultobj; | |
18763 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18764 | wxSize *arg2 = 0 ; | |
18765 | wxSize temp2 ; | |
18766 | PyObject * obj0 = 0 ; | |
18767 | PyObject * obj1 = 0 ; | |
18768 | char *kwnames[] = { | |
18769 | (char *) "self",(char *) "sz", NULL | |
18770 | }; | |
18771 | ||
18772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18775 | { | |
18776 | arg2 = &temp2; | |
18777 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18778 | } | |
18779 | { | |
18780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18781 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18782 | ||
18783 | wxPyEndAllowThreads(__tstate); | |
18784 | if (PyErr_Occurred()) SWIG_fail; | |
18785 | } | |
18786 | Py_INCREF(Py_None); resultobj = Py_None; | |
18787 | return resultobj; | |
18788 | fail: | |
18789 | return NULL; | |
18790 | } | |
18791 | ||
18792 | ||
18793 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18794 | PyObject *resultobj; | |
18795 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18796 | int arg2 ; | |
18797 | PyObject * obj0 = 0 ; | |
18798 | PyObject * obj1 = 0 ; | |
18799 | char *kwnames[] = { | |
18800 | (char *) "self",(char *) "quality", NULL | |
18801 | }; | |
18802 | ||
18803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; | |
18804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18806 | arg2 = (int) SWIG_AsInt(obj1); | |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
18808 | { | |
18809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18810 | (arg1)->SetQuality(arg2); | |
18811 | ||
18812 | wxPyEndAllowThreads(__tstate); | |
18813 | if (PyErr_Occurred()) SWIG_fail; | |
18814 | } | |
18815 | Py_INCREF(Py_None); resultobj = Py_None; | |
18816 | return resultobj; | |
18817 | fail: | |
18818 | return NULL; | |
18819 | } | |
18820 | ||
18821 | ||
18822 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18823 | PyObject *resultobj; | |
18824 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18825 | wxString *result; | |
18826 | PyObject * obj0 = 0 ; | |
18827 | char *kwnames[] = { | |
18828 | (char *) "self", NULL | |
18829 | }; | |
18830 | ||
18831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
18832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18834 | { | |
18835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18836 | { | |
18837 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
18838 | result = (wxString *) &_result_ref; | |
18839 | } | |
18840 | ||
18841 | wxPyEndAllowThreads(__tstate); | |
18842 | if (PyErr_Occurred()) SWIG_fail; | |
18843 | } | |
18844 | { | |
18845 | #if wxUSE_UNICODE | |
18846 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18847 | #else | |
18848 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18849 | #endif | |
18850 | } | |
18851 | return resultobj; | |
18852 | fail: | |
18853 | return NULL; | |
18854 | } | |
18855 | ||
18856 | ||
18857 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18858 | PyObject *resultobj; | |
18859 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18860 | wxString *result; | |
18861 | PyObject * obj0 = 0 ; | |
18862 | char *kwnames[] = { | |
18863 | (char *) "self", NULL | |
18864 | }; | |
18865 | ||
18866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
18867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18869 | { | |
18870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18871 | { | |
18872 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
18873 | result = (wxString *) &_result_ref; | |
18874 | } | |
18875 | ||
18876 | wxPyEndAllowThreads(__tstate); | |
18877 | if (PyErr_Occurred()) SWIG_fail; | |
18878 | } | |
18879 | { | |
18880 | #if wxUSE_UNICODE | |
18881 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18882 | #else | |
18883 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18884 | #endif | |
18885 | } | |
18886 | return resultobj; | |
18887 | fail: | |
18888 | return NULL; | |
18889 | } | |
18890 | ||
18891 | ||
18892 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18893 | PyObject *resultobj; | |
18894 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18895 | wxString *result; | |
18896 | PyObject * obj0 = 0 ; | |
18897 | char *kwnames[] = { | |
18898 | (char *) "self", NULL | |
18899 | }; | |
18900 | ||
18901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
18902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18904 | { | |
18905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18906 | { | |
18907 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
18908 | result = (wxString *) &_result_ref; | |
18909 | } | |
18910 | ||
18911 | wxPyEndAllowThreads(__tstate); | |
18912 | if (PyErr_Occurred()) SWIG_fail; | |
18913 | } | |
18914 | { | |
18915 | #if wxUSE_UNICODE | |
18916 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18917 | #else | |
18918 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18919 | #endif | |
18920 | } | |
18921 | return resultobj; | |
18922 | fail: | |
18923 | return NULL; | |
18924 | } | |
18925 | ||
18926 | ||
18927 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18928 | PyObject *resultobj; | |
18929 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18930 | wxString *result; | |
18931 | PyObject * obj0 = 0 ; | |
18932 | char *kwnames[] = { | |
18933 | (char *) "self", NULL | |
18934 | }; | |
18935 | ||
18936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
18937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18939 | { | |
18940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18941 | { | |
18942 | wxString const &_result_ref = (arg1)->GetFilename(); | |
18943 | result = (wxString *) &_result_ref; | |
18944 | } | |
18945 | ||
18946 | wxPyEndAllowThreads(__tstate); | |
18947 | if (PyErr_Occurred()) SWIG_fail; | |
18948 | } | |
18949 | { | |
18950 | #if wxUSE_UNICODE | |
18951 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18952 | #else | |
18953 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18954 | #endif | |
18955 | } | |
18956 | return resultobj; | |
18957 | fail: | |
18958 | return NULL; | |
18959 | } | |
18960 | ||
18961 | ||
18962 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18963 | PyObject *resultobj; | |
18964 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
18965 | wxString *result; | |
18966 | PyObject * obj0 = 0 ; | |
18967 | char *kwnames[] = { | |
18968 | (char *) "self", NULL | |
18969 | }; | |
18970 | ||
18971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
18972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
18973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18974 | { | |
18975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18976 | { | |
18977 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
18978 | result = (wxString *) &_result_ref; | |
18979 | } | |
18980 | ||
18981 | wxPyEndAllowThreads(__tstate); | |
18982 | if (PyErr_Occurred()) SWIG_fail; | |
18983 | } | |
18984 | { | |
18985 | #if wxUSE_UNICODE | |
18986 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18987 | #else | |
18988 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18989 | #endif | |
18990 | } | |
18991 | return resultobj; | |
18992 | fail: | |
18993 | return NULL; | |
18994 | } | |
18995 | ||
18996 | ||
18997 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18998 | PyObject *resultobj; | |
18999 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19000 | double result; | |
19001 | PyObject * obj0 = 0 ; | |
19002 | char *kwnames[] = { | |
19003 | (char *) "self", NULL | |
19004 | }; | |
19005 | ||
19006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
19007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19009 | { | |
19010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19011 | result = (double)(arg1)->GetPrinterScaleX(); | |
19012 | ||
19013 | wxPyEndAllowThreads(__tstate); | |
19014 | if (PyErr_Occurred()) SWIG_fail; | |
19015 | } | |
19016 | resultobj = SWIG_FromDouble((double)result); | |
19017 | return resultobj; | |
19018 | fail: | |
19019 | return NULL; | |
19020 | } | |
19021 | ||
19022 | ||
19023 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19024 | PyObject *resultobj; | |
19025 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19026 | double result; | |
19027 | PyObject * obj0 = 0 ; | |
19028 | char *kwnames[] = { | |
19029 | (char *) "self", NULL | |
19030 | }; | |
19031 | ||
19032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
19033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19035 | { | |
19036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19037 | result = (double)(arg1)->GetPrinterScaleY(); | |
19038 | ||
19039 | wxPyEndAllowThreads(__tstate); | |
19040 | if (PyErr_Occurred()) SWIG_fail; | |
19041 | } | |
19042 | resultobj = SWIG_FromDouble((double)result); | |
19043 | return resultobj; | |
19044 | fail: | |
19045 | return NULL; | |
19046 | } | |
19047 | ||
19048 | ||
19049 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19050 | PyObject *resultobj; | |
19051 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19052 | long result; | |
19053 | PyObject * obj0 = 0 ; | |
19054 | char *kwnames[] = { | |
19055 | (char *) "self", NULL | |
19056 | }; | |
19057 | ||
19058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
19059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19061 | { | |
19062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19063 | result = (long)(arg1)->GetPrinterTranslateX(); | |
19064 | ||
19065 | wxPyEndAllowThreads(__tstate); | |
19066 | if (PyErr_Occurred()) SWIG_fail; | |
19067 | } | |
19068 | resultobj = SWIG_FromLong((long)result); | |
19069 | return resultobj; | |
19070 | fail: | |
19071 | return NULL; | |
19072 | } | |
19073 | ||
19074 | ||
19075 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19076 | PyObject *resultobj; | |
19077 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19078 | long result; | |
19079 | PyObject * obj0 = 0 ; | |
19080 | char *kwnames[] = { | |
19081 | (char *) "self", NULL | |
19082 | }; | |
19083 | ||
19084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
19085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19087 | { | |
19088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19089 | result = (long)(arg1)->GetPrinterTranslateY(); | |
19090 | ||
19091 | wxPyEndAllowThreads(__tstate); | |
19092 | if (PyErr_Occurred()) SWIG_fail; | |
19093 | } | |
19094 | resultobj = SWIG_FromLong((long)result); | |
19095 | return resultobj; | |
19096 | fail: | |
19097 | return NULL; | |
19098 | } | |
19099 | ||
19100 | ||
19101 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19102 | PyObject *resultobj; | |
19103 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19104 | int result; | |
19105 | PyObject * obj0 = 0 ; | |
19106 | char *kwnames[] = { | |
19107 | (char *) "self", NULL | |
19108 | }; | |
19109 | ||
19110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
19111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19113 | { | |
19114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19115 | result = (int)(arg1)->GetPrintMode(); | |
19116 | ||
19117 | wxPyEndAllowThreads(__tstate); | |
19118 | if (PyErr_Occurred()) SWIG_fail; | |
19119 | } | |
19120 | resultobj = SWIG_FromInt((int)result); | |
19121 | return resultobj; | |
19122 | fail: | |
19123 | return NULL; | |
19124 | } | |
19125 | ||
19126 | ||
19127 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19128 | PyObject *resultobj; | |
19129 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19130 | wxString *arg2 = 0 ; | |
19131 | bool temp2 = False ; | |
19132 | PyObject * obj0 = 0 ; | |
19133 | PyObject * obj1 = 0 ; | |
19134 | char *kwnames[] = { | |
19135 | (char *) "self",(char *) "command", NULL | |
19136 | }; | |
19137 | ||
19138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
19139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19141 | { | |
19142 | arg2 = wxString_in_helper(obj1); | |
19143 | if (arg2 == NULL) SWIG_fail; | |
19144 | temp2 = True; | |
19145 | } | |
19146 | { | |
19147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19148 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
19149 | ||
19150 | wxPyEndAllowThreads(__tstate); | |
19151 | if (PyErr_Occurred()) SWIG_fail; | |
19152 | } | |
19153 | Py_INCREF(Py_None); resultobj = Py_None; | |
19154 | { | |
19155 | if (temp2) | |
19156 | delete arg2; | |
19157 | } | |
19158 | return resultobj; | |
19159 | fail: | |
19160 | { | |
19161 | if (temp2) | |
19162 | delete arg2; | |
19163 | } | |
19164 | return NULL; | |
19165 | } | |
19166 | ||
19167 | ||
19168 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19169 | PyObject *resultobj; | |
19170 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19171 | wxString *arg2 = 0 ; | |
19172 | bool temp2 = False ; | |
19173 | PyObject * obj0 = 0 ; | |
19174 | PyObject * obj1 = 0 ; | |
19175 | char *kwnames[] = { | |
19176 | (char *) "self",(char *) "options", NULL | |
19177 | }; | |
19178 | ||
19179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
19180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19182 | { | |
19183 | arg2 = wxString_in_helper(obj1); | |
19184 | if (arg2 == NULL) SWIG_fail; | |
19185 | temp2 = True; | |
19186 | } | |
19187 | { | |
19188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19189 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
19190 | ||
19191 | wxPyEndAllowThreads(__tstate); | |
19192 | if (PyErr_Occurred()) SWIG_fail; | |
19193 | } | |
19194 | Py_INCREF(Py_None); resultobj = Py_None; | |
19195 | { | |
19196 | if (temp2) | |
19197 | delete arg2; | |
19198 | } | |
19199 | return resultobj; | |
19200 | fail: | |
19201 | { | |
19202 | if (temp2) | |
19203 | delete arg2; | |
19204 | } | |
19205 | return NULL; | |
19206 | } | |
19207 | ||
19208 | ||
19209 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19210 | PyObject *resultobj; | |
19211 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19212 | wxString *arg2 = 0 ; | |
19213 | bool temp2 = False ; | |
19214 | PyObject * obj0 = 0 ; | |
19215 | PyObject * obj1 = 0 ; | |
19216 | char *kwnames[] = { | |
19217 | (char *) "self",(char *) "command", NULL | |
19218 | }; | |
19219 | ||
19220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
19221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19223 | { | |
19224 | arg2 = wxString_in_helper(obj1); | |
19225 | if (arg2 == NULL) SWIG_fail; | |
19226 | temp2 = True; | |
19227 | } | |
19228 | { | |
19229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19230 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
19231 | ||
19232 | wxPyEndAllowThreads(__tstate); | |
19233 | if (PyErr_Occurred()) SWIG_fail; | |
19234 | } | |
19235 | Py_INCREF(Py_None); resultobj = Py_None; | |
19236 | { | |
19237 | if (temp2) | |
19238 | delete arg2; | |
19239 | } | |
19240 | return resultobj; | |
19241 | fail: | |
19242 | { | |
19243 | if (temp2) | |
19244 | delete arg2; | |
19245 | } | |
19246 | return NULL; | |
19247 | } | |
19248 | ||
19249 | ||
19250 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19251 | PyObject *resultobj; | |
19252 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19253 | wxString *arg2 = 0 ; | |
19254 | bool temp2 = False ; | |
19255 | PyObject * obj0 = 0 ; | |
19256 | PyObject * obj1 = 0 ; | |
19257 | char *kwnames[] = { | |
19258 | (char *) "self",(char *) "filename", NULL | |
19259 | }; | |
19260 | ||
19261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
19262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19264 | { | |
19265 | arg2 = wxString_in_helper(obj1); | |
19266 | if (arg2 == NULL) SWIG_fail; | |
19267 | temp2 = True; | |
19268 | } | |
19269 | { | |
19270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19271 | (arg1)->SetFilename((wxString const &)*arg2); | |
19272 | ||
19273 | wxPyEndAllowThreads(__tstate); | |
19274 | if (PyErr_Occurred()) SWIG_fail; | |
19275 | } | |
19276 | Py_INCREF(Py_None); resultobj = Py_None; | |
19277 | { | |
19278 | if (temp2) | |
19279 | delete arg2; | |
19280 | } | |
19281 | return resultobj; | |
19282 | fail: | |
19283 | { | |
19284 | if (temp2) | |
19285 | delete arg2; | |
19286 | } | |
19287 | return NULL; | |
19288 | } | |
19289 | ||
19290 | ||
19291 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19292 | PyObject *resultobj; | |
19293 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19294 | wxString *arg2 = 0 ; | |
19295 | bool temp2 = False ; | |
19296 | PyObject * obj0 = 0 ; | |
19297 | PyObject * obj1 = 0 ; | |
19298 | char *kwnames[] = { | |
19299 | (char *) "self",(char *) "path", NULL | |
19300 | }; | |
19301 | ||
19302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
19303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19305 | { | |
19306 | arg2 = wxString_in_helper(obj1); | |
19307 | if (arg2 == NULL) SWIG_fail; | |
19308 | temp2 = True; | |
19309 | } | |
19310 | { | |
19311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19312 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
19313 | ||
19314 | wxPyEndAllowThreads(__tstate); | |
19315 | if (PyErr_Occurred()) SWIG_fail; | |
19316 | } | |
19317 | Py_INCREF(Py_None); resultobj = Py_None; | |
19318 | { | |
19319 | if (temp2) | |
19320 | delete arg2; | |
19321 | } | |
19322 | return resultobj; | |
19323 | fail: | |
19324 | { | |
19325 | if (temp2) | |
19326 | delete arg2; | |
19327 | } | |
19328 | return NULL; | |
19329 | } | |
19330 | ||
19331 | ||
19332 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19333 | PyObject *resultobj; | |
19334 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19335 | double arg2 ; | |
19336 | PyObject * obj0 = 0 ; | |
19337 | PyObject * obj1 = 0 ; | |
19338 | char *kwnames[] = { | |
19339 | (char *) "self",(char *) "x", NULL | |
19340 | }; | |
19341 | ||
19342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; | |
19343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19345 | arg2 = (double) SWIG_AsDouble(obj1); | |
19346 | if (PyErr_Occurred()) SWIG_fail; | |
19347 | { | |
19348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19349 | (arg1)->SetPrinterScaleX(arg2); | |
19350 | ||
19351 | wxPyEndAllowThreads(__tstate); | |
19352 | if (PyErr_Occurred()) SWIG_fail; | |
19353 | } | |
19354 | Py_INCREF(Py_None); resultobj = Py_None; | |
19355 | return resultobj; | |
19356 | fail: | |
19357 | return NULL; | |
19358 | } | |
19359 | ||
19360 | ||
19361 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19362 | PyObject *resultobj; | |
19363 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19364 | double arg2 ; | |
19365 | PyObject * obj0 = 0 ; | |
19366 | PyObject * obj1 = 0 ; | |
19367 | char *kwnames[] = { | |
19368 | (char *) "self",(char *) "y", NULL | |
19369 | }; | |
19370 | ||
19371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; | |
19372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19374 | arg2 = (double) SWIG_AsDouble(obj1); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | { | |
19377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19378 | (arg1)->SetPrinterScaleY(arg2); | |
19379 | ||
19380 | wxPyEndAllowThreads(__tstate); | |
19381 | if (PyErr_Occurred()) SWIG_fail; | |
19382 | } | |
19383 | Py_INCREF(Py_None); resultobj = Py_None; | |
19384 | return resultobj; | |
19385 | fail: | |
19386 | return NULL; | |
19387 | } | |
19388 | ||
19389 | ||
19390 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19391 | PyObject *resultobj; | |
19392 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19393 | double arg2 ; | |
19394 | double arg3 ; | |
19395 | PyObject * obj0 = 0 ; | |
19396 | PyObject * obj1 = 0 ; | |
19397 | PyObject * obj2 = 0 ; | |
19398 | char *kwnames[] = { | |
19399 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19400 | }; | |
19401 | ||
19402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19405 | arg2 = (double) SWIG_AsDouble(obj1); | |
19406 | if (PyErr_Occurred()) SWIG_fail; | |
19407 | arg3 = (double) SWIG_AsDouble(obj2); | |
19408 | if (PyErr_Occurred()) SWIG_fail; | |
19409 | { | |
19410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19411 | (arg1)->SetPrinterScaling(arg2,arg3); | |
19412 | ||
19413 | wxPyEndAllowThreads(__tstate); | |
19414 | if (PyErr_Occurred()) SWIG_fail; | |
19415 | } | |
19416 | Py_INCREF(Py_None); resultobj = Py_None; | |
19417 | return resultobj; | |
19418 | fail: | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
19423 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj; | |
19425 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19426 | long arg2 ; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | PyObject * obj1 = 0 ; | |
19429 | char *kwnames[] = { | |
19430 | (char *) "self",(char *) "x", NULL | |
19431 | }; | |
19432 | ||
19433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; | |
19434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19436 | arg2 = (long) SWIG_AsLong(obj1); | |
19437 | if (PyErr_Occurred()) SWIG_fail; | |
19438 | { | |
19439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19440 | (arg1)->SetPrinterTranslateX(arg2); | |
19441 | ||
19442 | wxPyEndAllowThreads(__tstate); | |
19443 | if (PyErr_Occurred()) SWIG_fail; | |
19444 | } | |
19445 | Py_INCREF(Py_None); resultobj = Py_None; | |
19446 | return resultobj; | |
19447 | fail: | |
19448 | return NULL; | |
19449 | } | |
19450 | ||
19451 | ||
19452 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19453 | PyObject *resultobj; | |
19454 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19455 | long arg2 ; | |
19456 | PyObject * obj0 = 0 ; | |
19457 | PyObject * obj1 = 0 ; | |
19458 | char *kwnames[] = { | |
19459 | (char *) "self",(char *) "y", NULL | |
19460 | }; | |
19461 | ||
19462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; | |
19463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19465 | arg2 = (long) SWIG_AsLong(obj1); | |
19466 | if (PyErr_Occurred()) SWIG_fail; | |
19467 | { | |
19468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19469 | (arg1)->SetPrinterTranslateY(arg2); | |
19470 | ||
19471 | wxPyEndAllowThreads(__tstate); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
19473 | } | |
19474 | Py_INCREF(Py_None); resultobj = Py_None; | |
19475 | return resultobj; | |
19476 | fail: | |
19477 | return NULL; | |
19478 | } | |
19479 | ||
19480 | ||
19481 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19482 | PyObject *resultobj; | |
19483 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19484 | long arg2 ; | |
19485 | long arg3 ; | |
19486 | PyObject * obj0 = 0 ; | |
19487 | PyObject * obj1 = 0 ; | |
19488 | PyObject * obj2 = 0 ; | |
19489 | char *kwnames[] = { | |
19490 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19491 | }; | |
19492 | ||
19493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19496 | arg2 = (long) SWIG_AsLong(obj1); | |
19497 | if (PyErr_Occurred()) SWIG_fail; | |
19498 | arg3 = (long) SWIG_AsLong(obj2); | |
19499 | if (PyErr_Occurred()) SWIG_fail; | |
19500 | { | |
19501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19502 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
19503 | ||
19504 | wxPyEndAllowThreads(__tstate); | |
19505 | if (PyErr_Occurred()) SWIG_fail; | |
19506 | } | |
19507 | Py_INCREF(Py_None); resultobj = Py_None; | |
19508 | return resultobj; | |
19509 | fail: | |
19510 | return NULL; | |
19511 | } | |
19512 | ||
19513 | ||
19514 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19515 | PyObject *resultobj; | |
19516 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19517 | int arg2 ; | |
19518 | PyObject * obj0 = 0 ; | |
19519 | PyObject * obj1 = 0 ; | |
19520 | char *kwnames[] = { | |
19521 | (char *) "self",(char *) "printMode", NULL | |
19522 | }; | |
19523 | ||
19524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
19525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19527 | arg2 = (wxPrintMode) SWIG_AsInt(obj1); | |
19528 | if (PyErr_Occurred()) SWIG_fail; | |
19529 | { | |
19530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19531 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
19532 | ||
19533 | wxPyEndAllowThreads(__tstate); | |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
19535 | } | |
19536 | Py_INCREF(Py_None); resultobj = Py_None; | |
19537 | return resultobj; | |
19538 | fail: | |
19539 | return NULL; | |
19540 | } | |
19541 | ||
19542 | ||
19543 | static PyObject *_wrap_PrintData_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19544 | PyObject *resultobj; | |
19545 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19546 | wxOutputStream *result; | |
19547 | PyObject * obj0 = 0 ; | |
19548 | char *kwnames[] = { | |
19549 | (char *) "self", NULL | |
19550 | }; | |
19551 | ||
19552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOutputStream",kwnames,&obj0)) goto fail; | |
19553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19557 | result = (wxOutputStream *)(arg1)->GetOutputStream(); | |
19558 | ||
19559 | wxPyEndAllowThreads(__tstate); | |
19560 | if (PyErr_Occurred()) SWIG_fail; | |
19561 | } | |
19562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0); | |
19563 | return resultobj; | |
19564 | fail: | |
19565 | return NULL; | |
19566 | } | |
19567 | ||
19568 | ||
19569 | static PyObject *_wrap_PrintData_SetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19570 | PyObject *resultobj; | |
19571 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
19572 | wxOutputStream *arg2 = (wxOutputStream *) 0 ; | |
19573 | PyObject * obj0 = 0 ; | |
19574 | PyObject * obj1 = 0 ; | |
19575 | char *kwnames[] = { | |
19576 | (char *) "self",(char *) "outputstream", NULL | |
19577 | }; | |
19578 | ||
19579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOutputStream",kwnames,&obj0,&obj1)) goto fail; | |
19580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
19581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxOutputStream, | |
19583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19584 | { | |
19585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19586 | (arg1)->SetOutputStream(arg2); | |
19587 | ||
19588 | wxPyEndAllowThreads(__tstate); | |
19589 | if (PyErr_Occurred()) SWIG_fail; | |
19590 | } | |
19591 | Py_INCREF(Py_None); resultobj = Py_None; | |
19592 | return resultobj; | |
19593 | fail: | |
19594 | return NULL; | |
19595 | } | |
19596 | ||
19597 | ||
19598 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
19599 | PyObject *obj; | |
19600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19601 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
19602 | Py_INCREF(obj); | |
19603 | return Py_BuildValue((char *)""); | |
19604 | } | |
09c21d3b | 19605 | static PyObject *_wrap_new_PageSetupDialogData__SWIG_0(PyObject *self, PyObject *args) { |
d55e5bfc RD |
19606 | PyObject *resultobj; |
19607 | wxPageSetupDialogData *result; | |
d55e5bfc | 19608 | |
09c21d3b | 19609 | if(!PyArg_ParseTuple(args,(char *)":new_PageSetupDialogData")) goto fail; |
d55e5bfc RD |
19610 | { |
19611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19612 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
19613 | ||
19614 | wxPyEndAllowThreads(__tstate); | |
19615 | if (PyErr_Occurred()) SWIG_fail; | |
19616 | } | |
19617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19618 | return resultobj; | |
19619 | fail: | |
19620 | return NULL; | |
19621 | } | |
19622 | ||
19623 | ||
09c21d3b RD |
19624 | static PyObject *_wrap_new_PageSetupDialogData__SWIG_1(PyObject *self, PyObject *args) { |
19625 | PyObject *resultobj; | |
19626 | wxPageSetupDialogData *arg1 = 0 ; | |
19627 | wxPageSetupDialogData *result; | |
19628 | PyObject * obj0 = 0 ; | |
19629 | ||
19630 | if(!PyArg_ParseTuple(args,(char *)"O:new_PageSetupDialogData",&obj0)) goto fail; | |
19631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19632 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19633 | SWIG_fail; | |
19634 | if (arg1 == NULL) { | |
19635 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19636 | SWIG_fail; | |
19637 | } | |
19638 | { | |
19639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19640 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData((wxPageSetupDialogData const &)*arg1); | |
19641 | ||
19642 | wxPyEndAllowThreads(__tstate); | |
19643 | if (PyErr_Occurred()) SWIG_fail; | |
19644 | } | |
19645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 1); | |
19646 | return resultobj; | |
19647 | fail: | |
19648 | return NULL; | |
19649 | } | |
19650 | ||
19651 | ||
19652 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args) { | |
19653 | int argc; | |
19654 | PyObject *argv[2]; | |
19655 | int ii; | |
19656 | ||
19657 | argc = PyObject_Length(args); | |
19658 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
19659 | argv[ii] = PyTuple_GetItem(args,ii); | |
19660 | } | |
19661 | if (argc == 0) { | |
19662 | return _wrap_new_PageSetupDialogData__SWIG_0(self,args); | |
19663 | } | |
19664 | if (argc == 1) { | |
19665 | int _v; | |
19666 | { | |
19667 | void *ptr; | |
19668 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPageSetupDialogData, 0) == -1) { | |
19669 | _v = 0; | |
19670 | PyErr_Clear(); | |
19671 | } else { | |
19672 | _v = 1; | |
19673 | } | |
19674 | } | |
19675 | if (_v) { | |
19676 | return _wrap_new_PageSetupDialogData__SWIG_1(self,args); | |
19677 | } | |
19678 | } | |
19679 | ||
19680 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PageSetupDialogData'"); | |
19681 | return NULL; | |
19682 | } | |
19683 | ||
19684 | ||
d55e5bfc RD |
19685 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { |
19686 | PyObject *resultobj; | |
19687 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19688 | PyObject * obj0 = 0 ; | |
19689 | char *kwnames[] = { | |
19690 | (char *) "self", NULL | |
19691 | }; | |
19692 | ||
19693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
19694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19696 | { | |
19697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19698 | delete arg1; | |
19699 | ||
19700 | wxPyEndAllowThreads(__tstate); | |
19701 | if (PyErr_Occurred()) SWIG_fail; | |
19702 | } | |
19703 | Py_INCREF(Py_None); resultobj = Py_None; | |
19704 | return resultobj; | |
19705 | fail: | |
19706 | return NULL; | |
19707 | } | |
19708 | ||
19709 | ||
19710 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19711 | PyObject *resultobj; | |
19712 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19713 | bool arg2 ; | |
19714 | PyObject * obj0 = 0 ; | |
19715 | PyObject * obj1 = 0 ; | |
19716 | char *kwnames[] = { | |
19717 | (char *) "self",(char *) "flag", NULL | |
19718 | }; | |
19719 | ||
19720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19723 | arg2 = (bool) SWIG_AsBool(obj1); | |
19724 | if (PyErr_Occurred()) SWIG_fail; | |
19725 | { | |
19726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19727 | (arg1)->EnableHelp(arg2); | |
19728 | ||
19729 | wxPyEndAllowThreads(__tstate); | |
19730 | if (PyErr_Occurred()) SWIG_fail; | |
19731 | } | |
19732 | Py_INCREF(Py_None); resultobj = Py_None; | |
19733 | return resultobj; | |
19734 | fail: | |
19735 | return NULL; | |
19736 | } | |
19737 | ||
19738 | ||
19739 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19740 | PyObject *resultobj; | |
19741 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19742 | bool arg2 ; | |
19743 | PyObject * obj0 = 0 ; | |
19744 | PyObject * obj1 = 0 ; | |
19745 | char *kwnames[] = { | |
19746 | (char *) "self",(char *) "flag", NULL | |
19747 | }; | |
19748 | ||
19749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
19750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19752 | arg2 = (bool) SWIG_AsBool(obj1); | |
19753 | if (PyErr_Occurred()) SWIG_fail; | |
19754 | { | |
19755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19756 | (arg1)->EnableMargins(arg2); | |
19757 | ||
19758 | wxPyEndAllowThreads(__tstate); | |
19759 | if (PyErr_Occurred()) SWIG_fail; | |
19760 | } | |
19761 | Py_INCREF(Py_None); resultobj = Py_None; | |
19762 | return resultobj; | |
19763 | fail: | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
19768 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19769 | PyObject *resultobj; | |
19770 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19771 | bool arg2 ; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | PyObject * obj1 = 0 ; | |
19774 | char *kwnames[] = { | |
19775 | (char *) "self",(char *) "flag", NULL | |
19776 | }; | |
19777 | ||
19778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
19779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19781 | arg2 = (bool) SWIG_AsBool(obj1); | |
19782 | if (PyErr_Occurred()) SWIG_fail; | |
19783 | { | |
19784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19785 | (arg1)->EnableOrientation(arg2); | |
19786 | ||
19787 | wxPyEndAllowThreads(__tstate); | |
19788 | if (PyErr_Occurred()) SWIG_fail; | |
19789 | } | |
19790 | Py_INCREF(Py_None); resultobj = Py_None; | |
19791 | return resultobj; | |
19792 | fail: | |
19793 | return NULL; | |
19794 | } | |
19795 | ||
19796 | ||
19797 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19798 | PyObject *resultobj; | |
19799 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19800 | bool arg2 ; | |
19801 | PyObject * obj0 = 0 ; | |
19802 | PyObject * obj1 = 0 ; | |
19803 | char *kwnames[] = { | |
19804 | (char *) "self",(char *) "flag", NULL | |
19805 | }; | |
19806 | ||
19807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
19808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19810 | arg2 = (bool) SWIG_AsBool(obj1); | |
19811 | if (PyErr_Occurred()) SWIG_fail; | |
19812 | { | |
19813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19814 | (arg1)->EnablePaper(arg2); | |
19815 | ||
19816 | wxPyEndAllowThreads(__tstate); | |
19817 | if (PyErr_Occurred()) SWIG_fail; | |
19818 | } | |
19819 | Py_INCREF(Py_None); resultobj = Py_None; | |
19820 | return resultobj; | |
19821 | fail: | |
19822 | return NULL; | |
19823 | } | |
19824 | ||
19825 | ||
19826 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19827 | PyObject *resultobj; | |
19828 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19829 | bool arg2 ; | |
19830 | PyObject * obj0 = 0 ; | |
19831 | PyObject * obj1 = 0 ; | |
19832 | char *kwnames[] = { | |
19833 | (char *) "self",(char *) "flag", NULL | |
19834 | }; | |
19835 | ||
19836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
19837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19839 | arg2 = (bool) SWIG_AsBool(obj1); | |
19840 | if (PyErr_Occurred()) SWIG_fail; | |
19841 | { | |
19842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19843 | (arg1)->EnablePrinter(arg2); | |
19844 | ||
19845 | wxPyEndAllowThreads(__tstate); | |
19846 | if (PyErr_Occurred()) SWIG_fail; | |
19847 | } | |
19848 | Py_INCREF(Py_None); resultobj = Py_None; | |
19849 | return resultobj; | |
19850 | fail: | |
19851 | return NULL; | |
19852 | } | |
19853 | ||
19854 | ||
19855 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19856 | PyObject *resultobj; | |
19857 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19858 | bool result; | |
19859 | PyObject * obj0 = 0 ; | |
19860 | char *kwnames[] = { | |
19861 | (char *) "self", NULL | |
19862 | }; | |
19863 | ||
19864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
19865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19867 | { | |
19868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19869 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
19870 | ||
19871 | wxPyEndAllowThreads(__tstate); | |
19872 | if (PyErr_Occurred()) SWIG_fail; | |
19873 | } | |
19874 | { | |
19875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19876 | } | |
19877 | return resultobj; | |
19878 | fail: | |
19879 | return NULL; | |
19880 | } | |
19881 | ||
19882 | ||
19883 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19884 | PyObject *resultobj; | |
19885 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19886 | bool result; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | char *kwnames[] = { | |
19889 | (char *) "self", NULL | |
19890 | }; | |
19891 | ||
19892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
19893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19895 | { | |
19896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19897 | result = (bool)(arg1)->GetEnableMargins(); | |
19898 | ||
19899 | wxPyEndAllowThreads(__tstate); | |
19900 | if (PyErr_Occurred()) SWIG_fail; | |
19901 | } | |
19902 | { | |
19903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19904 | } | |
19905 | return resultobj; | |
19906 | fail: | |
19907 | return NULL; | |
19908 | } | |
19909 | ||
19910 | ||
19911 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19912 | PyObject *resultobj; | |
19913 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19914 | bool result; | |
19915 | PyObject * obj0 = 0 ; | |
19916 | char *kwnames[] = { | |
19917 | (char *) "self", NULL | |
19918 | }; | |
19919 | ||
19920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
19921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19923 | { | |
19924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19925 | result = (bool)(arg1)->GetEnableOrientation(); | |
19926 | ||
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
19930 | { | |
19931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19932 | } | |
19933 | return resultobj; | |
19934 | fail: | |
19935 | return NULL; | |
19936 | } | |
19937 | ||
19938 | ||
19939 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19940 | PyObject *resultobj; | |
19941 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19942 | bool result; | |
19943 | PyObject * obj0 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
19949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19951 | { | |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | result = (bool)(arg1)->GetEnablePaper(); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
19958 | { | |
19959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19960 | } | |
19961 | return resultobj; | |
19962 | fail: | |
19963 | return NULL; | |
19964 | } | |
19965 | ||
19966 | ||
19967 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19968 | PyObject *resultobj; | |
19969 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19970 | bool result; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | char *kwnames[] = { | |
19973 | (char *) "self", NULL | |
19974 | }; | |
19975 | ||
19976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
19977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
19978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | result = (bool)(arg1)->GetEnablePrinter(); | |
19982 | ||
19983 | wxPyEndAllowThreads(__tstate); | |
19984 | if (PyErr_Occurred()) SWIG_fail; | |
19985 | } | |
19986 | { | |
19987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19988 | } | |
19989 | return resultobj; | |
19990 | fail: | |
19991 | return NULL; | |
19992 | } | |
19993 | ||
19994 | ||
19995 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19996 | PyObject *resultobj; | |
19997 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
19998 | bool result; | |
19999 | PyObject * obj0 = 0 ; | |
20000 | char *kwnames[] = { | |
20001 | (char *) "self", NULL | |
20002 | }; | |
20003 | ||
20004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
20005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20007 | { | |
20008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20009 | result = (bool)(arg1)->GetEnableHelp(); | |
20010 | ||
20011 | wxPyEndAllowThreads(__tstate); | |
20012 | if (PyErr_Occurred()) SWIG_fail; | |
20013 | } | |
20014 | { | |
20015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20016 | } | |
20017 | return resultobj; | |
20018 | fail: | |
20019 | return NULL; | |
20020 | } | |
20021 | ||
20022 | ||
20023 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20024 | PyObject *resultobj; | |
20025 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20026 | bool result; | |
20027 | PyObject * obj0 = 0 ; | |
20028 | char *kwnames[] = { | |
20029 | (char *) "self", NULL | |
20030 | }; | |
20031 | ||
20032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
20033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20035 | { | |
20036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20037 | result = (bool)(arg1)->GetDefaultInfo(); | |
20038 | ||
20039 | wxPyEndAllowThreads(__tstate); | |
20040 | if (PyErr_Occurred()) SWIG_fail; | |
20041 | } | |
20042 | { | |
20043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20044 | } | |
20045 | return resultobj; | |
20046 | fail: | |
20047 | return NULL; | |
20048 | } | |
20049 | ||
20050 | ||
20051 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20052 | PyObject *resultobj; | |
20053 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20054 | wxPoint result; | |
20055 | PyObject * obj0 = 0 ; | |
20056 | char *kwnames[] = { | |
20057 | (char *) "self", NULL | |
20058 | }; | |
20059 | ||
20060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
20061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20063 | { | |
20064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20065 | result = (arg1)->GetMarginTopLeft(); | |
20066 | ||
20067 | wxPyEndAllowThreads(__tstate); | |
20068 | if (PyErr_Occurred()) SWIG_fail; | |
20069 | } | |
20070 | { | |
20071 | wxPoint * resultptr; | |
20072 | resultptr = new wxPoint((wxPoint &) result); | |
20073 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20074 | } | |
20075 | return resultobj; | |
20076 | fail: | |
20077 | return NULL; | |
20078 | } | |
20079 | ||
20080 | ||
20081 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20082 | PyObject *resultobj; | |
20083 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20084 | wxPoint result; | |
20085 | PyObject * obj0 = 0 ; | |
20086 | char *kwnames[] = { | |
20087 | (char *) "self", NULL | |
20088 | }; | |
20089 | ||
20090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
20091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20093 | { | |
20094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20095 | result = (arg1)->GetMarginBottomRight(); | |
20096 | ||
20097 | wxPyEndAllowThreads(__tstate); | |
20098 | if (PyErr_Occurred()) SWIG_fail; | |
20099 | } | |
20100 | { | |
20101 | wxPoint * resultptr; | |
20102 | resultptr = new wxPoint((wxPoint &) result); | |
20103 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20104 | } | |
20105 | return resultobj; | |
20106 | fail: | |
20107 | return NULL; | |
20108 | } | |
20109 | ||
20110 | ||
20111 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20112 | PyObject *resultobj; | |
20113 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20114 | wxPoint result; | |
20115 | PyObject * obj0 = 0 ; | |
20116 | char *kwnames[] = { | |
20117 | (char *) "self", NULL | |
20118 | }; | |
20119 | ||
20120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
20121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20123 | { | |
20124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20125 | result = (arg1)->GetMinMarginTopLeft(); | |
20126 | ||
20127 | wxPyEndAllowThreads(__tstate); | |
20128 | if (PyErr_Occurred()) SWIG_fail; | |
20129 | } | |
20130 | { | |
20131 | wxPoint * resultptr; | |
20132 | resultptr = new wxPoint((wxPoint &) result); | |
20133 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20134 | } | |
20135 | return resultobj; | |
20136 | fail: | |
20137 | return NULL; | |
20138 | } | |
20139 | ||
20140 | ||
20141 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20142 | PyObject *resultobj; | |
20143 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20144 | wxPoint result; | |
20145 | PyObject * obj0 = 0 ; | |
20146 | char *kwnames[] = { | |
20147 | (char *) "self", NULL | |
20148 | }; | |
20149 | ||
20150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
20151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20153 | { | |
20154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20155 | result = (arg1)->GetMinMarginBottomRight(); | |
20156 | ||
20157 | wxPyEndAllowThreads(__tstate); | |
20158 | if (PyErr_Occurred()) SWIG_fail; | |
20159 | } | |
20160 | { | |
20161 | wxPoint * resultptr; | |
20162 | resultptr = new wxPoint((wxPoint &) result); | |
20163 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20164 | } | |
20165 | return resultobj; | |
20166 | fail: | |
20167 | return NULL; | |
20168 | } | |
20169 | ||
20170 | ||
20171 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20172 | PyObject *resultobj; | |
20173 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20174 | int result; | |
20175 | PyObject * obj0 = 0 ; | |
20176 | char *kwnames[] = { | |
20177 | (char *) "self", NULL | |
20178 | }; | |
20179 | ||
20180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
20181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20183 | { | |
20184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20185 | result = (int)(arg1)->GetPaperId(); | |
20186 | ||
20187 | wxPyEndAllowThreads(__tstate); | |
20188 | if (PyErr_Occurred()) SWIG_fail; | |
20189 | } | |
20190 | resultobj = SWIG_FromInt((int)result); | |
20191 | return resultobj; | |
20192 | fail: | |
20193 | return NULL; | |
20194 | } | |
20195 | ||
20196 | ||
20197 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20198 | PyObject *resultobj; | |
20199 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20200 | wxSize result; | |
20201 | PyObject * obj0 = 0 ; | |
20202 | char *kwnames[] = { | |
20203 | (char *) "self", NULL | |
20204 | }; | |
20205 | ||
20206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
20207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20209 | { | |
20210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20211 | result = (arg1)->GetPaperSize(); | |
20212 | ||
20213 | wxPyEndAllowThreads(__tstate); | |
20214 | if (PyErr_Occurred()) SWIG_fail; | |
20215 | } | |
20216 | { | |
20217 | wxSize * resultptr; | |
20218 | resultptr = new wxSize((wxSize &) result); | |
20219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
20220 | } | |
20221 | return resultobj; | |
20222 | fail: | |
20223 | return NULL; | |
20224 | } | |
20225 | ||
20226 | ||
20227 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20228 | PyObject *resultobj; | |
20229 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20230 | wxPrintData *result; | |
20231 | PyObject * obj0 = 0 ; | |
20232 | char *kwnames[] = { | |
20233 | (char *) "self", NULL | |
20234 | }; | |
20235 | ||
20236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
20237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20239 | { | |
20240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20241 | { | |
20242 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
20243 | result = (wxPrintData *) &_result_ref; | |
20244 | } | |
20245 | ||
20246 | wxPyEndAllowThreads(__tstate); | |
20247 | if (PyErr_Occurred()) SWIG_fail; | |
20248 | } | |
20249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
20250 | return resultobj; | |
20251 | fail: | |
20252 | return NULL; | |
20253 | } | |
20254 | ||
20255 | ||
20256 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20257 | PyObject *resultobj; | |
20258 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20259 | bool result; | |
20260 | PyObject * obj0 = 0 ; | |
20261 | char *kwnames[] = { | |
20262 | (char *) "self", NULL | |
20263 | }; | |
20264 | ||
20265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
20266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20268 | { | |
20269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20270 | result = (bool)(arg1)->Ok(); | |
20271 | ||
20272 | wxPyEndAllowThreads(__tstate); | |
20273 | if (PyErr_Occurred()) SWIG_fail; | |
20274 | } | |
20275 | { | |
20276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20277 | } | |
20278 | return resultobj; | |
20279 | fail: | |
20280 | return NULL; | |
20281 | } | |
20282 | ||
20283 | ||
20284 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20285 | PyObject *resultobj; | |
20286 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20287 | bool arg2 ; | |
20288 | PyObject * obj0 = 0 ; | |
20289 | PyObject * obj1 = 0 ; | |
20290 | char *kwnames[] = { | |
20291 | (char *) "self",(char *) "flag", NULL | |
20292 | }; | |
20293 | ||
20294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
20295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20297 | arg2 = (bool) SWIG_AsBool(obj1); | |
20298 | if (PyErr_Occurred()) SWIG_fail; | |
20299 | { | |
20300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20301 | (arg1)->SetDefaultInfo(arg2); | |
20302 | ||
20303 | wxPyEndAllowThreads(__tstate); | |
20304 | if (PyErr_Occurred()) SWIG_fail; | |
20305 | } | |
20306 | Py_INCREF(Py_None); resultobj = Py_None; | |
20307 | return resultobj; | |
20308 | fail: | |
20309 | return NULL; | |
20310 | } | |
20311 | ||
20312 | ||
20313 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20314 | PyObject *resultobj; | |
20315 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20316 | bool arg2 ; | |
20317 | PyObject * obj0 = 0 ; | |
20318 | PyObject * obj1 = 0 ; | |
20319 | char *kwnames[] = { | |
20320 | (char *) "self",(char *) "flag", NULL | |
20321 | }; | |
20322 | ||
20323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
20324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20326 | arg2 = (bool) SWIG_AsBool(obj1); | |
20327 | if (PyErr_Occurred()) SWIG_fail; | |
20328 | { | |
20329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20330 | (arg1)->SetDefaultMinMargins(arg2); | |
20331 | ||
20332 | wxPyEndAllowThreads(__tstate); | |
20333 | if (PyErr_Occurred()) SWIG_fail; | |
20334 | } | |
20335 | Py_INCREF(Py_None); resultobj = Py_None; | |
20336 | return resultobj; | |
20337 | fail: | |
20338 | return NULL; | |
20339 | } | |
20340 | ||
20341 | ||
20342 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20343 | PyObject *resultobj; | |
20344 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20345 | wxPoint *arg2 = 0 ; | |
20346 | wxPoint temp2 ; | |
20347 | PyObject * obj0 = 0 ; | |
20348 | PyObject * obj1 = 0 ; | |
20349 | char *kwnames[] = { | |
20350 | (char *) "self",(char *) "pt", NULL | |
20351 | }; | |
20352 | ||
20353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
20354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20356 | { | |
20357 | arg2 = &temp2; | |
20358 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20359 | } | |
20360 | { | |
20361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20362 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
20363 | ||
20364 | wxPyEndAllowThreads(__tstate); | |
20365 | if (PyErr_Occurred()) SWIG_fail; | |
20366 | } | |
20367 | Py_INCREF(Py_None); resultobj = Py_None; | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
20374 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20375 | PyObject *resultobj; | |
20376 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20377 | wxPoint *arg2 = 0 ; | |
20378 | wxPoint temp2 ; | |
20379 | PyObject * obj0 = 0 ; | |
20380 | PyObject * obj1 = 0 ; | |
20381 | char *kwnames[] = { | |
20382 | (char *) "self",(char *) "pt", NULL | |
20383 | }; | |
20384 | ||
20385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
20386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20388 | { | |
20389 | arg2 = &temp2; | |
20390 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20391 | } | |
20392 | { | |
20393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20394 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
20395 | ||
20396 | wxPyEndAllowThreads(__tstate); | |
20397 | if (PyErr_Occurred()) SWIG_fail; | |
20398 | } | |
20399 | Py_INCREF(Py_None); resultobj = Py_None; | |
20400 | return resultobj; | |
20401 | fail: | |
20402 | return NULL; | |
20403 | } | |
20404 | ||
20405 | ||
20406 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20407 | PyObject *resultobj; | |
20408 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20409 | wxPoint *arg2 = 0 ; | |
20410 | wxPoint temp2 ; | |
20411 | PyObject * obj0 = 0 ; | |
20412 | PyObject * obj1 = 0 ; | |
20413 | char *kwnames[] = { | |
20414 | (char *) "self",(char *) "pt", NULL | |
20415 | }; | |
20416 | ||
20417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
20418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20420 | { | |
20421 | arg2 = &temp2; | |
20422 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20423 | } | |
20424 | { | |
20425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20426 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
20427 | ||
20428 | wxPyEndAllowThreads(__tstate); | |
20429 | if (PyErr_Occurred()) SWIG_fail; | |
20430 | } | |
20431 | Py_INCREF(Py_None); resultobj = Py_None; | |
20432 | return resultobj; | |
20433 | fail: | |
20434 | return NULL; | |
20435 | } | |
20436 | ||
20437 | ||
20438 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20439 | PyObject *resultobj; | |
20440 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20441 | wxPoint *arg2 = 0 ; | |
20442 | wxPoint temp2 ; | |
20443 | PyObject * obj0 = 0 ; | |
20444 | PyObject * obj1 = 0 ; | |
20445 | char *kwnames[] = { | |
20446 | (char *) "self",(char *) "pt", NULL | |
20447 | }; | |
20448 | ||
20449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
20450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20452 | { | |
20453 | arg2 = &temp2; | |
20454 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20455 | } | |
20456 | { | |
20457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20458 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
20459 | ||
20460 | wxPyEndAllowThreads(__tstate); | |
20461 | if (PyErr_Occurred()) SWIG_fail; | |
20462 | } | |
20463 | Py_INCREF(Py_None); resultobj = Py_None; | |
20464 | return resultobj; | |
20465 | fail: | |
20466 | return NULL; | |
20467 | } | |
20468 | ||
20469 | ||
20470 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20471 | PyObject *resultobj; | |
20472 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20473 | int arg2 ; | |
20474 | PyObject * obj0 = 0 ; | |
20475 | PyObject * obj1 = 0 ; | |
20476 | char *kwnames[] = { | |
20477 | (char *) "self",(char *) "id", NULL | |
20478 | }; | |
20479 | ||
20480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; | |
20481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20483 | arg2 = (wxPaperSize) SWIG_AsInt(obj1); | |
20484 | if (PyErr_Occurred()) SWIG_fail; | |
20485 | { | |
20486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20487 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
20488 | ||
20489 | wxPyEndAllowThreads(__tstate); | |
20490 | if (PyErr_Occurred()) SWIG_fail; | |
20491 | } | |
20492 | Py_INCREF(Py_None); resultobj = Py_None; | |
20493 | return resultobj; | |
20494 | fail: | |
20495 | return NULL; | |
20496 | } | |
20497 | ||
20498 | ||
20499 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20500 | PyObject *resultobj; | |
20501 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20502 | wxSize *arg2 = 0 ; | |
20503 | wxSize temp2 ; | |
20504 | PyObject * obj0 = 0 ; | |
20505 | PyObject * obj1 = 0 ; | |
20506 | char *kwnames[] = { | |
20507 | (char *) "self",(char *) "size", NULL | |
20508 | }; | |
20509 | ||
20510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
20511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20513 | { | |
20514 | arg2 = &temp2; | |
20515 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
20516 | } | |
20517 | { | |
20518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20519 | (arg1)->SetPaperSize((wxSize 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 *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20532 | PyObject *resultobj; | |
20533 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
20534 | wxPrintData *arg2 = 0 ; | |
20535 | PyObject * obj0 = 0 ; | |
20536 | PyObject * obj1 = 0 ; | |
20537 | char *kwnames[] = { | |
20538 | (char *) "self",(char *) "printData", NULL | |
20539 | }; | |
20540 | ||
20541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
20542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialogData, | |
20543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
20545 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20546 | SWIG_fail; | |
20547 | if (arg2 == NULL) { | |
20548 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20549 | SWIG_fail; | |
20550 | } | |
20551 | { | |
20552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20553 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
20554 | ||
20555 | wxPyEndAllowThreads(__tstate); | |
20556 | if (PyErr_Occurred()) SWIG_fail; | |
20557 | } | |
20558 | Py_INCREF(Py_None); resultobj = Py_None; | |
20559 | return resultobj; | |
20560 | fail: | |
20561 | return NULL; | |
20562 | } | |
20563 | ||
20564 | ||
20565 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
20566 | PyObject *obj; | |
20567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20568 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
20569 | Py_INCREF(obj); | |
20570 | return Py_BuildValue((char *)""); | |
20571 | } | |
20572 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20573 | PyObject *resultobj; | |
20574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20575 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
20576 | wxPageSetupDialog *result; | |
20577 | PyObject * obj0 = 0 ; | |
20578 | PyObject * obj1 = 0 ; | |
20579 | char *kwnames[] = { | |
20580 | (char *) "parent",(char *) "data", NULL | |
20581 | }; | |
20582 | ||
20583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
20584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20586 | if (obj1) { | |
20587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPageSetupDialogData, | |
20588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20589 | } | |
20590 | { | |
0439c23b | 20591 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
20592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
20593 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
20594 | ||
20595 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 20596 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
20597 | } |
20598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialog, 1); | |
20599 | return resultobj; | |
20600 | fail: | |
20601 | return NULL; | |
20602 | } | |
20603 | ||
20604 | ||
20605 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20606 | PyObject *resultobj; | |
20607 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20608 | wxPageSetupDialogData *result; | |
20609 | PyObject * obj0 = 0 ; | |
20610 | char *kwnames[] = { | |
20611 | (char *) "self", NULL | |
20612 | }; | |
20613 | ||
20614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
20615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20617 | { | |
20618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20619 | { | |
20620 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
20621 | result = (wxPageSetupDialogData *) &_result_ref; | |
20622 | } | |
20623 | ||
20624 | wxPyEndAllowThreads(__tstate); | |
20625 | if (PyErr_Occurred()) SWIG_fail; | |
20626 | } | |
20627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPageSetupDialogData, 0); | |
20628 | return resultobj; | |
20629 | fail: | |
20630 | return NULL; | |
20631 | } | |
20632 | ||
20633 | ||
20634 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20635 | PyObject *resultobj; | |
20636 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
20637 | int result; | |
20638 | PyObject * obj0 = 0 ; | |
20639 | char *kwnames[] = { | |
20640 | (char *) "self", NULL | |
20641 | }; | |
20642 | ||
20643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
20644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPageSetupDialog, | |
20645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20646 | { | |
20647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20648 | result = (int)(arg1)->ShowModal(); | |
20649 | ||
20650 | wxPyEndAllowThreads(__tstate); | |
20651 | if (PyErr_Occurred()) SWIG_fail; | |
20652 | } | |
20653 | resultobj = SWIG_FromInt((int)result); | |
20654 | return resultobj; | |
20655 | fail: | |
20656 | return NULL; | |
20657 | } | |
20658 | ||
20659 | ||
20660 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
20661 | PyObject *obj; | |
20662 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20663 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
20664 | Py_INCREF(obj); | |
20665 | return Py_BuildValue((char *)""); | |
20666 | } | |
20667 | static PyObject *_wrap_new_PrintDialogData__SWIG_0(PyObject *self, PyObject *args) { | |
20668 | PyObject *resultobj; | |
20669 | wxPrintDialogData *result; | |
20670 | ||
20671 | if(!PyArg_ParseTuple(args,(char *)":new_PrintDialogData")) goto fail; | |
20672 | { | |
20673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20674 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
20675 | ||
20676 | wxPyEndAllowThreads(__tstate); | |
20677 | if (PyErr_Occurred()) SWIG_fail; | |
20678 | } | |
20679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20680 | return resultobj; | |
20681 | fail: | |
20682 | return NULL; | |
20683 | } | |
20684 | ||
20685 | ||
20686 | static PyObject *_wrap_new_PrintDialogData__SWIG_1(PyObject *self, PyObject *args) { | |
20687 | PyObject *resultobj; | |
20688 | wxPrintData *arg1 = 0 ; | |
20689 | wxPrintDialogData *result; | |
20690 | PyObject * obj0 = 0 ; | |
20691 | ||
20692 | if(!PyArg_ParseTuple(args,(char *)"O:new_PrintDialogData",&obj0)) goto fail; | |
20693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData, | |
20694 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20695 | SWIG_fail; | |
20696 | if (arg1 == NULL) { | |
20697 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20698 | SWIG_fail; | |
20699 | } | |
20700 | { | |
20701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20702 | result = (wxPrintDialogData *)new wxPrintDialogData((wxPrintData const &)*arg1); | |
20703 | ||
20704 | wxPyEndAllowThreads(__tstate); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | } | |
20707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 1); | |
20708 | return resultobj; | |
20709 | fail: | |
20710 | return NULL; | |
20711 | } | |
20712 | ||
20713 | ||
20714 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args) { | |
20715 | int argc; | |
20716 | PyObject *argv[2]; | |
20717 | int ii; | |
20718 | ||
20719 | argc = PyObject_Length(args); | |
20720 | for (ii = 0; (ii < argc) && (ii < 1); ii++) { | |
20721 | argv[ii] = PyTuple_GetItem(args,ii); | |
20722 | } | |
20723 | if (argc == 0) { | |
20724 | return _wrap_new_PrintDialogData__SWIG_0(self,args); | |
20725 | } | |
20726 | if (argc == 1) { | |
20727 | int _v; | |
20728 | { | |
20729 | void *ptr; | |
20730 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
20731 | _v = 0; | |
20732 | PyErr_Clear(); | |
20733 | } else { | |
20734 | _v = 1; | |
20735 | } | |
20736 | } | |
20737 | if (_v) { | |
20738 | return _wrap_new_PrintDialogData__SWIG_1(self,args); | |
20739 | } | |
20740 | } | |
20741 | ||
20742 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintDialogData'"); | |
20743 | return NULL; | |
20744 | } | |
20745 | ||
20746 | ||
20747 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20748 | PyObject *resultobj; | |
20749 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20750 | PyObject * obj0 = 0 ; | |
20751 | char *kwnames[] = { | |
20752 | (char *) "self", NULL | |
20753 | }; | |
20754 | ||
20755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
20756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20758 | { | |
20759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20760 | delete arg1; | |
20761 | ||
20762 | wxPyEndAllowThreads(__tstate); | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | } | |
20765 | Py_INCREF(Py_None); resultobj = Py_None; | |
20766 | return resultobj; | |
20767 | fail: | |
20768 | return NULL; | |
20769 | } | |
20770 | ||
20771 | ||
20772 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20773 | PyObject *resultobj; | |
20774 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20775 | int result; | |
20776 | PyObject * obj0 = 0 ; | |
20777 | char *kwnames[] = { | |
20778 | (char *) "self", NULL | |
20779 | }; | |
20780 | ||
20781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
20782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20784 | { | |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
20787 | ||
20788 | wxPyEndAllowThreads(__tstate); | |
20789 | if (PyErr_Occurred()) SWIG_fail; | |
20790 | } | |
20791 | resultobj = SWIG_FromInt((int)result); | |
20792 | return resultobj; | |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
20798 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20799 | PyObject *resultobj; | |
20800 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20801 | int result; | |
20802 | PyObject * obj0 = 0 ; | |
20803 | char *kwnames[] = { | |
20804 | (char *) "self", NULL | |
20805 | }; | |
20806 | ||
20807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
20808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20810 | { | |
20811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20812 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
20813 | ||
20814 | wxPyEndAllowThreads(__tstate); | |
20815 | if (PyErr_Occurred()) SWIG_fail; | |
20816 | } | |
20817 | resultobj = SWIG_FromInt((int)result); | |
20818 | return resultobj; | |
20819 | fail: | |
20820 | return NULL; | |
20821 | } | |
20822 | ||
20823 | ||
20824 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20825 | PyObject *resultobj; | |
20826 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20827 | int result; | |
20828 | PyObject * obj0 = 0 ; | |
20829 | char *kwnames[] = { | |
20830 | (char *) "self", NULL | |
20831 | }; | |
20832 | ||
20833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
20834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20836 | { | |
20837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20838 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
20839 | ||
20840 | wxPyEndAllowThreads(__tstate); | |
20841 | if (PyErr_Occurred()) SWIG_fail; | |
20842 | } | |
20843 | resultobj = SWIG_FromInt((int)result); | |
20844 | return resultobj; | |
20845 | fail: | |
20846 | return NULL; | |
20847 | } | |
20848 | ||
20849 | ||
20850 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20851 | PyObject *resultobj; | |
20852 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20853 | int result; | |
20854 | PyObject * obj0 = 0 ; | |
20855 | char *kwnames[] = { | |
20856 | (char *) "self", NULL | |
20857 | }; | |
20858 | ||
20859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
20860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20862 | { | |
20863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20864 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
20865 | ||
20866 | wxPyEndAllowThreads(__tstate); | |
20867 | if (PyErr_Occurred()) SWIG_fail; | |
20868 | } | |
20869 | resultobj = SWIG_FromInt((int)result); | |
20870 | return resultobj; | |
20871 | fail: | |
20872 | return NULL; | |
20873 | } | |
20874 | ||
20875 | ||
20876 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20877 | PyObject *resultobj; | |
20878 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20879 | int result; | |
20880 | PyObject * obj0 = 0 ; | |
20881 | char *kwnames[] = { | |
20882 | (char *) "self", NULL | |
20883 | }; | |
20884 | ||
20885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
20886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20888 | { | |
20889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20890 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
20891 | ||
20892 | wxPyEndAllowThreads(__tstate); | |
20893 | if (PyErr_Occurred()) SWIG_fail; | |
20894 | } | |
20895 | resultobj = SWIG_FromInt((int)result); | |
20896 | return resultobj; | |
20897 | fail: | |
20898 | return NULL; | |
20899 | } | |
20900 | ||
20901 | ||
20902 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20903 | PyObject *resultobj; | |
20904 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20905 | bool result; | |
20906 | PyObject * obj0 = 0 ; | |
20907 | char *kwnames[] = { | |
20908 | (char *) "self", NULL | |
20909 | }; | |
20910 | ||
20911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
20912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20914 | { | |
20915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20916 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
20917 | ||
20918 | wxPyEndAllowThreads(__tstate); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | } | |
20921 | { | |
20922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20923 | } | |
20924 | return resultobj; | |
20925 | fail: | |
20926 | return NULL; | |
20927 | } | |
20928 | ||
20929 | ||
20930 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20931 | PyObject *resultobj; | |
20932 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20933 | bool result; | |
20934 | PyObject * obj0 = 0 ; | |
20935 | char *kwnames[] = { | |
20936 | (char *) "self", NULL | |
20937 | }; | |
20938 | ||
20939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
20940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20942 | { | |
20943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20944 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
20945 | ||
20946 | wxPyEndAllowThreads(__tstate); | |
20947 | if (PyErr_Occurred()) SWIG_fail; | |
20948 | } | |
20949 | { | |
20950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20951 | } | |
20952 | return resultobj; | |
20953 | fail: | |
20954 | return NULL; | |
20955 | } | |
20956 | ||
20957 | ||
20958 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20959 | PyObject *resultobj; | |
20960 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20961 | bool result; | |
20962 | PyObject * obj0 = 0 ; | |
20963 | char *kwnames[] = { | |
20964 | (char *) "self", NULL | |
20965 | }; | |
20966 | ||
20967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
20968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20970 | { | |
20971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20972 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
20973 | ||
20974 | wxPyEndAllowThreads(__tstate); | |
20975 | if (PyErr_Occurred()) SWIG_fail; | |
20976 | } | |
20977 | { | |
20978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20979 | } | |
20980 | return resultobj; | |
20981 | fail: | |
20982 | return NULL; | |
20983 | } | |
20984 | ||
20985 | ||
20986 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20987 | PyObject *resultobj; | |
20988 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
20989 | bool result; | |
20990 | PyObject * obj0 = 0 ; | |
20991 | char *kwnames[] = { | |
20992 | (char *) "self", NULL | |
20993 | }; | |
20994 | ||
20995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
20996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
20997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20998 | { | |
20999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21000 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
21001 | ||
21002 | wxPyEndAllowThreads(__tstate); | |
21003 | if (PyErr_Occurred()) SWIG_fail; | |
21004 | } | |
21005 | { | |
21006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21007 | } | |
21008 | return resultobj; | |
21009 | fail: | |
21010 | return NULL; | |
21011 | } | |
21012 | ||
21013 | ||
21014 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21015 | PyObject *resultobj; | |
21016 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21017 | bool result; | |
21018 | PyObject * obj0 = 0 ; | |
21019 | char *kwnames[] = { | |
21020 | (char *) "self", NULL | |
21021 | }; | |
21022 | ||
21023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
21024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21026 | { | |
21027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21028 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
21029 | ||
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
21033 | { | |
21034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21035 | } | |
21036 | return resultobj; | |
21037 | fail: | |
21038 | return NULL; | |
21039 | } | |
21040 | ||
21041 | ||
21042 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21043 | PyObject *resultobj; | |
21044 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21045 | int arg2 ; | |
21046 | PyObject * obj0 = 0 ; | |
21047 | PyObject * obj1 = 0 ; | |
21048 | char *kwnames[] = { | |
21049 | (char *) "self",(char *) "v", NULL | |
21050 | }; | |
21051 | ||
21052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; | |
21053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21055 | arg2 = (int) SWIG_AsInt(obj1); | |
21056 | if (PyErr_Occurred()) SWIG_fail; | |
21057 | { | |
21058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21059 | (arg1)->SetFromPage(arg2); | |
21060 | ||
21061 | wxPyEndAllowThreads(__tstate); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | } | |
21064 | Py_INCREF(Py_None); resultobj = Py_None; | |
21065 | return resultobj; | |
21066 | fail: | |
21067 | return NULL; | |
21068 | } | |
21069 | ||
21070 | ||
21071 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21072 | PyObject *resultobj; | |
21073 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21074 | int arg2 ; | |
21075 | PyObject * obj0 = 0 ; | |
21076 | PyObject * obj1 = 0 ; | |
21077 | char *kwnames[] = { | |
21078 | (char *) "self",(char *) "v", NULL | |
21079 | }; | |
21080 | ||
21081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; | |
21082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21084 | arg2 = (int) SWIG_AsInt(obj1); | |
21085 | if (PyErr_Occurred()) SWIG_fail; | |
21086 | { | |
21087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21088 | (arg1)->SetToPage(arg2); | |
21089 | ||
21090 | wxPyEndAllowThreads(__tstate); | |
21091 | if (PyErr_Occurred()) SWIG_fail; | |
21092 | } | |
21093 | Py_INCREF(Py_None); resultobj = Py_None; | |
21094 | return resultobj; | |
21095 | fail: | |
21096 | return NULL; | |
21097 | } | |
21098 | ||
21099 | ||
21100 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21101 | PyObject *resultobj; | |
21102 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21103 | int arg2 ; | |
21104 | PyObject * obj0 = 0 ; | |
21105 | PyObject * obj1 = 0 ; | |
21106 | char *kwnames[] = { | |
21107 | (char *) "self",(char *) "v", NULL | |
21108 | }; | |
21109 | ||
21110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; | |
21111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21113 | arg2 = (int) SWIG_AsInt(obj1); | |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
21115 | { | |
21116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21117 | (arg1)->SetMinPage(arg2); | |
21118 | ||
21119 | wxPyEndAllowThreads(__tstate); | |
21120 | if (PyErr_Occurred()) SWIG_fail; | |
21121 | } | |
21122 | Py_INCREF(Py_None); resultobj = Py_None; | |
21123 | return resultobj; | |
21124 | fail: | |
21125 | return NULL; | |
21126 | } | |
21127 | ||
21128 | ||
21129 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21130 | PyObject *resultobj; | |
21131 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21132 | int arg2 ; | |
21133 | PyObject * obj0 = 0 ; | |
21134 | PyObject * obj1 = 0 ; | |
21135 | char *kwnames[] = { | |
21136 | (char *) "self",(char *) "v", NULL | |
21137 | }; | |
21138 | ||
21139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; | |
21140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21142 | arg2 = (int) SWIG_AsInt(obj1); | |
21143 | if (PyErr_Occurred()) SWIG_fail; | |
21144 | { | |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | (arg1)->SetMaxPage(arg2); | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
21150 | } | |
21151 | Py_INCREF(Py_None); resultobj = Py_None; | |
21152 | return resultobj; | |
21153 | fail: | |
21154 | return NULL; | |
21155 | } | |
21156 | ||
21157 | ||
21158 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21159 | PyObject *resultobj; | |
21160 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21161 | int arg2 ; | |
21162 | PyObject * obj0 = 0 ; | |
21163 | PyObject * obj1 = 0 ; | |
21164 | char *kwnames[] = { | |
21165 | (char *) "self",(char *) "v", NULL | |
21166 | }; | |
21167 | ||
21168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; | |
21169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21171 | arg2 = (int) SWIG_AsInt(obj1); | |
21172 | if (PyErr_Occurred()) SWIG_fail; | |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | (arg1)->SetNoCopies(arg2); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
21180 | Py_INCREF(Py_None); resultobj = Py_None; | |
21181 | return resultobj; | |
21182 | fail: | |
21183 | return NULL; | |
21184 | } | |
21185 | ||
21186 | ||
21187 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21188 | PyObject *resultobj; | |
21189 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21190 | bool arg2 ; | |
21191 | PyObject * obj0 = 0 ; | |
21192 | PyObject * obj1 = 0 ; | |
21193 | char *kwnames[] = { | |
21194 | (char *) "self",(char *) "flag", NULL | |
21195 | }; | |
21196 | ||
21197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
21198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21200 | arg2 = (bool) SWIG_AsBool(obj1); | |
21201 | if (PyErr_Occurred()) SWIG_fail; | |
21202 | { | |
21203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21204 | (arg1)->SetAllPages(arg2); | |
21205 | ||
21206 | wxPyEndAllowThreads(__tstate); | |
21207 | if (PyErr_Occurred()) SWIG_fail; | |
21208 | } | |
21209 | Py_INCREF(Py_None); resultobj = Py_None; | |
21210 | return resultobj; | |
21211 | fail: | |
21212 | return NULL; | |
21213 | } | |
21214 | ||
21215 | ||
21216 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21217 | PyObject *resultobj; | |
21218 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21219 | bool arg2 ; | |
21220 | PyObject * obj0 = 0 ; | |
21221 | PyObject * obj1 = 0 ; | |
21222 | char *kwnames[] = { | |
21223 | (char *) "self",(char *) "flag", NULL | |
21224 | }; | |
21225 | ||
21226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
21227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21229 | arg2 = (bool) SWIG_AsBool(obj1); | |
21230 | if (PyErr_Occurred()) SWIG_fail; | |
21231 | { | |
21232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21233 | (arg1)->SetSelection(arg2); | |
21234 | ||
21235 | wxPyEndAllowThreads(__tstate); | |
21236 | if (PyErr_Occurred()) SWIG_fail; | |
21237 | } | |
21238 | Py_INCREF(Py_None); resultobj = Py_None; | |
21239 | return resultobj; | |
21240 | fail: | |
21241 | return NULL; | |
21242 | } | |
21243 | ||
21244 | ||
21245 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21246 | PyObject *resultobj; | |
21247 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21248 | bool arg2 ; | |
21249 | PyObject * obj0 = 0 ; | |
21250 | PyObject * obj1 = 0 ; | |
21251 | char *kwnames[] = { | |
21252 | (char *) "self",(char *) "flag", NULL | |
21253 | }; | |
21254 | ||
21255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
21256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21258 | arg2 = (bool) SWIG_AsBool(obj1); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | { | |
21261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21262 | (arg1)->SetCollate(arg2); | |
21263 | ||
21264 | wxPyEndAllowThreads(__tstate); | |
21265 | if (PyErr_Occurred()) SWIG_fail; | |
21266 | } | |
21267 | Py_INCREF(Py_None); resultobj = Py_None; | |
21268 | return resultobj; | |
21269 | fail: | |
21270 | return NULL; | |
21271 | } | |
21272 | ||
21273 | ||
21274 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21275 | PyObject *resultobj; | |
21276 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21277 | bool arg2 ; | |
21278 | PyObject * obj0 = 0 ; | |
21279 | PyObject * obj1 = 0 ; | |
21280 | char *kwnames[] = { | |
21281 | (char *) "self",(char *) "flag", NULL | |
21282 | }; | |
21283 | ||
21284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
21285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21287 | arg2 = (bool) SWIG_AsBool(obj1); | |
21288 | if (PyErr_Occurred()) SWIG_fail; | |
21289 | { | |
21290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21291 | (arg1)->SetPrintToFile(arg2); | |
21292 | ||
21293 | wxPyEndAllowThreads(__tstate); | |
21294 | if (PyErr_Occurred()) SWIG_fail; | |
21295 | } | |
21296 | Py_INCREF(Py_None); resultobj = Py_None; | |
21297 | return resultobj; | |
21298 | fail: | |
21299 | return NULL; | |
21300 | } | |
21301 | ||
21302 | ||
21303 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21304 | PyObject *resultobj; | |
21305 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21306 | bool arg2 ; | |
21307 | PyObject * obj0 = 0 ; | |
21308 | PyObject * obj1 = 0 ; | |
21309 | char *kwnames[] = { | |
21310 | (char *) "self",(char *) "flag", NULL | |
21311 | }; | |
21312 | ||
21313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
21314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21316 | arg2 = (bool) SWIG_AsBool(obj1); | |
21317 | if (PyErr_Occurred()) SWIG_fail; | |
21318 | { | |
21319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21320 | (arg1)->SetSetupDialog(arg2); | |
21321 | ||
21322 | wxPyEndAllowThreads(__tstate); | |
21323 | if (PyErr_Occurred()) SWIG_fail; | |
21324 | } | |
21325 | Py_INCREF(Py_None); resultobj = Py_None; | |
21326 | return resultobj; | |
21327 | fail: | |
21328 | return NULL; | |
21329 | } | |
21330 | ||
21331 | ||
21332 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21333 | PyObject *resultobj; | |
21334 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21335 | bool arg2 ; | |
21336 | PyObject * obj0 = 0 ; | |
21337 | PyObject * obj1 = 0 ; | |
21338 | char *kwnames[] = { | |
21339 | (char *) "self",(char *) "flag", NULL | |
21340 | }; | |
21341 | ||
21342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
21343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21345 | arg2 = (bool) SWIG_AsBool(obj1); | |
21346 | if (PyErr_Occurred()) SWIG_fail; | |
21347 | { | |
21348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21349 | (arg1)->EnablePrintToFile(arg2); | |
21350 | ||
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
21354 | Py_INCREF(Py_None); resultobj = Py_None; | |
21355 | return resultobj; | |
21356 | fail: | |
21357 | return NULL; | |
21358 | } | |
21359 | ||
21360 | ||
21361 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21362 | PyObject *resultobj; | |
21363 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21364 | bool arg2 ; | |
21365 | PyObject * obj0 = 0 ; | |
21366 | PyObject * obj1 = 0 ; | |
21367 | char *kwnames[] = { | |
21368 | (char *) "self",(char *) "flag", NULL | |
21369 | }; | |
21370 | ||
21371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
21372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21374 | arg2 = (bool) SWIG_AsBool(obj1); | |
21375 | if (PyErr_Occurred()) SWIG_fail; | |
21376 | { | |
21377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21378 | (arg1)->EnableSelection(arg2); | |
21379 | ||
21380 | wxPyEndAllowThreads(__tstate); | |
21381 | if (PyErr_Occurred()) SWIG_fail; | |
21382 | } | |
21383 | Py_INCREF(Py_None); resultobj = Py_None; | |
21384 | return resultobj; | |
21385 | fail: | |
21386 | return NULL; | |
21387 | } | |
21388 | ||
21389 | ||
21390 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21391 | PyObject *resultobj; | |
21392 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21393 | bool arg2 ; | |
21394 | PyObject * obj0 = 0 ; | |
21395 | PyObject * obj1 = 0 ; | |
21396 | char *kwnames[] = { | |
21397 | (char *) "self",(char *) "flag", NULL | |
21398 | }; | |
21399 | ||
21400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
21401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21403 | arg2 = (bool) SWIG_AsBool(obj1); | |
21404 | if (PyErr_Occurred()) SWIG_fail; | |
21405 | { | |
21406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21407 | (arg1)->EnablePageNumbers(arg2); | |
21408 | ||
21409 | wxPyEndAllowThreads(__tstate); | |
21410 | if (PyErr_Occurred()) SWIG_fail; | |
21411 | } | |
21412 | Py_INCREF(Py_None); resultobj = Py_None; | |
21413 | return resultobj; | |
21414 | fail: | |
21415 | return NULL; | |
21416 | } | |
21417 | ||
21418 | ||
21419 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21420 | PyObject *resultobj; | |
21421 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21422 | bool arg2 ; | |
21423 | PyObject * obj0 = 0 ; | |
21424 | PyObject * obj1 = 0 ; | |
21425 | char *kwnames[] = { | |
21426 | (char *) "self",(char *) "flag", NULL | |
21427 | }; | |
21428 | ||
21429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
21430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21432 | arg2 = (bool) SWIG_AsBool(obj1); | |
21433 | if (PyErr_Occurred()) SWIG_fail; | |
21434 | { | |
21435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21436 | (arg1)->EnableHelp(arg2); | |
21437 | ||
21438 | wxPyEndAllowThreads(__tstate); | |
21439 | if (PyErr_Occurred()) SWIG_fail; | |
21440 | } | |
21441 | Py_INCREF(Py_None); resultobj = Py_None; | |
21442 | return resultobj; | |
21443 | fail: | |
21444 | return NULL; | |
21445 | } | |
21446 | ||
21447 | ||
21448 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21449 | PyObject *resultobj; | |
21450 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21451 | bool result; | |
21452 | PyObject * obj0 = 0 ; | |
21453 | char *kwnames[] = { | |
21454 | (char *) "self", NULL | |
21455 | }; | |
21456 | ||
21457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
21458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21460 | { | |
21461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21462 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
21463 | ||
21464 | wxPyEndAllowThreads(__tstate); | |
21465 | if (PyErr_Occurred()) SWIG_fail; | |
21466 | } | |
21467 | { | |
21468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21469 | } | |
21470 | return resultobj; | |
21471 | fail: | |
21472 | return NULL; | |
21473 | } | |
21474 | ||
21475 | ||
21476 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21477 | PyObject *resultobj; | |
21478 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21479 | bool result; | |
21480 | PyObject * obj0 = 0 ; | |
21481 | char *kwnames[] = { | |
21482 | (char *) "self", NULL | |
21483 | }; | |
21484 | ||
21485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
21486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21488 | { | |
21489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21490 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
21491 | ||
21492 | wxPyEndAllowThreads(__tstate); | |
21493 | if (PyErr_Occurred()) SWIG_fail; | |
21494 | } | |
21495 | { | |
21496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21497 | } | |
21498 | return resultobj; | |
21499 | fail: | |
21500 | return NULL; | |
21501 | } | |
21502 | ||
21503 | ||
21504 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21505 | PyObject *resultobj; | |
21506 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21507 | bool result; | |
21508 | PyObject * obj0 = 0 ; | |
21509 | char *kwnames[] = { | |
21510 | (char *) "self", NULL | |
21511 | }; | |
21512 | ||
21513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
21514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21516 | { | |
21517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21518 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
21519 | ||
21520 | wxPyEndAllowThreads(__tstate); | |
21521 | if (PyErr_Occurred()) SWIG_fail; | |
21522 | } | |
21523 | { | |
21524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21525 | } | |
21526 | return resultobj; | |
21527 | fail: | |
21528 | return NULL; | |
21529 | } | |
21530 | ||
21531 | ||
21532 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21533 | PyObject *resultobj; | |
21534 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21535 | bool result; | |
21536 | PyObject * obj0 = 0 ; | |
21537 | char *kwnames[] = { | |
21538 | (char *) "self", NULL | |
21539 | }; | |
21540 | ||
21541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
21542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21544 | { | |
21545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21546 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
21547 | ||
21548 | wxPyEndAllowThreads(__tstate); | |
21549 | if (PyErr_Occurred()) SWIG_fail; | |
21550 | } | |
21551 | { | |
21552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21553 | } | |
21554 | return resultobj; | |
21555 | fail: | |
21556 | return NULL; | |
21557 | } | |
21558 | ||
21559 | ||
21560 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21561 | PyObject *resultobj; | |
21562 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21563 | bool result; | |
21564 | PyObject * obj0 = 0 ; | |
21565 | char *kwnames[] = { | |
21566 | (char *) "self", NULL | |
21567 | }; | |
21568 | ||
21569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
21570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21572 | { | |
21573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21574 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
21575 | ||
21576 | wxPyEndAllowThreads(__tstate); | |
21577 | if (PyErr_Occurred()) SWIG_fail; | |
21578 | } | |
21579 | { | |
21580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21581 | } | |
21582 | return resultobj; | |
21583 | fail: | |
21584 | return NULL; | |
21585 | } | |
21586 | ||
21587 | ||
21588 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21589 | PyObject *resultobj; | |
21590 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21591 | wxPrintData *result; | |
21592 | PyObject * obj0 = 0 ; | |
21593 | char *kwnames[] = { | |
21594 | (char *) "self", NULL | |
21595 | }; | |
21596 | ||
21597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
21598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21600 | { | |
21601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21602 | { | |
21603 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
21604 | result = (wxPrintData *) &_result_ref; | |
21605 | } | |
21606 | ||
21607 | wxPyEndAllowThreads(__tstate); | |
21608 | if (PyErr_Occurred()) SWIG_fail; | |
21609 | } | |
21610 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0); | |
21611 | return resultobj; | |
21612 | fail: | |
21613 | return NULL; | |
21614 | } | |
21615 | ||
21616 | ||
21617 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21618 | PyObject *resultobj; | |
21619 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
21620 | wxPrintData *arg2 = 0 ; | |
21621 | PyObject * obj0 = 0 ; | |
21622 | PyObject * obj1 = 0 ; | |
21623 | char *kwnames[] = { | |
21624 | (char *) "self",(char *) "printData", NULL | |
21625 | }; | |
21626 | ||
21627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
21628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData, | |
21631 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21632 | SWIG_fail; | |
21633 | if (arg2 == NULL) { | |
21634 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21635 | SWIG_fail; | |
21636 | } | |
21637 | { | |
21638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21639 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
21640 | ||
21641 | wxPyEndAllowThreads(__tstate); | |
21642 | if (PyErr_Occurred()) SWIG_fail; | |
21643 | } | |
21644 | Py_INCREF(Py_None); resultobj = Py_None; | |
21645 | return resultobj; | |
21646 | fail: | |
21647 | return NULL; | |
21648 | } | |
21649 | ||
21650 | ||
21651 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
21652 | PyObject *obj; | |
21653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21654 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
21655 | Py_INCREF(obj); | |
21656 | return Py_BuildValue((char *)""); | |
21657 | } | |
21658 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21659 | PyObject *resultobj; | |
21660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21661 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
21662 | wxPrintDialog *result; | |
21663 | PyObject * obj0 = 0 ; | |
21664 | PyObject * obj1 = 0 ; | |
21665 | char *kwnames[] = { | |
21666 | (char *) "parent",(char *) "data", NULL | |
21667 | }; | |
21668 | ||
21669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21672 | if (obj1) { | |
21673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintDialogData, | |
21674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21675 | } | |
21676 | { | |
0439c23b | 21677 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21679 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
21680 | ||
21681 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21682 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21683 | } |
21684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialog, 1); | |
21685 | return resultobj; | |
21686 | fail: | |
21687 | return NULL; | |
21688 | } | |
21689 | ||
21690 | ||
21691 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21692 | PyObject *resultobj; | |
21693 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21694 | wxPrintDialogData *result; | |
21695 | PyObject * obj0 = 0 ; | |
21696 | char *kwnames[] = { | |
21697 | (char *) "self", NULL | |
21698 | }; | |
21699 | ||
21700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21703 | { | |
21704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21705 | { | |
21706 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21707 | result = (wxPrintDialogData *) &_result_ref; | |
21708 | } | |
21709 | ||
21710 | wxPyEndAllowThreads(__tstate); | |
21711 | if (PyErr_Occurred()) SWIG_fail; | |
21712 | } | |
21713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21714 | return resultobj; | |
21715 | fail: | |
21716 | return NULL; | |
21717 | } | |
21718 | ||
21719 | ||
21720 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21721 | PyObject *resultobj; | |
21722 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21723 | wxDC *result; | |
21724 | PyObject * obj0 = 0 ; | |
21725 | char *kwnames[] = { | |
21726 | (char *) "self", NULL | |
21727 | }; | |
21728 | ||
21729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
21730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21732 | { | |
21733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21734 | result = (wxDC *)(arg1)->GetPrintDC(); | |
21735 | ||
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
21739 | { | |
412d302d | 21740 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
21741 | } |
21742 | return resultobj; | |
21743 | fail: | |
21744 | return NULL; | |
21745 | } | |
21746 | ||
21747 | ||
21748 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21749 | PyObject *resultobj; | |
21750 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
21751 | int result; | |
21752 | PyObject * obj0 = 0 ; | |
21753 | char *kwnames[] = { | |
21754 | (char *) "self", NULL | |
21755 | }; | |
21756 | ||
21757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
21758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialog, | |
21759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21760 | { | |
21761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21762 | result = (int)(arg1)->ShowModal(); | |
21763 | ||
21764 | wxPyEndAllowThreads(__tstate); | |
21765 | if (PyErr_Occurred()) SWIG_fail; | |
21766 | } | |
21767 | resultobj = SWIG_FromInt((int)result); | |
21768 | return resultobj; | |
21769 | fail: | |
21770 | return NULL; | |
21771 | } | |
21772 | ||
21773 | ||
21774 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
21775 | PyObject *obj; | |
21776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21777 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
21778 | Py_INCREF(obj); | |
21779 | return Py_BuildValue((char *)""); | |
21780 | } | |
21781 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21782 | PyObject *resultobj; | |
21783 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
21784 | wxPrinter *result; | |
21785 | PyObject * obj0 = 0 ; | |
21786 | char *kwnames[] = { | |
21787 | (char *) "data", NULL | |
21788 | }; | |
21789 | ||
21790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
21791 | if (obj0) { | |
21792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintDialogData, | |
21793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21794 | } | |
21795 | { | |
0439c23b | 21796 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21798 | result = (wxPrinter *)new wxPrinter(arg1); | |
21799 | ||
21800 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21801 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21802 | } |
21803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinter, 1); | |
21804 | return resultobj; | |
21805 | fail: | |
21806 | return NULL; | |
21807 | } | |
21808 | ||
21809 | ||
21810 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21811 | PyObject *resultobj; | |
21812 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21813 | PyObject * obj0 = 0 ; | |
21814 | char *kwnames[] = { | |
21815 | (char *) "self", NULL | |
21816 | }; | |
21817 | ||
21818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
21819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21821 | { | |
21822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21823 | delete arg1; | |
21824 | ||
21825 | wxPyEndAllowThreads(__tstate); | |
21826 | if (PyErr_Occurred()) SWIG_fail; | |
21827 | } | |
21828 | Py_INCREF(Py_None); resultobj = Py_None; | |
21829 | return resultobj; | |
21830 | fail: | |
21831 | return NULL; | |
21832 | } | |
21833 | ||
21834 | ||
21835 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21836 | PyObject *resultobj; | |
21837 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21838 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21839 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21840 | PyObject * obj0 = 0 ; | |
21841 | PyObject * obj1 = 0 ; | |
21842 | PyObject * obj2 = 0 ; | |
21843 | char *kwnames[] = { | |
21844 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
21845 | }; | |
21846 | ||
21847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21852 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21854 | { | |
21855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21856 | (arg1)->CreateAbortWindow(arg2,arg3); | |
21857 | ||
21858 | wxPyEndAllowThreads(__tstate); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
21861 | Py_INCREF(Py_None); resultobj = Py_None; | |
21862 | return resultobj; | |
21863 | fail: | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
21868 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21869 | PyObject *resultobj; | |
21870 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21871 | wxPrintDialogData *result; | |
21872 | PyObject * obj0 = 0 ; | |
21873 | char *kwnames[] = { | |
21874 | (char *) "self", NULL | |
21875 | }; | |
21876 | ||
21877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21880 | { | |
21881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21882 | { | |
21883 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21884 | result = (wxPrintDialogData *) &_result_ref; | |
21885 | } | |
21886 | ||
21887 | wxPyEndAllowThreads(__tstate); | |
21888 | if (PyErr_Occurred()) SWIG_fail; | |
21889 | } | |
21890 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
21891 | return resultobj; | |
21892 | fail: | |
21893 | return NULL; | |
21894 | } | |
21895 | ||
21896 | ||
21897 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21898 | PyObject *resultobj; | |
21899 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21900 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21901 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21902 | int arg4 = (int) True ; | |
21903 | bool result; | |
21904 | PyObject * obj0 = 0 ; | |
21905 | PyObject * obj1 = 0 ; | |
21906 | PyObject * obj2 = 0 ; | |
21907 | PyObject * obj3 = 0 ; | |
21908 | char *kwnames[] = { | |
21909 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
21910 | }; | |
21911 | ||
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21915 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21917 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21919 | if (obj3) { | |
21920 | arg4 = (int) SWIG_AsInt(obj3); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | { | |
21924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21925 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
21926 | ||
21927 | wxPyEndAllowThreads(__tstate); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | } | |
21930 | { | |
21931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21932 | } | |
21933 | return resultobj; | |
21934 | fail: | |
21935 | return NULL; | |
21936 | } | |
21937 | ||
21938 | ||
21939 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21940 | PyObject *resultobj; | |
21941 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21942 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21943 | wxDC *result; | |
21944 | PyObject * obj0 = 0 ; | |
21945 | PyObject * obj1 = 0 ; | |
21946 | char *kwnames[] = { | |
21947 | (char *) "self",(char *) "parent", NULL | |
21948 | }; | |
21949 | ||
21950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
21951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21955 | { | |
21956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21957 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
21958 | ||
21959 | wxPyEndAllowThreads(__tstate); | |
21960 | if (PyErr_Occurred()) SWIG_fail; | |
21961 | } | |
21962 | { | |
412d302d | 21963 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21964 | } |
21965 | return resultobj; | |
21966 | fail: | |
21967 | return NULL; | |
21968 | } | |
21969 | ||
21970 | ||
21971 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21972 | PyObject *resultobj; | |
21973 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
21974 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21975 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
21976 | wxString *arg4 = 0 ; | |
21977 | bool temp4 = False ; | |
21978 | PyObject * obj0 = 0 ; | |
21979 | PyObject * obj1 = 0 ; | |
21980 | PyObject * obj2 = 0 ; | |
21981 | PyObject * obj3 = 0 ; | |
21982 | char *kwnames[] = { | |
21983 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
21984 | }; | |
21985 | ||
21986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21991 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyPrintout, | |
21992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21993 | { | |
21994 | arg4 = wxString_in_helper(obj3); | |
21995 | if (arg4 == NULL) SWIG_fail; | |
21996 | temp4 = True; | |
21997 | } | |
21998 | { | |
21999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22000 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
22001 | ||
22002 | wxPyEndAllowThreads(__tstate); | |
22003 | if (PyErr_Occurred()) SWIG_fail; | |
22004 | } | |
22005 | Py_INCREF(Py_None); resultobj = Py_None; | |
22006 | { | |
22007 | if (temp4) | |
22008 | delete arg4; | |
22009 | } | |
22010 | return resultobj; | |
22011 | fail: | |
22012 | { | |
22013 | if (temp4) | |
22014 | delete arg4; | |
22015 | } | |
22016 | return NULL; | |
22017 | } | |
22018 | ||
22019 | ||
22020 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22021 | PyObject *resultobj; | |
22022 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
22023 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22024 | bool result; | |
22025 | PyObject * obj0 = 0 ; | |
22026 | PyObject * obj1 = 0 ; | |
22027 | char *kwnames[] = { | |
22028 | (char *) "self",(char *) "parent", NULL | |
22029 | }; | |
22030 | ||
22031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
22032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
22033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22036 | { | |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22038 | result = (bool)(arg1)->Setup(arg2); | |
22039 | ||
22040 | wxPyEndAllowThreads(__tstate); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | } | |
22043 | { | |
22044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22045 | } | |
22046 | return resultobj; | |
22047 | fail: | |
22048 | return NULL; | |
22049 | } | |
22050 | ||
22051 | ||
22052 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22053 | PyObject *resultobj; | |
22054 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
22055 | bool result; | |
22056 | PyObject * obj0 = 0 ; | |
22057 | char *kwnames[] = { | |
22058 | (char *) "self", NULL | |
22059 | }; | |
22060 | ||
22061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
22062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrinter, | |
22063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22064 | { | |
22065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22066 | result = (bool)(arg1)->GetAbort(); | |
22067 | ||
22068 | wxPyEndAllowThreads(__tstate); | |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
22070 | } | |
22071 | { | |
22072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22073 | } | |
22074 | return resultobj; | |
22075 | fail: | |
22076 | return NULL; | |
22077 | } | |
22078 | ||
22079 | ||
22080 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22081 | PyObject *resultobj; | |
22082 | int result; | |
22083 | char *kwnames[] = { | |
22084 | NULL | |
22085 | }; | |
22086 | ||
22087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
22088 | { | |
22089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22090 | result = (int)wxPrinter::GetLastError(); | |
22091 | ||
22092 | wxPyEndAllowThreads(__tstate); | |
22093 | if (PyErr_Occurred()) SWIG_fail; | |
22094 | } | |
22095 | resultobj = SWIG_FromInt((int)result); | |
22096 | return resultobj; | |
22097 | fail: | |
22098 | return NULL; | |
22099 | } | |
22100 | ||
22101 | ||
22102 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
22103 | PyObject *obj; | |
22104 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22105 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
22106 | Py_INCREF(obj); | |
22107 | return Py_BuildValue((char *)""); | |
22108 | } | |
22109 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22110 | PyObject *resultobj; | |
22111 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
22112 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
22113 | wxPyPrintout *result; | |
22114 | bool temp1 = False ; | |
22115 | PyObject * obj0 = 0 ; | |
22116 | char *kwnames[] = { | |
22117 | (char *) "title", NULL | |
22118 | }; | |
22119 | ||
22120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
22121 | if (obj0) { | |
22122 | { | |
22123 | arg1 = wxString_in_helper(obj0); | |
22124 | if (arg1 == NULL) SWIG_fail; | |
22125 | temp1 = True; | |
22126 | } | |
22127 | } | |
22128 | { | |
0439c23b | 22129 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22131 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
22132 | ||
22133 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22134 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22135 | } |
22136 | { | |
412d302d | 22137 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
22138 | } |
22139 | { | |
22140 | if (temp1) | |
22141 | delete arg1; | |
22142 | } | |
22143 | return resultobj; | |
22144 | fail: | |
22145 | { | |
22146 | if (temp1) | |
22147 | delete arg1; | |
22148 | } | |
22149 | return NULL; | |
22150 | } | |
22151 | ||
22152 | ||
22153 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22154 | PyObject *resultobj; | |
22155 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22156 | PyObject *arg2 = (PyObject *) 0 ; | |
22157 | PyObject *arg3 = (PyObject *) 0 ; | |
22158 | PyObject * obj0 = 0 ; | |
22159 | PyObject * obj1 = 0 ; | |
22160 | PyObject * obj2 = 0 ; | |
22161 | char *kwnames[] = { | |
22162 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22163 | }; | |
22164 | ||
22165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22168 | arg2 = obj1; | |
22169 | arg3 = obj2; | |
22170 | { | |
22171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22172 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22173 | ||
22174 | wxPyEndAllowThreads(__tstate); | |
22175 | if (PyErr_Occurred()) SWIG_fail; | |
22176 | } | |
22177 | Py_INCREF(Py_None); resultobj = Py_None; | |
22178 | return resultobj; | |
22179 | fail: | |
22180 | return NULL; | |
22181 | } | |
22182 | ||
22183 | ||
22184 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22185 | PyObject *resultobj; | |
22186 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22187 | wxString result; | |
22188 | PyObject * obj0 = 0 ; | |
22189 | char *kwnames[] = { | |
22190 | (char *) "self", NULL | |
22191 | }; | |
22192 | ||
22193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
22194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22196 | { | |
22197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22198 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
22199 | ||
22200 | wxPyEndAllowThreads(__tstate); | |
22201 | if (PyErr_Occurred()) SWIG_fail; | |
22202 | } | |
22203 | { | |
22204 | #if wxUSE_UNICODE | |
22205 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22206 | #else | |
22207 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22208 | #endif | |
22209 | } | |
22210 | return resultobj; | |
22211 | fail: | |
22212 | return NULL; | |
22213 | } | |
22214 | ||
22215 | ||
22216 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22217 | PyObject *resultobj; | |
22218 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22219 | wxDC *result; | |
22220 | PyObject * obj0 = 0 ; | |
22221 | char *kwnames[] = { | |
22222 | (char *) "self", NULL | |
22223 | }; | |
22224 | ||
22225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
22226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22228 | { | |
22229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22230 | result = (wxDC *)(arg1)->GetDC(); | |
22231 | ||
22232 | wxPyEndAllowThreads(__tstate); | |
22233 | if (PyErr_Occurred()) SWIG_fail; | |
22234 | } | |
22235 | { | |
412d302d | 22236 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22237 | } |
22238 | return resultobj; | |
22239 | fail: | |
22240 | return NULL; | |
22241 | } | |
22242 | ||
22243 | ||
22244 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22245 | PyObject *resultobj; | |
22246 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22247 | wxDC *arg2 = (wxDC *) 0 ; | |
22248 | PyObject * obj0 = 0 ; | |
22249 | PyObject * obj1 = 0 ; | |
22250 | char *kwnames[] = { | |
22251 | (char *) "self",(char *) "dc", NULL | |
22252 | }; | |
22253 | ||
22254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
22255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
22258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22259 | { | |
22260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22261 | (arg1)->SetDC(arg2); | |
22262 | ||
22263 | wxPyEndAllowThreads(__tstate); | |
22264 | if (PyErr_Occurred()) SWIG_fail; | |
22265 | } | |
22266 | Py_INCREF(Py_None); resultobj = Py_None; | |
22267 | return resultobj; | |
22268 | fail: | |
22269 | return NULL; | |
22270 | } | |
22271 | ||
22272 | ||
22273 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22274 | PyObject *resultobj; | |
22275 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22276 | int arg2 ; | |
22277 | int arg3 ; | |
22278 | PyObject * obj0 = 0 ; | |
22279 | PyObject * obj1 = 0 ; | |
22280 | PyObject * obj2 = 0 ; | |
22281 | char *kwnames[] = { | |
22282 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22283 | }; | |
22284 | ||
22285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22288 | arg2 = (int) SWIG_AsInt(obj1); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | arg3 = (int) SWIG_AsInt(obj2); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | { | |
22293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22294 | (arg1)->SetPageSizePixels(arg2,arg3); | |
22295 | ||
22296 | wxPyEndAllowThreads(__tstate); | |
22297 | if (PyErr_Occurred()) SWIG_fail; | |
22298 | } | |
22299 | Py_INCREF(Py_None); resultobj = Py_None; | |
22300 | return resultobj; | |
22301 | fail: | |
22302 | return NULL; | |
22303 | } | |
22304 | ||
22305 | ||
22306 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22307 | PyObject *resultobj; | |
22308 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22309 | int *arg2 = (int *) 0 ; | |
22310 | int *arg3 = (int *) 0 ; | |
22311 | int temp2 ; | |
22312 | int temp3 ; | |
22313 | PyObject * obj0 = 0 ; | |
22314 | char *kwnames[] = { | |
22315 | (char *) "self", NULL | |
22316 | }; | |
22317 | ||
22318 | arg2 = &temp2; | |
22319 | arg3 = &temp3; | |
22320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
22321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22323 | { | |
22324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22325 | (arg1)->GetPageSizePixels(arg2,arg3); | |
22326 | ||
22327 | wxPyEndAllowThreads(__tstate); | |
22328 | if (PyErr_Occurred()) SWIG_fail; | |
22329 | } | |
22330 | Py_INCREF(Py_None); resultobj = Py_None; | |
22331 | { | |
22332 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22333 | resultobj = t_output_helper(resultobj,o); | |
22334 | } | |
22335 | { | |
22336 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22337 | resultobj = t_output_helper(resultobj,o); | |
22338 | } | |
22339 | return resultobj; | |
22340 | fail: | |
22341 | return NULL; | |
22342 | } | |
22343 | ||
22344 | ||
22345 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22346 | PyObject *resultobj; | |
22347 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22348 | int arg2 ; | |
22349 | int arg3 ; | |
22350 | PyObject * obj0 = 0 ; | |
22351 | PyObject * obj1 = 0 ; | |
22352 | PyObject * obj2 = 0 ; | |
22353 | char *kwnames[] = { | |
22354 | (char *) "self",(char *) "w",(char *) "h", NULL | |
22355 | }; | |
22356 | ||
22357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22360 | arg2 = (int) SWIG_AsInt(obj1); | |
22361 | if (PyErr_Occurred()) SWIG_fail; | |
22362 | arg3 = (int) SWIG_AsInt(obj2); | |
22363 | if (PyErr_Occurred()) SWIG_fail; | |
22364 | { | |
22365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22366 | (arg1)->SetPageSizeMM(arg2,arg3); | |
22367 | ||
22368 | wxPyEndAllowThreads(__tstate); | |
22369 | if (PyErr_Occurred()) SWIG_fail; | |
22370 | } | |
22371 | Py_INCREF(Py_None); resultobj = Py_None; | |
22372 | return resultobj; | |
22373 | fail: | |
22374 | return NULL; | |
22375 | } | |
22376 | ||
22377 | ||
22378 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22379 | PyObject *resultobj; | |
22380 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22381 | int *arg2 = (int *) 0 ; | |
22382 | int *arg3 = (int *) 0 ; | |
22383 | int temp2 ; | |
22384 | int temp3 ; | |
22385 | PyObject * obj0 = 0 ; | |
22386 | char *kwnames[] = { | |
22387 | (char *) "self", NULL | |
22388 | }; | |
22389 | ||
22390 | arg2 = &temp2; | |
22391 | arg3 = &temp3; | |
22392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
22393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22395 | { | |
22396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22397 | (arg1)->GetPageSizeMM(arg2,arg3); | |
22398 | ||
22399 | wxPyEndAllowThreads(__tstate); | |
22400 | if (PyErr_Occurred()) SWIG_fail; | |
22401 | } | |
22402 | Py_INCREF(Py_None); resultobj = Py_None; | |
22403 | { | |
22404 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22405 | resultobj = t_output_helper(resultobj,o); | |
22406 | } | |
22407 | { | |
22408 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22409 | resultobj = t_output_helper(resultobj,o); | |
22410 | } | |
22411 | return resultobj; | |
22412 | fail: | |
22413 | return NULL; | |
22414 | } | |
22415 | ||
22416 | ||
22417 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22418 | PyObject *resultobj; | |
22419 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22420 | int arg2 ; | |
22421 | int arg3 ; | |
22422 | PyObject * obj0 = 0 ; | |
22423 | PyObject * obj1 = 0 ; | |
22424 | PyObject * obj2 = 0 ; | |
22425 | char *kwnames[] = { | |
22426 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22427 | }; | |
22428 | ||
22429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22432 | arg2 = (int) SWIG_AsInt(obj1); | |
22433 | if (PyErr_Occurred()) SWIG_fail; | |
22434 | arg3 = (int) SWIG_AsInt(obj2); | |
22435 | if (PyErr_Occurred()) SWIG_fail; | |
22436 | { | |
22437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22438 | (arg1)->SetPPIScreen(arg2,arg3); | |
22439 | ||
22440 | wxPyEndAllowThreads(__tstate); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
22442 | } | |
22443 | Py_INCREF(Py_None); resultobj = Py_None; | |
22444 | return resultobj; | |
22445 | fail: | |
22446 | return NULL; | |
22447 | } | |
22448 | ||
22449 | ||
22450 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22451 | PyObject *resultobj; | |
22452 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22453 | int *arg2 = (int *) 0 ; | |
22454 | int *arg3 = (int *) 0 ; | |
22455 | int temp2 ; | |
22456 | int temp3 ; | |
22457 | PyObject * obj0 = 0 ; | |
22458 | char *kwnames[] = { | |
22459 | (char *) "self", NULL | |
22460 | }; | |
22461 | ||
22462 | arg2 = &temp2; | |
22463 | arg3 = &temp3; | |
22464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
22465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22467 | { | |
22468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22469 | (arg1)->GetPPIScreen(arg2,arg3); | |
22470 | ||
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | Py_INCREF(Py_None); resultobj = Py_None; | |
22475 | { | |
22476 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22477 | resultobj = t_output_helper(resultobj,o); | |
22478 | } | |
22479 | { | |
22480 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22481 | resultobj = t_output_helper(resultobj,o); | |
22482 | } | |
22483 | return resultobj; | |
22484 | fail: | |
22485 | return NULL; | |
22486 | } | |
22487 | ||
22488 | ||
22489 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22490 | PyObject *resultobj; | |
22491 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22492 | int arg2 ; | |
22493 | int arg3 ; | |
22494 | PyObject * obj0 = 0 ; | |
22495 | PyObject * obj1 = 0 ; | |
22496 | PyObject * obj2 = 0 ; | |
22497 | char *kwnames[] = { | |
22498 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22499 | }; | |
22500 | ||
22501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22504 | arg2 = (int) SWIG_AsInt(obj1); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | arg3 = (int) SWIG_AsInt(obj2); | |
22507 | if (PyErr_Occurred()) SWIG_fail; | |
22508 | { | |
22509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22510 | (arg1)->SetPPIPrinter(arg2,arg3); | |
22511 | ||
22512 | wxPyEndAllowThreads(__tstate); | |
22513 | if (PyErr_Occurred()) SWIG_fail; | |
22514 | } | |
22515 | Py_INCREF(Py_None); resultobj = Py_None; | |
22516 | return resultobj; | |
22517 | fail: | |
22518 | return NULL; | |
22519 | } | |
22520 | ||
22521 | ||
22522 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22523 | PyObject *resultobj; | |
22524 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22525 | int *arg2 = (int *) 0 ; | |
22526 | int *arg3 = (int *) 0 ; | |
22527 | int temp2 ; | |
22528 | int temp3 ; | |
22529 | PyObject * obj0 = 0 ; | |
22530 | char *kwnames[] = { | |
22531 | (char *) "self", NULL | |
22532 | }; | |
22533 | ||
22534 | arg2 = &temp2; | |
22535 | arg3 = &temp3; | |
22536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",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 | (arg1)->GetPPIPrinter(arg2,arg3); | |
22542 | ||
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | Py_INCREF(Py_None); resultobj = Py_None; | |
22547 | { | |
22548 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22549 | resultobj = t_output_helper(resultobj,o); | |
22550 | } | |
22551 | { | |
22552 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22553 | resultobj = t_output_helper(resultobj,o); | |
22554 | } | |
22555 | return resultobj; | |
22556 | fail: | |
22557 | return NULL; | |
22558 | } | |
22559 | ||
22560 | ||
22561 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22562 | PyObject *resultobj; | |
22563 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22564 | bool result; | |
22565 | PyObject * obj0 = 0 ; | |
22566 | char *kwnames[] = { | |
22567 | (char *) "self", NULL | |
22568 | }; | |
22569 | ||
22570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
22571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22573 | { | |
22574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22575 | result = (bool)(arg1)->IsPreview(); | |
22576 | ||
22577 | wxPyEndAllowThreads(__tstate); | |
22578 | if (PyErr_Occurred()) SWIG_fail; | |
22579 | } | |
22580 | { | |
22581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22582 | } | |
22583 | return resultobj; | |
22584 | fail: | |
22585 | return NULL; | |
22586 | } | |
22587 | ||
22588 | ||
22589 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22590 | PyObject *resultobj; | |
22591 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22592 | bool arg2 ; | |
22593 | PyObject * obj0 = 0 ; | |
22594 | PyObject * obj1 = 0 ; | |
22595 | char *kwnames[] = { | |
22596 | (char *) "self",(char *) "p", NULL | |
22597 | }; | |
22598 | ||
22599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
22600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22602 | arg2 = (bool) SWIG_AsBool(obj1); | |
22603 | if (PyErr_Occurred()) SWIG_fail; | |
22604 | { | |
22605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22606 | (arg1)->SetIsPreview(arg2); | |
22607 | ||
22608 | wxPyEndAllowThreads(__tstate); | |
22609 | if (PyErr_Occurred()) SWIG_fail; | |
22610 | } | |
22611 | Py_INCREF(Py_None); resultobj = Py_None; | |
22612 | return resultobj; | |
22613 | fail: | |
22614 | return NULL; | |
22615 | } | |
22616 | ||
22617 | ||
22618 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22619 | PyObject *resultobj; | |
22620 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22621 | int arg2 ; | |
22622 | int arg3 ; | |
22623 | bool result; | |
22624 | PyObject * obj0 = 0 ; | |
22625 | PyObject * obj1 = 0 ; | |
22626 | PyObject * obj2 = 0 ; | |
22627 | char *kwnames[] = { | |
22628 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
22629 | }; | |
22630 | ||
22631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22634 | arg2 = (int) SWIG_AsInt(obj1); | |
22635 | if (PyErr_Occurred()) SWIG_fail; | |
22636 | arg3 = (int) SWIG_AsInt(obj2); | |
22637 | if (PyErr_Occurred()) SWIG_fail; | |
22638 | { | |
22639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22640 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
22641 | ||
22642 | wxPyEndAllowThreads(__tstate); | |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
22644 | } | |
22645 | { | |
22646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22647 | } | |
22648 | return resultobj; | |
22649 | fail: | |
22650 | return NULL; | |
22651 | } | |
22652 | ||
22653 | ||
22654 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22655 | PyObject *resultobj; | |
22656 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22657 | PyObject * obj0 = 0 ; | |
22658 | char *kwnames[] = { | |
22659 | (char *) "self", NULL | |
22660 | }; | |
22661 | ||
22662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
22663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22665 | { | |
22666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22667 | (arg1)->base_OnEndDocument(); | |
22668 | ||
22669 | wxPyEndAllowThreads(__tstate); | |
22670 | if (PyErr_Occurred()) SWIG_fail; | |
22671 | } | |
22672 | Py_INCREF(Py_None); resultobj = Py_None; | |
22673 | return resultobj; | |
22674 | fail: | |
22675 | return NULL; | |
22676 | } | |
22677 | ||
22678 | ||
22679 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22680 | PyObject *resultobj; | |
22681 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22682 | PyObject * obj0 = 0 ; | |
22683 | char *kwnames[] = { | |
22684 | (char *) "self", NULL | |
22685 | }; | |
22686 | ||
22687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
22688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22690 | { | |
22691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22692 | (arg1)->base_OnBeginPrinting(); | |
22693 | ||
22694 | wxPyEndAllowThreads(__tstate); | |
22695 | if (PyErr_Occurred()) SWIG_fail; | |
22696 | } | |
22697 | Py_INCREF(Py_None); resultobj = Py_None; | |
22698 | return resultobj; | |
22699 | fail: | |
22700 | return NULL; | |
22701 | } | |
22702 | ||
22703 | ||
22704 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22705 | PyObject *resultobj; | |
22706 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22707 | PyObject * obj0 = 0 ; | |
22708 | char *kwnames[] = { | |
22709 | (char *) "self", NULL | |
22710 | }; | |
22711 | ||
22712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
22713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22715 | { | |
22716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22717 | (arg1)->base_OnEndPrinting(); | |
22718 | ||
22719 | wxPyEndAllowThreads(__tstate); | |
22720 | if (PyErr_Occurred()) SWIG_fail; | |
22721 | } | |
22722 | Py_INCREF(Py_None); resultobj = Py_None; | |
22723 | return resultobj; | |
22724 | fail: | |
22725 | return NULL; | |
22726 | } | |
22727 | ||
22728 | ||
22729 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22730 | PyObject *resultobj; | |
22731 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22732 | PyObject * obj0 = 0 ; | |
22733 | char *kwnames[] = { | |
22734 | (char *) "self", NULL | |
22735 | }; | |
22736 | ||
22737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
22738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22740 | { | |
22741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22742 | (arg1)->base_OnPreparePrinting(); | |
22743 | ||
22744 | wxPyEndAllowThreads(__tstate); | |
22745 | if (PyErr_Occurred()) SWIG_fail; | |
22746 | } | |
22747 | Py_INCREF(Py_None); resultobj = Py_None; | |
22748 | return resultobj; | |
22749 | fail: | |
22750 | return NULL; | |
22751 | } | |
22752 | ||
22753 | ||
22754 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22755 | PyObject *resultobj; | |
22756 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22757 | int arg2 ; | |
22758 | bool result; | |
22759 | PyObject * obj0 = 0 ; | |
22760 | PyObject * obj1 = 0 ; | |
22761 | char *kwnames[] = { | |
22762 | (char *) "self",(char *) "page", NULL | |
22763 | }; | |
22764 | ||
22765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; | |
22766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22768 | arg2 = (int) SWIG_AsInt(obj1); | |
22769 | if (PyErr_Occurred()) SWIG_fail; | |
22770 | { | |
22771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22772 | result = (bool)(arg1)->base_HasPage(arg2); | |
22773 | ||
22774 | wxPyEndAllowThreads(__tstate); | |
22775 | if (PyErr_Occurred()) SWIG_fail; | |
22776 | } | |
22777 | { | |
22778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22779 | } | |
22780 | return resultobj; | |
22781 | fail: | |
22782 | return NULL; | |
22783 | } | |
22784 | ||
22785 | ||
22786 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22787 | PyObject *resultobj; | |
22788 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22789 | int *arg2 = (int *) 0 ; | |
22790 | int *arg3 = (int *) 0 ; | |
22791 | int *arg4 = (int *) 0 ; | |
22792 | int *arg5 = (int *) 0 ; | |
22793 | int temp2 ; | |
22794 | int temp3 ; | |
22795 | int temp4 ; | |
22796 | int temp5 ; | |
22797 | PyObject * obj0 = 0 ; | |
22798 | char *kwnames[] = { | |
22799 | (char *) "self", NULL | |
22800 | }; | |
22801 | ||
22802 | arg2 = &temp2; | |
22803 | arg3 = &temp3; | |
22804 | arg4 = &temp4; | |
22805 | arg5 = &temp5; | |
22806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
22807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
22808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22809 | { | |
22810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22811 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
22812 | ||
22813 | wxPyEndAllowThreads(__tstate); | |
22814 | if (PyErr_Occurred()) SWIG_fail; | |
22815 | } | |
22816 | Py_INCREF(Py_None); resultobj = Py_None; | |
22817 | { | |
22818 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22819 | resultobj = t_output_helper(resultobj,o); | |
22820 | } | |
22821 | { | |
22822 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22823 | resultobj = t_output_helper(resultobj,o); | |
22824 | } | |
22825 | { | |
22826 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
22827 | resultobj = t_output_helper(resultobj,o); | |
22828 | } | |
22829 | { | |
22830 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
22831 | resultobj = t_output_helper(resultobj,o); | |
22832 | } | |
22833 | return resultobj; | |
22834 | fail: | |
22835 | return NULL; | |
22836 | } | |
22837 | ||
22838 | ||
22839 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { | |
22840 | PyObject *obj; | |
22841 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22842 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
22843 | Py_INCREF(obj); | |
22844 | return Py_BuildValue((char *)""); | |
22845 | } | |
22846 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22847 | PyObject *resultobj; | |
22848 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22849 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22850 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22851 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22852 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22853 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22854 | long arg5 = (long) 0 ; | |
22855 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
22856 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22857 | wxPreviewCanvas *result; | |
22858 | wxPoint temp3 ; | |
22859 | wxSize temp4 ; | |
22860 | bool temp6 = False ; | |
22861 | PyObject * obj0 = 0 ; | |
22862 | PyObject * obj1 = 0 ; | |
22863 | PyObject * obj2 = 0 ; | |
22864 | PyObject * obj3 = 0 ; | |
22865 | PyObject * obj4 = 0 ; | |
22866 | PyObject * obj5 = 0 ; | |
22867 | char *kwnames[] = { | |
22868 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22869 | }; | |
22870 | ||
22871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22876 | if (obj2) { | |
22877 | { | |
22878 | arg3 = &temp3; | |
22879 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22880 | } | |
22881 | } | |
22882 | if (obj3) { | |
22883 | { | |
22884 | arg4 = &temp4; | |
22885 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22886 | } | |
22887 | } | |
22888 | if (obj4) { | |
22889 | arg5 = (long) SWIG_AsLong(obj4); | |
22890 | if (PyErr_Occurred()) SWIG_fail; | |
22891 | } | |
22892 | if (obj5) { | |
22893 | { | |
22894 | arg6 = wxString_in_helper(obj5); | |
22895 | if (arg6 == NULL) SWIG_fail; | |
22896 | temp6 = True; | |
22897 | } | |
22898 | } | |
22899 | { | |
0439c23b | 22900 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22902 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22903 | ||
22904 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22905 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22906 | } |
22907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 1); | |
22908 | { | |
22909 | if (temp6) | |
22910 | delete arg6; | |
22911 | } | |
22912 | return resultobj; | |
22913 | fail: | |
22914 | { | |
22915 | if (temp6) | |
22916 | delete arg6; | |
22917 | } | |
22918 | return NULL; | |
22919 | } | |
22920 | ||
22921 | ||
22922 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
22923 | PyObject *obj; | |
22924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22925 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
22926 | Py_INCREF(obj); | |
22927 | return Py_BuildValue((char *)""); | |
22928 | } | |
22929 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22930 | PyObject *resultobj; | |
22931 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22932 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22933 | wxString *arg3 = 0 ; | |
22934 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22935 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22936 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22937 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22938 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22939 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22940 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22941 | wxPreviewFrame *result; | |
22942 | bool temp3 = False ; | |
22943 | wxPoint temp4 ; | |
22944 | wxSize temp5 ; | |
22945 | bool temp7 = False ; | |
22946 | PyObject * obj0 = 0 ; | |
22947 | PyObject * obj1 = 0 ; | |
22948 | PyObject * obj2 = 0 ; | |
22949 | PyObject * obj3 = 0 ; | |
22950 | PyObject * obj4 = 0 ; | |
22951 | PyObject * obj5 = 0 ; | |
22952 | PyObject * obj6 = 0 ; | |
22953 | char *kwnames[] = { | |
22954 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22955 | }; | |
22956 | ||
22957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
22959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22960 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22962 | { | |
22963 | arg3 = wxString_in_helper(obj2); | |
22964 | if (arg3 == NULL) SWIG_fail; | |
22965 | temp3 = True; | |
22966 | } | |
22967 | if (obj3) { | |
22968 | { | |
22969 | arg4 = &temp4; | |
22970 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22971 | } | |
22972 | } | |
22973 | if (obj4) { | |
22974 | { | |
22975 | arg5 = &temp5; | |
22976 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22977 | } | |
22978 | } | |
22979 | if (obj5) { | |
22980 | arg6 = (long) SWIG_AsLong(obj5); | |
22981 | if (PyErr_Occurred()) SWIG_fail; | |
22982 | } | |
22983 | if (obj6) { | |
22984 | { | |
22985 | arg7 = wxString_in_helper(obj6); | |
22986 | if (arg7 == NULL) SWIG_fail; | |
22987 | temp7 = True; | |
22988 | } | |
22989 | } | |
22990 | { | |
0439c23b | 22991 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22993 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22994 | ||
22995 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22996 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
22997 | } |
22998 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewFrame, 1); | |
22999 | { | |
23000 | if (temp3) | |
23001 | delete arg3; | |
23002 | } | |
23003 | { | |
23004 | if (temp7) | |
23005 | delete arg7; | |
23006 | } | |
23007 | return resultobj; | |
23008 | fail: | |
23009 | { | |
23010 | if (temp3) | |
23011 | delete arg3; | |
23012 | } | |
23013 | { | |
23014 | if (temp7) | |
23015 | delete arg7; | |
23016 | } | |
23017 | return NULL; | |
23018 | } | |
23019 | ||
23020 | ||
23021 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23022 | PyObject *resultobj; | |
23023 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23024 | PyObject * obj0 = 0 ; | |
23025 | char *kwnames[] = { | |
23026 | (char *) "self", NULL | |
23027 | }; | |
23028 | ||
23029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
23030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23032 | { | |
23033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23034 | (arg1)->Initialize(); | |
23035 | ||
23036 | wxPyEndAllowThreads(__tstate); | |
23037 | if (PyErr_Occurred()) SWIG_fail; | |
23038 | } | |
23039 | Py_INCREF(Py_None); resultobj = Py_None; | |
23040 | return resultobj; | |
23041 | fail: | |
23042 | return NULL; | |
23043 | } | |
23044 | ||
23045 | ||
23046 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23047 | PyObject *resultobj; | |
23048 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23049 | PyObject * obj0 = 0 ; | |
23050 | char *kwnames[] = { | |
23051 | (char *) "self", NULL | |
23052 | }; | |
23053 | ||
23054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
23055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23057 | { | |
23058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23059 | (arg1)->CreateControlBar(); | |
23060 | ||
23061 | wxPyEndAllowThreads(__tstate); | |
23062 | if (PyErr_Occurred()) SWIG_fail; | |
23063 | } | |
23064 | Py_INCREF(Py_None); resultobj = Py_None; | |
23065 | return resultobj; | |
23066 | fail: | |
23067 | return NULL; | |
23068 | } | |
23069 | ||
23070 | ||
23071 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23072 | PyObject *resultobj; | |
23073 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23074 | PyObject * obj0 = 0 ; | |
23075 | char *kwnames[] = { | |
23076 | (char *) "self", NULL | |
23077 | }; | |
23078 | ||
23079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
23080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23082 | { | |
23083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23084 | (arg1)->CreateCanvas(); | |
23085 | ||
23086 | wxPyEndAllowThreads(__tstate); | |
23087 | if (PyErr_Occurred()) SWIG_fail; | |
23088 | } | |
23089 | Py_INCREF(Py_None); resultobj = Py_None; | |
23090 | return resultobj; | |
23091 | fail: | |
23092 | return NULL; | |
23093 | } | |
23094 | ||
23095 | ||
23096 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23097 | PyObject *resultobj; | |
23098 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
23099 | wxPreviewControlBar *result; | |
23100 | PyObject * obj0 = 0 ; | |
23101 | char *kwnames[] = { | |
23102 | (char *) "self", NULL | |
23103 | }; | |
23104 | ||
23105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
23106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewFrame, | |
23107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23108 | { | |
23109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23110 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
23111 | ||
23112 | wxPyEndAllowThreads(__tstate); | |
23113 | if (PyErr_Occurred()) SWIG_fail; | |
23114 | } | |
23115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 0); | |
23116 | return resultobj; | |
23117 | fail: | |
23118 | return NULL; | |
23119 | } | |
23120 | ||
23121 | ||
23122 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
23123 | PyObject *obj; | |
23124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23125 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
23126 | Py_INCREF(obj); | |
23127 | return Py_BuildValue((char *)""); | |
23128 | } | |
23129 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23130 | PyObject *resultobj; | |
23131 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23132 | long arg2 ; | |
23133 | wxWindow *arg3 = (wxWindow *) 0 ; | |
23134 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23135 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23136 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23137 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23138 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
23139 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
23140 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23141 | wxPreviewControlBar *result; | |
23142 | wxPoint temp4 ; | |
23143 | wxSize temp5 ; | |
23144 | bool temp7 = False ; | |
23145 | PyObject * obj0 = 0 ; | |
23146 | PyObject * obj1 = 0 ; | |
23147 | PyObject * obj2 = 0 ; | |
23148 | PyObject * obj3 = 0 ; | |
23149 | PyObject * obj4 = 0 ; | |
23150 | PyObject * obj5 = 0 ; | |
23151 | PyObject * obj6 = 0 ; | |
23152 | char *kwnames[] = { | |
23153 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
23154 | }; | |
23155 | ||
23156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23159 | arg2 = (long) SWIG_AsLong(obj1); | |
23160 | if (PyErr_Occurred()) SWIG_fail; | |
23161 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
23162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23163 | if (obj3) { | |
23164 | { | |
23165 | arg4 = &temp4; | |
23166 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23167 | } | |
23168 | } | |
23169 | if (obj4) { | |
23170 | { | |
23171 | arg5 = &temp5; | |
23172 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23173 | } | |
23174 | } | |
23175 | if (obj5) { | |
23176 | arg6 = (long) SWIG_AsLong(obj5); | |
23177 | if (PyErr_Occurred()) SWIG_fail; | |
23178 | } | |
23179 | if (obj6) { | |
23180 | { | |
23181 | arg7 = wxString_in_helper(obj6); | |
23182 | if (arg7 == NULL) SWIG_fail; | |
23183 | temp7 = True; | |
23184 | } | |
23185 | } | |
23186 | { | |
0439c23b | 23187 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23189 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
23190 | ||
23191 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23192 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23193 | } |
23194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewControlBar, 1); | |
23195 | { | |
23196 | if (temp7) | |
23197 | delete arg7; | |
23198 | } | |
23199 | return resultobj; | |
23200 | fail: | |
23201 | { | |
23202 | if (temp7) | |
23203 | delete arg7; | |
23204 | } | |
23205 | return NULL; | |
23206 | } | |
23207 | ||
23208 | ||
23209 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23210 | PyObject *resultobj; | |
23211 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23212 | int result; | |
23213 | PyObject * obj0 = 0 ; | |
23214 | char *kwnames[] = { | |
23215 | (char *) "self", NULL | |
23216 | }; | |
23217 | ||
23218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
23219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23221 | { | |
23222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23223 | result = (int)(arg1)->GetZoomControl(); | |
23224 | ||
23225 | wxPyEndAllowThreads(__tstate); | |
23226 | if (PyErr_Occurred()) SWIG_fail; | |
23227 | } | |
23228 | resultobj = SWIG_FromInt((int)result); | |
23229 | return resultobj; | |
23230 | fail: | |
23231 | return NULL; | |
23232 | } | |
23233 | ||
23234 | ||
23235 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23236 | PyObject *resultobj; | |
23237 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23238 | int arg2 ; | |
23239 | PyObject * obj0 = 0 ; | |
23240 | PyObject * obj1 = 0 ; | |
23241 | char *kwnames[] = { | |
23242 | (char *) "self",(char *) "zoom", NULL | |
23243 | }; | |
23244 | ||
23245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
23246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23248 | arg2 = (int) SWIG_AsInt(obj1); | |
23249 | if (PyErr_Occurred()) SWIG_fail; | |
23250 | { | |
23251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23252 | (arg1)->SetZoomControl(arg2); | |
23253 | ||
23254 | wxPyEndAllowThreads(__tstate); | |
23255 | if (PyErr_Occurred()) SWIG_fail; | |
23256 | } | |
23257 | Py_INCREF(Py_None); resultobj = Py_None; | |
23258 | return resultobj; | |
23259 | fail: | |
23260 | return NULL; | |
23261 | } | |
23262 | ||
23263 | ||
23264 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23265 | PyObject *resultobj; | |
23266 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23267 | wxPrintPreview *result; | |
23268 | PyObject * obj0 = 0 ; | |
23269 | char *kwnames[] = { | |
23270 | (char *) "self", NULL | |
23271 | }; | |
23272 | ||
23273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
23274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23276 | { | |
23277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23278 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
23279 | ||
23280 | wxPyEndAllowThreads(__tstate); | |
23281 | if (PyErr_Occurred()) SWIG_fail; | |
23282 | } | |
23283 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 0); | |
23284 | return resultobj; | |
23285 | fail: | |
23286 | return NULL; | |
23287 | } | |
23288 | ||
23289 | ||
23290 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23291 | PyObject *resultobj; | |
23292 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23293 | PyObject * obj0 = 0 ; | |
23294 | char *kwnames[] = { | |
23295 | (char *) "self", NULL | |
23296 | }; | |
23297 | ||
23298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
23299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23301 | { | |
23302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23303 | (arg1)->OnNext(); | |
23304 | ||
23305 | wxPyEndAllowThreads(__tstate); | |
23306 | if (PyErr_Occurred()) SWIG_fail; | |
23307 | } | |
23308 | Py_INCREF(Py_None); resultobj = Py_None; | |
23309 | return resultobj; | |
23310 | fail: | |
23311 | return NULL; | |
23312 | } | |
23313 | ||
23314 | ||
23315 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23316 | PyObject *resultobj; | |
23317 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23318 | PyObject * obj0 = 0 ; | |
23319 | char *kwnames[] = { | |
23320 | (char *) "self", NULL | |
23321 | }; | |
23322 | ||
23323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
23324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23326 | { | |
23327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23328 | (arg1)->OnPrevious(); | |
23329 | ||
23330 | wxPyEndAllowThreads(__tstate); | |
23331 | if (PyErr_Occurred()) SWIG_fail; | |
23332 | } | |
23333 | Py_INCREF(Py_None); resultobj = Py_None; | |
23334 | return resultobj; | |
23335 | fail: | |
23336 | return NULL; | |
23337 | } | |
23338 | ||
23339 | ||
23340 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23341 | PyObject *resultobj; | |
23342 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23343 | PyObject * obj0 = 0 ; | |
23344 | char *kwnames[] = { | |
23345 | (char *) "self", NULL | |
23346 | }; | |
23347 | ||
23348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
23349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23351 | { | |
23352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23353 | (arg1)->OnFirst(); | |
23354 | ||
23355 | wxPyEndAllowThreads(__tstate); | |
23356 | if (PyErr_Occurred()) SWIG_fail; | |
23357 | } | |
23358 | Py_INCREF(Py_None); resultobj = Py_None; | |
23359 | return resultobj; | |
23360 | fail: | |
23361 | return NULL; | |
23362 | } | |
23363 | ||
23364 | ||
23365 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23366 | PyObject *resultobj; | |
23367 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23368 | PyObject * obj0 = 0 ; | |
23369 | char *kwnames[] = { | |
23370 | (char *) "self", NULL | |
23371 | }; | |
23372 | ||
23373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
23374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23376 | { | |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23378 | (arg1)->OnLast(); | |
23379 | ||
23380 | wxPyEndAllowThreads(__tstate); | |
23381 | if (PyErr_Occurred()) SWIG_fail; | |
23382 | } | |
23383 | Py_INCREF(Py_None); resultobj = Py_None; | |
23384 | return resultobj; | |
23385 | fail: | |
23386 | return NULL; | |
23387 | } | |
23388 | ||
23389 | ||
23390 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23391 | PyObject *resultobj; | |
23392 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
23393 | PyObject * obj0 = 0 ; | |
23394 | char *kwnames[] = { | |
23395 | (char *) "self", NULL | |
23396 | }; | |
23397 | ||
23398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
23399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPreviewControlBar, | |
23400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23401 | { | |
23402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23403 | (arg1)->OnGoto(); | |
23404 | ||
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | Py_INCREF(Py_None); resultobj = Py_None; | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
23412 | } | |
23413 | ||
23414 | ||
23415 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
23416 | PyObject *obj; | |
23417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23418 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
23419 | Py_INCREF(obj); | |
23420 | return Py_BuildValue((char *)""); | |
23421 | } | |
23422 | static PyObject *_wrap_new_PrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
23423 | PyObject *resultobj; | |
23424 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23425 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23426 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
23427 | wxPrintPreview *result; | |
23428 | PyObject * obj0 = 0 ; | |
23429 | PyObject * obj1 = 0 ; | |
23430 | PyObject * obj2 = 0 ; | |
23431 | ||
23432 | if(!PyArg_ParseTuple(args,(char *)"OO|O: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 (obj2) { | |
23438 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
23439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23440 | } | |
23441 | { | |
0439c23b | 23442 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23444 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
23445 | ||
23446 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23447 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23448 | } |
23449 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
23450 | return resultobj; | |
23451 | fail: | |
23452 | return NULL; | |
23453 | } | |
23454 | ||
23455 | ||
23456 | static PyObject *_wrap_new_PrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
23457 | PyObject *resultobj; | |
23458 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
23459 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23460 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
23461 | wxPrintPreview *result; | |
23462 | PyObject * obj0 = 0 ; | |
23463 | PyObject * obj1 = 0 ; | |
23464 | PyObject * obj2 = 0 ; | |
23465 | ||
23466 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
23467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
23468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23471 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
23472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23473 | { | |
0439c23b | 23474 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23476 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
23477 | ||
23478 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23479 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23480 | } |
23481 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintPreview, 1); | |
23482 | return resultobj; | |
23483 | fail: | |
23484 | return NULL; | |
23485 | } | |
23486 | ||
23487 | ||
23488 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args) { | |
23489 | int argc; | |
23490 | PyObject *argv[4]; | |
23491 | int ii; | |
23492 | ||
23493 | argc = PyObject_Length(args); | |
23494 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
23495 | argv[ii] = PyTuple_GetItem(args,ii); | |
23496 | } | |
23497 | if ((argc >= 2) && (argc <= 3)) { | |
23498 | int _v; | |
23499 | { | |
23500 | void *ptr; | |
23501 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23502 | _v = 0; | |
23503 | PyErr_Clear(); | |
23504 | } else { | |
23505 | _v = 1; | |
23506 | } | |
23507 | } | |
23508 | if (_v) { | |
23509 | { | |
23510 | void *ptr; | |
23511 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23512 | _v = 0; | |
23513 | PyErr_Clear(); | |
23514 | } else { | |
23515 | _v = 1; | |
23516 | } | |
23517 | } | |
23518 | if (_v) { | |
23519 | if (argc <= 2) { | |
23520 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23521 | } | |
23522 | { | |
23523 | void *ptr; | |
23524 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
23525 | _v = 0; | |
23526 | PyErr_Clear(); | |
23527 | } else { | |
23528 | _v = 1; | |
23529 | } | |
23530 | } | |
23531 | if (_v) { | |
23532 | return _wrap_new_PrintPreview__SWIG_0(self,args); | |
23533 | } | |
23534 | } | |
23535 | } | |
23536 | } | |
23537 | if (argc == 3) { | |
23538 | int _v; | |
23539 | { | |
23540 | void *ptr; | |
23541 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23542 | _v = 0; | |
23543 | PyErr_Clear(); | |
23544 | } else { | |
23545 | _v = 1; | |
23546 | } | |
23547 | } | |
23548 | if (_v) { | |
23549 | { | |
23550 | void *ptr; | |
23551 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
23552 | _v = 0; | |
23553 | PyErr_Clear(); | |
23554 | } else { | |
23555 | _v = 1; | |
23556 | } | |
23557 | } | |
23558 | if (_v) { | |
23559 | { | |
23560 | void *ptr; | |
23561 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
23562 | _v = 0; | |
23563 | PyErr_Clear(); | |
23564 | } else { | |
23565 | _v = 1; | |
23566 | } | |
23567 | } | |
23568 | if (_v) { | |
23569 | return _wrap_new_PrintPreview__SWIG_1(self,args); | |
23570 | } | |
23571 | } | |
23572 | } | |
23573 | } | |
23574 | ||
23575 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PrintPreview'"); | |
23576 | return NULL; | |
23577 | } | |
23578 | ||
23579 | ||
23580 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23581 | PyObject *resultobj; | |
23582 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23583 | int arg2 ; | |
23584 | bool result; | |
23585 | PyObject * obj0 = 0 ; | |
23586 | PyObject * obj1 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "self",(char *) "pageNum", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
23592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23594 | arg2 = (int) SWIG_AsInt(obj1); | |
23595 | if (PyErr_Occurred()) SWIG_fail; | |
23596 | { | |
23597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23598 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
23599 | ||
23600 | wxPyEndAllowThreads(__tstate); | |
23601 | if (PyErr_Occurred()) SWIG_fail; | |
23602 | } | |
23603 | { | |
23604 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23605 | } | |
23606 | return resultobj; | |
23607 | fail: | |
23608 | return NULL; | |
23609 | } | |
23610 | ||
23611 | ||
23612 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23613 | PyObject *resultobj; | |
23614 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23615 | int result; | |
23616 | PyObject * obj0 = 0 ; | |
23617 | char *kwnames[] = { | |
23618 | (char *) "self", NULL | |
23619 | }; | |
23620 | ||
23621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
23622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23624 | { | |
23625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23626 | result = (int)(arg1)->GetCurrentPage(); | |
23627 | ||
23628 | wxPyEndAllowThreads(__tstate); | |
23629 | if (PyErr_Occurred()) SWIG_fail; | |
23630 | } | |
23631 | resultobj = SWIG_FromInt((int)result); | |
23632 | return resultobj; | |
23633 | fail: | |
23634 | return NULL; | |
23635 | } | |
23636 | ||
23637 | ||
23638 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23639 | PyObject *resultobj; | |
23640 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23641 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
23642 | PyObject * obj0 = 0 ; | |
23643 | PyObject * obj1 = 0 ; | |
23644 | char *kwnames[] = { | |
23645 | (char *) "self",(char *) "printout", NULL | |
23646 | }; | |
23647 | ||
23648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
23649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
23652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23653 | { | |
23654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23655 | (arg1)->SetPrintout(arg2); | |
23656 | ||
23657 | wxPyEndAllowThreads(__tstate); | |
23658 | if (PyErr_Occurred()) SWIG_fail; | |
23659 | } | |
23660 | Py_INCREF(Py_None); resultobj = Py_None; | |
23661 | return resultobj; | |
23662 | fail: | |
23663 | return NULL; | |
23664 | } | |
23665 | ||
23666 | ||
23667 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23668 | PyObject *resultobj; | |
23669 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23670 | wxPyPrintout *result; | |
23671 | PyObject * obj0 = 0 ; | |
23672 | char *kwnames[] = { | |
23673 | (char *) "self", NULL | |
23674 | }; | |
23675 | ||
23676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
23677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23679 | { | |
23680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23681 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
23682 | ||
23683 | wxPyEndAllowThreads(__tstate); | |
23684 | if (PyErr_Occurred()) SWIG_fail; | |
23685 | } | |
23686 | { | |
412d302d | 23687 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23688 | } |
23689 | return resultobj; | |
23690 | fail: | |
23691 | return NULL; | |
23692 | } | |
23693 | ||
23694 | ||
23695 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23696 | PyObject *resultobj; | |
23697 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23698 | wxPyPrintout *result; | |
23699 | PyObject * obj0 = 0 ; | |
23700 | char *kwnames[] = { | |
23701 | (char *) "self", NULL | |
23702 | }; | |
23703 | ||
23704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
23705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23707 | { | |
23708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23709 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
23710 | ||
23711 | wxPyEndAllowThreads(__tstate); | |
23712 | if (PyErr_Occurred()) SWIG_fail; | |
23713 | } | |
23714 | { | |
412d302d | 23715 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23716 | } |
23717 | return resultobj; | |
23718 | fail: | |
23719 | return NULL; | |
23720 | } | |
23721 | ||
23722 | ||
23723 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23724 | PyObject *resultobj; | |
23725 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23726 | wxFrame *arg2 = (wxFrame *) 0 ; | |
23727 | PyObject * obj0 = 0 ; | |
23728 | PyObject * obj1 = 0 ; | |
23729 | char *kwnames[] = { | |
23730 | (char *) "self",(char *) "frame", NULL | |
23731 | }; | |
23732 | ||
23733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
23734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23736 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
23737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23738 | { | |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | (arg1)->SetFrame(arg2); | |
23741 | ||
23742 | wxPyEndAllowThreads(__tstate); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | } | |
23745 | Py_INCREF(Py_None); resultobj = Py_None; | |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
23752 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23753 | PyObject *resultobj; | |
23754 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23755 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23756 | PyObject * obj0 = 0 ; | |
23757 | PyObject * obj1 = 0 ; | |
23758 | char *kwnames[] = { | |
23759 | (char *) "self",(char *) "canvas", NULL | |
23760 | }; | |
23761 | ||
23762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
23763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23767 | { | |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | (arg1)->SetCanvas(arg2); | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
23774 | Py_INCREF(Py_None); resultobj = Py_None; | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23784 | wxFrame *result; | |
23785 | PyObject * obj0 = 0 ; | |
23786 | char *kwnames[] = { | |
23787 | (char *) "self", NULL | |
23788 | }; | |
23789 | ||
23790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
23791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23793 | { | |
23794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23795 | result = (wxFrame *)(arg1)->GetFrame(); | |
23796 | ||
23797 | wxPyEndAllowThreads(__tstate); | |
23798 | if (PyErr_Occurred()) SWIG_fail; | |
23799 | } | |
23800 | { | |
412d302d | 23801 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23802 | } |
23803 | return resultobj; | |
23804 | fail: | |
23805 | return NULL; | |
23806 | } | |
23807 | ||
23808 | ||
23809 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23810 | PyObject *resultobj; | |
23811 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23812 | wxPreviewCanvas *result; | |
23813 | PyObject * obj0 = 0 ; | |
23814 | char *kwnames[] = { | |
23815 | (char *) "self", NULL | |
23816 | }; | |
23817 | ||
23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
23819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23821 | { | |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
23824 | ||
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
23828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPreviewCanvas, 0); | |
23829 | return resultobj; | |
23830 | fail: | |
23831 | return NULL; | |
23832 | } | |
23833 | ||
23834 | ||
23835 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23836 | PyObject *resultobj; | |
23837 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23838 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23839 | wxDC *arg3 = 0 ; | |
23840 | bool result; | |
23841 | PyObject * obj0 = 0 ; | |
23842 | PyObject * obj1 = 0 ; | |
23843 | PyObject * obj2 = 0 ; | |
23844 | char *kwnames[] = { | |
23845 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23846 | }; | |
23847 | ||
23848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23853 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23854 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23855 | SWIG_fail; | |
23856 | if (arg3 == NULL) { | |
23857 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23858 | SWIG_fail; | |
23859 | } | |
23860 | { | |
23861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23862 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
23863 | ||
23864 | wxPyEndAllowThreads(__tstate); | |
23865 | if (PyErr_Occurred()) SWIG_fail; | |
23866 | } | |
23867 | { | |
23868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23869 | } | |
23870 | return resultobj; | |
23871 | fail: | |
23872 | return NULL; | |
23873 | } | |
23874 | ||
23875 | ||
23876 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23877 | PyObject *resultobj; | |
23878 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23879 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23880 | wxDC *arg3 = 0 ; | |
23881 | bool result; | |
23882 | PyObject * obj0 = 0 ; | |
23883 | PyObject * obj1 = 0 ; | |
23884 | PyObject * obj2 = 0 ; | |
23885 | char *kwnames[] = { | |
23886 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
23887 | }; | |
23888 | ||
23889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23892 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23894 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
23895 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23896 | SWIG_fail; | |
23897 | if (arg3 == NULL) { | |
23898 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23899 | SWIG_fail; | |
23900 | } | |
23901 | { | |
23902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23903 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
23904 | ||
23905 | wxPyEndAllowThreads(__tstate); | |
23906 | if (PyErr_Occurred()) SWIG_fail; | |
23907 | } | |
23908 | { | |
23909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23910 | } | |
23911 | return resultobj; | |
23912 | fail: | |
23913 | return NULL; | |
23914 | } | |
23915 | ||
23916 | ||
23917 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23918 | PyObject *resultobj; | |
23919 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23920 | int arg2 ; | |
23921 | bool result; | |
23922 | PyObject * obj0 = 0 ; | |
23923 | PyObject * obj1 = 0 ; | |
23924 | char *kwnames[] = { | |
23925 | (char *) "self",(char *) "pageNum", NULL | |
23926 | }; | |
23927 | ||
23928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
23929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23931 | arg2 = (int) SWIG_AsInt(obj1); | |
23932 | if (PyErr_Occurred()) SWIG_fail; | |
23933 | { | |
23934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23935 | result = (bool)(arg1)->RenderPage(arg2); | |
23936 | ||
23937 | wxPyEndAllowThreads(__tstate); | |
23938 | if (PyErr_Occurred()) SWIG_fail; | |
23939 | } | |
23940 | { | |
23941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23942 | } | |
23943 | return resultobj; | |
23944 | fail: | |
23945 | return NULL; | |
23946 | } | |
23947 | ||
23948 | ||
23949 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23950 | PyObject *resultobj; | |
23951 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23952 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
23953 | PyObject * obj0 = 0 ; | |
23954 | PyObject * obj1 = 0 ; | |
23955 | char *kwnames[] = { | |
23956 | (char *) "self",(char *) "canvas", NULL | |
23957 | }; | |
23958 | ||
23959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
23960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
23963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23964 | { | |
23965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23966 | (arg1)->AdjustScrollbars(arg2); | |
23967 | ||
23968 | wxPyEndAllowThreads(__tstate); | |
23969 | if (PyErr_Occurred()) SWIG_fail; | |
23970 | } | |
23971 | Py_INCREF(Py_None); resultobj = Py_None; | |
23972 | return resultobj; | |
23973 | fail: | |
23974 | return NULL; | |
23975 | } | |
23976 | ||
23977 | ||
23978 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23979 | PyObject *resultobj; | |
23980 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
23981 | wxPrintDialogData *result; | |
23982 | PyObject * obj0 = 0 ; | |
23983 | char *kwnames[] = { | |
23984 | (char *) "self", NULL | |
23985 | }; | |
23986 | ||
23987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
23988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
23989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23990 | { | |
23991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23992 | { | |
23993 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
23994 | result = (wxPrintDialogData *) &_result_ref; | |
23995 | } | |
23996 | ||
23997 | wxPyEndAllowThreads(__tstate); | |
23998 | if (PyErr_Occurred()) SWIG_fail; | |
23999 | } | |
24000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintDialogData, 0); | |
24001 | return resultobj; | |
24002 | fail: | |
24003 | return NULL; | |
24004 | } | |
24005 | ||
24006 | ||
24007 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24008 | PyObject *resultobj; | |
24009 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24010 | int arg2 ; | |
24011 | PyObject * obj0 = 0 ; | |
24012 | PyObject * obj1 = 0 ; | |
24013 | char *kwnames[] = { | |
24014 | (char *) "self",(char *) "percent", NULL | |
24015 | }; | |
24016 | ||
24017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
24018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24020 | arg2 = (int) SWIG_AsInt(obj1); | |
24021 | if (PyErr_Occurred()) SWIG_fail; | |
24022 | { | |
24023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24024 | (arg1)->SetZoom(arg2); | |
24025 | ||
24026 | wxPyEndAllowThreads(__tstate); | |
24027 | if (PyErr_Occurred()) SWIG_fail; | |
24028 | } | |
24029 | Py_INCREF(Py_None); resultobj = Py_None; | |
24030 | return resultobj; | |
24031 | fail: | |
24032 | return NULL; | |
24033 | } | |
24034 | ||
24035 | ||
24036 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24037 | PyObject *resultobj; | |
24038 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24039 | int result; | |
24040 | PyObject * obj0 = 0 ; | |
24041 | char *kwnames[] = { | |
24042 | (char *) "self", NULL | |
24043 | }; | |
24044 | ||
24045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
24046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24048 | { | |
24049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24050 | result = (int)(arg1)->GetZoom(); | |
24051 | ||
24052 | wxPyEndAllowThreads(__tstate); | |
24053 | if (PyErr_Occurred()) SWIG_fail; | |
24054 | } | |
24055 | resultobj = SWIG_FromInt((int)result); | |
24056 | return resultobj; | |
24057 | fail: | |
24058 | return NULL; | |
24059 | } | |
24060 | ||
24061 | ||
24062 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24063 | PyObject *resultobj; | |
24064 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24065 | int result; | |
24066 | PyObject * obj0 = 0 ; | |
24067 | char *kwnames[] = { | |
24068 | (char *) "self", NULL | |
24069 | }; | |
24070 | ||
24071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
24072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24074 | { | |
24075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24076 | result = (int)(arg1)->GetMaxPage(); | |
24077 | ||
24078 | wxPyEndAllowThreads(__tstate); | |
24079 | if (PyErr_Occurred()) SWIG_fail; | |
24080 | } | |
24081 | resultobj = SWIG_FromInt((int)result); | |
24082 | return resultobj; | |
24083 | fail: | |
24084 | return NULL; | |
24085 | } | |
24086 | ||
24087 | ||
24088 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24089 | PyObject *resultobj; | |
24090 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24091 | int result; | |
24092 | PyObject * obj0 = 0 ; | |
24093 | char *kwnames[] = { | |
24094 | (char *) "self", NULL | |
24095 | }; | |
24096 | ||
24097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
24098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24100 | { | |
24101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24102 | result = (int)(arg1)->GetMinPage(); | |
24103 | ||
24104 | wxPyEndAllowThreads(__tstate); | |
24105 | if (PyErr_Occurred()) SWIG_fail; | |
24106 | } | |
24107 | resultobj = SWIG_FromInt((int)result); | |
24108 | return resultobj; | |
24109 | fail: | |
24110 | return NULL; | |
24111 | } | |
24112 | ||
24113 | ||
24114 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24115 | PyObject *resultobj; | |
24116 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24117 | bool result; | |
24118 | PyObject * obj0 = 0 ; | |
24119 | char *kwnames[] = { | |
24120 | (char *) "self", NULL | |
24121 | }; | |
24122 | ||
24123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
24124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24126 | { | |
24127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24128 | result = (bool)(arg1)->Ok(); | |
24129 | ||
24130 | wxPyEndAllowThreads(__tstate); | |
24131 | if (PyErr_Occurred()) SWIG_fail; | |
24132 | } | |
24133 | { | |
24134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24135 | } | |
24136 | return resultobj; | |
24137 | fail: | |
24138 | return NULL; | |
24139 | } | |
24140 | ||
24141 | ||
24142 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24143 | PyObject *resultobj; | |
24144 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24145 | bool arg2 ; | |
24146 | PyObject * obj0 = 0 ; | |
24147 | PyObject * obj1 = 0 ; | |
24148 | char *kwnames[] = { | |
24149 | (char *) "self",(char *) "ok", NULL | |
24150 | }; | |
24151 | ||
24152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
24153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24155 | arg2 = (bool) SWIG_AsBool(obj1); | |
24156 | if (PyErr_Occurred()) SWIG_fail; | |
24157 | { | |
24158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24159 | (arg1)->SetOk(arg2); | |
24160 | ||
24161 | wxPyEndAllowThreads(__tstate); | |
24162 | if (PyErr_Occurred()) SWIG_fail; | |
24163 | } | |
24164 | Py_INCREF(Py_None); resultobj = Py_None; | |
24165 | return resultobj; | |
24166 | fail: | |
24167 | return NULL; | |
24168 | } | |
24169 | ||
24170 | ||
24171 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24172 | PyObject *resultobj; | |
24173 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24174 | bool arg2 ; | |
24175 | bool result; | |
24176 | PyObject * obj0 = 0 ; | |
24177 | PyObject * obj1 = 0 ; | |
24178 | char *kwnames[] = { | |
24179 | (char *) "self",(char *) "interactive", NULL | |
24180 | }; | |
24181 | ||
24182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
24183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24185 | arg2 = (bool) SWIG_AsBool(obj1); | |
24186 | if (PyErr_Occurred()) SWIG_fail; | |
24187 | { | |
24188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24189 | result = (bool)(arg1)->Print(arg2); | |
24190 | ||
24191 | wxPyEndAllowThreads(__tstate); | |
24192 | if (PyErr_Occurred()) SWIG_fail; | |
24193 | } | |
24194 | { | |
24195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24196 | } | |
24197 | return resultobj; | |
24198 | fail: | |
24199 | return NULL; | |
24200 | } | |
24201 | ||
24202 | ||
24203 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24204 | PyObject *resultobj; | |
24205 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24206 | PyObject * obj0 = 0 ; | |
24207 | char *kwnames[] = { | |
24208 | (char *) "self", NULL | |
24209 | }; | |
24210 | ||
24211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
24212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24214 | { | |
24215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24216 | (arg1)->DetermineScaling(); | |
24217 | ||
24218 | wxPyEndAllowThreads(__tstate); | |
24219 | if (PyErr_Occurred()) SWIG_fail; | |
24220 | } | |
24221 | Py_INCREF(Py_None); resultobj = Py_None; | |
24222 | return resultobj; | |
24223 | fail: | |
24224 | return NULL; | |
24225 | } | |
24226 | ||
24227 | ||
24228 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24229 | PyObject *obj; | |
24230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24231 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
24232 | Py_INCREF(obj); | |
24233 | return Py_BuildValue((char *)""); | |
24234 | } | |
24235 | static PyObject *_wrap_new_PyPrintPreview__SWIG_0(PyObject *self, PyObject *args) { | |
24236 | PyObject *resultobj; | |
24237 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
24238 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
24239 | wxPrintDialogData *arg3 = (wxPrintDialogData *) NULL ; | |
24240 | wxPyPrintPreview *result; | |
24241 | PyObject * obj0 = 0 ; | |
24242 | PyObject * obj1 = 0 ; | |
24243 | PyObject * obj2 = 0 ; | |
24244 | ||
24245 | if(!PyArg_ParseTuple(args,(char *)"OO|O: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 (obj2) { | |
24251 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintDialogData, | |
24252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24253 | } | |
24254 | { | |
0439c23b | 24255 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24257 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
24258 | ||
24259 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24260 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24261 | } |
24262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
24263 | return resultobj; | |
24264 | fail: | |
24265 | return NULL; | |
24266 | } | |
24267 | ||
24268 | ||
24269 | static PyObject *_wrap_new_PyPrintPreview__SWIG_1(PyObject *self, PyObject *args) { | |
24270 | PyObject *resultobj; | |
24271 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
24272 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
24273 | wxPrintData *arg3 = (wxPrintData *) 0 ; | |
24274 | wxPyPrintPreview *result; | |
24275 | PyObject * obj0 = 0 ; | |
24276 | PyObject * obj1 = 0 ; | |
24277 | PyObject * obj2 = 0 ; | |
24278 | ||
24279 | if(!PyArg_ParseTuple(args,(char *)"OOO:new_PyPrintPreview",&obj0,&obj1,&obj2)) goto fail; | |
24280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintout, | |
24281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyPrintout, | |
24283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24284 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPrintData, | |
24285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24286 | { | |
0439c23b | 24287 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24289 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
24290 | ||
24291 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24292 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24293 | } |
24294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPrintPreview, 1); | |
24295 | return resultobj; | |
24296 | fail: | |
24297 | return NULL; | |
24298 | } | |
24299 | ||
24300 | ||
24301 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args) { | |
24302 | int argc; | |
24303 | PyObject *argv[4]; | |
24304 | int ii; | |
24305 | ||
24306 | argc = PyObject_Length(args); | |
24307 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
24308 | argv[ii] = PyTuple_GetItem(args,ii); | |
24309 | } | |
24310 | if ((argc >= 2) && (argc <= 3)) { | |
24311 | int _v; | |
24312 | { | |
24313 | void *ptr; | |
24314 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24315 | _v = 0; | |
24316 | PyErr_Clear(); | |
24317 | } else { | |
24318 | _v = 1; | |
24319 | } | |
24320 | } | |
24321 | if (_v) { | |
24322 | { | |
24323 | void *ptr; | |
24324 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24325 | _v = 0; | |
24326 | PyErr_Clear(); | |
24327 | } else { | |
24328 | _v = 1; | |
24329 | } | |
24330 | } | |
24331 | if (_v) { | |
24332 | if (argc <= 2) { | |
24333 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
24334 | } | |
24335 | { | |
24336 | void *ptr; | |
24337 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintDialogData, 0) == -1) { | |
24338 | _v = 0; | |
24339 | PyErr_Clear(); | |
24340 | } else { | |
24341 | _v = 1; | |
24342 | } | |
24343 | } | |
24344 | if (_v) { | |
24345 | return _wrap_new_PyPrintPreview__SWIG_0(self,args); | |
24346 | } | |
24347 | } | |
24348 | } | |
24349 | } | |
24350 | if (argc == 3) { | |
24351 | int _v; | |
24352 | { | |
24353 | void *ptr; | |
24354 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24355 | _v = 0; | |
24356 | PyErr_Clear(); | |
24357 | } else { | |
24358 | _v = 1; | |
24359 | } | |
24360 | } | |
24361 | if (_v) { | |
24362 | { | |
24363 | void *ptr; | |
24364 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxPyPrintout, 0) == -1) { | |
24365 | _v = 0; | |
24366 | PyErr_Clear(); | |
24367 | } else { | |
24368 | _v = 1; | |
24369 | } | |
24370 | } | |
24371 | if (_v) { | |
24372 | { | |
24373 | void *ptr; | |
24374 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxPrintData, 0) == -1) { | |
24375 | _v = 0; | |
24376 | PyErr_Clear(); | |
24377 | } else { | |
24378 | _v = 1; | |
24379 | } | |
24380 | } | |
24381 | if (_v) { | |
24382 | return _wrap_new_PyPrintPreview__SWIG_1(self,args); | |
24383 | } | |
24384 | } | |
24385 | } | |
24386 | } | |
24387 | ||
24388 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_PyPrintPreview'"); | |
24389 | return NULL; | |
24390 | } | |
24391 | ||
24392 | ||
24393 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24394 | PyObject *resultobj; | |
24395 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24396 | PyObject *arg2 = (PyObject *) 0 ; | |
24397 | PyObject *arg3 = (PyObject *) 0 ; | |
24398 | PyObject * obj0 = 0 ; | |
24399 | PyObject * obj1 = 0 ; | |
24400 | PyObject * obj2 = 0 ; | |
24401 | char *kwnames[] = { | |
24402 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24403 | }; | |
24404 | ||
24405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24408 | arg2 = obj1; | |
24409 | arg3 = obj2; | |
24410 | { | |
24411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24412 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24413 | ||
24414 | wxPyEndAllowThreads(__tstate); | |
24415 | if (PyErr_Occurred()) SWIG_fail; | |
24416 | } | |
24417 | Py_INCREF(Py_None); resultobj = Py_None; | |
24418 | return resultobj; | |
24419 | fail: | |
24420 | return NULL; | |
24421 | } | |
24422 | ||
24423 | ||
24424 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24425 | PyObject *resultobj; | |
24426 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24427 | int arg2 ; | |
24428 | bool result; | |
24429 | PyObject * obj0 = 0 ; | |
24430 | PyObject * obj1 = 0 ; | |
24431 | char *kwnames[] = { | |
24432 | (char *) "self",(char *) "pageNum", NULL | |
24433 | }; | |
24434 | ||
24435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; | |
24436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24438 | arg2 = (int) SWIG_AsInt(obj1); | |
24439 | if (PyErr_Occurred()) SWIG_fail; | |
24440 | { | |
24441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24442 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
24443 | ||
24444 | wxPyEndAllowThreads(__tstate); | |
24445 | if (PyErr_Occurred()) SWIG_fail; | |
24446 | } | |
24447 | { | |
24448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24449 | } | |
24450 | return resultobj; | |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
24456 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24457 | PyObject *resultobj; | |
24458 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24459 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24460 | wxDC *arg3 = 0 ; | |
24461 | bool result; | |
24462 | PyObject * obj0 = 0 ; | |
24463 | PyObject * obj1 = 0 ; | |
24464 | PyObject * obj2 = 0 ; | |
24465 | char *kwnames[] = { | |
24466 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
24467 | }; | |
24468 | ||
24469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24474 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
24475 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24476 | SWIG_fail; | |
24477 | if (arg3 == NULL) { | |
24478 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24479 | SWIG_fail; | |
24480 | } | |
24481 | { | |
24482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24483 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
24484 | ||
24485 | wxPyEndAllowThreads(__tstate); | |
24486 | if (PyErr_Occurred()) SWIG_fail; | |
24487 | } | |
24488 | { | |
24489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24490 | } | |
24491 | return resultobj; | |
24492 | fail: | |
24493 | return NULL; | |
24494 | } | |
24495 | ||
24496 | ||
24497 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24498 | PyObject *resultobj; | |
24499 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24500 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24501 | wxDC *arg3 = 0 ; | |
24502 | bool result; | |
24503 | PyObject * obj0 = 0 ; | |
24504 | PyObject * obj1 = 0 ; | |
24505 | PyObject * obj2 = 0 ; | |
24506 | char *kwnames[] = { | |
24507 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
24508 | }; | |
24509 | ||
24510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24513 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24515 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC, | |
24516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24517 | SWIG_fail; | |
24518 | if (arg3 == NULL) { | |
24519 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24520 | SWIG_fail; | |
24521 | } | |
24522 | { | |
24523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24524 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
24525 | ||
24526 | wxPyEndAllowThreads(__tstate); | |
24527 | if (PyErr_Occurred()) SWIG_fail; | |
24528 | } | |
24529 | { | |
24530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24531 | } | |
24532 | return resultobj; | |
24533 | fail: | |
24534 | return NULL; | |
24535 | } | |
24536 | ||
24537 | ||
24538 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24539 | PyObject *resultobj; | |
24540 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24541 | int arg2 ; | |
24542 | bool result; | |
24543 | PyObject * obj0 = 0 ; | |
24544 | PyObject * obj1 = 0 ; | |
24545 | char *kwnames[] = { | |
24546 | (char *) "self",(char *) "pageNum", NULL | |
24547 | }; | |
24548 | ||
24549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; | |
24550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24552 | arg2 = (int) SWIG_AsInt(obj1); | |
24553 | if (PyErr_Occurred()) SWIG_fail; | |
24554 | { | |
24555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24556 | result = (bool)(arg1)->base_RenderPage(arg2); | |
24557 | ||
24558 | wxPyEndAllowThreads(__tstate); | |
24559 | if (PyErr_Occurred()) SWIG_fail; | |
24560 | } | |
24561 | { | |
24562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24563 | } | |
24564 | return resultobj; | |
24565 | fail: | |
24566 | return NULL; | |
24567 | } | |
24568 | ||
24569 | ||
24570 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24571 | PyObject *resultobj; | |
24572 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24573 | int arg2 ; | |
24574 | PyObject * obj0 = 0 ; | |
24575 | PyObject * obj1 = 0 ; | |
24576 | char *kwnames[] = { | |
24577 | (char *) "self",(char *) "percent", NULL | |
24578 | }; | |
24579 | ||
24580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; | |
24581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24583 | arg2 = (int) SWIG_AsInt(obj1); | |
24584 | if (PyErr_Occurred()) SWIG_fail; | |
24585 | { | |
24586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24587 | (arg1)->base_SetZoom(arg2); | |
24588 | ||
24589 | wxPyEndAllowThreads(__tstate); | |
24590 | if (PyErr_Occurred()) SWIG_fail; | |
24591 | } | |
24592 | Py_INCREF(Py_None); resultobj = Py_None; | |
24593 | return resultobj; | |
24594 | fail: | |
24595 | return NULL; | |
24596 | } | |
24597 | ||
24598 | ||
24599 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24600 | PyObject *resultobj; | |
24601 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24602 | bool arg2 ; | |
24603 | bool result; | |
24604 | PyObject * obj0 = 0 ; | |
24605 | PyObject * obj1 = 0 ; | |
24606 | char *kwnames[] = { | |
24607 | (char *) "self",(char *) "interactive", NULL | |
24608 | }; | |
24609 | ||
24610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
24611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24613 | arg2 = (bool) SWIG_AsBool(obj1); | |
24614 | if (PyErr_Occurred()) SWIG_fail; | |
24615 | { | |
24616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24617 | result = (bool)(arg1)->base_Print(arg2); | |
24618 | ||
24619 | wxPyEndAllowThreads(__tstate); | |
24620 | if (PyErr_Occurred()) SWIG_fail; | |
24621 | } | |
24622 | { | |
24623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24624 | } | |
24625 | return resultobj; | |
24626 | fail: | |
24627 | return NULL; | |
24628 | } | |
24629 | ||
24630 | ||
24631 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24632 | PyObject *resultobj; | |
24633 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
24634 | PyObject * obj0 = 0 ; | |
24635 | char *kwnames[] = { | |
24636 | (char *) "self", NULL | |
24637 | }; | |
24638 | ||
24639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
24640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPrintPreview, | |
24641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24642 | { | |
24643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24644 | (arg1)->base_DetermineScaling(); | |
24645 | ||
24646 | wxPyEndAllowThreads(__tstate); | |
24647 | if (PyErr_Occurred()) SWIG_fail; | |
24648 | } | |
24649 | Py_INCREF(Py_None); resultobj = Py_None; | |
24650 | return resultobj; | |
24651 | fail: | |
24652 | return NULL; | |
24653 | } | |
24654 | ||
24655 | ||
24656 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
24657 | PyObject *obj; | |
24658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24659 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
24660 | Py_INCREF(obj); | |
24661 | return Py_BuildValue((char *)""); | |
24662 | } | |
24663 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24664 | PyObject *resultobj; | |
24665 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24666 | wxFrame *arg2 = (wxFrame *) 0 ; | |
24667 | wxString *arg3 = 0 ; | |
24668 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24669 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24670 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24671 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24672 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
24673 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
24674 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24675 | wxPyPreviewFrame *result; | |
24676 | bool temp3 = False ; | |
24677 | wxPoint temp4 ; | |
24678 | wxSize temp5 ; | |
24679 | bool temp7 = False ; | |
24680 | PyObject * obj0 = 0 ; | |
24681 | PyObject * obj1 = 0 ; | |
24682 | PyObject * obj2 = 0 ; | |
24683 | PyObject * obj3 = 0 ; | |
24684 | PyObject * obj4 = 0 ; | |
24685 | PyObject * obj5 = 0 ; | |
24686 | PyObject * obj6 = 0 ; | |
24687 | char *kwnames[] = { | |
24688 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24689 | }; | |
24690 | ||
24691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24694 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
24695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24696 | { | |
24697 | arg3 = wxString_in_helper(obj2); | |
24698 | if (arg3 == NULL) SWIG_fail; | |
24699 | temp3 = True; | |
24700 | } | |
24701 | if (obj3) { | |
24702 | { | |
24703 | arg4 = &temp4; | |
24704 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24705 | } | |
24706 | } | |
24707 | if (obj4) { | |
24708 | { | |
24709 | arg5 = &temp5; | |
24710 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24711 | } | |
24712 | } | |
24713 | if (obj5) { | |
24714 | arg6 = (long) SWIG_AsLong(obj5); | |
24715 | if (PyErr_Occurred()) SWIG_fail; | |
24716 | } | |
24717 | if (obj6) { | |
24718 | { | |
24719 | arg7 = wxString_in_helper(obj6); | |
24720 | if (arg7 == NULL) SWIG_fail; | |
24721 | temp7 = True; | |
24722 | } | |
24723 | } | |
24724 | { | |
0439c23b | 24725 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24727 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24728 | ||
24729 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24730 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24731 | } |
24732 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewFrame, 1); | |
24733 | { | |
24734 | if (temp3) | |
24735 | delete arg3; | |
24736 | } | |
24737 | { | |
24738 | if (temp7) | |
24739 | delete arg7; | |
24740 | } | |
24741 | return resultobj; | |
24742 | fail: | |
24743 | { | |
24744 | if (temp3) | |
24745 | delete arg3; | |
24746 | } | |
24747 | { | |
24748 | if (temp7) | |
24749 | delete arg7; | |
24750 | } | |
24751 | return NULL; | |
24752 | } | |
24753 | ||
24754 | ||
24755 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24756 | PyObject *resultobj; | |
24757 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24758 | PyObject *arg2 = (PyObject *) 0 ; | |
24759 | PyObject *arg3 = (PyObject *) 0 ; | |
24760 | PyObject * obj0 = 0 ; | |
24761 | PyObject * obj1 = 0 ; | |
24762 | PyObject * obj2 = 0 ; | |
24763 | char *kwnames[] = { | |
24764 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24765 | }; | |
24766 | ||
24767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24770 | arg2 = obj1; | |
24771 | arg3 = obj2; | |
24772 | { | |
24773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24774 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24775 | ||
24776 | wxPyEndAllowThreads(__tstate); | |
24777 | if (PyErr_Occurred()) SWIG_fail; | |
24778 | } | |
24779 | Py_INCREF(Py_None); resultobj = Py_None; | |
24780 | return resultobj; | |
24781 | fail: | |
24782 | return NULL; | |
24783 | } | |
24784 | ||
24785 | ||
24786 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24787 | PyObject *resultobj; | |
24788 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24789 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
24790 | PyObject * obj0 = 0 ; | |
24791 | PyObject * obj1 = 0 ; | |
24792 | char *kwnames[] = { | |
24793 | (char *) "self",(char *) "canvas", NULL | |
24794 | }; | |
24795 | ||
24796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
24797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewCanvas, | |
24800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24801 | { | |
24802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24803 | (arg1)->SetPreviewCanvas(arg2); | |
24804 | ||
24805 | wxPyEndAllowThreads(__tstate); | |
24806 | if (PyErr_Occurred()) SWIG_fail; | |
24807 | } | |
24808 | Py_INCREF(Py_None); resultobj = Py_None; | |
24809 | return resultobj; | |
24810 | fail: | |
24811 | return NULL; | |
24812 | } | |
24813 | ||
24814 | ||
24815 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24816 | PyObject *resultobj; | |
24817 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24818 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
24819 | PyObject * obj0 = 0 ; | |
24820 | PyObject * obj1 = 0 ; | |
24821 | char *kwnames[] = { | |
24822 | (char *) "self",(char *) "bar", NULL | |
24823 | }; | |
24824 | ||
24825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
24826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24828 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPreviewControlBar, | |
24829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24830 | { | |
24831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24832 | (arg1)->SetControlBar(arg2); | |
24833 | ||
24834 | wxPyEndAllowThreads(__tstate); | |
24835 | if (PyErr_Occurred()) SWIG_fail; | |
24836 | } | |
24837 | Py_INCREF(Py_None); resultobj = Py_None; | |
24838 | return resultobj; | |
24839 | fail: | |
24840 | return NULL; | |
24841 | } | |
24842 | ||
24843 | ||
24844 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24845 | PyObject *resultobj; | |
24846 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24847 | PyObject * obj0 = 0 ; | |
24848 | char *kwnames[] = { | |
24849 | (char *) "self", NULL | |
24850 | }; | |
24851 | ||
24852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
24853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24855 | { | |
24856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24857 | (arg1)->base_Initialize(); | |
24858 | ||
24859 | wxPyEndAllowThreads(__tstate); | |
24860 | if (PyErr_Occurred()) SWIG_fail; | |
24861 | } | |
24862 | Py_INCREF(Py_None); resultobj = Py_None; | |
24863 | return resultobj; | |
24864 | fail: | |
24865 | return NULL; | |
24866 | } | |
24867 | ||
24868 | ||
24869 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24870 | PyObject *resultobj; | |
24871 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24872 | PyObject * obj0 = 0 ; | |
24873 | char *kwnames[] = { | |
24874 | (char *) "self", NULL | |
24875 | }; | |
24876 | ||
24877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
24878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24880 | { | |
24881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24882 | (arg1)->base_CreateCanvas(); | |
24883 | ||
24884 | wxPyEndAllowThreads(__tstate); | |
24885 | if (PyErr_Occurred()) SWIG_fail; | |
24886 | } | |
24887 | Py_INCREF(Py_None); resultobj = Py_None; | |
24888 | return resultobj; | |
24889 | fail: | |
24890 | return NULL; | |
24891 | } | |
24892 | ||
24893 | ||
24894 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24895 | PyObject *resultobj; | |
24896 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
24897 | PyObject * obj0 = 0 ; | |
24898 | char *kwnames[] = { | |
24899 | (char *) "self", NULL | |
24900 | }; | |
24901 | ||
24902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
24903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewFrame, | |
24904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24905 | { | |
24906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24907 | (arg1)->base_CreateControlBar(); | |
24908 | ||
24909 | wxPyEndAllowThreads(__tstate); | |
24910 | if (PyErr_Occurred()) SWIG_fail; | |
24911 | } | |
24912 | Py_INCREF(Py_None); resultobj = Py_None; | |
24913 | return resultobj; | |
24914 | fail: | |
24915 | return NULL; | |
24916 | } | |
24917 | ||
24918 | ||
24919 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
24920 | PyObject *obj; | |
24921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24922 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
24923 | Py_INCREF(obj); | |
24924 | return Py_BuildValue((char *)""); | |
24925 | } | |
24926 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24927 | PyObject *resultobj; | |
24928 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
24929 | long arg2 ; | |
24930 | wxWindow *arg3 = (wxWindow *) 0 ; | |
24931 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24932 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24933 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24934 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24935 | long arg6 = (long) 0 ; | |
24936 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
24937 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24938 | wxPyPreviewControlBar *result; | |
24939 | wxPoint temp4 ; | |
24940 | wxSize temp5 ; | |
24941 | bool temp7 = False ; | |
24942 | PyObject * obj0 = 0 ; | |
24943 | PyObject * obj1 = 0 ; | |
24944 | PyObject * obj2 = 0 ; | |
24945 | PyObject * obj3 = 0 ; | |
24946 | PyObject * obj4 = 0 ; | |
24947 | PyObject * obj5 = 0 ; | |
24948 | PyObject * obj6 = 0 ; | |
24949 | char *kwnames[] = { | |
24950 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
24951 | }; | |
24952 | ||
24953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintPreview, | |
24955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24956 | arg2 = (long) SWIG_AsLong(obj1); | |
24957 | if (PyErr_Occurred()) SWIG_fail; | |
24958 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
24959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24960 | if (obj3) { | |
24961 | { | |
24962 | arg4 = &temp4; | |
24963 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24964 | } | |
24965 | } | |
24966 | if (obj4) { | |
24967 | { | |
24968 | arg5 = &temp5; | |
24969 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24970 | } | |
24971 | } | |
24972 | if (obj5) { | |
24973 | arg6 = (long) SWIG_AsLong(obj5); | |
24974 | if (PyErr_Occurred()) SWIG_fail; | |
24975 | } | |
24976 | if (obj6) { | |
24977 | { | |
24978 | arg7 = wxString_in_helper(obj6); | |
24979 | if (arg7 == NULL) SWIG_fail; | |
24980 | temp7 = True; | |
24981 | } | |
24982 | } | |
24983 | { | |
0439c23b | 24984 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24986 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
24987 | ||
24988 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24989 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24990 | } |
24991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
24992 | { | |
24993 | if (temp7) | |
24994 | delete arg7; | |
24995 | } | |
24996 | return resultobj; | |
24997 | fail: | |
24998 | { | |
24999 | if (temp7) | |
25000 | delete arg7; | |
25001 | } | |
25002 | return NULL; | |
25003 | } | |
25004 | ||
25005 | ||
25006 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25007 | PyObject *resultobj; | |
25008 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25009 | PyObject *arg2 = (PyObject *) 0 ; | |
25010 | PyObject *arg3 = (PyObject *) 0 ; | |
25011 | PyObject * obj0 = 0 ; | |
25012 | PyObject * obj1 = 0 ; | |
25013 | PyObject * obj2 = 0 ; | |
25014 | char *kwnames[] = { | |
25015 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25016 | }; | |
25017 | ||
25018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25021 | arg2 = obj1; | |
25022 | arg3 = obj2; | |
25023 | { | |
25024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25025 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25026 | ||
25027 | wxPyEndAllowThreads(__tstate); | |
25028 | if (PyErr_Occurred()) SWIG_fail; | |
25029 | } | |
25030 | Py_INCREF(Py_None); resultobj = Py_None; | |
25031 | return resultobj; | |
25032 | fail: | |
25033 | return NULL; | |
25034 | } | |
25035 | ||
25036 | ||
25037 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25038 | PyObject *resultobj; | |
25039 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25040 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
25041 | PyObject * obj0 = 0 ; | |
25042 | PyObject * obj1 = 0 ; | |
25043 | char *kwnames[] = { | |
25044 | (char *) "self",(char *) "preview", NULL | |
25045 | }; | |
25046 | ||
25047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
25048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25050 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintPreview, | |
25051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25052 | { | |
25053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25054 | (arg1)->SetPrintPreview(arg2); | |
25055 | ||
25056 | wxPyEndAllowThreads(__tstate); | |
25057 | if (PyErr_Occurred()) SWIG_fail; | |
25058 | } | |
25059 | Py_INCREF(Py_None); resultobj = Py_None; | |
25060 | return resultobj; | |
25061 | fail: | |
25062 | return NULL; | |
25063 | } | |
25064 | ||
25065 | ||
25066 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25067 | PyObject *resultobj; | |
25068 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25069 | PyObject * obj0 = 0 ; | |
25070 | char *kwnames[] = { | |
25071 | (char *) "self", NULL | |
25072 | }; | |
25073 | ||
25074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
25075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25077 | { | |
25078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25079 | (arg1)->base_CreateButtons(); | |
25080 | ||
25081 | wxPyEndAllowThreads(__tstate); | |
25082 | if (PyErr_Occurred()) SWIG_fail; | |
25083 | } | |
25084 | Py_INCREF(Py_None); resultobj = Py_None; | |
25085 | return resultobj; | |
25086 | fail: | |
25087 | return NULL; | |
25088 | } | |
25089 | ||
25090 | ||
25091 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25092 | PyObject *resultobj; | |
25093 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
25094 | int arg2 ; | |
25095 | PyObject * obj0 = 0 ; | |
25096 | PyObject * obj1 = 0 ; | |
25097 | char *kwnames[] = { | |
25098 | (char *) "self",(char *) "zoom", NULL | |
25099 | }; | |
25100 | ||
25101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; | |
25102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyPreviewControlBar, | |
25103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25104 | arg2 = (int) SWIG_AsInt(obj1); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | { | |
25107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25108 | (arg1)->base_SetZoomControl(arg2); | |
25109 | ||
25110 | wxPyEndAllowThreads(__tstate); | |
25111 | if (PyErr_Occurred()) SWIG_fail; | |
25112 | } | |
25113 | Py_INCREF(Py_None); resultobj = Py_None; | |
25114 | return resultobj; | |
25115 | fail: | |
25116 | return NULL; | |
25117 | } | |
25118 | ||
25119 | ||
25120 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
25121 | PyObject *obj; | |
25122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25123 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
25124 | Py_INCREF(obj); | |
25125 | return Py_BuildValue((char *)""); | |
25126 | } | |
25127 | static PyMethodDef SwigMethods[] = { | |
25128 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
25129 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
25130 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
25131 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25132 | { (char *)"Panel_GetClassDefaultAttributes", (PyCFunction) _wrap_Panel_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25133 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, |
25134 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25135 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25136 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25137 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25138 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
25139 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25140 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
25141 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
25142 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
25143 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
25144 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
25145 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
25146 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25147 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25148 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
25149 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
25150 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25151 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
25152 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
25153 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
25154 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
25155 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
f5b96ee1 | 25156 | { (char *)"ScrolledWindow_DoPrepareDC", (PyCFunction) _wrap_ScrolledWindow_DoPrepareDC, METH_VARARGS | METH_KEYWORDS }, |
f20a2e1f | 25157 | { (char *)"ScrolledWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrolledWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25158 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, |
25159 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
25160 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
25161 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
25162 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
25163 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
25164 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25165 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25166 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
25167 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
25168 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
25169 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25170 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25171 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
25172 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
25173 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
25174 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
25175 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25176 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
25177 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
25178 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
25179 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
25180 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
25181 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25182 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25183 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25184 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25185 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
25186 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25187 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25188 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
25189 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
25190 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25191 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25192 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25193 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
25194 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25195 | { (char *)"Frame_GetClassDefaultAttributes", (PyCFunction) _wrap_Frame_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25196 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, |
25197 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
25198 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
25199 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
25200 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
25201 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
25202 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
25203 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
25204 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
25205 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25206 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25207 | { (char *)"Dialog_GetClassDefaultAttributes", (PyCFunction) _wrap_Dialog_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25208 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, |
25209 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
25210 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
25211 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25212 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
25213 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
25214 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25215 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
25216 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
25217 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
25218 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
25219 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25220 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
25221 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
25222 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25223 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
25224 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
25225 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
25226 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
25227 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25228 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25229 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25230 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
25231 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
25232 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
25233 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
25234 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
25235 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25236 | { (char *)"StatusBar_GetClassDefaultAttributes", (PyCFunction) _wrap_StatusBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25237 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, |
25238 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
25239 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
25240 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25241 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
25242 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
25243 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
25244 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
25245 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25246 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
25247 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
25248 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
25249 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
25250 | { (char *)"SplitterWindow_UpdateSize", (PyCFunction) _wrap_SplitterWindow_UpdateSize, METH_VARARGS | METH_KEYWORDS }, | |
25251 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
25252 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
25253 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25254 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
25255 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25256 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25257 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25258 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
25259 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
25260 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
25261 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
25262 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
25263 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 25264 | { (char *)"SplitterWindow_GetClassDefaultAttributes", (PyCFunction) _wrap_SplitterWindow_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25265 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, |
25266 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
25267 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25268 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
25269 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
25270 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
25271 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
25272 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
25273 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25274 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
25275 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25276 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
25277 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
25278 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
25279 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
25280 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
25281 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25282 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25283 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25284 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
25285 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25286 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25287 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25288 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25289 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25290 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25291 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
25292 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
25293 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
25294 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
25295 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
25296 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
25297 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
25298 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
25299 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
25300 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
25301 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
25302 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
25303 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
25304 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
25305 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
25306 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
25307 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25308 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25309 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
25310 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
25311 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25312 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25313 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25314 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25315 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
25316 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
25317 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25318 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25319 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
25320 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
25321 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
25322 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25323 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25324 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25325 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25326 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25327 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
25328 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
25329 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25330 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
25331 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
25332 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
25333 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
25334 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
25335 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
25336 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
25337 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
25338 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
25339 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25340 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS }, | |
25341 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
25342 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25343 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25344 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25345 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS }, | |
25346 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction) _wrap_PopupTransientWindow_Dismiss, METH_VARARGS | METH_KEYWORDS }, | |
25347 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
25348 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
25349 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
25350 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
25351 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
25352 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25353 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25354 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25355 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25356 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
25357 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
25358 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
25359 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
25360 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
25361 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
25362 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
25363 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
25364 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
25365 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
25366 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
25367 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
25368 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
25369 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
25370 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
25371 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
25372 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25373 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25374 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
25375 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
25376 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25377 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
25378 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
25379 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
25380 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
25381 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
25382 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25383 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
25384 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
25385 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
25386 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25387 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
25388 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
25389 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
25390 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
25391 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
25392 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
25393 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
25394 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
25395 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
25396 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
25397 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
25398 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25399 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
25400 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
25401 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 25402 | { (char *)"HtmlListBox_GetFileSystem", (PyCFunction) _wrap_HtmlListBox_GetFileSystem, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25403 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, |
25404 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
25405 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
25406 | { (char *)"TaskBarIcon_Destroy", (PyCFunction) _wrap_TaskBarIcon_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
25407 | { (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
25408 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS }, | |
25409 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
25410 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction) _wrap_TaskBarIcon_RemoveIcon, METH_VARARGS | METH_KEYWORDS }, | |
25411 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
25412 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
25413 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
25414 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
25415 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
25416 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
25417 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
25418 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25419 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
25420 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
25421 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25422 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
25423 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
25424 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
25425 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
25426 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
25427 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
25428 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25429 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25430 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25431 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25432 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25433 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
25434 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
25435 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25436 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
25437 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
25438 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25439 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
25440 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25441 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
25442 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
25443 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
25444 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
25445 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25446 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
25447 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
25448 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
25449 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
25450 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
25451 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
25452 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25453 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25454 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
25455 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
25456 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25457 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25458 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
25459 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25460 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
25461 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
25462 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
25463 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
25464 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
25465 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
25466 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
25467 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
25468 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
25469 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25470 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
25471 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
25472 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
25473 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
25474 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
25475 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
25476 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25477 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
25478 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
25479 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
25480 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
25481 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
25482 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
25483 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
25484 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
25485 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
25486 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
25487 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
25488 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
25489 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
25490 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
25491 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25492 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25493 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25494 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
25495 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25496 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25497 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25498 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
25499 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
25500 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
25501 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25502 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25503 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25504 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
25505 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
25506 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
25507 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
25508 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25509 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
25510 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
25511 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
25512 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
25513 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
25514 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25515 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
25516 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25517 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
25518 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
25519 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
25520 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
25521 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
25522 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25523 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25524 | { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25525 | { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
25526 | { (char *)"MDIParentFrame_SetToolBar", (PyCFunction) _wrap_MDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
25527 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
25528 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
25529 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25530 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
25531 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
25532 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
25533 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
25534 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
25535 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
25536 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25537 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
25538 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
25539 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
25540 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25541 | { (char *)"new_PrePyWindow", (PyCFunction) _wrap_new_PrePyWindow, METH_VARARGS | METH_KEYWORDS }, | |
25542 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25543 | { (char *)"PyWindow_SetBestSize", (PyCFunction) _wrap_PyWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25544 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25545 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25546 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25547 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25548 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25549 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25550 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25551 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25552 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25553 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25554 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25555 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25556 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25557 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25558 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25559 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25560 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25561 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25562 | { (char *)"PyWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25563 | { (char *)"PyWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25564 | { (char *)"PyWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25565 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, |
25566 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25567 | { (char *)"new_PrePyPanel", (PyCFunction) _wrap_new_PrePyPanel, METH_VARARGS | METH_KEYWORDS }, | |
25568 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25569 | { (char *)"PyPanel_SetBestSize", (PyCFunction) _wrap_PyPanel_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25570 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25571 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25572 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25573 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25574 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25575 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25576 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25577 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25578 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25579 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25580 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25581 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25582 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25583 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25584 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25585 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25586 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25587 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25588 | { (char *)"PyPanel_base_ShouldInheritColours", (PyCFunction) _wrap_PyPanel_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25589 | { (char *)"PyPanel_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyPanel_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25590 | { (char *)"PyPanel_base_GetDefaultAttributes", (PyCFunction) _wrap_PyPanel_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25591 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, |
25592 | { (char *)"new_PyScrolledWindow", (PyCFunction) _wrap_new_PyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25593 | { (char *)"new_PrePyScrolledWindow", (PyCFunction) _wrap_new_PrePyScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
25594 | { (char *)"PyScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_PyScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25595 | { (char *)"PyScrolledWindow_SetBestSize", (PyCFunction) _wrap_PyScrolledWindow_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
25596 | { (char *)"PyScrolledWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyScrolledWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
25597 | { (char *)"PyScrolledWindow_base_DoSetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
25598 | { (char *)"PyScrolledWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25599 | { (char *)"PyScrolledWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25600 | { (char *)"PyScrolledWindow_base_DoGetSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
25601 | { (char *)"PyScrolledWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
25602 | { (char *)"PyScrolledWindow_base_DoGetPosition", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
25603 | { (char *)"PyScrolledWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
25604 | { (char *)"PyScrolledWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyScrolledWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
25605 | { (char *)"PyScrolledWindow_base_InitDialog", (PyCFunction) _wrap_PyScrolledWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
25606 | { (char *)"PyScrolledWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
25607 | { (char *)"PyScrolledWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyScrolledWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
25608 | { (char *)"PyScrolledWindow_base_Validate", (PyCFunction) _wrap_PyScrolledWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
25609 | { (char *)"PyScrolledWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
25610 | { (char *)"PyScrolledWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyScrolledWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
25611 | { (char *)"PyScrolledWindow_base_GetMaxSize", (PyCFunction) _wrap_PyScrolledWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
25612 | { (char *)"PyScrolledWindow_base_AddChild", (PyCFunction) _wrap_PyScrolledWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
25613 | { (char *)"PyScrolledWindow_base_RemoveChild", (PyCFunction) _wrap_PyScrolledWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
25614 | { (char *)"PyScrolledWindow_base_ShouldInheritColours", (PyCFunction) _wrap_PyScrolledWindow_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
25615 | { (char *)"PyScrolledWindow_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyScrolledWindow_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 25616 | { (char *)"PyScrolledWindow_base_GetDefaultAttributes", (PyCFunction) _wrap_PyScrolledWindow_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc | 25617 | { (char *)"PyScrolledWindow_swigregister", PyScrolledWindow_swigregister, METH_VARARGS }, |
09c21d3b | 25618 | { (char *)"new_PrintData", _wrap_new_PrintData, METH_VARARGS }, |
d55e5bfc RD |
25619 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, |
25620 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25621 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25622 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25623 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25624 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25625 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
25626 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25627 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25628 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25629 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25630 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25631 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25632 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25633 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
25634 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
25635 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
25636 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25637 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25638 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
25639 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25640 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25641 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25642 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25643 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25644 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25645 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25646 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25647 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25648 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25649 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
25650 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
25651 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
25652 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
25653 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
25654 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
25655 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
25656 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
25657 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
25658 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
25659 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
25660 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
25661 | { (char *)"PrintData_GetOutputStream", (PyCFunction) _wrap_PrintData_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25662 | { (char *)"PrintData_SetOutputStream", (PyCFunction) _wrap_PrintData_SetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
25663 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
09c21d3b | 25664 | { (char *)"new_PageSetupDialogData", _wrap_new_PageSetupDialogData, METH_VARARGS }, |
d55e5bfc RD |
25665 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, |
25666 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25667 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25668 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25669 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25670 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25671 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25672 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
25673 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
25674 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
25675 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
25676 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25677 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25678 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25679 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25680 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25681 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25682 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25683 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25684 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25685 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25686 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
25687 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
25688 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25689 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25690 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
25691 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
25692 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
25693 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
25694 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25695 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
25696 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25697 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
25698 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25699 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
25700 | { (char *)"new_PrintDialogData", _wrap_new_PrintDialogData, METH_VARARGS }, | |
25701 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25702 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25703 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25704 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25705 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25706 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25707 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25708 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25709 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25710 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25711 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25712 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
25713 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
25714 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25715 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25716 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
25717 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
25718 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
25719 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
25720 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25721 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
25722 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25723 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25724 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25725 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25726 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
25727 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
25728 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
25729 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
25730 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25731 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25732 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
25733 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
25734 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25735 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25736 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
25737 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
25738 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
25739 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25740 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
25741 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
25742 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25743 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
25744 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
25745 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
25746 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
25747 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
25748 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
25749 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
25750 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
25751 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25752 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
25753 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
25754 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
25755 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25756 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, | |
25757 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25758 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
25759 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25760 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
25761 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25762 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
25763 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25764 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
25765 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
25766 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
25767 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25768 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25769 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
25770 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, | |
25771 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, | |
25772 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, | |
25773 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25774 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
25775 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25776 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25777 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25778 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25779 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25780 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
25781 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25782 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25783 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25784 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25785 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
25786 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
25787 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
25788 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
25789 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
25790 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
25791 | { (char *)"new_PrintPreview", _wrap_new_PrintPreview, METH_VARARGS }, | |
25792 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25793 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25794 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25795 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
25796 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
25797 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25798 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25799 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
25800 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25801 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25802 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25803 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25804 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
25805 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
25806 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25807 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25808 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
25809 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
25810 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
25811 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
25812 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
25813 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25814 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
25815 | { (char *)"new_PyPrintPreview", _wrap_new_PyPrintPreview, METH_VARARGS }, | |
25816 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25817 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
25818 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
25819 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
25820 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
25821 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
25822 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
25823 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
25824 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
25825 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
25826 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25827 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25828 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25829 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
25830 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
25831 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25832 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
25833 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
25834 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
25835 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
25836 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
25837 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
25838 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
25839 | { NULL, NULL } | |
25840 | }; | |
25841 | ||
25842 | ||
25843 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
25844 | ||
25845 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
25846 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
25847 | } | |
25848 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
25849 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
25850 | } | |
25851 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
25852 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
25853 | } | |
25854 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
25855 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
25856 | } | |
25857 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
25858 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
25859 | } | |
25860 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
25861 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
25862 | } | |
25863 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
25864 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
25865 | } | |
25866 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
25867 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25868 | } | |
25869 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
25870 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
25871 | } | |
25872 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
25873 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
25874 | } | |
25875 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
25876 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
25877 | } | |
25878 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
25879 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
25880 | } | |
25881 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
25882 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
25883 | } | |
25884 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
25885 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
25886 | } | |
25887 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
25888 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
25889 | } | |
25890 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
25891 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
25892 | } | |
25893 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
25894 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
25895 | } | |
25896 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
25897 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
25898 | } | |
25899 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
25900 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
25901 | } | |
25902 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
25903 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
25904 | } | |
25905 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
25906 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
25907 | } | |
25908 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
25909 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
25910 | } | |
25911 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
25912 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
25913 | } | |
25914 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
25915 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
25916 | } | |
25917 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
25918 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
25919 | } | |
25920 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
25921 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
25922 | } | |
25923 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
25924 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
25925 | } | |
25926 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
25927 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
25928 | } | |
25929 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
25930 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
25931 | } | |
25932 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
25933 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
25934 | } | |
25935 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
25936 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
25937 | } | |
25938 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
25939 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
25940 | } | |
25941 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
25942 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
25943 | } | |
25944 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
25945 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
25946 | } | |
25947 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
25948 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
25949 | } | |
25950 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
25951 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
25952 | } | |
25953 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
25954 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
25955 | } | |
25956 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
25957 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
25958 | } | |
25959 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
25960 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
25961 | } | |
25962 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
25963 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
25964 | } | |
25965 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
25966 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
25967 | } | |
25968 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
25969 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
25970 | } | |
25971 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
25972 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
25973 | } | |
25974 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
25975 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
25976 | } | |
25977 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
25978 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
25979 | } | |
25980 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
25981 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
25982 | } | |
25983 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
25984 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
25985 | } | |
25986 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
25987 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
25988 | } | |
25989 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
25990 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
25991 | } | |
25992 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
25993 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
25994 | } | |
25995 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
25996 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
25997 | } | |
25998 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
25999 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26000 | } | |
26001 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
26002 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26003 | } | |
26004 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
26005 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26006 | } | |
26007 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
26008 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26009 | } | |
26010 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
26011 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26012 | } | |
26013 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
26014 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26015 | } | |
26016 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
26017 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
26018 | } | |
26019 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
26020 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
26021 | } | |
26022 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26023 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26024 | } | |
26025 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
26026 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26027 | } | |
26028 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
26029 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26030 | } | |
26031 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
26032 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
26033 | } | |
26034 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
26035 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26036 | } | |
26037 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
26038 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
26039 | } | |
26040 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
26041 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
26042 | } | |
26043 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
26044 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
26045 | } | |
26046 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
26047 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
26048 | } | |
26049 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26050 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
26051 | } | |
26052 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
26053 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
26054 | } | |
26055 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
26056 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
26057 | } | |
26058 | static void *_p_wxPyScrolledWindowTo_p_wxEvtHandler(void *x) { | |
26059 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26060 | } | |
26061 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
26062 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
26063 | } | |
26064 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
26065 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26066 | } | |
26067 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
26068 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26069 | } | |
26070 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
26071 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26072 | } | |
26073 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
26074 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
26075 | } | |
26076 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
26077 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26078 | } | |
26079 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
26080 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
26081 | } | |
26082 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
26083 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26084 | } | |
26085 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
26086 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26087 | } | |
26088 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
26089 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26090 | } | |
26091 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
26092 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
26093 | } | |
26094 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
26095 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26096 | } | |
26097 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
26098 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
26099 | } | |
26100 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
26101 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
26102 | } | |
26103 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
26104 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26105 | } | |
26106 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
26107 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26108 | } | |
26109 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
26110 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26111 | } | |
26112 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
26113 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
26114 | } | |
26115 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
26116 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26117 | } | |
26118 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
26119 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26120 | } | |
26121 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
26122 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26123 | } | |
26124 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
26125 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26126 | } | |
26127 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
26128 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
26129 | } | |
26130 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
26131 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
26132 | } | |
26133 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
26134 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
26135 | } | |
26136 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
26137 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26138 | } | |
26139 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
26140 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
26141 | } | |
26142 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
26143 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
26144 | } | |
26145 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
26146 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
26147 | } | |
26148 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
26149 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
26150 | } | |
26151 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
26152 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
26153 | } | |
26154 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
26155 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26156 | } | |
26157 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
26158 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26159 | } | |
26160 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
26161 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
26162 | } | |
26163 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
26164 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
26165 | } | |
26166 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
26167 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
26168 | } | |
26169 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
26170 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
26171 | } | |
26172 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
26173 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
26174 | } | |
26175 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
26176 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
26177 | } | |
26178 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
26179 | return (void *)((wxObject *) ((wxSizer *) x)); | |
26180 | } | |
26181 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
26182 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
26183 | } | |
26184 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
26185 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26186 | } | |
26187 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
26188 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
26189 | } | |
26190 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
26191 | return (void *)((wxObject *) ((wxEvent *) x)); | |
26192 | } | |
26193 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
26194 | return (void *)((wxObject *) ((wxFontData *) x)); | |
26195 | } | |
26196 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
26197 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
26198 | } | |
26199 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
26200 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
26201 | } | |
26202 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
26203 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
26204 | } | |
26205 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
26206 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
26207 | } | |
26208 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
26209 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
26210 | } | |
26211 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
26212 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
26213 | } | |
26214 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
26215 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26216 | } | |
26217 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
26218 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
26219 | } | |
26220 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
26221 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
26222 | } | |
26223 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
26224 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
26225 | } | |
26226 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
26227 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
26228 | } | |
26229 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
26230 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
26231 | } | |
26232 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
26233 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
26234 | } | |
26235 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
26236 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26237 | } | |
26238 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
26239 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
26240 | } | |
26241 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
26242 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
26243 | } | |
26244 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
26245 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26246 | } | |
26247 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
26248 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
26249 | } | |
26250 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
26251 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
26252 | } | |
26253 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
26254 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
26255 | } | |
26256 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
26257 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26258 | } | |
26259 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
26260 | return (void *)((wxObject *) ((wxColourData *) x)); | |
26261 | } | |
26262 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
26263 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
26264 | } | |
26265 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
26266 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26267 | } | |
26268 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
26269 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
26270 | } | |
26271 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
26272 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26273 | } | |
26274 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
26275 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26276 | } | |
26277 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
26278 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26279 | } | |
26280 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
26281 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26282 | } | |
26283 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
26284 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26285 | } | |
26286 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
26287 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26288 | } | |
26289 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
26290 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26291 | } | |
26292 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
26293 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26294 | } | |
26295 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
26296 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
26297 | } | |
26298 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
26299 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
26300 | } | |
26301 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
26302 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
26303 | } | |
26304 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
26305 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
26306 | } | |
26307 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
26308 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26309 | } | |
26310 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
26311 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
26312 | } | |
26313 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
26314 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
26315 | } | |
26316 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
26317 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
26318 | } | |
26319 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
26320 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
26321 | } | |
26322 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
26323 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
26324 | } | |
26325 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
26326 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
26327 | } | |
26328 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
26329 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
26330 | } | |
26331 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
26332 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
26333 | } | |
26334 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
26335 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
26336 | } | |
26337 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
26338 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
26339 | } | |
26340 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
26341 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
26342 | } | |
26343 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
26344 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
26345 | } | |
26346 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
26347 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
26348 | } | |
26349 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
26350 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
26351 | } | |
26352 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
26353 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
26354 | } | |
26355 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
26356 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
26357 | } | |
26358 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
26359 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
26360 | } | |
26361 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
26362 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
26363 | } | |
26364 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
26365 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
26366 | } | |
26367 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
26368 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
26369 | } | |
26370 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
26371 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26372 | } | |
26373 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
26374 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26375 | } | |
26376 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
26377 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
26378 | } | |
26379 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
26380 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26381 | } | |
26382 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
26383 | return (void *)((wxObject *) ((wxImage *) x)); | |
26384 | } | |
26385 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
26386 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
26387 | } | |
26388 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
26389 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
26390 | } | |
26391 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
26392 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
26393 | } | |
26394 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
26395 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
26396 | } | |
26397 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
26398 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
26399 | } | |
26400 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
26401 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26402 | } | |
26403 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
26404 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26405 | } | |
26406 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
26407 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
26408 | } | |
26409 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
26410 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
26411 | } | |
26412 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
26413 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
26414 | } | |
26415 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
26416 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
26417 | } | |
26418 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
26419 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
26420 | } | |
26421 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { | |
26422 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
26423 | } | |
26424 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { | |
26425 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
26426 | } | |
26427 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
26428 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
26429 | } | |
26430 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
26431 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
26432 | } | |
26433 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
26434 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
26435 | } | |
26436 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
26437 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26438 | } | |
26439 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
26440 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
26441 | } | |
26442 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
26443 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26444 | } | |
26445 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
26446 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26447 | } | |
26448 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
26449 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26450 | } | |
26451 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
26452 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
26453 | } | |
26454 | static void *_p_wxPyScrolledWindowTo_p_wxObject(void *x) { | |
26455 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26456 | } | |
26457 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
26458 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
26459 | } | |
26460 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
26461 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
26462 | } | |
26463 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
26464 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26465 | } | |
26466 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
26467 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
26468 | } | |
26469 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
26470 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
26471 | } | |
26472 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
26473 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26474 | } | |
26475 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
26476 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26477 | } | |
26478 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
26479 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26480 | } | |
26481 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
26482 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26483 | } | |
26484 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
26485 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26486 | } | |
26487 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
26488 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
26489 | } | |
26490 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
26491 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26492 | } | |
26493 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
26494 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
26495 | } | |
26496 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
26497 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
26498 | } | |
26499 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
26500 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
26501 | } | |
26502 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
26503 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
26504 | } | |
26505 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
26506 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
26507 | } | |
26508 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
26509 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26510 | } | |
26511 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
26512 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
26513 | } | |
26514 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
26515 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
26516 | } | |
26517 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
26518 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26519 | } | |
26520 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
26521 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
26522 | } | |
26523 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
26524 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
26525 | } | |
26526 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
26527 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26528 | } | |
26529 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
26530 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
26531 | } | |
26532 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
26533 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
26534 | } | |
26535 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
26536 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
26537 | } | |
26538 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
26539 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
26540 | } | |
26541 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
26542 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
26543 | } | |
26544 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26545 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26546 | } | |
26547 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
26548 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26549 | } | |
26550 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
26551 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26552 | } | |
26553 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
26554 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26555 | } | |
26556 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
26557 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26558 | } | |
26559 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
26560 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26561 | } | |
26562 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
26563 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
26564 | } | |
26565 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
26566 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
26567 | } | |
26568 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
26569 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
26570 | } | |
26571 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
26572 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
26573 | } | |
26574 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
26575 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
26576 | } | |
26577 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
26578 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
26579 | } | |
26580 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
26581 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
26582 | } | |
26583 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
26584 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
26585 | } | |
26586 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
26587 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
26588 | } | |
26589 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
26590 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
26591 | } | |
26592 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
26593 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
26594 | } | |
26595 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
26596 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
26597 | } | |
26598 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
26599 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
26600 | } | |
26601 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
26602 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
26603 | } | |
26604 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
26605 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
26606 | } | |
26607 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26608 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26609 | } | |
26610 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
26611 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26612 | } | |
26613 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
26614 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
26615 | } | |
26616 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26617 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
26618 | } | |
26619 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
26620 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26621 | } | |
26622 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
26623 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
26624 | } | |
26625 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
26626 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
26627 | } | |
26628 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
26629 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
26630 | } | |
26631 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
26632 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
26633 | } | |
26634 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
26635 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
26636 | } | |
26637 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
26638 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
26639 | } | |
26640 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
26641 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
26642 | } | |
26643 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
26644 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
26645 | } | |
26646 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
26647 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26648 | } | |
26649 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
26650 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26651 | } | |
26652 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
26653 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
26654 | } | |
26655 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
26656 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
26657 | } | |
26658 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
26659 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
26660 | } | |
26661 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
26662 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
26663 | } | |
26664 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
26665 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26666 | } | |
26667 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
26668 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
26669 | } | |
26670 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
26671 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
26672 | } | |
26673 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
26674 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
26675 | } | |
26676 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
26677 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
26678 | } | |
26679 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
26680 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
26681 | } | |
26682 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
26683 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
26684 | } | |
26685 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
26686 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
26687 | } | |
26688 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
26689 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
26690 | } | |
26691 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
26692 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
26693 | } | |
26694 | static void *_p_wxPyScrolledWindowTo_p_wxWindow(void *x) { | |
26695 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26696 | } | |
26697 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
26698 | return (void *)((wxWindow *) ((wxControl *) x)); | |
26699 | } | |
26700 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
26701 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
26702 | } | |
26703 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
26704 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
26705 | } | |
26706 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
26707 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
26708 | } | |
26709 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
26710 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
26711 | } | |
26712 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
26713 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
26714 | } | |
26715 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
26716 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26717 | } | |
26718 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
26719 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26720 | } | |
26721 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
26722 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26723 | } | |
26724 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
26725 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
26726 | } | |
26727 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
26728 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26729 | } | |
26730 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
26731 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
26732 | } | |
26733 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
26734 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
26735 | } | |
26736 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
26737 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
26738 | } | |
26739 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
26740 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
26741 | } | |
26742 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
26743 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
26744 | } | |
26745 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
26746 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
26747 | } | |
26748 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
26749 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
26750 | } | |
26751 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
26752 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
26753 | } | |
26754 | static void *_p_wxPyScrolledWindowTo_p_wxScrolledWindow(void *x) { | |
26755 | return (void *)((wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26756 | } | |
26757 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
26758 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26759 | } | |
26760 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
26761 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
26762 | } | |
26763 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
26764 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
26765 | } | |
26766 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
26767 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
26768 | } | |
26769 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
26770 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
26771 | } | |
26772 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
26773 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
26774 | } | |
26775 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
26776 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
26777 | } | |
26778 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
26779 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
26780 | } | |
26781 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
26782 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
26783 | } | |
26784 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
26785 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
26786 | } | |
26787 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
26788 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
26789 | } | |
26790 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
26791 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
26792 | } | |
26793 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
26794 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
26795 | } | |
26796 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
26797 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
26798 | } | |
26799 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
26800 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
26801 | } | |
26802 | static void *_p_wxPyScrolledWindowTo_p_wxPanel(void *x) { | |
26803 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPyScrolledWindow *) x)); | |
26804 | } | |
26805 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
26806 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
26807 | } | |
26808 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
26809 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
26810 | } | |
26811 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
26812 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
26813 | } | |
26814 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
26815 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
26816 | } | |
26817 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
26818 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
26819 | } | |
26820 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
26821 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26822 | } | |
26823 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
26824 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
26825 | } | |
26826 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
26827 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
26828 | } | |
26829 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
26830 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
26831 | } | |
26832 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
26833 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
26834 | } | |
26835 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
26836 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
26837 | } | |
26838 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
26839 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
26840 | } | |
26841 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
26842 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
26843 | } | |
26844 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
26845 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
26846 | } | |
26847 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
26848 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
26849 | } | |
26850 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
26851 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
26852 | } | |
26853 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
26854 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
26855 | } | |
26856 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
26857 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
26858 | } | |
26859 | 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}}; | |
26860 | 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}}; | |
26861 | 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}}; | |
26862 | 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}}; | |
26863 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
26864 | 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}}; |
26865 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
f5b96ee1 | 26866 | 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 |
26867 | 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}}; |
26868 | 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}}; | |
26869 | 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}}; | |
26870 | 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}}; | |
26871 | 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}}; | |
26872 | 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}}; | |
26873 | 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}}; | |
26874 | 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}}; | |
26875 | 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}}; | |
26876 | 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}}; | |
26877 | 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}}; | |
26878 | 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}}; | |
26879 | 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 | 26880 | 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 |
26881 | 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}}; |
26882 | 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}}; | |
26883 | 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}}; | |
26884 | 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}}; | |
26885 | 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}}; | |
26886 | 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}}; | |
26887 | 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}}; | |
26888 | 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}}; | |
26889 | 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}}; | |
26890 | 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}}; | |
26891 | 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}}; | |
26892 | 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}}; | |
26893 | 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}}; | |
26894 | 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}}; | |
26895 | 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}}; | |
26896 | 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}}; | |
26897 | 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}}; | |
26898 | 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}}; | |
26899 | 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}}; | |
26900 | 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}}; | |
26901 | 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}}; | |
26902 | 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}}; | |
26903 | 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}}; | |
26904 | 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}}; | |
26905 | 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}}; | |
26906 | 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}}; | |
26907 | 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}}; | |
26908 | 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}}; | |
26909 | 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}}; | |
26910 | 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 |
26911 | 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}}; |
26912 | 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}}; | |
26913 | 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}}; | |
26914 | 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}}; | |
26915 | 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 | 26916 | 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 |
26917 | 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}}; |
26918 | 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}}; | |
26919 | 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}}; | |
26920 | 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}}; | |
26921 | 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}}; | |
26922 | 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}}; | |
26923 | 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 |
26924 | 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}}; |
26925 | 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}}; | |
26926 | 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}}; | |
26927 | 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}}; | |
26928 | 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}}; | |
26929 | 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}}; | |
26930 | 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}}; | |
26931 | 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}}; | |
26932 | 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}}; | |
26933 | 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}}; | |
26934 | 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}}; | |
26935 | 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 | 26936 | 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 |
26937 | 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}}; |
26938 | 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}}; | |
26939 | 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}}; | |
26940 | 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}}; | |
26941 | 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}}; | |
26942 | 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}}; | |
26943 | 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}}; | |
26944 | 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}}; | |
26945 | ||
26946 | static swig_type_info *swig_types_initial[] = { | |
26947 | _swigt__p_wxQueryLayoutInfoEvent, | |
26948 | _swigt__p_wxPreviewFrame, | |
26949 | _swigt__p_wxPyPreviewFrame, | |
26950 | _swigt__p_wxPyPanel, | |
26951 | _swigt__p_wxMenu, | |
d55e5bfc RD |
26952 | _swigt__p_wxFontData, |
26953 | _swigt__p_wxEvent, | |
f5b96ee1 | 26954 | _swigt__p_wxPrintData, |
d55e5bfc RD |
26955 | _swigt__p_wxTaskBarIcon, |
26956 | _swigt__p_wxIconBundle, | |
26957 | _swigt__p_wxLayoutAlgorithm, | |
26958 | _swigt__p_wxFindDialogEvent, | |
26959 | _swigt__p_wxPreviewCanvas, | |
26960 | _swigt__p_wxFont, | |
26961 | _swigt__p_wxSplitterEvent, | |
26962 | _swigt__p_wxRegion, | |
26963 | _swigt__p_wxFindReplaceData, | |
26964 | _swigt__p_int, | |
26965 | _swigt__p_wxSize, | |
26966 | _swigt__p_wxDC, | |
26967 | _swigt__p_wxIcon, | |
f20a2e1f | 26968 | _swigt__p_wxVisualAttributes, |
d55e5bfc RD |
26969 | _swigt__p_wxMDIChildFrame, |
26970 | _swigt__p_wxColourData, | |
26971 | _swigt__p_wxNotifyEvent, | |
26972 | _swigt__p_wxPyWindow, | |
26973 | _swigt__p_wxSplashScreen, | |
26974 | _swigt__p_wxFindReplaceDialog, | |
26975 | _swigt__p_wxProgressDialog, | |
26976 | _swigt__p_wxMessageDialog, | |
26977 | _swigt__p_wxTextEntryDialog, | |
26978 | _swigt__p_wxSingleChoiceDialog, | |
26979 | _swigt__p_wxMultiChoiceDialog, | |
26980 | _swigt__p_wxFileDialog, | |
26981 | _swigt__p_wxPrinter, | |
26982 | _swigt__p_wxArrayInt, | |
26983 | _swigt__p_wxEvtHandler, | |
26984 | _swigt__p_wxCalculateLayoutEvent, | |
26985 | _swigt__p_wxPyHtmlListBox, | |
26986 | _swigt__p_wxPyVListBox, | |
26987 | _swigt__p_wxRect, | |
26988 | _swigt__p_char, | |
26989 | _swigt__p_wxMiniFrame, | |
26990 | _swigt__p_wxFrame, | |
26991 | _swigt__p_wxPyPrintout, | |
26992 | _swigt__p_wxTaskBarIconEvent, | |
26993 | _swigt__p_wxScrollWinEvent, | |
26994 | _swigt__p_wxStatusBar, | |
26995 | _swigt__p_wxMDIParentFrame, | |
26996 | _swigt__p_wxPoint, | |
26997 | _swigt__p_wxObject, | |
26998 | _swigt__p_wxOutputStream, | |
d55e5bfc RD |
26999 | _swigt__p_wxPyScrolledWindow, |
27000 | _swigt__p_wxMDIClientWindow, | |
27001 | _swigt__p_wxTipWindow, | |
27002 | _swigt__p_wxSashLayoutWindow, | |
27003 | _swigt__p_wxSplitterWindow, | |
f20a2e1f | 27004 | _swigt__p_wxSplashScreenWindow, |
d55e5bfc RD |
27005 | _swigt__p_wxPyVScrolledWindow, |
27006 | _swigt__p_wxPyPopupTransientWindow, | |
27007 | _swigt__p_wxPopupWindow, | |
27008 | _swigt__p_wxSashWindow, | |
27009 | _swigt__p_wxTopLevelWindow, | |
27010 | _swigt__p_wxWindow, | |
27011 | _swigt__p_wxScrolledWindow, | |
d55e5bfc RD |
27012 | _swigt__p_wxMenuBar, |
27013 | _swigt__p_wxPrintPreview, | |
27014 | _swigt__p_wxSashEvent, | |
27015 | _swigt__p_wxString, | |
27016 | _swigt__p_wxPyPrintPreview, | |
27017 | _swigt__p_wxFontDialog, | |
27018 | _swigt__p_wxDirDialog, | |
27019 | _swigt__p_wxColourDialog, | |
27020 | _swigt__p_wxDialog, | |
27021 | _swigt__p_wxPanel, | |
27022 | _swigt__p_wxPageSetupDialog, | |
27023 | _swigt__p_wxPrintDialog, | |
c24da6d6 | 27024 | _swigt__p_wxFileSystem, |
d55e5bfc RD |
27025 | _swigt__p_wxBitmap, |
27026 | _swigt__p_wxCommandEvent, | |
27027 | _swigt__p_wxPreviewControlBar, | |
27028 | _swigt__p_wxPyPreviewControlBar, | |
27029 | _swigt__p_wxColour, | |
27030 | _swigt__p_wxToolBar, | |
27031 | _swigt__p_wxPageSetupDialogData, | |
27032 | _swigt__p_wxPrintDialogData, | |
27033 | 0 | |
27034 | }; | |
27035 | ||
27036 | ||
27037 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
27038 | ||
27039 | static swig_const_info swig_const_table[] = { | |
27040 | {0}}; | |
27041 | ||
27042 | #ifdef __cplusplus | |
27043 | } | |
27044 | #endif | |
27045 | ||
27046 | #ifdef __cplusplus | |
27047 | extern "C" | |
27048 | #endif | |
27049 | SWIGEXPORT(void) SWIG_init(void) { | |
27050 | static PyObject *SWIG_globals = 0; | |
27051 | static int typeinit = 0; | |
27052 | PyObject *m, *d; | |
27053 | int i; | |
27054 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
27055 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
27056 | d = PyModule_GetDict(m); | |
27057 | ||
27058 | if (!typeinit) { | |
27059 | for (i = 0; swig_types_initial[i]; i++) { | |
27060 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
27061 | } | |
27062 | typeinit = 1; | |
27063 | } | |
27064 | SWIG_InstallConstants(d,swig_const_table); | |
27065 | ||
27066 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
27067 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
27068 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
27069 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
27070 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
27071 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
27072 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
27073 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
27074 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
27075 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
27076 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
27077 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
27078 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
27079 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
27080 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
27081 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
27082 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
27083 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
27084 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
27085 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
27086 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
27087 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
27088 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
27089 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
27090 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
27091 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
27092 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
27093 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
27094 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
27095 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
27096 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_FromInt((int)wxFULLSCREEN_NOMENUBAR)); | |
27097 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
27098 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
27099 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
27100 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
27101 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_FromInt((int)wxFULLSCREEN_ALL)); | |
27102 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
27103 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
27104 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
27105 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_FromInt((int)wxSPLASH_NO_CENTRE)); | |
27106 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_FromInt((int)wxSPLASH_TIMEOUT)); | |
27107 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
27108 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); | |
27109 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_FromInt((int)wxSP_NOBORDER)); | |
27110 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_FromInt((int)wxSP_NOSASH)); | |
27111 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
27112 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_FromInt((int)wxSP_LIVE_UPDATE)); | |
27113 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_FromInt((int)wxSP_3DSASH)); | |
27114 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_FromInt((int)wxSP_3DBORDER)); | |
27115 | PyDict_SetItemString(d,"SP_NO_XP_THEME", SWIG_FromInt((int)wxSP_NO_XP_THEME)); | |
27116 | PyDict_SetItemString(d,"SP_BORDER", SWIG_FromInt((int)wxSP_BORDER)); | |
27117 | PyDict_SetItemString(d,"SP_3D", SWIG_FromInt((int)wxSP_3D)); | |
27118 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_FromInt((int)wxSPLIT_HORIZONTAL)); | |
27119 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_FromInt((int)wxSPLIT_VERTICAL)); | |
27120 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_FromInt((int)wxSPLIT_DRAG_NONE)); | |
27121 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
27122 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
27123 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); | |
27124 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
27125 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
27126 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
27127 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); | |
27128 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
27129 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_FromInt((int)wxSASH_DRAG_NONE)); | |
27130 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
27131 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
27132 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_FromInt((int)wxSW_NOBORDER)); | |
27133 | PyDict_SetItemString(d,"SW_BORDER", SWIG_FromInt((int)wxSW_BORDER)); | |
27134 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_FromInt((int)wxSW_3DSASH)); | |
27135 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_FromInt((int)wxSW_3DBORDER)); | |
27136 | PyDict_SetItemString(d,"SW_3D", SWIG_FromInt((int)wxSW_3D)); | |
27137 | PyDict_SetItemString(d,"SASH_TOP", SWIG_FromInt((int)wxSASH_TOP)); | |
27138 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_FromInt((int)wxSASH_RIGHT)); | |
27139 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_FromInt((int)wxSASH_BOTTOM)); | |
27140 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_FromInt((int)wxSASH_LEFT)); | |
27141 | PyDict_SetItemString(d,"SASH_NONE", SWIG_FromInt((int)wxSASH_NONE)); | |
27142 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_FromInt((int)wxSASH_STATUS_OK)); | |
27143 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
27144 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); | |
27145 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_FromInt((int)wxLAYOUT_HORIZONTAL)); | |
27146 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_FromInt((int)wxLAYOUT_VERTICAL)); | |
27147 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_FromInt((int)wxLAYOUT_NONE)); | |
27148 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_FromInt((int)wxLAYOUT_TOP)); | |
27149 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_FromInt((int)wxLAYOUT_LEFT)); | |
27150 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_FromInt((int)wxLAYOUT_RIGHT)); | |
27151 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_FromInt((int)wxLAYOUT_BOTTOM)); | |
27152 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
27153 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_FromInt((int)wxLAYOUT_LENGTH_X)); | |
27154 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
27155 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_FromInt((int)wxLAYOUT_QUERY)); | |
27156 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); | |
27157 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
27158 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); | |
27159 | ||
27160 | // Map renamed classes back to their common name for OOR | |
27161 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
27162 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
27163 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
27164 | ||
27165 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
27166 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
27167 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
27168 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
27169 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
27170 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
27171 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
27172 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); | |
27173 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
27174 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
27175 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
27176 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
27177 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
27178 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_FromInt((int)wxCHOICEDLG_STYLE)); | |
27179 | PyDict_SetItemString(d,"FR_DOWN", SWIG_FromInt((int)wxFR_DOWN)); | |
27180 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_FromInt((int)wxFR_WHOLEWORD)); | |
27181 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_FromInt((int)wxFR_MATCHCASE)); | |
27182 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_FromInt((int)wxFR_REPLACEDIALOG)); | |
27183 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_FromInt((int)wxFR_NOUPDOWN)); | |
27184 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_FromInt((int)wxFR_NOMATCHCASE)); | |
27185 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_FromInt((int)wxFR_NOWHOLEWORD)); | |
27186 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); | |
27187 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
27188 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
27189 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
27190 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
27191 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_FromInt((int)4001)); | |
27192 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_FromInt((int)4001)); | |
27193 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_FromInt((int)4002)); | |
27194 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_FromInt((int)4003)); | |
27195 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_FromInt((int)4004)); | |
27196 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_FromInt((int)4005)); | |
27197 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_FromInt((int)4100)); | |
27198 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_FromInt((int)4600)); | |
27199 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); | |
27200 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
27201 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_FromInt((int)wxPRINT_MODE_NONE)); | |
27202 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
27203 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_FromInt((int)wxPRINT_MODE_FILE)); | |
27204 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_FromInt((int)wxPRINT_MODE_PRINTER)); | |
27205 | PyDict_SetItemString(d,"PRINT_MODE_STREAM", SWIG_FromInt((int)wxPRINT_MODE_STREAM)); | |
27206 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_FromInt((int)wxPRINTER_NO_ERROR)); | |
27207 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_FromInt((int)wxPRINTER_CANCELLED)); | |
27208 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_FromInt((int)wxPRINTER_ERROR)); | |
27209 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_FromInt((int)wxPREVIEW_PRINT)); | |
27210 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_FromInt((int)wxPREVIEW_PREVIOUS)); | |
27211 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_FromInt((int)wxPREVIEW_NEXT)); | |
27212 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_FromInt((int)wxPREVIEW_ZOOM)); | |
27213 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_FromInt((int)wxPREVIEW_FIRST)); | |
27214 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_FromInt((int)wxPREVIEW_LAST)); | |
27215 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_FromInt((int)wxPREVIEW_GOTO)); | |
27216 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_FromInt((int)wxPREVIEW_DEFAULT)); | |
27217 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_FromInt((int)wxID_PREVIEW_CLOSE)); | |
27218 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_FromInt((int)wxID_PREVIEW_NEXT)); | |
27219 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
27220 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_FromInt((int)wxID_PREVIEW_PRINT)); | |
27221 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_FromInt((int)wxID_PREVIEW_ZOOM)); | |
27222 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_FromInt((int)wxID_PREVIEW_FIRST)); | |
27223 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_FromInt((int)wxID_PREVIEW_LAST)); | |
27224 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_FromInt((int)wxID_PREVIEW_GOTO)); | |
27225 | ||
27226 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
27227 | ||
27228 | } | |
27229 |