]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 3 | * Version 1.3.22 |
d14a1e28 RD |
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 | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
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 | ||
f0983263 RD |
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 | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
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 { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
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 *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
f0983263 | 126 | |
d14a1e28 RD |
127 | /*********************************************************************** |
128 | * pyrun.swg for wxPython | |
129 | * | |
130 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
131 | * but not the runtime functions themselves. This helps keep the | |
132 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
133 | * anyway. | |
134 | * | |
135 | ************************************************************************/ | |
136 | ||
d14a1e28 RD |
137 | #include "Python.h" |
138 | ||
139 | #ifdef __cplusplus | |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
d14a1e28 RD |
167 | /* Common SWIG API */ |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
83448d71 | 174 | |
d14a1e28 RD |
175 | /* Python-specific SWIG API */ |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
8edf1c75 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
f0983263 RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
8edf1c75 RD |
198 | /* ----------------------------------------------------------------------------- |
199 | * the needed conversions between C++ and python | |
200 | * ----------------------------------------------------------------------------- */ | |
201 | /* basic types */ | |
202 | /* | |
203 | utilities | |
204 | */ | |
205 | SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
206 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr); | |
207 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj); | |
208 | SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type, | |
209 | long min_value, long max_value); | |
210 | SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type, | |
211 | unsigned long max_value); | |
212 | SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info); | |
213 | SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info, | |
214 | char** cptr, size_t* size); | |
215 | SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info, | |
216 | char* carray, size_t size); | |
217 | SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size); | |
218 | SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv); | |
d14a1e28 RD |
219 | |
220 | ||
221 | /* Contract support */ | |
222 | ||
423f194a | 223 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 224 | |
d14a1e28 RD |
225 | #ifdef __cplusplus |
226 | } | |
227 | #endif | |
228 | ||
229 | ||
230 | ||
231 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
232 | ||
233 | #define SWIGTYPE_p_wxQueryLayoutInfoEvent swig_types[0] | |
234 | #define SWIGTYPE_p_wxPreviewFrame swig_types[1] | |
235 | #define SWIGTYPE_p_wxPyPreviewFrame swig_types[2] | |
41f1cec7 RD |
236 | #define SWIGTYPE_p_wxPyPanel swig_types[3] |
237 | #define SWIGTYPE_p_wxMenu swig_types[4] | |
238 | #define SWIGTYPE_p_wxPrintData swig_types[5] | |
239 | #define SWIGTYPE_p_wxFontData swig_types[6] | |
240 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
241 | #define SWIGTYPE_p_wxTaskBarIcon swig_types[8] | |
242 | #define SWIGTYPE_p_wxIconBundle swig_types[9] | |
243 | #define SWIGTYPE_p_wxLayoutAlgorithm swig_types[10] | |
244 | #define SWIGTYPE_p_wxFindDialogEvent swig_types[11] | |
245 | #define SWIGTYPE_p_wxPreviewCanvas swig_types[12] | |
246 | #define SWIGTYPE_p_wxFont swig_types[13] | |
247 | #define SWIGTYPE_p_wxSplitterEvent swig_types[14] | |
248 | #define SWIGTYPE_p_wxRegion swig_types[15] | |
249 | #define SWIGTYPE_p_wxFindReplaceData swig_types[16] | |
250 | #define SWIGTYPE_p_int swig_types[17] | |
251 | #define SWIGTYPE_p_wxSize swig_types[18] | |
252 | #define SWIGTYPE_p_wxDC swig_types[19] | |
253 | #define SWIGTYPE_p_wxIcon swig_types[20] | |
254 | #define SWIGTYPE_p_wxMDIChildFrame swig_types[21] | |
255 | #define SWIGTYPE_p_wxColourData swig_types[22] | |
256 | #define SWIGTYPE_p_wxNotifyEvent swig_types[23] | |
257 | #define SWIGTYPE_p_wxPyWindow swig_types[24] | |
258 | #define SWIGTYPE_p_wxSplashScreen swig_types[25] | |
259 | #define SWIGTYPE_p_wxFindReplaceDialog swig_types[26] | |
260 | #define SWIGTYPE_p_wxProgressDialog swig_types[27] | |
261 | #define SWIGTYPE_p_wxMessageDialog swig_types[28] | |
262 | #define SWIGTYPE_p_wxTextEntryDialog swig_types[29] | |
263 | #define SWIGTYPE_p_wxSingleChoiceDialog swig_types[30] | |
264 | #define SWIGTYPE_p_wxMultiChoiceDialog swig_types[31] | |
265 | #define SWIGTYPE_p_wxFileDialog swig_types[32] | |
266 | #define SWIGTYPE_p_wxPrinter swig_types[33] | |
267 | #define SWIGTYPE_p_wxArrayInt swig_types[34] | |
268 | #define SWIGTYPE_p_wxEvtHandler swig_types[35] | |
269 | #define SWIGTYPE_p_wxCalculateLayoutEvent swig_types[36] | |
270 | #define SWIGTYPE_p_wxPyHtmlListBox swig_types[37] | |
271 | #define SWIGTYPE_p_wxPyVListBox swig_types[38] | |
272 | #define SWIGTYPE_p_wxRect swig_types[39] | |
8edf1c75 RD |
273 | #define SWIGTYPE_p_char swig_types[40] |
274 | #define SWIGTYPE_p_wxMiniFrame swig_types[41] | |
275 | #define SWIGTYPE_p_wxFrame swig_types[42] | |
276 | #define SWIGTYPE_p_wxPyPrintout swig_types[43] | |
277 | #define SWIGTYPE_p_wxTaskBarIconEvent swig_types[44] | |
278 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[45] | |
279 | #define SWIGTYPE_p_wxStatusBar swig_types[46] | |
280 | #define SWIGTYPE_p_wxMDIParentFrame swig_types[47] | |
281 | #define SWIGTYPE_p_wxPoint swig_types[48] | |
282 | #define SWIGTYPE_p_wxObject swig_types[49] | |
283 | #define SWIGTYPE_p_unsigned_long swig_types[50] | |
284 | #define SWIGTYPE_p_wxMDIClientWindow swig_types[51] | |
285 | #define SWIGTYPE_p_wxTipWindow swig_types[52] | |
286 | #define SWIGTYPE_p_wxSashLayoutWindow swig_types[53] | |
287 | #define SWIGTYPE_p_wxSplitterWindow swig_types[54] | |
288 | #define SWIGTYPE_p_wxSplashScreenWindow swig_types[55] | |
289 | #define SWIGTYPE_p_wxPyVScrolledWindow swig_types[56] | |
290 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[57] | |
291 | #define SWIGTYPE_p_wxPopupWindow swig_types[58] | |
292 | #define SWIGTYPE_p_wxSashWindow swig_types[59] | |
293 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[60] | |
294 | #define SWIGTYPE_p_wxWindow swig_types[61] | |
295 | #define SWIGTYPE_p_wxScrolledWindow swig_types[62] | |
296 | #define SWIGTYPE_p_wxMenuBar swig_types[63] | |
297 | #define SWIGTYPE_p_wxPrintPreview swig_types[64] | |
298 | #define SWIGTYPE_p_wxSashEvent swig_types[65] | |
299 | #define SWIGTYPE_p_wxString swig_types[66] | |
300 | #define SWIGTYPE_p_wxPyPrintPreview swig_types[67] | |
301 | #define SWIGTYPE_p_wxPageSetupDialog swig_types[68] | |
302 | #define SWIGTYPE_p_wxFontDialog swig_types[69] | |
303 | #define SWIGTYPE_p_wxDirDialog swig_types[70] | |
304 | #define SWIGTYPE_p_wxColourDialog swig_types[71] | |
305 | #define SWIGTYPE_p_wxDialog swig_types[72] | |
306 | #define SWIGTYPE_p_wxPanel swig_types[73] | |
307 | #define SWIGTYPE_p_wxPrintDialog swig_types[74] | |
308 | #define SWIGTYPE_p_wxBitmap swig_types[75] | |
309 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
310 | #define SWIGTYPE_p_wxPreviewControlBar swig_types[77] | |
311 | #define SWIGTYPE_p_wxPyPreviewControlBar swig_types[78] | |
312 | #define SWIGTYPE_p_wxColour swig_types[79] | |
313 | #define SWIGTYPE_p_wxToolBar swig_types[80] | |
41f1cec7 | 314 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[81] |
8edf1c75 RD |
315 | #define SWIGTYPE_p_wxPrintDialogData swig_types[82] |
316 | static swig_type_info *swig_types[84]; | |
d14a1e28 RD |
317 | |
318 | /* -------- TYPES TABLE (END) -------- */ | |
319 | ||
320 | ||
321 | /*----------------------------------------------- | |
322 | @(target):= _windows.so | |
323 | ------------------------------------------------*/ | |
324 | #define SWIG_init init_windows | |
325 | ||
326 | #define SWIG_name "_windows" | |
327 | ||
8edf1c75 RD |
328 | #include <limits.h> |
329 | #include <float.h> | |
330 | #include <string.h> | |
331 | ||
332 | #ifndef SWIGSTATIC | |
333 | #ifdef __cplusplus | |
334 | #define SWIGSTATIC(a) static inline a | |
335 | #else | |
336 | #define SWIGSTATIC(a) static a | |
337 | #endif | |
338 | #endif | |
339 | ||
340 | #ifndef numeric_cast | |
341 | #ifdef __cplusplus | |
342 | #ifdef HAVE_NUMERIC_CAST | |
343 | #define numeric_cast(type,a) numeric_cast<type>(a) | |
344 | #else | |
345 | #define numeric_cast(type,a) static_cast<type>(a) | |
346 | #endif | |
347 | #else | |
348 | #define numeric_cast(type,a) (type)(a) | |
349 | #endif | |
350 | #endif | |
351 | ||
352 | ||
353 | ||
354 | #define SWIG_PyObj_FromSignedChar PyInt_FromLong | |
355 | #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong | |
356 | #define SWIG_PyObj_FromShort PyInt_FromLong | |
357 | #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong | |
358 | #define SWIG_PyObj_FromInt PyInt_FromLong | |
359 | #define SWIG_PyObj_FromLong PyInt_FromLong | |
360 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
361 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
362 | #define SWIG_PyObj_FromFloat PyFloat_FromDouble | |
363 | #define SWIG_PyObj_FromDouble PyFloat_FromDouble | |
364 | ||
365 | ||
d14a1e28 RD |
366 | #include "wx/wxPython/wxPython.h" |
367 | #include "wx/wxPython/pyclasses.h" | |
368 | ||
d14a1e28 | 369 | |
d03fd34d RD |
370 | static const wxString wxPyEmptyString(wxEmptyString); |
371 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
d14a1e28 RD |
372 | |
373 | ||
374 | ||
8edf1c75 RD |
375 | SWIGSTATIC(int) |
376 | SWIG_PyObj_AsInt(PyObject *obj) | |
377 | { | |
378 | return numeric_cast(int, | |
379 | SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX)); | |
380 | } | |
381 | ||
382 | ||
383 | SWIGSTATIC(long) | |
384 | SWIG_PyObj_AsLong(PyObject * obj) | |
385 | { | |
386 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
387 | } | |
388 | ||
389 | ||
390 | SWIGSTATIC(PyObject*) | |
391 | SWIG_PyObj_FromBool(bool value) | |
392 | { | |
393 | PyObject *obj = value ? Py_True : Py_False; | |
394 | Py_INCREF(obj); | |
395 | return obj; | |
396 | } | |
397 | ||
398 | ||
399 | SWIGSTATIC(bool) | |
400 | SWIG_PyObj_AsBool(PyObject *obj) | |
401 | { | |
402 | return PyObject_IsTrue(obj) ? true : false; | |
403 | } | |
404 | ||
405 | ||
d14a1e28 RD |
406 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
407 | PyObject* o2; | |
408 | PyObject* o3; | |
409 | ||
410 | if (!target) { | |
411 | target = o; | |
412 | } else if (target == Py_None) { | |
413 | Py_DECREF(Py_None); | |
414 | target = o; | |
415 | } else { | |
416 | if (!PyTuple_Check(target)) { | |
417 | o2 = target; | |
418 | target = PyTuple_New(1); | |
419 | PyTuple_SetItem(target, 0, o2); | |
420 | } | |
421 | o3 = PyTuple_New(1); | |
422 | PyTuple_SetItem(o3, 0, o); | |
423 | ||
424 | o2 = target; | |
425 | target = PySequence_Concat(o2, o3); | |
426 | Py_DECREF(o2); | |
427 | Py_DECREF(o3); | |
428 | } | |
429 | return target; | |
430 | } | |
431 | ||
8edf1c75 RD |
432 | |
433 | SWIGSTATIC(double) | |
434 | SWIG_PyObj_AsDouble(PyObject *obj) | |
435 | { | |
436 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
437 | #if HAVE_LONG_LONG | |
438 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
439 | #else | |
440 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
441 | #endif | |
442 | if (PyErr_Occurred()) { | |
443 | PyErr_Clear(); | |
444 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
445 | } | |
446 | } | |
447 | ||
d03fd34d RD |
448 | static const wxString wxPyFrameNameStr(wxFrameNameStr); |
449 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
450 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
451 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
d14a1e28 RD |
452 | bool wxDialog_IsModalShowing(wxDialog *self){ |
453 | ||
454 | ||
455 | ||
456 | return self->IsModalShowing(); | |
457 | ||
458 | } | |
459 | ||
460 | ||
44127b65 RD |
461 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
462 | wxRect r; | |
463 | self->GetFieldRect(i, r); | |
464 | return r; | |
465 | } | |
eb9b6107 RD |
466 | static const wxString wxPySplitterNameStr(wxT("splitter")); |
467 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
468 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
d14a1e28 RD |
469 | |
470 | #include <wx/popupwin.h> | |
471 | ||
472 | ||
473 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
474 | { | |
475 | public: | |
476 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
477 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
478 | : wxPopupTransientWindow(parent, style) {} | |
479 | ||
480 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
481 | DEC_PYCALLBACK__(OnDismiss); | |
482 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
483 | PYPRIVATE; | |
484 | }; | |
485 | ||
486 | ||
487 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
488 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
489 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
490 | ||
491 | ||
492 | #include <wx/tipwin.h> | |
493 | ||
8a0b029b RD |
494 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ |
495 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
d14a1e28 RD |
496 | } |
497 | ||
498 | #include <wx/tipwin.h> | |
499 | ||
500 | ||
501 | #include <wx/vscroll.h> | |
502 | ||
503 | ||
504 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
505 | { | |
506 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
507 | public: | |
508 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
509 | ||
510 | wxPyVScrolledWindow(wxWindow *parent, | |
511 | wxWindowID id = wxID_ANY, | |
512 | const wxPoint& pos = wxDefaultPosition, | |
513 | const wxSize& size = wxDefaultSize, | |
514 | long style = 0, | |
515 | const wxString& name = wxPyPanelNameStr) | |
516 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
517 | {} | |
518 | ||
519 | // Overridable virtuals | |
520 | ||
521 | // this function must be overridden in the derived class and it should | |
522 | // return the height of the given line in pixels | |
523 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
524 | ||
525 | ||
526 | // this function doesn't have to be overridden but it may be useful to do | |
527 | // it if calculating the lines heights is a relatively expensive operation | |
528 | // as it gives the user code a possibility to calculate several of them at | |
529 | // once | |
530 | // | |
531 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
532 | // shouldn't rely on the latter being called for all lines in the interval | |
533 | // specified here. It is also possible that OnGetLineHeight() will be | |
534 | // called for the lines outside of this interval, so this is really just a | |
535 | // hint, not a promise. | |
536 | // | |
537 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
538 | // usual | |
539 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
540 | ||
541 | ||
542 | // when the number of lines changes, we try to estimate the total height | |
543 | // of all lines which is a rather expensive operation in terms of lines | |
544 | // access, so if the user code may estimate the average height | |
545 | // better/faster than we do, it should override this function to implement | |
546 | // its own logic | |
547 | // | |
548 | // this function should return the best guess for the total height it may | |
549 | // make | |
550 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
551 | ||
552 | ||
553 | // Also expose some other interesting protected methods | |
554 | ||
555 | ||
556 | // find the index of the line we need to show at the top of the window such | |
557 | // that the last (fully or partially) visible line is the given one | |
423f194a | 558 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) |
d14a1e28 RD |
559 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } |
560 | ||
561 | // get the total height of the lines between lineMin (inclusive) and | |
562 | // lineMax (exclusive) | |
563 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
564 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
565 | ||
566 | ||
567 | PYPRIVATE; | |
568 | }; | |
569 | ||
570 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
571 | ||
572 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
573 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
574 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
575 | ||
576 | ||
8edf1c75 RD |
577 | SWIGSTATIC(PyObject* ) |
578 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
579 | { | |
580 | return (value > (unsigned long)(LONG_MAX)) ? | |
581 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
582 | } | |
583 | ||
584 | ||
d14a1e28 | 585 | #include <wx/vlbox.h> |
d14a1e28 | 586 | |
d03fd34d | 587 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); |
d14a1e28 RD |
588 | |
589 | class wxPyVListBox : public wxVListBox | |
590 | { | |
591 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
592 | public: | |
593 | wxPyVListBox() : wxVListBox() {} | |
594 | ||
595 | wxPyVListBox(wxWindow *parent, | |
596 | wxWindowID id = wxID_ANY, | |
597 | const wxPoint& pos = wxDefaultPosition, | |
598 | const wxSize& size = wxDefaultSize, | |
599 | long style = 0, | |
600 | const wxString& name = wxPyVListBoxNameStr) | |
601 | : wxVListBox(parent, id, pos, size, style, name) | |
602 | {} | |
603 | ||
604 | // Overridable virtuals | |
605 | ||
606 | // the derived class must implement this function to actually draw the item | |
607 | // with the given index on the provided DC | |
608 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
609 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
610 | ||
611 | ||
612 | // the derived class must implement this method to return the height of the | |
613 | // specified item | |
614 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
615 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
616 | ||
617 | ||
618 | // this method may be used to draw separators between the lines; note that | |
619 | // the rectangle may be modified, typically to deflate it a bit before | |
620 | // passing to OnDrawItem() | |
621 | // | |
622 | // the base class version doesn't do anything | |
623 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
624 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
625 | ||
626 | ||
627 | // this method is used to draw the items background and, maybe, a border | |
628 | // around it | |
629 | // | |
630 | // the base class version implements a reasonable default behaviour which | |
631 | // consists in drawing the selected item with the standard background | |
632 | // colour and drawing a border around the item if it is either selected or | |
633 | // current | |
634 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
635 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
636 | ||
637 | ||
638 | PYPRIVATE; | |
639 | }; | |
640 | ||
641 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
642 | ||
643 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
644 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
645 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
646 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
647 | ||
648 | ||
649 | ||
650 | #include <wx/htmllbox.h> | |
651 | ||
652 | ||
653 | class wxPyHtmlListBox : public wxHtmlListBox | |
654 | { | |
655 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
656 | public: | |
657 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
658 | ||
659 | wxPyHtmlListBox(wxWindow *parent, | |
660 | wxWindowID id = wxID_ANY, | |
661 | const wxPoint& pos = wxDefaultPosition, | |
662 | const wxSize& size = wxDefaultSize, | |
663 | long style = 0, | |
664 | const wxString& name = wxPyVListBoxNameStr) | |
665 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
666 | {} | |
667 | ||
668 | // Overridable virtuals | |
669 | ||
670 | // this method must be implemented in the derived class and should return | |
671 | // the body (i.e. without <html>) of the HTML for the given item | |
672 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
673 | ||
674 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
675 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
676 | ||
677 | // TODO: | |
678 | // // this method allows to customize the selection appearance: it may be used | |
679 | // // to specify the colour of the text which normally has the given colour | |
680 | // // colFg when it is inside the selection | |
681 | // // | |
682 | // // by default, the original colour is not used at all and all text has the | |
683 | // // same (default for this system) colour inside selection | |
684 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
685 | ||
686 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
687 | // // background colour -- this is even more rarely used as you can change it | |
688 | // // globally using SetSelectionBackground() | |
689 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
690 | ||
691 | ||
692 | PYPRIVATE; | |
693 | }; | |
694 | ||
695 | ||
696 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
697 | ||
698 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
699 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
700 | ||
701 | ||
702 | ||
703 | ||
704 | ||
705 | #ifdef __WXMAC__ | |
706 | // implement dummy classes and such for wxMac | |
707 | ||
708 | class wxTaskBarIcon : public wxEvtHandler | |
709 | { | |
710 | public: | |
cbd72d4f | 711 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
712 | }; |
713 | ||
714 | ||
715 | class wxTaskBarIconEvent : public wxEvent | |
716 | { | |
717 | public: | |
718 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
cbd72d4f | 719 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
720 | virtual wxEvent* Clone() const { return NULL; } |
721 | }; | |
722 | ||
723 | enum { | |
724 | wxEVT_TASKBAR_MOVE = 0, | |
725 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
726 | wxEVT_TASKBAR_LEFT_UP = 0, | |
727 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
728 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
729 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
730 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
731 | }; | |
732 | #endif | |
733 | ||
d03fd34d RD |
734 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
735 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
736 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
737 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
738 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
739 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
d14a1e28 RD |
740 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
741 | wxArrayString arr; | |
742 | self->GetFilenames(arr); | |
743 | return wxArrayString2PyList_helper(arr); | |
744 | } | |
745 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
746 | wxArrayString arr; | |
747 | self->GetPaths(arr); | |
748 | return wxArrayString2PyList_helper(arr); | |
749 | } | |
750 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
751 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
752 | } | |
753 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
754 | return new wxSingleChoiceDialog(parent, message, caption, | |
755 | choices, choices_array, NULL, style, pos); | |
756 | } | |
757 | ||
758 | #include <wx/mdi.h> | |
759 | ||
760 | // C++ version of Python aware wxWindow | |
761 | class wxPyWindow : public wxWindow | |
762 | { | |
763 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
764 | public: | |
765 | wxPyWindow() : wxWindow() {} | |
766 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
767 | const wxPoint& pos = wxDefaultPosition, | |
768 | const wxSize& size = wxDefaultSize, | |
769 | long style = 0, | |
770 | const wxString& name = wxPyPanelNameStr) | |
771 | : wxWindow(parent, id, pos, size, style, name) {} | |
772 | ||
773 | ||
774 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
775 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
776 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
777 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
778 | ||
779 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
780 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
781 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
782 | ||
783 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
784 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
785 | ||
786 | DEC_PYCALLBACK__(InitDialog); | |
787 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
788 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
789 | DEC_PYCALLBACK_BOOL_(Validate); | |
790 | ||
791 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
792 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
793 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
794 | ||
795 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
796 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
797 | ||
798 | PYPRIVATE; | |
799 | }; | |
800 | ||
801 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
802 | ||
803 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
804 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
805 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
806 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
807 | ||
808 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
809 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
810 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
811 | ||
812 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
813 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
814 | ||
815 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
816 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
817 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
818 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
819 | ||
820 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
821 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
822 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
823 | ||
824 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
825 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
826 | ||
827 | ||
828 | // C++ version of Python aware wxPanel | |
829 | class wxPyPanel : public wxPanel | |
830 | { | |
831 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
832 | public: | |
833 | wxPyPanel() : wxPanel() {} | |
834 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
835 | const wxPoint& pos = wxDefaultPosition, | |
836 | const wxSize& size = wxDefaultSize, | |
837 | long style = 0, | |
838 | const wxString& name = wxPyPanelNameStr) | |
839 | : wxPanel(parent, id, pos, size, style, name) {} | |
840 | ||
841 | ||
842 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
843 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
844 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
845 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
846 | ||
847 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
848 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
849 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
850 | ||
851 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
852 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
853 | ||
854 | DEC_PYCALLBACK__(InitDialog); | |
855 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
856 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
857 | DEC_PYCALLBACK_BOOL_(Validate); | |
858 | ||
859 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
860 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
861 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
862 | ||
863 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
864 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
865 | ||
866 | PYPRIVATE; | |
867 | }; | |
868 | ||
869 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
870 | ||
871 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
872 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
873 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
874 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
875 | ||
876 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
877 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
878 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
879 | ||
880 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
881 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
882 | ||
883 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
884 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
885 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
886 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
887 | ||
888 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
889 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
890 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
891 | ||
892 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
893 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
894 | ||
895 | ||
896 | ||
897 | #include "wx/wxPython/printfw.h" | |
898 | ||
d14a1e28 | 899 | |
eb9b6107 RD |
900 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); |
901 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
d14a1e28 RD |
902 | |
903 | ||
904 | ||
905 | // Since this one would be tough and ugly to do with the Macros... | |
906 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
423f194a | 907 | bool hadErr = False; |
d14a1e28 RD |
908 | bool found; |
909 | ||
910 | wxPyBeginBlockThreads(); | |
911 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
912 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
913 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
914 | PyObject* val; | |
915 | ||
916 | val = PyTuple_GetItem(result, 0); | |
917 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
423f194a | 918 | else hadErr = True; |
d14a1e28 RD |
919 | |
920 | val = PyTuple_GetItem(result, 1); | |
921 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
423f194a | 922 | else hadErr = True; |
d14a1e28 RD |
923 | |
924 | val = PyTuple_GetItem(result, 2); | |
925 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
423f194a | 926 | else hadErr = True; |
d14a1e28 RD |
927 | |
928 | val = PyTuple_GetItem(result, 3); | |
929 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
423f194a | 930 | else hadErr = True; |
d14a1e28 RD |
931 | } |
932 | else | |
423f194a | 933 | hadErr = True; |
d14a1e28 RD |
934 | |
935 | if (hadErr) { | |
936 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
937 | PyErr_Print(); | |
938 | } | |
939 | Py_DECREF(result); | |
940 | } | |
941 | wxPyEndBlockThreads(); | |
942 | if (! found) | |
943 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
944 | } | |
945 | ||
946 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
947 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
948 | } | |
949 | ||
950 | ||
951 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
952 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
953 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
954 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
955 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
956 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
957 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
958 | ||
959 | ||
960 | ||
961 | ||
962 | ||
963 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
964 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
965 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
966 | ||
967 | ||
968 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
969 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
423f194a | 970 | bool rval=False; \ |
d14a1e28 RD |
971 | bool found; \ |
972 | wxPyBeginBlockThreads(); \ | |
973 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
974 | PyObject* win = wxPyMake_wxObject(a); \ | |
975 | PyObject* dc = wxPyMake_wxObject(&b); \ | |
976 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ | |
977 | Py_DECREF(win); \ | |
978 | Py_DECREF(dc); \ | |
979 | } \ | |
980 | wxPyEndBlockThreads(); \ | |
981 | if (! found) \ | |
982 | rval = PCLASS::CBNAME(a, b); \ | |
983 | return rval; \ | |
984 | } \ | |
985 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
986 | return PCLASS::CBNAME(a, b); \ | |
987 | } | |
988 | ||
989 | ||
990 | ||
991 | ||
992 | class wxPyPrintPreview : public wxPrintPreview | |
993 | { | |
994 | DECLARE_CLASS(wxPyPrintPreview) | |
995 | public: | |
996 | wxPyPrintPreview(wxPyPrintout* printout, | |
997 | wxPyPrintout* printoutForPrinting, | |
998 | wxPrintData* data=NULL) | |
999 | : wxPrintPreview(printout, printoutForPrinting, data) | |
1000 | {} | |
1001 | ||
1002 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
1003 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
1004 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
1005 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
1006 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
1007 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
1008 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1009 | ||
1010 | PYPRIVATE; | |
1011 | }; | |
1012 | ||
1013 | // Stupid renamed classes... Fix this in 2.5... | |
1014 | #if defined(__WXMSW__) | |
1015 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1016 | #elif defined(__WXMAC__) | |
1017 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1018 | #else | |
1019 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1020 | #endif | |
1021 | ||
1022 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1023 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1024 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1025 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1026 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1027 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1028 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1029 | ||
1030 | ||
1031 | class wxPyPreviewFrame : public wxPreviewFrame | |
1032 | { | |
1033 | DECLARE_CLASS(wxPyPreviewFrame); | |
1034 | public: | |
1035 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1036 | const wxString& title, | |
1037 | const wxPoint& pos = wxDefaultPosition, | |
1038 | const wxSize& size = wxDefaultSize, | |
1039 | long style = wxDEFAULT_FRAME_STYLE, | |
1040 | const wxString& name = wxPyFrameNameStr) | |
1041 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1042 | {} | |
1043 | ||
1044 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1045 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1046 | ||
1047 | DEC_PYCALLBACK_VOID_(Initialize); | |
1048 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1049 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1050 | ||
1051 | PYPRIVATE; | |
1052 | }; | |
1053 | ||
1054 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1055 | ||
1056 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1057 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1058 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1059 | ||
1060 | ||
1061 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1062 | { | |
1063 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1064 | public: | |
1065 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1066 | long buttons, | |
1067 | wxWindow *parent, | |
1068 | const wxPoint& pos = wxDefaultPosition, | |
1069 | const wxSize& size = wxDefaultSize, | |
1070 | long style = 0, | |
1071 | const wxString& name = wxPyPanelNameStr) | |
1072 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1073 | {} | |
1074 | ||
1075 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1076 | ||
1077 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1078 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1079 | ||
1080 | PYPRIVATE; | |
1081 | }; | |
1082 | ||
1083 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1084 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1085 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1086 | ||
1087 | #ifdef __cplusplus | |
1088 | extern "C" { | |
1089 | #endif | |
1090 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1091 | PyObject *resultobj; | |
1092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1093 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
1094 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
1095 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1096 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1097 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1098 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1099 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1100 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1101 | wxPanel *result; | |
1102 | wxPoint temp3 ; | |
1103 | wxSize temp4 ; | |
423f194a | 1104 | bool temp6 = False ; |
d14a1e28 | 1105 | PyObject * obj0 = 0 ; |
8edf1c75 | 1106 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1107 | PyObject * obj2 = 0 ; |
1108 | PyObject * obj3 = 0 ; | |
8edf1c75 | 1109 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
1110 | PyObject * obj5 = 0 ; |
1111 | char *kwnames[] = { | |
1112 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1113 | }; | |
1114 | ||
8edf1c75 | 1115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 1116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1117 | if (obj1) { |
1118 | { | |
1119 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
1120 | if (PyErr_Occurred()) SWIG_fail; | |
1121 | } | |
1122 | } | |
d14a1e28 RD |
1123 | if (obj2) { |
1124 | { | |
1125 | arg3 = &temp3; | |
1126 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1127 | } | |
1128 | } | |
1129 | if (obj3) { | |
1130 | { | |
1131 | arg4 = &temp4; | |
1132 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1133 | } | |
1134 | } | |
8edf1c75 RD |
1135 | if (obj4) { |
1136 | { | |
1137 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
1138 | if (PyErr_Occurred()) SWIG_fail; | |
1139 | } | |
1140 | } | |
d14a1e28 RD |
1141 | if (obj5) { |
1142 | { | |
1143 | arg6 = wxString_in_helper(obj5); | |
1144 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 1145 | temp6 = True; |
d14a1e28 RD |
1146 | } |
1147 | } | |
1148 | { | |
1149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1150 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1151 | ||
1152 | wxPyEndAllowThreads(__tstate); | |
1153 | if (PyErr_Occurred()) SWIG_fail; | |
1154 | } | |
1155 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPanel, 1); | |
1156 | { | |
1157 | if (temp6) | |
1158 | delete arg6; | |
1159 | } | |
1160 | return resultobj; | |
1161 | fail: | |
1162 | { | |
1163 | if (temp6) | |
1164 | delete arg6; | |
1165 | } | |
1166 | return NULL; | |
1167 | } | |
1168 | ||
1169 | ||
1170 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1171 | PyObject *resultobj; | |
1172 | wxPanel *result; | |
1173 | char *kwnames[] = { | |
1174 | NULL | |
1175 | }; | |
1176 | ||
1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1178 | { | |
1179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1180 | result = (wxPanel *)new wxPanel(); | |
1181 | ||
1182 | wxPyEndAllowThreads(__tstate); | |
1183 | if (PyErr_Occurred()) SWIG_fail; | |
1184 | } | |
1185 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPanel, 1); | |
1186 | return resultobj; | |
1187 | fail: | |
1188 | return NULL; | |
1189 | } | |
1190 | ||
1191 | ||
1192 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1193 | PyObject *resultobj; | |
1194 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1195 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1196 | int arg3 ; |
d14a1e28 RD |
1197 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1198 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1199 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1200 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1201 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1202 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1203 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1204 | bool result; | |
1205 | wxPoint temp4 ; | |
1206 | wxSize temp5 ; | |
423f194a | 1207 | bool temp7 = False ; |
d14a1e28 RD |
1208 | PyObject * obj0 = 0 ; |
1209 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1210 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1211 | PyObject * obj3 = 0 ; |
1212 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1213 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1214 | PyObject * obj6 = 0 ; |
1215 | char *kwnames[] = { | |
1216 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1217 | }; | |
1218 | ||
8edf1c75 | 1219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
1220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1221 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1222 | { |
1223 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
1224 | if (PyErr_Occurred()) SWIG_fail; | |
1225 | } | |
d14a1e28 RD |
1226 | if (obj3) { |
1227 | { | |
1228 | arg4 = &temp4; | |
1229 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1230 | } | |
1231 | } | |
1232 | if (obj4) { | |
1233 | { | |
1234 | arg5 = &temp5; | |
1235 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1236 | } | |
1237 | } | |
8edf1c75 RD |
1238 | if (obj5) { |
1239 | { | |
1240 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1241 | if (PyErr_Occurred()) SWIG_fail; | |
1242 | } | |
1243 | } | |
d14a1e28 RD |
1244 | if (obj6) { |
1245 | { | |
1246 | arg7 = wxString_in_helper(obj6); | |
1247 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 1248 | temp7 = True; |
d14a1e28 RD |
1249 | } |
1250 | } | |
1251 | { | |
1252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1253 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1254 | ||
1255 | wxPyEndAllowThreads(__tstate); | |
1256 | if (PyErr_Occurred()) SWIG_fail; | |
1257 | } | |
8edf1c75 | 1258 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1259 | { |
1260 | if (temp7) | |
1261 | delete arg7; | |
1262 | } | |
1263 | return resultobj; | |
1264 | fail: | |
1265 | { | |
1266 | if (temp7) | |
1267 | delete arg7; | |
1268 | } | |
1269 | return NULL; | |
1270 | } | |
1271 | ||
1272 | ||
1273 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1274 | PyObject *resultobj; | |
1275 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1276 | PyObject * obj0 = 0 ; | |
1277 | char *kwnames[] = { | |
1278 | (char *) "self", NULL | |
1279 | }; | |
1280 | ||
1281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1283 | { | |
1284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1285 | (arg1)->InitDialog(); | |
1286 | ||
1287 | wxPyEndAllowThreads(__tstate); | |
1288 | if (PyErr_Occurred()) SWIG_fail; | |
1289 | } | |
1290 | Py_INCREF(Py_None); resultobj = Py_None; | |
1291 | return resultobj; | |
1292 | fail: | |
1293 | return NULL; | |
1294 | } | |
1295 | ||
1296 | ||
1297 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { | |
1298 | PyObject *obj; | |
1299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1300 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1301 | Py_INCREF(obj); | |
1302 | return Py_BuildValue((char *)""); | |
1303 | } | |
1304 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1305 | PyObject *resultobj; | |
1306 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1307 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
1308 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
1309 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1310 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1311 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1312 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1313 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1314 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1315 | wxScrolledWindow *result; | |
1316 | wxPoint temp3 ; | |
1317 | wxSize temp4 ; | |
423f194a | 1318 | bool temp6 = False ; |
d14a1e28 | 1319 | PyObject * obj0 = 0 ; |
8edf1c75 | 1320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1321 | PyObject * obj2 = 0 ; |
1322 | PyObject * obj3 = 0 ; | |
8edf1c75 | 1323 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
1324 | PyObject * obj5 = 0 ; |
1325 | char *kwnames[] = { | |
1326 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1327 | }; | |
1328 | ||
8edf1c75 | 1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 1330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1331 | if (obj1) { |
1332 | { | |
1333 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
1334 | if (PyErr_Occurred()) SWIG_fail; | |
1335 | } | |
1336 | } | |
d14a1e28 RD |
1337 | if (obj2) { |
1338 | { | |
1339 | arg3 = &temp3; | |
1340 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1341 | } | |
1342 | } | |
1343 | if (obj3) { | |
1344 | { | |
1345 | arg4 = &temp4; | |
1346 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1347 | } | |
1348 | } | |
8edf1c75 RD |
1349 | if (obj4) { |
1350 | { | |
1351 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
1352 | if (PyErr_Occurred()) SWIG_fail; | |
1353 | } | |
1354 | } | |
d14a1e28 RD |
1355 | if (obj5) { |
1356 | { | |
1357 | arg6 = wxString_in_helper(obj5); | |
1358 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 1359 | temp6 = True; |
d14a1e28 RD |
1360 | } |
1361 | } | |
1362 | { | |
1363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1364 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1365 | ||
1366 | wxPyEndAllowThreads(__tstate); | |
1367 | if (PyErr_Occurred()) SWIG_fail; | |
1368 | } | |
1369 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrolledWindow, 1); | |
1370 | { | |
1371 | if (temp6) | |
1372 | delete arg6; | |
1373 | } | |
1374 | return resultobj; | |
1375 | fail: | |
1376 | { | |
1377 | if (temp6) | |
1378 | delete arg6; | |
1379 | } | |
1380 | return NULL; | |
1381 | } | |
1382 | ||
1383 | ||
1384 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1385 | PyObject *resultobj; | |
1386 | wxScrolledWindow *result; | |
1387 | char *kwnames[] = { | |
1388 | NULL | |
1389 | }; | |
1390 | ||
1391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1392 | { | |
1393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1394 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1395 | ||
1396 | wxPyEndAllowThreads(__tstate); | |
1397 | if (PyErr_Occurred()) SWIG_fail; | |
1398 | } | |
1399 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrolledWindow, 1); | |
1400 | return resultobj; | |
1401 | fail: | |
1402 | return NULL; | |
1403 | } | |
1404 | ||
1405 | ||
1406 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1407 | PyObject *resultobj; | |
1408 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1409 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1410 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
1411 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1412 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1413 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1414 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1415 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1416 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1417 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1418 | bool result; | |
1419 | wxPoint temp4 ; | |
1420 | wxSize temp5 ; | |
423f194a | 1421 | bool temp7 = False ; |
d14a1e28 RD |
1422 | PyObject * obj0 = 0 ; |
1423 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1424 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1425 | PyObject * obj3 = 0 ; |
1426 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1427 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1428 | PyObject * obj6 = 0 ; |
1429 | char *kwnames[] = { | |
1430 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1431 | }; | |
1432 | ||
8edf1c75 | 1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
1434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1435 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
1436 | if (obj2) { |
1437 | { | |
1438 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
1439 | if (PyErr_Occurred()) SWIG_fail; | |
1440 | } | |
1441 | } | |
d14a1e28 RD |
1442 | if (obj3) { |
1443 | { | |
1444 | arg4 = &temp4; | |
1445 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1446 | } | |
1447 | } | |
1448 | if (obj4) { | |
1449 | { | |
1450 | arg5 = &temp5; | |
1451 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1452 | } | |
1453 | } | |
8edf1c75 RD |
1454 | if (obj5) { |
1455 | { | |
1456 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1457 | if (PyErr_Occurred()) SWIG_fail; | |
1458 | } | |
1459 | } | |
d14a1e28 RD |
1460 | if (obj6) { |
1461 | { | |
1462 | arg7 = wxString_in_helper(obj6); | |
1463 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 1464 | temp7 = True; |
d14a1e28 RD |
1465 | } |
1466 | } | |
1467 | { | |
1468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1469 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1470 | ||
1471 | wxPyEndAllowThreads(__tstate); | |
1472 | if (PyErr_Occurred()) SWIG_fail; | |
1473 | } | |
8edf1c75 | 1474 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
1475 | { |
1476 | if (temp7) | |
1477 | delete arg7; | |
1478 | } | |
1479 | return resultobj; | |
1480 | fail: | |
1481 | { | |
1482 | if (temp7) | |
1483 | delete arg7; | |
1484 | } | |
1485 | return NULL; | |
1486 | } | |
1487 | ||
1488 | ||
1489 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1490 | PyObject *resultobj; | |
1491 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1492 | int arg2 ; | |
1493 | int arg3 ; | |
1494 | int arg4 ; | |
1495 | int arg5 ; | |
1496 | int arg6 = (int) 0 ; | |
1497 | int arg7 = (int) 0 ; | |
423f194a | 1498 | bool arg8 = (bool) False ; |
d14a1e28 | 1499 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
1500 | PyObject * obj1 = 0 ; |
1501 | PyObject * obj2 = 0 ; | |
1502 | PyObject * obj3 = 0 ; | |
1503 | PyObject * obj4 = 0 ; | |
1504 | PyObject * obj5 = 0 ; | |
1505 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
1506 | PyObject * obj7 = 0 ; |
1507 | char *kwnames[] = { | |
1508 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1509 | }; | |
1510 | ||
8edf1c75 | 1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1513 | { |
1514 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1515 | if (PyErr_Occurred()) SWIG_fail; | |
1516 | } | |
1517 | { | |
1518 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1519 | if (PyErr_Occurred()) SWIG_fail; | |
1520 | } | |
1521 | { | |
1522 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
1523 | if (PyErr_Occurred()) SWIG_fail; | |
1524 | } | |
1525 | { | |
1526 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
1527 | if (PyErr_Occurred()) SWIG_fail; | |
1528 | } | |
1529 | if (obj5) { | |
1530 | { | |
1531 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
1532 | if (PyErr_Occurred()) SWIG_fail; | |
1533 | } | |
1534 | } | |
1535 | if (obj6) { | |
1536 | { | |
1537 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
1538 | if (PyErr_Occurred()) SWIG_fail; | |
1539 | } | |
1540 | } | |
d14a1e28 | 1541 | if (obj7) { |
83448d71 | 1542 | { |
8edf1c75 | 1543 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); |
83448d71 RD |
1544 | if (PyErr_Occurred()) SWIG_fail; |
1545 | } | |
d14a1e28 RD |
1546 | } |
1547 | { | |
1548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1549 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1550 | ||
1551 | wxPyEndAllowThreads(__tstate); | |
1552 | if (PyErr_Occurred()) SWIG_fail; | |
1553 | } | |
1554 | Py_INCREF(Py_None); resultobj = Py_None; | |
1555 | return resultobj; | |
1556 | fail: | |
1557 | return NULL; | |
1558 | } | |
1559 | ||
1560 | ||
1561 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1562 | PyObject *resultobj; | |
1563 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1564 | int arg2 ; | |
1565 | int arg3 ; | |
1566 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1567 | PyObject * obj1 = 0 ; |
1568 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1569 | char *kwnames[] = { |
1570 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1571 | }; | |
1572 | ||
8edf1c75 | 1573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1575 | { |
1576 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1577 | if (PyErr_Occurred()) SWIG_fail; | |
1578 | } | |
1579 | { | |
1580 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1581 | if (PyErr_Occurred()) SWIG_fail; | |
1582 | } | |
d14a1e28 RD |
1583 | { |
1584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1585 | (arg1)->Scroll(arg2,arg3); | |
1586 | ||
1587 | wxPyEndAllowThreads(__tstate); | |
1588 | if (PyErr_Occurred()) SWIG_fail; | |
1589 | } | |
1590 | Py_INCREF(Py_None); resultobj = Py_None; | |
1591 | return resultobj; | |
1592 | fail: | |
1593 | return NULL; | |
1594 | } | |
1595 | ||
1596 | ||
1597 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1598 | PyObject *resultobj; | |
1599 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1600 | int arg2 ; | |
1601 | int result; | |
1602 | PyObject * obj0 = 0 ; | |
8edf1c75 | 1603 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1604 | char *kwnames[] = { |
1605 | (char *) "self",(char *) "orient", NULL | |
1606 | }; | |
1607 | ||
8edf1c75 | 1608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1610 | { |
1611 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1612 | if (PyErr_Occurred()) SWIG_fail; | |
1613 | } | |
d14a1e28 RD |
1614 | { |
1615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1616 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1617 | ||
1618 | wxPyEndAllowThreads(__tstate); | |
1619 | if (PyErr_Occurred()) SWIG_fail; | |
1620 | } | |
8edf1c75 | 1621 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1622 | return resultobj; |
1623 | fail: | |
1624 | return NULL; | |
1625 | } | |
1626 | ||
1627 | ||
1628 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject *resultobj; | |
1630 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1631 | int arg2 ; | |
1632 | int arg3 ; | |
1633 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1634 | PyObject * obj1 = 0 ; |
1635 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1636 | char *kwnames[] = { |
1637 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1638 | }; | |
1639 | ||
8edf1c75 | 1640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1642 | { |
1643 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1644 | if (PyErr_Occurred()) SWIG_fail; | |
1645 | } | |
1646 | { | |
1647 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1648 | if (PyErr_Occurred()) SWIG_fail; | |
1649 | } | |
d14a1e28 RD |
1650 | { |
1651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1652 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1653 | ||
1654 | wxPyEndAllowThreads(__tstate); | |
1655 | if (PyErr_Occurred()) SWIG_fail; | |
1656 | } | |
1657 | Py_INCREF(Py_None); resultobj = Py_None; | |
1658 | return resultobj; | |
1659 | fail: | |
1660 | return NULL; | |
1661 | } | |
1662 | ||
1663 | ||
1664 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1665 | PyObject *resultobj; | |
1666 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1667 | int arg2 ; | |
1668 | int arg3 ; | |
1669 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1670 | PyObject * obj1 = 0 ; |
1671 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1672 | char *kwnames[] = { |
1673 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1674 | }; | |
1675 | ||
8edf1c75 | 1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1678 | { |
1679 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1680 | if (PyErr_Occurred()) SWIG_fail; | |
1681 | } | |
1682 | { | |
1683 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1684 | if (PyErr_Occurred()) SWIG_fail; | |
1685 | } | |
d14a1e28 RD |
1686 | { |
1687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1688 | (arg1)->SetScrollRate(arg2,arg3); | |
1689 | ||
1690 | wxPyEndAllowThreads(__tstate); | |
1691 | if (PyErr_Occurred()) SWIG_fail; | |
1692 | } | |
1693 | Py_INCREF(Py_None); resultobj = Py_None; | |
1694 | return resultobj; | |
1695 | fail: | |
1696 | return NULL; | |
1697 | } | |
1698 | ||
1699 | ||
1700 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject *resultobj; | |
1702 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1703 | int *arg2 = (int *) 0 ; | |
1704 | int *arg3 = (int *) 0 ; | |
1705 | int temp2 ; | |
1706 | int temp3 ; | |
1707 | PyObject * obj0 = 0 ; | |
1708 | char *kwnames[] = { | |
1709 | (char *) "self", NULL | |
1710 | }; | |
1711 | ||
1712 | arg2 = &temp2; | |
1713 | arg3 = &temp3; | |
1714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1716 | { | |
1717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1718 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1719 | ||
1720 | wxPyEndAllowThreads(__tstate); | |
1721 | if (PyErr_Occurred()) SWIG_fail; | |
1722 | } | |
1723 | Py_INCREF(Py_None); resultobj = Py_None; | |
1724 | { | |
1725 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1726 | resultobj = t_output_helper(resultobj,o); | |
1727 | } | |
1728 | { | |
1729 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1730 | resultobj = t_output_helper(resultobj,o); | |
1731 | } | |
1732 | return resultobj; | |
1733 | fail: | |
1734 | return NULL; | |
1735 | } | |
1736 | ||
1737 | ||
1738 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1739 | PyObject *resultobj; | |
1740 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1741 | bool arg2 ; | |
1742 | bool arg3 ; | |
1743 | PyObject * obj0 = 0 ; | |
1744 | PyObject * obj1 = 0 ; | |
1745 | PyObject * obj2 = 0 ; | |
1746 | char *kwnames[] = { | |
1747 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
1748 | }; | |
1749 | ||
1750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 1752 | { |
8edf1c75 | 1753 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
1754 | if (PyErr_Occurred()) SWIG_fail; |
1755 | } | |
1756 | { | |
8edf1c75 | 1757 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
1758 | if (PyErr_Occurred()) SWIG_fail; |
1759 | } | |
d14a1e28 RD |
1760 | { |
1761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1762 | (arg1)->EnableScrolling(arg2,arg3); | |
1763 | ||
1764 | wxPyEndAllowThreads(__tstate); | |
1765 | if (PyErr_Occurred()) SWIG_fail; | |
1766 | } | |
1767 | Py_INCREF(Py_None); resultobj = Py_None; | |
1768 | return resultobj; | |
1769 | fail: | |
1770 | return NULL; | |
1771 | } | |
1772 | ||
1773 | ||
1774 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1775 | PyObject *resultobj; | |
1776 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1777 | int *arg2 = (int *) 0 ; | |
1778 | int *arg3 = (int *) 0 ; | |
1779 | int temp2 ; | |
1780 | int temp3 ; | |
1781 | PyObject * obj0 = 0 ; | |
1782 | char *kwnames[] = { | |
1783 | (char *) "self", NULL | |
1784 | }; | |
1785 | ||
1786 | arg2 = &temp2; | |
1787 | arg3 = &temp3; | |
1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
1789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1790 | { | |
1791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1792 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
1793 | ||
1794 | wxPyEndAllowThreads(__tstate); | |
1795 | if (PyErr_Occurred()) SWIG_fail; | |
1796 | } | |
1797 | Py_INCREF(Py_None); resultobj = Py_None; | |
1798 | { | |
1799 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1800 | resultobj = t_output_helper(resultobj,o); | |
1801 | } | |
1802 | { | |
1803 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1804 | resultobj = t_output_helper(resultobj,o); | |
1805 | } | |
1806 | return resultobj; | |
1807 | fail: | |
1808 | return NULL; | |
1809 | } | |
1810 | ||
1811 | ||
1812 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1813 | PyObject *resultobj; | |
1814 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1815 | double arg2 ; | |
1816 | double arg3 ; | |
1817 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1818 | PyObject * obj1 = 0 ; |
1819 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1820 | char *kwnames[] = { |
1821 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
1822 | }; | |
1823 | ||
8edf1c75 | 1824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1826 | { |
1827 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
1828 | if (PyErr_Occurred()) SWIG_fail; | |
1829 | } | |
1830 | { | |
1831 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
1832 | if (PyErr_Occurred()) SWIG_fail; | |
1833 | } | |
d14a1e28 RD |
1834 | { |
1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1836 | (arg1)->SetScale(arg2,arg3); | |
1837 | ||
1838 | wxPyEndAllowThreads(__tstate); | |
1839 | if (PyErr_Occurred()) SWIG_fail; | |
1840 | } | |
1841 | Py_INCREF(Py_None); resultobj = Py_None; | |
1842 | return resultobj; | |
1843 | fail: | |
1844 | return NULL; | |
1845 | } | |
1846 | ||
1847 | ||
1848 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1849 | PyObject *resultobj; | |
1850 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1851 | double result; | |
1852 | PyObject * obj0 = 0 ; | |
1853 | char *kwnames[] = { | |
1854 | (char *) "self", NULL | |
1855 | }; | |
1856 | ||
1857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
1858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1859 | { | |
1860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1861 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
1862 | ||
1863 | wxPyEndAllowThreads(__tstate); | |
1864 | if (PyErr_Occurred()) SWIG_fail; | |
1865 | } | |
8edf1c75 | 1866 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
1867 | return resultobj; |
1868 | fail: | |
1869 | return NULL; | |
1870 | } | |
1871 | ||
1872 | ||
1873 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1874 | PyObject *resultobj; | |
1875 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1876 | double result; | |
1877 | PyObject * obj0 = 0 ; | |
1878 | char *kwnames[] = { | |
1879 | (char *) "self", NULL | |
1880 | }; | |
1881 | ||
1882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
1883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1884 | { | |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1886 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | } | |
8edf1c75 | 1891 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
1892 | return resultobj; |
1893 | fail: | |
1894 | return NULL; | |
1895 | } | |
1896 | ||
1897 | ||
1898 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
1899 | PyObject *resultobj; | |
1900 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
44127b65 RD |
1901 | wxPoint *arg2 = 0 ; |
1902 | wxPoint result; | |
1903 | wxPoint temp2 ; | |
d14a1e28 | 1904 | PyObject * obj0 = 0 ; |
44127b65 | 1905 | PyObject * obj1 = 0 ; |
d14a1e28 | 1906 | |
44127b65 | 1907 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; |
d14a1e28 | 1908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
44127b65 RD |
1909 | { |
1910 | arg2 = &temp2; | |
1911 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
1912 | } | |
d14a1e28 RD |
1913 | { |
1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 1915 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); |
d14a1e28 RD |
1916 | |
1917 | wxPyEndAllowThreads(__tstate); | |
1918 | if (PyErr_Occurred()) SWIG_fail; | |
1919 | } | |
d14a1e28 | 1920 | { |
44127b65 RD |
1921 | wxPoint * resultptr; |
1922 | resultptr = new wxPoint((wxPoint &) result); | |
1923 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
1924 | } |
1925 | return resultobj; | |
1926 | fail: | |
1927 | return NULL; | |
1928 | } | |
1929 | ||
1930 | ||
1931 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
1932 | PyObject *resultobj; | |
1933 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
44127b65 RD |
1934 | int arg2 ; |
1935 | int arg3 ; | |
1936 | int *arg4 = (int *) 0 ; | |
1937 | int *arg5 = (int *) 0 ; | |
1938 | int temp4 ; | |
1939 | int temp5 ; | |
d14a1e28 | 1940 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
1941 | PyObject * obj1 = 0 ; |
1942 | PyObject * obj2 = 0 ; | |
d14a1e28 | 1943 | |
44127b65 RD |
1944 | arg4 = &temp4; |
1945 | arg5 = &temp5; | |
8edf1c75 | 1946 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
1948 | { |
1949 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1950 | if (PyErr_Occurred()) SWIG_fail; | |
1951 | } | |
1952 | { | |
1953 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1954 | if (PyErr_Occurred()) SWIG_fail; | |
1955 | } | |
d14a1e28 RD |
1956 | { |
1957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 1958 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
1959 | |
1960 | wxPyEndAllowThreads(__tstate); | |
1961 | if (PyErr_Occurred()) SWIG_fail; | |
1962 | } | |
44127b65 | 1963 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 1964 | { |
44127b65 RD |
1965 | PyObject *o = PyInt_FromLong((long) (*arg4)); |
1966 | resultobj = t_output_helper(resultobj,o); | |
1967 | } | |
1968 | { | |
1969 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1970 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
1971 | } |
1972 | return resultobj; | |
1973 | fail: | |
1974 | return NULL; | |
1975 | } | |
1976 | ||
1977 | ||
1978 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
1979 | int argc; | |
1980 | PyObject *argv[4]; | |
1981 | int ii; | |
1982 | ||
1983 | argc = PyObject_Length(args); | |
1984 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
1985 | argv[ii] = PyTuple_GetItem(args,ii); | |
1986 | } | |
1987 | if (argc == 2) { | |
1988 | int _v; | |
1989 | { | |
1990 | void *ptr; | |
1991 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
1992 | _v = 0; | |
1993 | PyErr_Clear(); | |
1994 | } else { | |
1995 | _v = 1; | |
1996 | } | |
1997 | } | |
1998 | if (_v) { | |
1999 | { | |
2000 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2001 | } | |
2002 | if (_v) { | |
44127b65 | 2003 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); |
d14a1e28 RD |
2004 | } |
2005 | } | |
2006 | } | |
2007 | if (argc == 3) { | |
2008 | int _v; | |
2009 | { | |
2010 | void *ptr; | |
2011 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2012 | _v = 0; | |
2013 | PyErr_Clear(); | |
2014 | } else { | |
2015 | _v = 1; | |
2016 | } | |
2017 | } | |
2018 | if (_v) { | |
2019 | { | |
8edf1c75 | 2020 | SWIG_PyObj_AsInt(argv[1]); |
83448d71 RD |
2021 | if (PyErr_Occurred()) { |
2022 | _v = 0; | |
2023 | PyErr_Clear(); | |
2024 | } else { | |
2025 | _v = 1; | |
2026 | } | |
d14a1e28 RD |
2027 | } |
2028 | if (_v) { | |
2029 | { | |
8edf1c75 | 2030 | SWIG_PyObj_AsInt(argv[2]); |
83448d71 RD |
2031 | if (PyErr_Occurred()) { |
2032 | _v = 0; | |
2033 | PyErr_Clear(); | |
2034 | } else { | |
2035 | _v = 1; | |
2036 | } | |
d14a1e28 RD |
2037 | } |
2038 | if (_v) { | |
44127b65 | 2039 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); |
d14a1e28 RD |
2040 | } |
2041 | } | |
2042 | } | |
2043 | } | |
2044 | ||
2045 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2046 | return NULL; | |
2047 | } | |
2048 | ||
2049 | ||
2050 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2051 | PyObject *resultobj; | |
2052 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
44127b65 RD |
2053 | wxPoint *arg2 = 0 ; |
2054 | wxPoint result; | |
2055 | wxPoint temp2 ; | |
d14a1e28 | 2056 | PyObject * obj0 = 0 ; |
44127b65 | 2057 | PyObject * obj1 = 0 ; |
d14a1e28 | 2058 | |
44127b65 | 2059 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; |
d14a1e28 | 2060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
44127b65 RD |
2061 | { |
2062 | arg2 = &temp2; | |
2063 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2064 | } | |
d14a1e28 RD |
2065 | { |
2066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 2067 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); |
d14a1e28 RD |
2068 | |
2069 | wxPyEndAllowThreads(__tstate); | |
2070 | if (PyErr_Occurred()) SWIG_fail; | |
2071 | } | |
d14a1e28 | 2072 | { |
44127b65 RD |
2073 | wxPoint * resultptr; |
2074 | resultptr = new wxPoint((wxPoint &) result); | |
2075 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
2076 | } |
2077 | return resultobj; | |
2078 | fail: | |
2079 | return NULL; | |
2080 | } | |
2081 | ||
2082 | ||
2083 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2084 | PyObject *resultobj; | |
2085 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
44127b65 RD |
2086 | int arg2 ; |
2087 | int arg3 ; | |
2088 | int *arg4 = (int *) 0 ; | |
2089 | int *arg5 = (int *) 0 ; | |
2090 | int temp4 ; | |
2091 | int temp5 ; | |
d14a1e28 | 2092 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
2093 | PyObject * obj1 = 0 ; |
2094 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2095 | |
44127b65 RD |
2096 | arg4 = &temp4; |
2097 | arg5 = &temp5; | |
8edf1c75 | 2098 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2100 | { |
2101 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2102 | if (PyErr_Occurred()) SWIG_fail; | |
2103 | } | |
2104 | { | |
2105 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2106 | if (PyErr_Occurred()) SWIG_fail; | |
2107 | } | |
d14a1e28 RD |
2108 | { |
2109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 2110 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
2111 | |
2112 | wxPyEndAllowThreads(__tstate); | |
2113 | if (PyErr_Occurred()) SWIG_fail; | |
2114 | } | |
44127b65 RD |
2115 | Py_INCREF(Py_None); resultobj = Py_None; |
2116 | { | |
2117 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
2118 | resultobj = t_output_helper(resultobj,o); | |
2119 | } | |
d14a1e28 | 2120 | { |
44127b65 RD |
2121 | PyObject *o = PyInt_FromLong((long) (*arg5)); |
2122 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
2123 | } |
2124 | return resultobj; | |
2125 | fail: | |
2126 | return NULL; | |
2127 | } | |
2128 | ||
2129 | ||
2130 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2131 | int argc; | |
2132 | PyObject *argv[4]; | |
2133 | int ii; | |
2134 | ||
2135 | argc = PyObject_Length(args); | |
2136 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2137 | argv[ii] = PyTuple_GetItem(args,ii); | |
2138 | } | |
2139 | if (argc == 2) { | |
2140 | int _v; | |
2141 | { | |
2142 | void *ptr; | |
2143 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2144 | _v = 0; | |
2145 | PyErr_Clear(); | |
2146 | } else { | |
2147 | _v = 1; | |
2148 | } | |
2149 | } | |
2150 | if (_v) { | |
2151 | { | |
2152 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2153 | } | |
2154 | if (_v) { | |
44127b65 | 2155 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); |
d14a1e28 RD |
2156 | } |
2157 | } | |
2158 | } | |
2159 | if (argc == 3) { | |
2160 | int _v; | |
2161 | { | |
2162 | void *ptr; | |
2163 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2164 | _v = 0; | |
2165 | PyErr_Clear(); | |
2166 | } else { | |
2167 | _v = 1; | |
2168 | } | |
2169 | } | |
2170 | if (_v) { | |
2171 | { | |
8edf1c75 | 2172 | SWIG_PyObj_AsInt(argv[1]); |
83448d71 RD |
2173 | if (PyErr_Occurred()) { |
2174 | _v = 0; | |
2175 | PyErr_Clear(); | |
2176 | } else { | |
2177 | _v = 1; | |
2178 | } | |
d14a1e28 RD |
2179 | } |
2180 | if (_v) { | |
2181 | { | |
8edf1c75 | 2182 | SWIG_PyObj_AsInt(argv[2]); |
83448d71 RD |
2183 | if (PyErr_Occurred()) { |
2184 | _v = 0; | |
2185 | PyErr_Clear(); | |
2186 | } else { | |
2187 | _v = 1; | |
2188 | } | |
d14a1e28 RD |
2189 | } |
2190 | if (_v) { | |
44127b65 | 2191 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); |
d14a1e28 RD |
2192 | } |
2193 | } | |
2194 | } | |
2195 | } | |
2196 | ||
2197 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2198 | return NULL; | |
2199 | } | |
2200 | ||
2201 | ||
2202 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2203 | PyObject *resultobj; | |
2204 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2205 | PyObject * obj0 = 0 ; | |
2206 | char *kwnames[] = { | |
2207 | (char *) "self", NULL | |
2208 | }; | |
2209 | ||
2210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2212 | { | |
2213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2214 | (arg1)->AdjustScrollbars(); | |
2215 | ||
2216 | wxPyEndAllowThreads(__tstate); | |
2217 | if (PyErr_Occurred()) SWIG_fail; | |
2218 | } | |
2219 | Py_INCREF(Py_None); resultobj = Py_None; | |
2220 | return resultobj; | |
2221 | fail: | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
2226 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject *resultobj; | |
2228 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2229 | wxScrollWinEvent *arg2 = 0 ; | |
2230 | int result; | |
2231 | PyObject * obj0 = 0 ; | |
2232 | PyObject * obj1 = 0 ; | |
2233 | char *kwnames[] = { | |
2234 | (char *) "self",(char *) "event", NULL | |
2235 | }; | |
2236 | ||
2237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2239 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2240 | if (arg2 == NULL) { | |
2241 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2242 | } | |
2243 | { | |
2244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2245 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2246 | ||
2247 | wxPyEndAllowThreads(__tstate); | |
2248 | if (PyErr_Occurred()) SWIG_fail; | |
2249 | } | |
8edf1c75 | 2250 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2251 | return resultobj; |
2252 | fail: | |
2253 | return NULL; | |
2254 | } | |
2255 | ||
2256 | ||
2257 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2258 | PyObject *resultobj; | |
2259 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2260 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2261 | PyObject * obj0 = 0 ; | |
2262 | PyObject * obj1 = 0 ; | |
2263 | char *kwnames[] = { | |
2264 | (char *) "self",(char *) "target", NULL | |
2265 | }; | |
2266 | ||
2267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2269 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2270 | { | |
2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2272 | (arg1)->SetTargetWindow(arg2); | |
2273 | ||
2274 | wxPyEndAllowThreads(__tstate); | |
2275 | if (PyErr_Occurred()) SWIG_fail; | |
2276 | } | |
2277 | Py_INCREF(Py_None); resultobj = Py_None; | |
2278 | return resultobj; | |
2279 | fail: | |
2280 | return NULL; | |
2281 | } | |
2282 | ||
2283 | ||
2284 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2285 | PyObject *resultobj; | |
2286 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2287 | wxWindow *result; | |
2288 | PyObject * obj0 = 0 ; | |
2289 | char *kwnames[] = { | |
2290 | (char *) "self", NULL | |
2291 | }; | |
2292 | ||
2293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2295 | { | |
2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2297 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2298 | ||
2299 | wxPyEndAllowThreads(__tstate); | |
2300 | if (PyErr_Occurred()) SWIG_fail; | |
2301 | } | |
2302 | { | |
2303 | resultobj = wxPyMake_wxObject(result); | |
2304 | } | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_ScrolledWindow_SetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2314 | wxRect *arg2 = 0 ; | |
2315 | wxRect temp2 ; | |
2316 | PyObject * obj0 = 0 ; | |
2317 | PyObject * obj1 = 0 ; | |
2318 | char *kwnames[] = { | |
2319 | (char *) "self",(char *) "rect", NULL | |
2320 | }; | |
2321 | ||
2322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetRect",kwnames,&obj0,&obj1)) goto fail; | |
2323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2324 | { | |
2325 | arg2 = &temp2; | |
2326 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
2327 | } | |
2328 | { | |
2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2330 | (arg1)->SetTargetRect((wxRect const &)*arg2); | |
2331 | ||
2332 | wxPyEndAllowThreads(__tstate); | |
2333 | if (PyErr_Occurred()) SWIG_fail; | |
2334 | } | |
2335 | Py_INCREF(Py_None); resultobj = Py_None; | |
2336 | return resultobj; | |
2337 | fail: | |
2338 | return NULL; | |
2339 | } | |
2340 | ||
2341 | ||
2342 | static PyObject *_wrap_ScrolledWindow_GetTargetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2343 | PyObject *resultobj; | |
2344 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2345 | wxRect result; | |
2346 | PyObject * obj0 = 0 ; | |
2347 | char *kwnames[] = { | |
2348 | (char *) "self", NULL | |
2349 | }; | |
2350 | ||
2351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetRect",kwnames,&obj0)) goto fail; | |
2352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2353 | { | |
2354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2355 | result = ((wxScrolledWindow const *)arg1)->GetTargetRect(); | |
2356 | ||
2357 | wxPyEndAllowThreads(__tstate); | |
2358 | if (PyErr_Occurred()) SWIG_fail; | |
2359 | } | |
2360 | { | |
2361 | wxRect * resultptr; | |
2362 | resultptr = new wxRect((wxRect &) result); | |
2363 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
2364 | } | |
2365 | return resultobj; | |
2366 | fail: | |
2367 | return NULL; | |
2368 | } | |
2369 | ||
2370 | ||
2371 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
2372 | PyObject *obj; | |
2373 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2374 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2375 | Py_INCREF(obj); | |
2376 | return Py_BuildValue((char *)""); | |
2377 | } | |
8edf1c75 | 2378 | static int _wrap_FrameNameStr_set(PyObject *) { |
d03fd34d RD |
2379 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); |
2380 | return 1; | |
2381 | } | |
2382 | ||
2383 | ||
2384 | static PyObject *_wrap_FrameNameStr_get() { | |
2385 | PyObject *pyobj; | |
2386 | ||
2387 | { | |
2388 | #if wxUSE_UNICODE | |
2389 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2390 | #else | |
2391 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2392 | #endif | |
2393 | } | |
2394 | return pyobj; | |
2395 | } | |
2396 | ||
2397 | ||
8edf1c75 | 2398 | static int _wrap_DialogNameStr_set(PyObject *) { |
d03fd34d RD |
2399 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); |
2400 | return 1; | |
2401 | } | |
2402 | ||
2403 | ||
2404 | static PyObject *_wrap_DialogNameStr_get() { | |
2405 | PyObject *pyobj; | |
2406 | ||
2407 | { | |
2408 | #if wxUSE_UNICODE | |
2409 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2410 | #else | |
2411 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2412 | #endif | |
2413 | } | |
2414 | return pyobj; | |
2415 | } | |
2416 | ||
2417 | ||
8edf1c75 | 2418 | static int _wrap_StatusLineNameStr_set(PyObject *) { |
d03fd34d RD |
2419 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); |
2420 | return 1; | |
2421 | } | |
2422 | ||
2423 | ||
2424 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2425 | PyObject *pyobj; | |
2426 | ||
2427 | { | |
2428 | #if wxUSE_UNICODE | |
2429 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2430 | #else | |
2431 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2432 | #endif | |
2433 | } | |
2434 | return pyobj; | |
2435 | } | |
2436 | ||
2437 | ||
8edf1c75 | 2438 | static int _wrap_ToolBarNameStr_set(PyObject *) { |
d03fd34d RD |
2439 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); |
2440 | return 1; | |
2441 | } | |
2442 | ||
2443 | ||
2444 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2445 | PyObject *pyobj; | |
2446 | ||
2447 | { | |
2448 | #if wxUSE_UNICODE | |
2449 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2450 | #else | |
2451 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2452 | #endif | |
2453 | } | |
2454 | return pyobj; | |
2455 | } | |
2456 | ||
2457 | ||
d14a1e28 RD |
2458 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { |
2459 | PyObject *resultobj; | |
2460 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
423f194a | 2461 | bool arg2 = (bool) True ; |
d14a1e28 RD |
2462 | PyObject * obj0 = 0 ; |
2463 | PyObject * obj1 = 0 ; | |
2464 | char *kwnames[] = { | |
2465 | (char *) "self",(char *) "maximize", NULL | |
2466 | }; | |
2467 | ||
2468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2470 | if (obj1) { | |
83448d71 | 2471 | { |
8edf1c75 | 2472 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
2473 | if (PyErr_Occurred()) SWIG_fail; |
2474 | } | |
d14a1e28 RD |
2475 | } |
2476 | { | |
2477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2478 | (arg1)->Maximize(arg2); | |
2479 | ||
2480 | wxPyEndAllowThreads(__tstate); | |
2481 | if (PyErr_Occurred()) SWIG_fail; | |
2482 | } | |
2483 | Py_INCREF(Py_None); resultobj = Py_None; | |
2484 | return resultobj; | |
2485 | fail: | |
2486 | return NULL; | |
2487 | } | |
2488 | ||
2489 | ||
2490 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2491 | PyObject *resultobj; | |
2492 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2493 | PyObject * obj0 = 0 ; | |
2494 | char *kwnames[] = { | |
2495 | (char *) "self", NULL | |
2496 | }; | |
2497 | ||
2498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2500 | { | |
2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2502 | (arg1)->Restore(); | |
2503 | ||
2504 | wxPyEndAllowThreads(__tstate); | |
2505 | if (PyErr_Occurred()) SWIG_fail; | |
2506 | } | |
2507 | Py_INCREF(Py_None); resultobj = Py_None; | |
2508 | return resultobj; | |
2509 | fail: | |
2510 | return NULL; | |
2511 | } | |
2512 | ||
2513 | ||
2514 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject *resultobj; | |
2516 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
423f194a | 2517 | bool arg2 = (bool) True ; |
d14a1e28 RD |
2518 | PyObject * obj0 = 0 ; |
2519 | PyObject * obj1 = 0 ; | |
2520 | char *kwnames[] = { | |
2521 | (char *) "self",(char *) "iconize", NULL | |
2522 | }; | |
2523 | ||
2524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2526 | if (obj1) { | |
83448d71 | 2527 | { |
8edf1c75 | 2528 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
2529 | if (PyErr_Occurred()) SWIG_fail; |
2530 | } | |
d14a1e28 RD |
2531 | } |
2532 | { | |
2533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2534 | (arg1)->Iconize(arg2); | |
2535 | ||
2536 | wxPyEndAllowThreads(__tstate); | |
2537 | if (PyErr_Occurred()) SWIG_fail; | |
2538 | } | |
2539 | Py_INCREF(Py_None); resultobj = Py_None; | |
2540 | return resultobj; | |
2541 | fail: | |
2542 | return NULL; | |
2543 | } | |
2544 | ||
2545 | ||
2546 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2547 | PyObject *resultobj; | |
2548 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2549 | bool result; | |
2550 | PyObject * obj0 = 0 ; | |
2551 | char *kwnames[] = { | |
2552 | (char *) "self", NULL | |
2553 | }; | |
2554 | ||
2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2557 | { | |
2558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2559 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2560 | ||
2561 | wxPyEndAllowThreads(__tstate); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
2563 | } | |
8edf1c75 | 2564 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2565 | return resultobj; |
2566 | fail: | |
2567 | return NULL; | |
2568 | } | |
2569 | ||
2570 | ||
2571 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2572 | PyObject *resultobj; | |
2573 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2574 | bool result; | |
2575 | PyObject * obj0 = 0 ; | |
2576 | char *kwnames[] = { | |
2577 | (char *) "self", NULL | |
2578 | }; | |
2579 | ||
2580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2581 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2582 | { | |
2583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2584 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2585 | ||
2586 | wxPyEndAllowThreads(__tstate); | |
2587 | if (PyErr_Occurred()) SWIG_fail; | |
2588 | } | |
8edf1c75 | 2589 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2590 | return resultobj; |
2591 | fail: | |
2592 | return NULL; | |
2593 | } | |
2594 | ||
2595 | ||
2596 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2597 | PyObject *resultobj; | |
2598 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2599 | wxIcon result; | |
2600 | PyObject * obj0 = 0 ; | |
2601 | char *kwnames[] = { | |
2602 | (char *) "self", NULL | |
2603 | }; | |
2604 | ||
2605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2607 | { | |
2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2609 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2610 | ||
2611 | wxPyEndAllowThreads(__tstate); | |
2612 | if (PyErr_Occurred()) SWIG_fail; | |
2613 | } | |
2614 | { | |
2615 | wxIcon * resultptr; | |
2616 | resultptr = new wxIcon((wxIcon &) result); | |
2617 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
2618 | } | |
2619 | return resultobj; | |
2620 | fail: | |
2621 | return NULL; | |
2622 | } | |
2623 | ||
2624 | ||
2625 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2626 | PyObject *resultobj; | |
2627 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2628 | wxIcon *arg2 = 0 ; | |
2629 | PyObject * obj0 = 0 ; | |
2630 | PyObject * obj1 = 0 ; | |
2631 | char *kwnames[] = { | |
2632 | (char *) "self",(char *) "icon", NULL | |
2633 | }; | |
2634 | ||
2635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2636 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2637 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2638 | if (arg2 == NULL) { | |
2639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2640 | } | |
2641 | { | |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
2648 | Py_INCREF(Py_None); resultobj = Py_None; | |
2649 | return resultobj; | |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
2655 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2656 | PyObject *resultobj; | |
2657 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2658 | wxIconBundle *arg2 = 0 ; | |
2659 | PyObject * obj0 = 0 ; | |
2660 | PyObject * obj1 = 0 ; | |
2661 | char *kwnames[] = { | |
2662 | (char *) "self",(char *) "icons", NULL | |
2663 | }; | |
2664 | ||
2665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2668 | if (arg2 == NULL) { | |
2669 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2670 | } | |
2671 | { | |
2672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2673 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2674 | ||
2675 | wxPyEndAllowThreads(__tstate); | |
2676 | if (PyErr_Occurred()) SWIG_fail; | |
2677 | } | |
2678 | Py_INCREF(Py_None); resultobj = Py_None; | |
2679 | return resultobj; | |
2680 | fail: | |
2681 | return NULL; | |
2682 | } | |
2683 | ||
2684 | ||
2685 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2686 | PyObject *resultobj; | |
2687 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2688 | bool arg2 ; | |
2689 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2690 | bool result; | |
2691 | PyObject * obj0 = 0 ; | |
2692 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2693 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2694 | char *kwnames[] = { |
2695 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2696 | }; | |
2697 | ||
8edf1c75 | 2698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 2700 | { |
8edf1c75 | 2701 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
2702 | if (PyErr_Occurred()) SWIG_fail; |
2703 | } | |
8edf1c75 RD |
2704 | if (obj2) { |
2705 | { | |
2706 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2707 | if (PyErr_Occurred()) SWIG_fail; | |
2708 | } | |
2709 | } | |
d14a1e28 RD |
2710 | { |
2711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2712 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2713 | ||
2714 | wxPyEndAllowThreads(__tstate); | |
2715 | if (PyErr_Occurred()) SWIG_fail; | |
2716 | } | |
8edf1c75 | 2717 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2718 | return resultobj; |
2719 | fail: | |
2720 | return NULL; | |
2721 | } | |
2722 | ||
2723 | ||
2724 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2725 | PyObject *resultobj; | |
2726 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2727 | bool result; | |
2728 | PyObject * obj0 = 0 ; | |
2729 | char *kwnames[] = { | |
2730 | (char *) "self", NULL | |
2731 | }; | |
2732 | ||
2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
2734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2735 | { | |
2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2737 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
2738 | ||
2739 | wxPyEndAllowThreads(__tstate); | |
2740 | if (PyErr_Occurred()) SWIG_fail; | |
2741 | } | |
8edf1c75 | 2742 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2743 | return resultobj; |
2744 | fail: | |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
2749 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject *resultobj; | |
2751 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2752 | wxString *arg2 = 0 ; | |
423f194a | 2753 | bool temp2 = False ; |
d14a1e28 RD |
2754 | PyObject * obj0 = 0 ; |
2755 | PyObject * obj1 = 0 ; | |
2756 | char *kwnames[] = { | |
2757 | (char *) "self",(char *) "title", NULL | |
2758 | }; | |
2759 | ||
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2762 | { | |
2763 | arg2 = wxString_in_helper(obj1); | |
2764 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2765 | temp2 = True; |
d14a1e28 RD |
2766 | } |
2767 | { | |
2768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2769 | (arg1)->SetTitle((wxString const &)*arg2); | |
2770 | ||
2771 | wxPyEndAllowThreads(__tstate); | |
2772 | if (PyErr_Occurred()) SWIG_fail; | |
2773 | } | |
2774 | Py_INCREF(Py_None); resultobj = Py_None; | |
2775 | { | |
2776 | if (temp2) | |
2777 | delete arg2; | |
2778 | } | |
2779 | return resultobj; | |
2780 | fail: | |
2781 | { | |
2782 | if (temp2) | |
2783 | delete arg2; | |
2784 | } | |
2785 | return NULL; | |
2786 | } | |
2787 | ||
2788 | ||
2789 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2790 | PyObject *resultobj; | |
2791 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2792 | wxString result; | |
2793 | PyObject * obj0 = 0 ; | |
2794 | char *kwnames[] = { | |
2795 | (char *) "self", NULL | |
2796 | }; | |
2797 | ||
2798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
2799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2800 | { | |
2801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2802 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
2803 | ||
2804 | wxPyEndAllowThreads(__tstate); | |
2805 | if (PyErr_Occurred()) SWIG_fail; | |
2806 | } | |
2807 | { | |
2808 | #if wxUSE_UNICODE | |
2809 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2810 | #else | |
2811 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2812 | #endif | |
2813 | } | |
2814 | return resultobj; | |
2815 | fail: | |
2816 | return NULL; | |
2817 | } | |
2818 | ||
2819 | ||
2820 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2821 | PyObject *resultobj; | |
2822 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2823 | wxRegion *arg2 = 0 ; | |
2824 | bool result; | |
2825 | PyObject * obj0 = 0 ; | |
2826 | PyObject * obj1 = 0 ; | |
2827 | char *kwnames[] = { | |
2828 | (char *) "self",(char *) "region", NULL | |
2829 | }; | |
2830 | ||
2831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
2832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2833 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2834 | if (arg2 == NULL) { | |
2835 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2836 | } | |
2837 | { | |
2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2839 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
2840 | ||
2841 | wxPyEndAllowThreads(__tstate); | |
2842 | if (PyErr_Occurred()) SWIG_fail; | |
2843 | } | |
8edf1c75 | 2844 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
2845 | return resultobj; |
2846 | fail: | |
2847 | return NULL; | |
2848 | } | |
2849 | ||
2850 | ||
2851 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
2852 | PyObject *obj; | |
2853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2854 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
2855 | Py_INCREF(obj); | |
2856 | return Py_BuildValue((char *)""); | |
2857 | } | |
2858 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2859 | PyObject *resultobj; | |
2860 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2861 | int arg2 ; |
d14a1e28 RD |
2862 | wxString *arg3 = 0 ; |
2863 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2864 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2865 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2866 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2867 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
2868 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
2869 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
2870 | wxFrame *result; | |
423f194a | 2871 | bool temp3 = False ; |
d14a1e28 RD |
2872 | wxPoint temp4 ; |
2873 | wxSize temp5 ; | |
423f194a | 2874 | bool temp7 = False ; |
d14a1e28 | 2875 | PyObject * obj0 = 0 ; |
8edf1c75 | 2876 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2877 | PyObject * obj2 = 0 ; |
2878 | PyObject * obj3 = 0 ; | |
2879 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2880 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2881 | PyObject * obj6 = 0 ; |
2882 | char *kwnames[] = { | |
2883 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
2884 | }; | |
2885 | ||
8edf1c75 | 2886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 2887 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
2888 | { |
2889 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2890 | if (PyErr_Occurred()) SWIG_fail; | |
2891 | } | |
d14a1e28 RD |
2892 | { |
2893 | arg3 = wxString_in_helper(obj2); | |
2894 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2895 | temp3 = True; |
d14a1e28 RD |
2896 | } |
2897 | if (obj3) { | |
2898 | { | |
2899 | arg4 = &temp4; | |
2900 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2901 | } | |
2902 | } | |
2903 | if (obj4) { | |
2904 | { | |
2905 | arg5 = &temp5; | |
2906 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2907 | } | |
2908 | } | |
8edf1c75 RD |
2909 | if (obj5) { |
2910 | { | |
2911 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
2912 | if (PyErr_Occurred()) SWIG_fail; | |
2913 | } | |
2914 | } | |
d14a1e28 RD |
2915 | if (obj6) { |
2916 | { | |
2917 | arg7 = wxString_in_helper(obj6); | |
2918 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 2919 | temp7 = True; |
d14a1e28 RD |
2920 | } |
2921 | } | |
2922 | { | |
2923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2924 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
2925 | ||
2926 | wxPyEndAllowThreads(__tstate); | |
2927 | if (PyErr_Occurred()) SWIG_fail; | |
2928 | } | |
2929 | { | |
2930 | resultobj = wxPyMake_wxObject(result); | |
2931 | } | |
2932 | { | |
2933 | if (temp3) | |
2934 | delete arg3; | |
2935 | } | |
2936 | { | |
2937 | if (temp7) | |
2938 | delete arg7; | |
2939 | } | |
2940 | return resultobj; | |
2941 | fail: | |
2942 | { | |
2943 | if (temp3) | |
2944 | delete arg3; | |
2945 | } | |
2946 | { | |
2947 | if (temp7) | |
2948 | delete arg7; | |
2949 | } | |
2950 | return NULL; | |
2951 | } | |
2952 | ||
2953 | ||
2954 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2955 | PyObject *resultobj; | |
2956 | wxFrame *result; | |
2957 | char *kwnames[] = { | |
2958 | NULL | |
2959 | }; | |
2960 | ||
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
2962 | { | |
2963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2964 | result = (wxFrame *)new wxFrame(); | |
2965 | ||
2966 | wxPyEndAllowThreads(__tstate); | |
2967 | if (PyErr_Occurred()) SWIG_fail; | |
2968 | } | |
2969 | { | |
2970 | resultobj = wxPyMake_wxObject(result); | |
2971 | } | |
2972 | return resultobj; | |
2973 | fail: | |
2974 | return NULL; | |
2975 | } | |
2976 | ||
2977 | ||
2978 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject *resultobj; | |
2980 | wxFrame *arg1 = (wxFrame *) 0 ; | |
2981 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2982 | int arg3 ; |
d14a1e28 RD |
2983 | wxString *arg4 = 0 ; |
2984 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2985 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2986 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2987 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2988 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
2989 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
2990 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2991 | bool result; | |
423f194a | 2992 | bool temp4 = False ; |
d14a1e28 RD |
2993 | wxPoint temp5 ; |
2994 | wxSize temp6 ; | |
423f194a | 2995 | bool temp8 = False ; |
d14a1e28 RD |
2996 | PyObject * obj0 = 0 ; |
2997 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2998 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2999 | PyObject * obj3 = 0 ; |
3000 | PyObject * obj4 = 0 ; | |
3001 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3002 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3003 | PyObject * obj7 = 0 ; |
3004 | char *kwnames[] = { | |
3005 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3006 | }; | |
3007 | ||
8edf1c75 | 3008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3010 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
3011 | { |
3012 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
3013 | if (PyErr_Occurred()) SWIG_fail; | |
3014 | } | |
d14a1e28 RD |
3015 | { |
3016 | arg4 = wxString_in_helper(obj3); | |
3017 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3018 | temp4 = True; |
d14a1e28 RD |
3019 | } |
3020 | if (obj4) { | |
3021 | { | |
3022 | arg5 = &temp5; | |
3023 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3024 | } | |
3025 | } | |
3026 | if (obj5) { | |
3027 | { | |
3028 | arg6 = &temp6; | |
3029 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3030 | } | |
3031 | } | |
8edf1c75 RD |
3032 | if (obj6) { |
3033 | { | |
3034 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3035 | if (PyErr_Occurred()) SWIG_fail; | |
3036 | } | |
3037 | } | |
d14a1e28 RD |
3038 | if (obj7) { |
3039 | { | |
3040 | arg8 = wxString_in_helper(obj7); | |
3041 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3042 | temp8 = True; |
d14a1e28 RD |
3043 | } |
3044 | } | |
3045 | { | |
3046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3047 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3048 | ||
3049 | wxPyEndAllowThreads(__tstate); | |
3050 | if (PyErr_Occurred()) SWIG_fail; | |
3051 | } | |
8edf1c75 | 3052 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
3053 | { |
3054 | if (temp4) | |
3055 | delete arg4; | |
3056 | } | |
3057 | { | |
3058 | if (temp8) | |
3059 | delete arg8; | |
3060 | } | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | { | |
3064 | if (temp4) | |
3065 | delete arg4; | |
3066 | } | |
3067 | { | |
3068 | if (temp8) | |
3069 | delete arg8; | |
3070 | } | |
3071 | return NULL; | |
3072 | } | |
3073 | ||
3074 | ||
3075 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3076 | PyObject *resultobj; | |
3077 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3078 | wxPoint result; | |
3079 | PyObject * obj0 = 0 ; | |
3080 | char *kwnames[] = { | |
3081 | (char *) "self", NULL | |
3082 | }; | |
3083 | ||
3084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3086 | { | |
3087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3088 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3089 | ||
3090 | wxPyEndAllowThreads(__tstate); | |
3091 | if (PyErr_Occurred()) SWIG_fail; | |
3092 | } | |
3093 | { | |
3094 | wxPoint * resultptr; | |
3095 | resultptr = new wxPoint((wxPoint &) result); | |
3096 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3097 | } | |
3098 | return resultobj; | |
3099 | fail: | |
3100 | return NULL; | |
3101 | } | |
3102 | ||
3103 | ||
3104 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3105 | PyObject *resultobj; | |
3106 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3107 | PyObject * obj0 = 0 ; | |
3108 | char *kwnames[] = { | |
3109 | (char *) "self", NULL | |
3110 | }; | |
3111 | ||
3112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3114 | { | |
3115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3116 | (arg1)->SendSizeEvent(); | |
3117 | ||
3118 | wxPyEndAllowThreads(__tstate); | |
3119 | if (PyErr_Occurred()) SWIG_fail; | |
3120 | } | |
3121 | Py_INCREF(Py_None); resultobj = Py_None; | |
3122 | return resultobj; | |
3123 | fail: | |
3124 | return NULL; | |
3125 | } | |
3126 | ||
3127 | ||
3128 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3129 | PyObject *resultobj; | |
3130 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3131 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3132 | PyObject * obj0 = 0 ; | |
3133 | PyObject * obj1 = 0 ; | |
3134 | char *kwnames[] = { | |
3135 | (char *) "self",(char *) "menubar", NULL | |
3136 | }; | |
3137 | ||
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3140 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3141 | { | |
3142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3143 | (arg1)->SetMenuBar(arg2); | |
3144 | ||
3145 | wxPyEndAllowThreads(__tstate); | |
3146 | if (PyErr_Occurred()) SWIG_fail; | |
3147 | } | |
3148 | Py_INCREF(Py_None); resultobj = Py_None; | |
3149 | return resultobj; | |
3150 | fail: | |
3151 | return NULL; | |
3152 | } | |
3153 | ||
3154 | ||
3155 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3156 | PyObject *resultobj; | |
3157 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3158 | wxMenuBar *result; | |
3159 | PyObject * obj0 = 0 ; | |
3160 | char *kwnames[] = { | |
3161 | (char *) "self", NULL | |
3162 | }; | |
3163 | ||
3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3166 | { | |
3167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3168 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3169 | ||
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
3173 | { | |
3174 | resultobj = wxPyMake_wxObject(result); | |
3175 | } | |
3176 | return resultobj; | |
3177 | fail: | |
3178 | return NULL; | |
3179 | } | |
3180 | ||
3181 | ||
3182 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3183 | PyObject *resultobj; | |
3184 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3185 | int arg2 ; | |
3186 | bool result; | |
3187 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3188 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3189 | char *kwnames[] = { |
3190 | (char *) "self",(char *) "winid", NULL | |
3191 | }; | |
3192 | ||
8edf1c75 | 3193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3195 | { |
3196 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3197 | if (PyErr_Occurred()) SWIG_fail; | |
3198 | } | |
d14a1e28 RD |
3199 | { |
3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3201 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3202 | ||
3203 | wxPyEndAllowThreads(__tstate); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
8edf1c75 | 3206 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
3207 | return resultobj; |
3208 | fail: | |
3209 | return NULL; | |
3210 | } | |
3211 | ||
3212 | ||
3213 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3214 | PyObject *resultobj; | |
3215 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3216 | int arg2 = (int) 1 ; | |
3217 | long arg3 = (long) wxST_SIZEGRIP ; | |
423f194a | 3218 | int arg4 = (int) 0 ; |
d14a1e28 RD |
3219 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; |
3220 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3221 | wxStatusBar *result; | |
423f194a | 3222 | bool temp5 = False ; |
d14a1e28 | 3223 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3224 | PyObject * obj1 = 0 ; |
3225 | PyObject * obj2 = 0 ; | |
3226 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3227 | PyObject * obj4 = 0 ; |
3228 | char *kwnames[] = { | |
3229 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3230 | }; | |
3231 | ||
8edf1c75 | 3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 3233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3234 | if (obj1) { |
3235 | { | |
3236 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
3239 | } | |
3240 | if (obj2) { | |
3241 | { | |
3242 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3243 | if (PyErr_Occurred()) SWIG_fail; | |
3244 | } | |
3245 | } | |
3246 | if (obj3) { | |
3247 | { | |
3248 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3249 | if (PyErr_Occurred()) SWIG_fail; | |
3250 | } | |
3251 | } | |
d14a1e28 RD |
3252 | if (obj4) { |
3253 | { | |
3254 | arg5 = wxString_in_helper(obj4); | |
3255 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 3256 | temp5 = True; |
d14a1e28 RD |
3257 | } |
3258 | } | |
3259 | { | |
3260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3261 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3262 | ||
3263 | wxPyEndAllowThreads(__tstate); | |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
3265 | } | |
3266 | { | |
3267 | resultobj = wxPyMake_wxObject(result); | |
3268 | } | |
3269 | { | |
3270 | if (temp5) | |
3271 | delete arg5; | |
3272 | } | |
3273 | return resultobj; | |
3274 | fail: | |
3275 | { | |
3276 | if (temp5) | |
3277 | delete arg5; | |
3278 | } | |
3279 | return NULL; | |
3280 | } | |
3281 | ||
3282 | ||
3283 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3284 | PyObject *resultobj; | |
3285 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3286 | wxStatusBar *result; | |
3287 | PyObject * obj0 = 0 ; | |
3288 | char *kwnames[] = { | |
3289 | (char *) "self", NULL | |
3290 | }; | |
3291 | ||
3292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3294 | { | |
3295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3296 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3297 | ||
3298 | wxPyEndAllowThreads(__tstate); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
3300 | } | |
3301 | { | |
3302 | resultobj = wxPyMake_wxObject(result); | |
3303 | } | |
3304 | return resultobj; | |
3305 | fail: | |
3306 | return NULL; | |
3307 | } | |
3308 | ||
3309 | ||
3310 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject *resultobj; | |
3312 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3313 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3314 | PyObject * obj0 = 0 ; | |
3315 | PyObject * obj1 = 0 ; | |
3316 | char *kwnames[] = { | |
3317 | (char *) "self",(char *) "statBar", NULL | |
3318 | }; | |
3319 | ||
3320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3322 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3323 | { | |
3324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3325 | (arg1)->SetStatusBar(arg2); | |
3326 | ||
3327 | wxPyEndAllowThreads(__tstate); | |
3328 | if (PyErr_Occurred()) SWIG_fail; | |
3329 | } | |
3330 | Py_INCREF(Py_None); resultobj = Py_None; | |
3331 | return resultobj; | |
3332 | fail: | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
3337 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3338 | PyObject *resultobj; | |
3339 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3340 | wxString *arg2 = 0 ; | |
3341 | int arg3 = (int) 0 ; | |
423f194a | 3342 | bool temp2 = False ; |
d14a1e28 RD |
3343 | PyObject * obj0 = 0 ; |
3344 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3345 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3346 | char *kwnames[] = { |
3347 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3348 | }; | |
3349 | ||
8edf1c75 | 3350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3352 | { | |
3353 | arg2 = wxString_in_helper(obj1); | |
3354 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3355 | temp2 = True; |
d14a1e28 | 3356 | } |
8edf1c75 RD |
3357 | if (obj2) { |
3358 | { | |
3359 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
3362 | } | |
d14a1e28 RD |
3363 | { |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3365 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3366 | ||
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | Py_INCREF(Py_None); resultobj = Py_None; | |
3371 | { | |
3372 | if (temp2) | |
3373 | delete arg2; | |
3374 | } | |
3375 | return resultobj; | |
3376 | fail: | |
3377 | { | |
3378 | if (temp2) | |
3379 | delete arg2; | |
3380 | } | |
3381 | return NULL; | |
3382 | } | |
3383 | ||
3384 | ||
3385 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3386 | PyObject *resultobj; | |
3387 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3388 | int arg2 ; | |
3389 | int *arg3 = (int *) 0 ; | |
3390 | PyObject * obj0 = 0 ; | |
3391 | PyObject * obj1 = 0 ; | |
3392 | char *kwnames[] = { | |
3393 | (char *) "self",(char *) "widths", NULL | |
3394 | }; | |
3395 | ||
3396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3398 | { | |
3399 | arg2 = PyList_Size(obj1); | |
3400 | arg3 = int_LIST_helper(obj1); | |
3401 | if (arg3 == NULL) SWIG_fail; | |
3402 | } | |
3403 | { | |
3404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3405 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3406 | ||
3407 | wxPyEndAllowThreads(__tstate); | |
3408 | if (PyErr_Occurred()) SWIG_fail; | |
3409 | } | |
3410 | Py_INCREF(Py_None); resultobj = Py_None; | |
3411 | { | |
3412 | if (arg3) delete [] arg3; | |
3413 | } | |
3414 | return resultobj; | |
3415 | fail: | |
3416 | { | |
3417 | if (arg3) delete [] arg3; | |
3418 | } | |
3419 | return NULL; | |
3420 | } | |
3421 | ||
3422 | ||
3423 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3424 | PyObject *resultobj; | |
3425 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3426 | wxString *arg2 = 0 ; | |
3427 | int arg3 = (int) 0 ; | |
423f194a | 3428 | bool temp2 = False ; |
d14a1e28 RD |
3429 | PyObject * obj0 = 0 ; |
3430 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3431 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3432 | char *kwnames[] = { |
3433 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3434 | }; | |
3435 | ||
8edf1c75 | 3436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3438 | { | |
3439 | arg2 = wxString_in_helper(obj1); | |
3440 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3441 | temp2 = True; |
d14a1e28 | 3442 | } |
8edf1c75 RD |
3443 | if (obj2) { |
3444 | { | |
3445 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3446 | if (PyErr_Occurred()) SWIG_fail; | |
3447 | } | |
3448 | } | |
d14a1e28 RD |
3449 | { |
3450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3451 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3452 | ||
3453 | wxPyEndAllowThreads(__tstate); | |
3454 | if (PyErr_Occurred()) SWIG_fail; | |
3455 | } | |
3456 | Py_INCREF(Py_None); resultobj = Py_None; | |
3457 | { | |
3458 | if (temp2) | |
3459 | delete arg2; | |
3460 | } | |
3461 | return resultobj; | |
3462 | fail: | |
3463 | { | |
3464 | if (temp2) | |
3465 | delete arg2; | |
3466 | } | |
3467 | return NULL; | |
3468 | } | |
3469 | ||
3470 | ||
3471 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3472 | PyObject *resultobj; | |
3473 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3474 | int arg2 = (int) 0 ; | |
3475 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3476 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3477 | char *kwnames[] = { |
3478 | (char *) "self",(char *) "number", NULL | |
3479 | }; | |
3480 | ||
8edf1c75 | 3481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3483 | if (obj1) { |
3484 | { | |
3485 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3486 | if (PyErr_Occurred()) SWIG_fail; | |
3487 | } | |
3488 | } | |
d14a1e28 RD |
3489 | { |
3490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3491 | (arg1)->PopStatusText(arg2); | |
3492 | ||
3493 | wxPyEndAllowThreads(__tstate); | |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
3495 | } | |
3496 | Py_INCREF(Py_None); resultobj = Py_None; | |
3497 | return resultobj; | |
3498 | fail: | |
3499 | return NULL; | |
3500 | } | |
3501 | ||
3502 | ||
3503 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3504 | PyObject *resultobj; | |
3505 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3506 | int arg2 ; | |
3507 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3508 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3509 | char *kwnames[] = { |
3510 | (char *) "self",(char *) "n", NULL | |
3511 | }; | |
3512 | ||
8edf1c75 | 3513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3515 | { |
3516 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
d14a1e28 RD |
3519 | { |
3520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3521 | (arg1)->SetStatusBarPane(arg2); | |
3522 | ||
3523 | wxPyEndAllowThreads(__tstate); | |
3524 | if (PyErr_Occurred()) SWIG_fail; | |
3525 | } | |
3526 | Py_INCREF(Py_None); resultobj = Py_None; | |
3527 | return resultobj; | |
3528 | fail: | |
3529 | return NULL; | |
3530 | } | |
3531 | ||
3532 | ||
3533 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3534 | PyObject *resultobj; | |
3535 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3536 | int result; | |
3537 | PyObject * obj0 = 0 ; | |
3538 | char *kwnames[] = { | |
3539 | (char *) "self", NULL | |
3540 | }; | |
3541 | ||
3542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3544 | { | |
3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3546 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3547 | ||
3548 | wxPyEndAllowThreads(__tstate); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
8edf1c75 | 3551 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3552 | return resultobj; |
3553 | fail: | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
3558 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3559 | PyObject *resultobj; | |
3560 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3561 | long arg2 = (long) -1 ; | |
423f194a | 3562 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3563 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; |
3564 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3565 | wxToolBar *result; | |
423f194a | 3566 | bool temp4 = False ; |
d14a1e28 | 3567 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3568 | PyObject * obj1 = 0 ; |
3569 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3570 | PyObject * obj3 = 0 ; |
3571 | char *kwnames[] = { | |
3572 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3573 | }; | |
3574 | ||
8edf1c75 | 3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 3576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3577 | if (obj1) { |
3578 | { | |
3579 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3580 | if (PyErr_Occurred()) SWIG_fail; | |
3581 | } | |
3582 | } | |
3583 | if (obj2) { | |
3584 | { | |
3585 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | } | |
3588 | } | |
d14a1e28 RD |
3589 | if (obj3) { |
3590 | { | |
3591 | arg4 = wxString_in_helper(obj3); | |
3592 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3593 | temp4 = True; |
d14a1e28 RD |
3594 | } |
3595 | } | |
3596 | { | |
3597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3598 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3599 | ||
3600 | wxPyEndAllowThreads(__tstate); | |
3601 | if (PyErr_Occurred()) SWIG_fail; | |
3602 | } | |
3603 | { | |
3604 | resultobj = wxPyMake_wxObject(result); | |
3605 | } | |
3606 | { | |
3607 | if (temp4) | |
3608 | delete arg4; | |
3609 | } | |
3610 | return resultobj; | |
3611 | fail: | |
3612 | { | |
3613 | if (temp4) | |
3614 | delete arg4; | |
3615 | } | |
3616 | return NULL; | |
3617 | } | |
3618 | ||
3619 | ||
3620 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3621 | PyObject *resultobj; | |
3622 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3623 | wxToolBar *result; | |
3624 | PyObject * obj0 = 0 ; | |
3625 | char *kwnames[] = { | |
3626 | (char *) "self", NULL | |
3627 | }; | |
3628 | ||
3629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3631 | { | |
3632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3633 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3634 | ||
3635 | wxPyEndAllowThreads(__tstate); | |
3636 | if (PyErr_Occurred()) SWIG_fail; | |
3637 | } | |
3638 | { | |
3639 | resultobj = wxPyMake_wxObject(result); | |
3640 | } | |
3641 | return resultobj; | |
3642 | fail: | |
3643 | return NULL; | |
3644 | } | |
3645 | ||
3646 | ||
3647 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3648 | PyObject *resultobj; | |
3649 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3650 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3651 | PyObject * obj0 = 0 ; | |
3652 | PyObject * obj1 = 0 ; | |
3653 | char *kwnames[] = { | |
3654 | (char *) "self",(char *) "toolbar", NULL | |
3655 | }; | |
3656 | ||
3657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3659 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3660 | { | |
3661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3662 | (arg1)->SetToolBar(arg2); | |
3663 | ||
3664 | wxPyEndAllowThreads(__tstate); | |
3665 | if (PyErr_Occurred()) SWIG_fail; | |
3666 | } | |
3667 | Py_INCREF(Py_None); resultobj = Py_None; | |
3668 | return resultobj; | |
3669 | fail: | |
3670 | return NULL; | |
3671 | } | |
3672 | ||
3673 | ||
3674 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3675 | PyObject *resultobj; | |
3676 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3677 | wxString *arg2 = 0 ; | |
3678 | bool arg3 ; | |
423f194a | 3679 | bool temp2 = False ; |
d14a1e28 RD |
3680 | PyObject * obj0 = 0 ; |
3681 | PyObject * obj1 = 0 ; | |
3682 | PyObject * obj2 = 0 ; | |
3683 | char *kwnames[] = { | |
3684 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3685 | }; | |
3686 | ||
3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3688 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3689 | { | |
3690 | arg2 = wxString_in_helper(obj1); | |
3691 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3692 | temp2 = True; |
d14a1e28 | 3693 | } |
83448d71 | 3694 | { |
8edf1c75 | 3695 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
3696 | if (PyErr_Occurred()) SWIG_fail; |
3697 | } | |
d14a1e28 RD |
3698 | { |
3699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3700 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3701 | ||
3702 | wxPyEndAllowThreads(__tstate); | |
3703 | if (PyErr_Occurred()) SWIG_fail; | |
3704 | } | |
3705 | Py_INCREF(Py_None); resultobj = Py_None; | |
3706 | { | |
3707 | if (temp2) | |
3708 | delete arg2; | |
3709 | } | |
3710 | return resultobj; | |
3711 | fail: | |
3712 | { | |
3713 | if (temp2) | |
3714 | delete arg2; | |
3715 | } | |
3716 | return NULL; | |
3717 | } | |
3718 | ||
3719 | ||
3720 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3721 | PyObject *resultobj; | |
3722 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3723 | wxMenu *arg2 = (wxMenu *) NULL ; | |
3724 | PyObject * obj0 = 0 ; | |
3725 | PyObject * obj1 = 0 ; | |
3726 | char *kwnames[] = { | |
3727 | (char *) "self",(char *) "menu", NULL | |
3728 | }; | |
3729 | ||
3730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
3731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3732 | if (obj1) { | |
3733 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3734 | } | |
3735 | { | |
3736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3737 | (arg1)->DoMenuUpdates(arg2); | |
3738 | ||
3739 | wxPyEndAllowThreads(__tstate); | |
3740 | if (PyErr_Occurred()) SWIG_fail; | |
3741 | } | |
3742 | Py_INCREF(Py_None); resultobj = Py_None; | |
3743 | return resultobj; | |
3744 | fail: | |
3745 | return NULL; | |
3746 | } | |
3747 | ||
3748 | ||
3749 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { | |
3750 | PyObject *obj; | |
3751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3752 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
3753 | Py_INCREF(obj); | |
3754 | return Py_BuildValue((char *)""); | |
3755 | } | |
3756 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3757 | PyObject *resultobj; | |
3758 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3759 | int arg2 ; |
d14a1e28 RD |
3760 | wxString *arg3 = 0 ; |
3761 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3762 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3763 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3764 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3765 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
3766 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
3767 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3768 | wxDialog *result; | |
423f194a | 3769 | bool temp3 = False ; |
d14a1e28 RD |
3770 | wxPoint temp4 ; |
3771 | wxSize temp5 ; | |
423f194a | 3772 | bool temp7 = False ; |
d14a1e28 | 3773 | PyObject * obj0 = 0 ; |
8edf1c75 | 3774 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3775 | PyObject * obj2 = 0 ; |
3776 | PyObject * obj3 = 0 ; | |
3777 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3778 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3779 | PyObject * obj6 = 0 ; |
3780 | char *kwnames[] = { | |
3781 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3782 | }; | |
3783 | ||
8edf1c75 | 3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 3785 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3786 | { |
3787 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
3788 | if (PyErr_Occurred()) SWIG_fail; | |
3789 | } | |
d14a1e28 RD |
3790 | { |
3791 | arg3 = wxString_in_helper(obj2); | |
3792 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3793 | temp3 = True; |
d14a1e28 RD |
3794 | } |
3795 | if (obj3) { | |
3796 | { | |
3797 | arg4 = &temp4; | |
3798 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3799 | } | |
3800 | } | |
3801 | if (obj4) { | |
3802 | { | |
3803 | arg5 = &temp5; | |
3804 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3805 | } | |
3806 | } | |
8edf1c75 RD |
3807 | if (obj5) { |
3808 | { | |
3809 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3810 | if (PyErr_Occurred()) SWIG_fail; | |
3811 | } | |
3812 | } | |
d14a1e28 RD |
3813 | if (obj6) { |
3814 | { | |
3815 | arg7 = wxString_in_helper(obj6); | |
3816 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3817 | temp7 = True; |
d14a1e28 RD |
3818 | } |
3819 | } | |
3820 | { | |
3821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3822 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3823 | ||
3824 | wxPyEndAllowThreads(__tstate); | |
3825 | if (PyErr_Occurred()) SWIG_fail; | |
3826 | } | |
3827 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDialog, 1); | |
3828 | { | |
3829 | if (temp3) | |
3830 | delete arg3; | |
3831 | } | |
3832 | { | |
3833 | if (temp7) | |
3834 | delete arg7; | |
3835 | } | |
3836 | return resultobj; | |
3837 | fail: | |
3838 | { | |
3839 | if (temp3) | |
3840 | delete arg3; | |
3841 | } | |
3842 | { | |
3843 | if (temp7) | |
3844 | delete arg7; | |
3845 | } | |
3846 | return NULL; | |
3847 | } | |
3848 | ||
3849 | ||
3850 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3851 | PyObject *resultobj; | |
3852 | wxDialog *result; | |
3853 | char *kwnames[] = { | |
3854 | NULL | |
3855 | }; | |
3856 | ||
3857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (wxDialog *)new wxDialog(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
3865 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDialog, 1); | |
3866 | return resultobj; | |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
3872 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject *resultobj; | |
3874 | wxDialog *arg1 = (wxDialog *) 0 ; | |
3875 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3876 | int arg3 ; |
d14a1e28 RD |
3877 | wxString *arg4 = 0 ; |
3878 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3879 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3880 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3881 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3882 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
3883 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
3884 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3885 | bool result; | |
423f194a | 3886 | bool temp4 = False ; |
d14a1e28 RD |
3887 | wxPoint temp5 ; |
3888 | wxSize temp6 ; | |
423f194a | 3889 | bool temp8 = False ; |
d14a1e28 RD |
3890 | PyObject * obj0 = 0 ; |
3891 | PyObject * obj1 = 0 ; | |
8edf1c75 | 3892 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3893 | PyObject * obj3 = 0 ; |
3894 | PyObject * obj4 = 0 ; | |
3895 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3896 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3897 | PyObject * obj7 = 0 ; |
3898 | char *kwnames[] = { | |
3899 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3900 | }; | |
3901 | ||
8edf1c75 | 3902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3904 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
3905 | { |
3906 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
3907 | if (PyErr_Occurred()) SWIG_fail; | |
3908 | } | |
d14a1e28 RD |
3909 | { |
3910 | arg4 = wxString_in_helper(obj3); | |
3911 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3912 | temp4 = True; |
d14a1e28 RD |
3913 | } |
3914 | if (obj4) { | |
3915 | { | |
3916 | arg5 = &temp5; | |
3917 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3918 | } | |
3919 | } | |
3920 | if (obj5) { | |
3921 | { | |
3922 | arg6 = &temp6; | |
3923 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3924 | } | |
3925 | } | |
8edf1c75 RD |
3926 | if (obj6) { |
3927 | { | |
3928 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3929 | if (PyErr_Occurred()) SWIG_fail; | |
3930 | } | |
3931 | } | |
d14a1e28 RD |
3932 | if (obj7) { |
3933 | { | |
3934 | arg8 = wxString_in_helper(obj7); | |
3935 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3936 | temp8 = True; |
d14a1e28 RD |
3937 | } |
3938 | } | |
3939 | { | |
3940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3941 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3942 | ||
3943 | wxPyEndAllowThreads(__tstate); | |
3944 | if (PyErr_Occurred()) SWIG_fail; | |
3945 | } | |
8edf1c75 | 3946 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
3947 | { |
3948 | if (temp4) | |
3949 | delete arg4; | |
3950 | } | |
3951 | { | |
3952 | if (temp8) | |
3953 | delete arg8; | |
3954 | } | |
3955 | return resultobj; | |
3956 | fail: | |
3957 | { | |
3958 | if (temp4) | |
3959 | delete arg4; | |
3960 | } | |
3961 | { | |
3962 | if (temp8) | |
3963 | delete arg8; | |
3964 | } | |
3965 | return NULL; | |
3966 | } | |
3967 | ||
3968 | ||
3969 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3970 | PyObject *resultobj; | |
3971 | wxDialog *arg1 = (wxDialog *) 0 ; | |
3972 | int arg2 ; | |
3973 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3974 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3975 | char *kwnames[] = { |
3976 | (char *) "self",(char *) "returnCode", NULL | |
3977 | }; | |
3978 | ||
8edf1c75 | 3979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
3981 | { |
3982 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3983 | if (PyErr_Occurred()) SWIG_fail; | |
3984 | } | |
d14a1e28 RD |
3985 | { |
3986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3987 | (arg1)->SetReturnCode(arg2); | |
3988 | ||
3989 | wxPyEndAllowThreads(__tstate); | |
3990 | if (PyErr_Occurred()) SWIG_fail; | |
3991 | } | |
3992 | Py_INCREF(Py_None); resultobj = Py_None; | |
3993 | return resultobj; | |
3994 | fail: | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
3999 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4000 | PyObject *resultobj; | |
4001 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4002 | int result; | |
4003 | PyObject * obj0 = 0 ; | |
4004 | char *kwnames[] = { | |
4005 | (char *) "self", NULL | |
4006 | }; | |
4007 | ||
4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
4009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4010 | { | |
4011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4012 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
4013 | ||
4014 | wxPyEndAllowThreads(__tstate); | |
4015 | if (PyErr_Occurred()) SWIG_fail; | |
4016 | } | |
8edf1c75 | 4017 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4018 | return resultobj; |
4019 | fail: | |
4020 | return NULL; | |
4021 | } | |
4022 | ||
4023 | ||
4024 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4025 | PyObject *resultobj; | |
4026 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4027 | wxString *arg2 = 0 ; | |
4028 | wxSizer *result; | |
423f194a | 4029 | bool temp2 = False ; |
d14a1e28 RD |
4030 | PyObject * obj0 = 0 ; |
4031 | PyObject * obj1 = 0 ; | |
4032 | char *kwnames[] = { | |
4033 | (char *) "self",(char *) "message", NULL | |
4034 | }; | |
4035 | ||
4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
4037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4038 | { | |
4039 | arg2 = wxString_in_helper(obj1); | |
4040 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4041 | temp2 = True; |
d14a1e28 RD |
4042 | } |
4043 | { | |
4044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4045 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
4046 | ||
4047 | wxPyEndAllowThreads(__tstate); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
4049 | } | |
4050 | { | |
4051 | resultobj = wxPyMake_wxSizer(result); | |
4052 | } | |
4053 | { | |
4054 | if (temp2) | |
4055 | delete arg2; | |
4056 | } | |
4057 | return resultobj; | |
4058 | fail: | |
4059 | { | |
4060 | if (temp2) | |
4061 | delete arg2; | |
4062 | } | |
4063 | return NULL; | |
4064 | } | |
4065 | ||
4066 | ||
4067 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4068 | PyObject *resultobj; | |
4069 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4070 | long arg2 ; | |
4071 | wxSizer *result; | |
4072 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4073 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4074 | char *kwnames[] = { |
4075 | (char *) "self",(char *) "flags", NULL | |
4076 | }; | |
4077 | ||
8edf1c75 | 4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4080 | { |
4081 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | } | |
d14a1e28 RD |
4084 | { |
4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4086 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4087 | ||
4088 | wxPyEndAllowThreads(__tstate); | |
4089 | if (PyErr_Occurred()) SWIG_fail; | |
4090 | } | |
4091 | { | |
4092 | resultobj = wxPyMake_wxSizer(result); | |
4093 | } | |
4094 | return resultobj; | |
4095 | fail: | |
4096 | return NULL; | |
4097 | } | |
4098 | ||
4099 | ||
d14a1e28 RD |
4100 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
4101 | PyObject *resultobj; | |
4102 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4103 | bool result; | |
4104 | PyObject * obj0 = 0 ; | |
4105 | char *kwnames[] = { | |
4106 | (char *) "self", NULL | |
4107 | }; | |
4108 | ||
4109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4111 | { | |
4112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4113 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4114 | ||
4115 | wxPyEndAllowThreads(__tstate); | |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | } | |
8edf1c75 | 4118 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4119 | return resultobj; |
4120 | fail: | |
4121 | return NULL; | |
4122 | } | |
4123 | ||
4124 | ||
4125 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4126 | PyObject *resultobj; | |
4127 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4128 | int result; | |
4129 | PyObject * obj0 = 0 ; | |
4130 | char *kwnames[] = { | |
4131 | (char *) "self", NULL | |
4132 | }; | |
4133 | ||
4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4136 | { | |
4137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4138 | result = (int)(arg1)->ShowModal(); | |
4139 | ||
4140 | wxPyEndAllowThreads(__tstate); | |
4141 | if (PyErr_Occurred()) SWIG_fail; | |
4142 | } | |
8edf1c75 | 4143 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4144 | return resultobj; |
4145 | fail: | |
4146 | return NULL; | |
4147 | } | |
4148 | ||
4149 | ||
4150 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4151 | PyObject *resultobj; | |
4152 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4153 | int arg2 ; | |
4154 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4155 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4156 | char *kwnames[] = { |
4157 | (char *) "self",(char *) "retCode", NULL | |
4158 | }; | |
4159 | ||
8edf1c75 | 4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4162 | { |
4163 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4164 | if (PyErr_Occurred()) SWIG_fail; | |
4165 | } | |
d14a1e28 RD |
4166 | { |
4167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4168 | (arg1)->EndModal(arg2); | |
4169 | ||
4170 | wxPyEndAllowThreads(__tstate); | |
4171 | if (PyErr_Occurred()) SWIG_fail; | |
4172 | } | |
4173 | Py_INCREF(Py_None); resultobj = Py_None; | |
4174 | return resultobj; | |
4175 | fail: | |
4176 | return NULL; | |
4177 | } | |
4178 | ||
4179 | ||
4180 | static PyObject *_wrap_Dialog_IsModalShowing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4181 | PyObject *resultobj; | |
4182 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4183 | bool result; | |
4184 | PyObject * obj0 = 0 ; | |
4185 | char *kwnames[] = { | |
4186 | (char *) "self", NULL | |
4187 | }; | |
4188 | ||
4189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModalShowing",kwnames,&obj0)) goto fail; | |
4190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4191 | { | |
4192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4193 | result = (bool)wxDialog_IsModalShowing(arg1); | |
4194 | ||
4195 | wxPyEndAllowThreads(__tstate); | |
4196 | if (PyErr_Occurred()) SWIG_fail; | |
4197 | } | |
8edf1c75 | 4198 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4199 | return resultobj; |
4200 | fail: | |
4201 | return NULL; | |
4202 | } | |
4203 | ||
4204 | ||
4205 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { | |
4206 | PyObject *obj; | |
4207 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4208 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4209 | Py_INCREF(obj); | |
4210 | return Py_BuildValue((char *)""); | |
4211 | } | |
4212 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject *resultobj; | |
4214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4215 | int arg2 ; |
d14a1e28 RD |
4216 | wxString *arg3 = 0 ; |
4217 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4218 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4219 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4220 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4221 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4222 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4223 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4224 | wxMiniFrame *result; | |
423f194a | 4225 | bool temp3 = False ; |
d14a1e28 RD |
4226 | wxPoint temp4 ; |
4227 | wxSize temp5 ; | |
423f194a | 4228 | bool temp7 = False ; |
d14a1e28 | 4229 | PyObject * obj0 = 0 ; |
8edf1c75 | 4230 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4231 | PyObject * obj2 = 0 ; |
4232 | PyObject * obj3 = 0 ; | |
4233 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4234 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4235 | PyObject * obj6 = 0 ; |
4236 | char *kwnames[] = { | |
4237 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4238 | }; | |
4239 | ||
8edf1c75 | 4240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4242 | { |
4243 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
4244 | if (PyErr_Occurred()) SWIG_fail; | |
4245 | } | |
d14a1e28 RD |
4246 | { |
4247 | arg3 = wxString_in_helper(obj2); | |
4248 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4249 | temp3 = True; |
d14a1e28 RD |
4250 | } |
4251 | if (obj3) { | |
4252 | { | |
4253 | arg4 = &temp4; | |
4254 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4255 | } | |
4256 | } | |
4257 | if (obj4) { | |
4258 | { | |
4259 | arg5 = &temp5; | |
4260 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4261 | } | |
4262 | } | |
8edf1c75 RD |
4263 | if (obj5) { |
4264 | { | |
4265 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4266 | if (PyErr_Occurred()) SWIG_fail; | |
4267 | } | |
4268 | } | |
d14a1e28 RD |
4269 | if (obj6) { |
4270 | { | |
4271 | arg7 = wxString_in_helper(obj6); | |
4272 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4273 | temp7 = True; |
d14a1e28 RD |
4274 | } |
4275 | } | |
4276 | { | |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | } | |
4283 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMiniFrame, 1); | |
4284 | { | |
4285 | if (temp3) | |
4286 | delete arg3; | |
4287 | } | |
4288 | { | |
4289 | if (temp7) | |
4290 | delete arg7; | |
4291 | } | |
4292 | return resultobj; | |
4293 | fail: | |
4294 | { | |
4295 | if (temp3) | |
4296 | delete arg3; | |
4297 | } | |
4298 | { | |
4299 | if (temp7) | |
4300 | delete arg7; | |
4301 | } | |
4302 | return NULL; | |
4303 | } | |
4304 | ||
4305 | ||
4306 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4307 | PyObject *resultobj; | |
4308 | wxMiniFrame *result; | |
4309 | char *kwnames[] = { | |
4310 | NULL | |
4311 | }; | |
4312 | ||
4313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4314 | { | |
4315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4316 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4317 | ||
4318 | wxPyEndAllowThreads(__tstate); | |
4319 | if (PyErr_Occurred()) SWIG_fail; | |
4320 | } | |
4321 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMiniFrame, 1); | |
4322 | return resultobj; | |
4323 | fail: | |
4324 | return NULL; | |
4325 | } | |
4326 | ||
4327 | ||
4328 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4329 | PyObject *resultobj; | |
4330 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4331 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4332 | int arg3 ; |
d14a1e28 RD |
4333 | wxString *arg4 = 0 ; |
4334 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4335 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4336 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4337 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4338 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4339 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4340 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4341 | bool result; | |
423f194a | 4342 | bool temp4 = False ; |
d14a1e28 RD |
4343 | wxPoint temp5 ; |
4344 | wxSize temp6 ; | |
423f194a | 4345 | bool temp8 = False ; |
d14a1e28 RD |
4346 | PyObject * obj0 = 0 ; |
4347 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4348 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4349 | PyObject * obj3 = 0 ; |
4350 | PyObject * obj4 = 0 ; | |
4351 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4352 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4353 | PyObject * obj7 = 0 ; |
4354 | char *kwnames[] = { | |
4355 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4356 | }; | |
4357 | ||
8edf1c75 | 4358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4359 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMiniFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4360 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4361 | { |
4362 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
4363 | if (PyErr_Occurred()) SWIG_fail; | |
4364 | } | |
d14a1e28 RD |
4365 | { |
4366 | arg4 = wxString_in_helper(obj3); | |
4367 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4368 | temp4 = True; |
d14a1e28 RD |
4369 | } |
4370 | if (obj4) { | |
4371 | { | |
4372 | arg5 = &temp5; | |
4373 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4374 | } | |
4375 | } | |
4376 | if (obj5) { | |
4377 | { | |
4378 | arg6 = &temp6; | |
4379 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4380 | } | |
4381 | } | |
8edf1c75 RD |
4382 | if (obj6) { |
4383 | { | |
4384 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4385 | if (PyErr_Occurred()) SWIG_fail; | |
4386 | } | |
4387 | } | |
d14a1e28 RD |
4388 | if (obj7) { |
4389 | { | |
4390 | arg8 = wxString_in_helper(obj7); | |
4391 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4392 | temp8 = True; |
d14a1e28 RD |
4393 | } |
4394 | } | |
4395 | { | |
4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4397 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4398 | ||
4399 | wxPyEndAllowThreads(__tstate); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | } | |
8edf1c75 | 4402 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4403 | { |
4404 | if (temp4) | |
4405 | delete arg4; | |
4406 | } | |
4407 | { | |
4408 | if (temp8) | |
4409 | delete arg8; | |
4410 | } | |
4411 | return resultobj; | |
4412 | fail: | |
4413 | { | |
4414 | if (temp4) | |
4415 | delete arg4; | |
4416 | } | |
4417 | { | |
4418 | if (temp8) | |
4419 | delete arg8; | |
4420 | } | |
4421 | return NULL; | |
4422 | } | |
4423 | ||
4424 | ||
4425 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4426 | PyObject *obj; | |
4427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4428 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4429 | Py_INCREF(obj); | |
4430 | return Py_BuildValue((char *)""); | |
4431 | } | |
4432 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4433 | PyObject *resultobj; | |
4434 | wxBitmap *arg1 = 0 ; | |
4435 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4436 | int arg3 ; |
d14a1e28 RD |
4437 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4438 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4439 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4440 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4441 | long arg6 = (long) wxNO_BORDER ; | |
4442 | wxSplashScreenWindow *result; | |
4443 | wxPoint temp4 ; | |
4444 | wxSize temp5 ; | |
4445 | PyObject * obj0 = 0 ; | |
4446 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4447 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4448 | PyObject * obj3 = 0 ; |
4449 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4450 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4451 | char *kwnames[] = { |
4452 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4453 | }; | |
4454 | ||
8edf1c75 | 4455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
4456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4457 | if (arg1 == NULL) { | |
4458 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4459 | } | |
4460 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4461 | { |
4462 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4463 | if (PyErr_Occurred()) SWIG_fail; | |
4464 | } | |
d14a1e28 RD |
4465 | if (obj3) { |
4466 | { | |
4467 | arg4 = &temp4; | |
4468 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4469 | } | |
4470 | } | |
4471 | if (obj4) { | |
4472 | { | |
4473 | arg5 = &temp5; | |
4474 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4475 | } | |
4476 | } | |
8edf1c75 RD |
4477 | if (obj5) { |
4478 | { | |
4479 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4480 | if (PyErr_Occurred()) SWIG_fail; | |
4481 | } | |
4482 | } | |
d14a1e28 RD |
4483 | { |
4484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4485 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4486 | ||
4487 | wxPyEndAllowThreads(__tstate); | |
4488 | if (PyErr_Occurred()) SWIG_fail; | |
4489 | } | |
4490 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4491 | return resultobj; | |
4492 | fail: | |
4493 | return NULL; | |
4494 | } | |
4495 | ||
4496 | ||
4497 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4498 | PyObject *resultobj; | |
4499 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4500 | wxBitmap *arg2 = 0 ; | |
4501 | PyObject * obj0 = 0 ; | |
4502 | PyObject * obj1 = 0 ; | |
4503 | char *kwnames[] = { | |
4504 | (char *) "self",(char *) "bitmap", NULL | |
4505 | }; | |
4506 | ||
4507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4508 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreenWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4509 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4510 | if (arg2 == NULL) { | |
4511 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4512 | } | |
4513 | { | |
4514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4515 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4516 | ||
4517 | wxPyEndAllowThreads(__tstate); | |
4518 | if (PyErr_Occurred()) SWIG_fail; | |
4519 | } | |
4520 | Py_INCREF(Py_None); resultobj = Py_None; | |
4521 | return resultobj; | |
4522 | fail: | |
4523 | return NULL; | |
4524 | } | |
4525 | ||
4526 | ||
4527 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4528 | PyObject *resultobj; | |
4529 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4530 | wxBitmap *result; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | char *kwnames[] = { | |
4533 | (char *) "self", NULL | |
4534 | }; | |
4535 | ||
4536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreenWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4538 | { | |
4539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4540 | { | |
4541 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4542 | result = (wxBitmap *) &_result_ref; | |
4543 | } | |
4544 | ||
4545 | wxPyEndAllowThreads(__tstate); | |
4546 | if (PyErr_Occurred()) SWIG_fail; | |
4547 | } | |
4548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
4552 | } | |
4553 | ||
4554 | ||
4555 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4556 | PyObject *obj; | |
4557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4558 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4559 | Py_INCREF(obj); | |
4560 | return Py_BuildValue((char *)""); | |
4561 | } | |
4562 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4563 | PyObject *resultobj; | |
4564 | wxBitmap *arg1 = 0 ; | |
4565 | long arg2 ; | |
4566 | int arg3 ; | |
4567 | wxWindow *arg4 = (wxWindow *) 0 ; | |
423f194a | 4568 | int arg5 ; |
d14a1e28 RD |
4569 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
4570 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4571 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4572 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4573 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4574 | wxSplashScreen *result; | |
4575 | wxPoint temp6 ; | |
4576 | wxSize temp7 ; | |
4577 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
4578 | PyObject * obj1 = 0 ; |
4579 | PyObject * obj2 = 0 ; | |
d14a1e28 | 4580 | PyObject * obj3 = 0 ; |
8edf1c75 | 4581 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4582 | PyObject * obj5 = 0 ; |
4583 | PyObject * obj6 = 0 ; | |
8edf1c75 | 4584 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
4585 | char *kwnames[] = { |
4586 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4587 | }; | |
4588 | ||
8edf1c75 | 4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4591 | if (arg1 == NULL) { | |
4592 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4593 | } | |
8edf1c75 RD |
4594 | { |
4595 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4596 | if (PyErr_Occurred()) SWIG_fail; | |
4597 | } | |
4598 | { | |
4599 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4600 | if (PyErr_Occurred()) SWIG_fail; | |
4601 | } | |
d14a1e28 | 4602 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4603 | { |
4604 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4605 | if (PyErr_Occurred()) SWIG_fail; | |
4606 | } | |
d14a1e28 RD |
4607 | if (obj5) { |
4608 | { | |
4609 | arg6 = &temp6; | |
4610 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4611 | } | |
4612 | } | |
4613 | if (obj6) { | |
4614 | { | |
4615 | arg7 = &temp7; | |
4616 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4617 | } | |
4618 | } | |
8edf1c75 RD |
4619 | if (obj7) { |
4620 | { | |
4621 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
4622 | if (PyErr_Occurred()) SWIG_fail; | |
4623 | } | |
4624 | } | |
d14a1e28 RD |
4625 | { |
4626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4627 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4628 | ||
4629 | wxPyEndAllowThreads(__tstate); | |
4630 | if (PyErr_Occurred()) SWIG_fail; | |
4631 | } | |
4632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplashScreen, 1); | |
4633 | return resultobj; | |
4634 | fail: | |
4635 | return NULL; | |
4636 | } | |
4637 | ||
4638 | ||
4639 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4640 | PyObject *resultobj; | |
4641 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4642 | long result; | |
4643 | PyObject * obj0 = 0 ; | |
4644 | char *kwnames[] = { | |
4645 | (char *) "self", NULL | |
4646 | }; | |
4647 | ||
4648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
4649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4650 | { | |
4651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4652 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
4653 | ||
4654 | wxPyEndAllowThreads(__tstate); | |
4655 | if (PyErr_Occurred()) SWIG_fail; | |
4656 | } | |
8edf1c75 | 4657 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
4658 | return resultobj; |
4659 | fail: | |
4660 | return NULL; | |
4661 | } | |
4662 | ||
4663 | ||
4664 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4665 | PyObject *resultobj; | |
4666 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4667 | wxSplashScreenWindow *result; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "self", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
4674 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4675 | { | |
4676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4677 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
4678 | ||
4679 | wxPyEndAllowThreads(__tstate); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | } | |
4682 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplashScreenWindow, 0); | |
4683 | return resultobj; | |
4684 | fail: | |
4685 | return NULL; | |
4686 | } | |
4687 | ||
4688 | ||
4689 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4690 | PyObject *resultobj; | |
4691 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4692 | int result; | |
4693 | PyObject * obj0 = 0 ; | |
4694 | char *kwnames[] = { | |
4695 | (char *) "self", NULL | |
4696 | }; | |
4697 | ||
4698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
4699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4700 | { | |
4701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4702 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
4703 | ||
4704 | wxPyEndAllowThreads(__tstate); | |
4705 | if (PyErr_Occurred()) SWIG_fail; | |
4706 | } | |
8edf1c75 | 4707 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4708 | return resultobj; |
4709 | fail: | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
4714 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
4715 | PyObject *obj; | |
4716 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4717 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
4718 | Py_INCREF(obj); | |
4719 | return Py_BuildValue((char *)""); | |
4720 | } | |
4721 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4722 | PyObject *resultobj; | |
4723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4724 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4725 | long arg3 = (long) wxST_SIZEGRIP ; |
4726 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
4727 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4728 | wxStatusBar *result; | |
423f194a | 4729 | bool temp4 = False ; |
d14a1e28 | 4730 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
4731 | PyObject * obj1 = 0 ; |
4732 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4733 | PyObject * obj3 = 0 ; |
4734 | char *kwnames[] = { | |
4735 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
4736 | }; | |
4737 | ||
8edf1c75 | 4738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 4739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4740 | if (obj1) { |
4741 | { | |
4742 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4743 | if (PyErr_Occurred()) SWIG_fail; | |
4744 | } | |
4745 | } | |
4746 | if (obj2) { | |
4747 | { | |
4748 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
4749 | if (PyErr_Occurred()) SWIG_fail; | |
4750 | } | |
4751 | } | |
d14a1e28 RD |
4752 | if (obj3) { |
4753 | { | |
4754 | arg4 = wxString_in_helper(obj3); | |
4755 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4756 | temp4 = True; |
d14a1e28 RD |
4757 | } |
4758 | } | |
4759 | { | |
4760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4761 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
4762 | ||
4763 | wxPyEndAllowThreads(__tstate); | |
4764 | if (PyErr_Occurred()) SWIG_fail; | |
4765 | } | |
4766 | { | |
4767 | resultobj = wxPyMake_wxObject(result); | |
4768 | } | |
4769 | { | |
4770 | if (temp4) | |
4771 | delete arg4; | |
4772 | } | |
4773 | return resultobj; | |
4774 | fail: | |
4775 | { | |
4776 | if (temp4) | |
4777 | delete arg4; | |
4778 | } | |
4779 | return NULL; | |
4780 | } | |
4781 | ||
4782 | ||
4783 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4784 | PyObject *resultobj; | |
4785 | wxStatusBar *result; | |
4786 | char *kwnames[] = { | |
4787 | NULL | |
4788 | }; | |
4789 | ||
4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
4791 | { | |
4792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4793 | result = (wxStatusBar *)new wxStatusBar(); | |
4794 | ||
4795 | wxPyEndAllowThreads(__tstate); | |
4796 | if (PyErr_Occurred()) SWIG_fail; | |
4797 | } | |
4798 | { | |
4799 | resultobj = wxPyMake_wxObject(result); | |
4800 | } | |
4801 | return resultobj; | |
4802 | fail: | |
4803 | return NULL; | |
4804 | } | |
4805 | ||
4806 | ||
4807 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4808 | PyObject *resultobj; | |
4809 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4810 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4811 | int arg3 ; |
d14a1e28 RD |
4812 | long arg4 = (long) wxST_SIZEGRIP ; |
4813 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
4814 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
4815 | bool result; | |
423f194a | 4816 | bool temp5 = False ; |
d14a1e28 RD |
4817 | PyObject * obj0 = 0 ; |
4818 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
4819 | PyObject * obj2 = 0 ; |
4820 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4821 | PyObject * obj4 = 0 ; |
4822 | char *kwnames[] = { | |
4823 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
4824 | }; | |
4825 | ||
8edf1c75 | 4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
4827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4828 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
4829 | { |
4830 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4831 | if (PyErr_Occurred()) SWIG_fail; | |
4832 | } | |
4833 | if (obj3) { | |
4834 | { | |
4835 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
4836 | if (PyErr_Occurred()) SWIG_fail; | |
4837 | } | |
4838 | } | |
d14a1e28 RD |
4839 | if (obj4) { |
4840 | { | |
4841 | arg5 = wxString_in_helper(obj4); | |
4842 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 4843 | temp5 = True; |
d14a1e28 RD |
4844 | } |
4845 | } | |
4846 | { | |
4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4848 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
4849 | ||
4850 | wxPyEndAllowThreads(__tstate); | |
4851 | if (PyErr_Occurred()) SWIG_fail; | |
4852 | } | |
8edf1c75 | 4853 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
4854 | { |
4855 | if (temp5) | |
4856 | delete arg5; | |
4857 | } | |
4858 | return resultobj; | |
4859 | fail: | |
4860 | { | |
4861 | if (temp5) | |
4862 | delete arg5; | |
4863 | } | |
4864 | return NULL; | |
4865 | } | |
4866 | ||
4867 | ||
4868 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4869 | PyObject *resultobj; | |
4870 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4871 | int arg2 = (int) 1 ; | |
4872 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4874 | char *kwnames[] = { |
4875 | (char *) "self",(char *) "number", NULL | |
4876 | }; | |
4877 | ||
8edf1c75 | 4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4880 | if (obj1) { |
4881 | { | |
4882 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4883 | if (PyErr_Occurred()) SWIG_fail; | |
4884 | } | |
4885 | } | |
d14a1e28 RD |
4886 | { |
4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4888 | (arg1)->SetFieldsCount(arg2); | |
4889 | ||
4890 | wxPyEndAllowThreads(__tstate); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | } | |
4893 | Py_INCREF(Py_None); resultobj = Py_None; | |
4894 | return resultobj; | |
4895 | fail: | |
4896 | return NULL; | |
4897 | } | |
4898 | ||
4899 | ||
4900 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4901 | PyObject *resultobj; | |
4902 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4903 | int result; | |
4904 | PyObject * obj0 = 0 ; | |
4905 | char *kwnames[] = { | |
4906 | (char *) "self", NULL | |
4907 | }; | |
4908 | ||
4909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
4910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4911 | { | |
4912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4913 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
4914 | ||
4915 | wxPyEndAllowThreads(__tstate); | |
4916 | if (PyErr_Occurred()) SWIG_fail; | |
4917 | } | |
8edf1c75 | 4918 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4919 | return resultobj; |
4920 | fail: | |
4921 | return NULL; | |
4922 | } | |
4923 | ||
4924 | ||
4925 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4926 | PyObject *resultobj; | |
4927 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4928 | wxString *arg2 = 0 ; | |
4929 | int arg3 = (int) 0 ; | |
423f194a | 4930 | bool temp2 = False ; |
d14a1e28 RD |
4931 | PyObject * obj0 = 0 ; |
4932 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4933 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4934 | char *kwnames[] = { |
4935 | (char *) "self",(char *) "text",(char *) "number", NULL | |
4936 | }; | |
4937 | ||
8edf1c75 | 4938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4940 | { | |
4941 | arg2 = wxString_in_helper(obj1); | |
4942 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4943 | temp2 = True; |
d14a1e28 | 4944 | } |
8edf1c75 RD |
4945 | if (obj2) { |
4946 | { | |
4947 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | } | |
4950 | } | |
d14a1e28 RD |
4951 | { |
4952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4953 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
4954 | ||
4955 | wxPyEndAllowThreads(__tstate); | |
4956 | if (PyErr_Occurred()) SWIG_fail; | |
4957 | } | |
4958 | Py_INCREF(Py_None); resultobj = Py_None; | |
4959 | { | |
4960 | if (temp2) | |
4961 | delete arg2; | |
4962 | } | |
4963 | return resultobj; | |
4964 | fail: | |
4965 | { | |
4966 | if (temp2) | |
4967 | delete arg2; | |
4968 | } | |
4969 | return NULL; | |
4970 | } | |
4971 | ||
4972 | ||
4973 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4974 | PyObject *resultobj; | |
4975 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4976 | int arg2 = (int) 0 ; | |
4977 | wxString result; | |
4978 | PyObject * obj0 = 0 ; | |
8edf1c75 | 4979 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4980 | char *kwnames[] = { |
4981 | (char *) "self",(char *) "number", NULL | |
4982 | }; | |
4983 | ||
8edf1c75 | 4984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
4986 | if (obj1) { |
4987 | { | |
4988 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4989 | if (PyErr_Occurred()) SWIG_fail; | |
4990 | } | |
4991 | } | |
d14a1e28 RD |
4992 | { |
4993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4994 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
4995 | ||
4996 | wxPyEndAllowThreads(__tstate); | |
4997 | if (PyErr_Occurred()) SWIG_fail; | |
4998 | } | |
4999 | { | |
5000 | #if wxUSE_UNICODE | |
5001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
5002 | #else | |
5003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
5004 | #endif | |
5005 | } | |
5006 | return resultobj; | |
5007 | fail: | |
5008 | return NULL; | |
5009 | } | |
5010 | ||
5011 | ||
5012 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5013 | PyObject *resultobj; | |
5014 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5015 | wxString *arg2 = 0 ; | |
5016 | int arg3 = (int) 0 ; | |
423f194a | 5017 | bool temp2 = False ; |
d14a1e28 RD |
5018 | PyObject * obj0 = 0 ; |
5019 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5020 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5021 | char *kwnames[] = { |
5022 | (char *) "self",(char *) "text",(char *) "number", NULL | |
5023 | }; | |
5024 | ||
8edf1c75 | 5025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
5026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5027 | { | |
5028 | arg2 = wxString_in_helper(obj1); | |
5029 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5030 | temp2 = True; |
d14a1e28 | 5031 | } |
8edf1c75 RD |
5032 | if (obj2) { |
5033 | { | |
5034 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5035 | if (PyErr_Occurred()) SWIG_fail; | |
5036 | } | |
5037 | } | |
d14a1e28 RD |
5038 | { |
5039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5040 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
5041 | ||
5042 | wxPyEndAllowThreads(__tstate); | |
5043 | if (PyErr_Occurred()) SWIG_fail; | |
5044 | } | |
5045 | Py_INCREF(Py_None); resultobj = Py_None; | |
5046 | { | |
5047 | if (temp2) | |
5048 | delete arg2; | |
5049 | } | |
5050 | return resultobj; | |
5051 | fail: | |
5052 | { | |
5053 | if (temp2) | |
5054 | delete arg2; | |
5055 | } | |
5056 | return NULL; | |
5057 | } | |
5058 | ||
5059 | ||
5060 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5061 | PyObject *resultobj; | |
5062 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5063 | int arg2 = (int) 0 ; | |
5064 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5066 | char *kwnames[] = { |
5067 | (char *) "self",(char *) "number", NULL | |
5068 | }; | |
5069 | ||
8edf1c75 | 5070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5072 | if (obj1) { |
5073 | { | |
5074 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5075 | if (PyErr_Occurred()) SWIG_fail; | |
5076 | } | |
5077 | } | |
d14a1e28 RD |
5078 | { |
5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5080 | (arg1)->PopStatusText(arg2); | |
5081 | ||
5082 | wxPyEndAllowThreads(__tstate); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
5085 | Py_INCREF(Py_None); resultobj = Py_None; | |
5086 | return resultobj; | |
5087 | fail: | |
5088 | return NULL; | |
5089 | } | |
5090 | ||
5091 | ||
5092 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5093 | PyObject *resultobj; | |
5094 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5095 | int arg2 ; | |
5096 | int *arg3 = (int *) 0 ; | |
5097 | PyObject * obj0 = 0 ; | |
5098 | PyObject * obj1 = 0 ; | |
5099 | char *kwnames[] = { | |
5100 | (char *) "self",(char *) "widths", NULL | |
5101 | }; | |
5102 | ||
5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5105 | { | |
5106 | arg2 = PyList_Size(obj1); | |
5107 | arg3 = int_LIST_helper(obj1); | |
5108 | if (arg3 == NULL) SWIG_fail; | |
5109 | } | |
5110 | { | |
5111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5112 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5113 | ||
5114 | wxPyEndAllowThreads(__tstate); | |
5115 | if (PyErr_Occurred()) SWIG_fail; | |
5116 | } | |
5117 | Py_INCREF(Py_None); resultobj = Py_None; | |
5118 | { | |
5119 | if (arg3) delete [] arg3; | |
5120 | } | |
5121 | return resultobj; | |
5122 | fail: | |
5123 | { | |
5124 | if (arg3) delete [] arg3; | |
5125 | } | |
5126 | return NULL; | |
5127 | } | |
5128 | ||
5129 | ||
5130 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5131 | PyObject *resultobj; | |
5132 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5133 | int arg2 ; | |
44127b65 | 5134 | wxRect result; |
d14a1e28 | 5135 | PyObject * obj0 = 0 ; |
8edf1c75 | 5136 | PyObject * obj1 = 0 ; |
d14a1e28 | 5137 | char *kwnames[] = { |
44127b65 | 5138 | (char *) "self",(char *) "i", NULL |
d14a1e28 RD |
5139 | }; |
5140 | ||
8edf1c75 | 5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5143 | { |
5144 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5145 | if (PyErr_Occurred()) SWIG_fail; | |
5146 | } | |
d14a1e28 RD |
5147 | { |
5148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 5149 | result = wxStatusBar_GetFieldRect(arg1,arg2); |
d14a1e28 RD |
5150 | |
5151 | wxPyEndAllowThreads(__tstate); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
44127b65 RD |
5154 | { |
5155 | wxRect * resultptr; | |
5156 | resultptr = new wxRect((wxRect &) result); | |
5157 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5158 | } | |
d14a1e28 RD |
5159 | return resultobj; |
5160 | fail: | |
5161 | return NULL; | |
5162 | } | |
5163 | ||
5164 | ||
5165 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5166 | PyObject *resultobj; | |
5167 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5168 | int arg2 ; | |
5169 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5171 | char *kwnames[] = { |
5172 | (char *) "self",(char *) "height", NULL | |
5173 | }; | |
5174 | ||
8edf1c75 | 5175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5177 | { |
5178 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5179 | if (PyErr_Occurred()) SWIG_fail; | |
5180 | } | |
d14a1e28 RD |
5181 | { |
5182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5183 | (arg1)->SetMinHeight(arg2); | |
5184 | ||
5185 | wxPyEndAllowThreads(__tstate); | |
5186 | if (PyErr_Occurred()) SWIG_fail; | |
5187 | } | |
5188 | Py_INCREF(Py_None); resultobj = Py_None; | |
5189 | return resultobj; | |
5190 | fail: | |
5191 | return NULL; | |
5192 | } | |
5193 | ||
5194 | ||
5195 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5196 | PyObject *resultobj; | |
5197 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5198 | int result; | |
5199 | PyObject * obj0 = 0 ; | |
5200 | char *kwnames[] = { | |
5201 | (char *) "self", NULL | |
5202 | }; | |
5203 | ||
5204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) SWIG_fail; | |
5212 | } | |
8edf1c75 | 5213 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5214 | return resultobj; |
5215 | fail: | |
5216 | return NULL; | |
5217 | } | |
5218 | ||
5219 | ||
5220 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5221 | PyObject *resultobj; | |
5222 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5223 | int result; | |
5224 | PyObject * obj0 = 0 ; | |
5225 | char *kwnames[] = { | |
5226 | (char *) "self", NULL | |
5227 | }; | |
5228 | ||
5229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5231 | { | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5234 | ||
5235 | wxPyEndAllowThreads(__tstate); | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | } | |
8edf1c75 | 5238 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5239 | return resultobj; |
5240 | fail: | |
5241 | return NULL; | |
5242 | } | |
5243 | ||
5244 | ||
5245 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { | |
5246 | PyObject *obj; | |
5247 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5248 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5249 | Py_INCREF(obj); | |
5250 | return Py_BuildValue((char *)""); | |
5251 | } | |
8edf1c75 | 5252 | static int _wrap_SplitterNameStr_set(PyObject *) { |
d03fd34d RD |
5253 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); |
5254 | return 1; | |
5255 | } | |
5256 | ||
5257 | ||
5258 | static PyObject *_wrap_SplitterNameStr_get() { | |
5259 | PyObject *pyobj; | |
5260 | ||
5261 | { | |
5262 | #if wxUSE_UNICODE | |
5263 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5264 | #else | |
5265 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5266 | #endif | |
5267 | } | |
5268 | return pyobj; | |
5269 | } | |
5270 | ||
5271 | ||
d14a1e28 RD |
5272 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
5273 | PyObject *resultobj; | |
5274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5275 | int arg2 ; |
d14a1e28 RD |
5276 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5277 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5278 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5279 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5280 | long arg5 = (long) wxSP_3D ; | |
5281 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5282 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5283 | wxSplitterWindow *result; | |
5284 | wxPoint temp3 ; | |
5285 | wxSize temp4 ; | |
423f194a | 5286 | bool temp6 = False ; |
d14a1e28 | 5287 | PyObject * obj0 = 0 ; |
8edf1c75 | 5288 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5289 | PyObject * obj2 = 0 ; |
5290 | PyObject * obj3 = 0 ; | |
8edf1c75 | 5291 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
5292 | PyObject * obj5 = 0 ; |
5293 | char *kwnames[] = { | |
8edf1c75 | 5294 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL |
d14a1e28 RD |
5295 | }; |
5296 | ||
8edf1c75 | 5297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 5298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5299 | { |
5300 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5301 | if (PyErr_Occurred()) SWIG_fail; | |
5302 | } | |
d14a1e28 RD |
5303 | if (obj2) { |
5304 | { | |
5305 | arg3 = &temp3; | |
5306 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5307 | } | |
5308 | } | |
5309 | if (obj3) { | |
5310 | { | |
5311 | arg4 = &temp4; | |
5312 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5313 | } | |
5314 | } | |
8edf1c75 RD |
5315 | if (obj4) { |
5316 | { | |
5317 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
5318 | if (PyErr_Occurred()) SWIG_fail; | |
5319 | } | |
5320 | } | |
d14a1e28 RD |
5321 | if (obj5) { |
5322 | { | |
5323 | arg6 = wxString_in_helper(obj5); | |
5324 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 5325 | temp6 = True; |
d14a1e28 RD |
5326 | } |
5327 | } | |
5328 | { | |
5329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5330 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5331 | ||
5332 | wxPyEndAllowThreads(__tstate); | |
5333 | if (PyErr_Occurred()) SWIG_fail; | |
5334 | } | |
5335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplitterWindow, 1); | |
5336 | { | |
5337 | if (temp6) | |
5338 | delete arg6; | |
5339 | } | |
5340 | return resultobj; | |
5341 | fail: | |
5342 | { | |
5343 | if (temp6) | |
5344 | delete arg6; | |
5345 | } | |
5346 | return NULL; | |
5347 | } | |
5348 | ||
5349 | ||
5350 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5351 | PyObject *resultobj; | |
5352 | wxSplitterWindow *result; | |
5353 | char *kwnames[] = { | |
5354 | NULL | |
5355 | }; | |
5356 | ||
5357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5358 | { | |
5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5360 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5361 | ||
5362 | wxPyEndAllowThreads(__tstate); | |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
5364 | } | |
5365 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplitterWindow, 1); | |
5366 | return resultobj; | |
5367 | fail: | |
5368 | return NULL; | |
5369 | } | |
5370 | ||
5371 | ||
5372 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5373 | PyObject *resultobj; | |
5374 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5375 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5376 | int arg3 ; |
d14a1e28 RD |
5377 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5378 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5379 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5380 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5381 | long arg6 = (long) wxSP_3D ; | |
5382 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5383 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5384 | bool result; | |
5385 | wxPoint temp4 ; | |
5386 | wxSize temp5 ; | |
423f194a | 5387 | bool temp7 = False ; |
d14a1e28 RD |
5388 | PyObject * obj0 = 0 ; |
5389 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5390 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5391 | PyObject * obj3 = 0 ; |
5392 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5393 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5394 | PyObject * obj6 = 0 ; |
5395 | char *kwnames[] = { | |
8edf1c75 | 5396 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL |
d14a1e28 RD |
5397 | }; |
5398 | ||
8edf1c75 | 5399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
5400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5401 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5402 | { |
5403 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5404 | if (PyErr_Occurred()) SWIG_fail; | |
5405 | } | |
d14a1e28 RD |
5406 | if (obj3) { |
5407 | { | |
5408 | arg4 = &temp4; | |
5409 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5410 | } | |
5411 | } | |
5412 | if (obj4) { | |
5413 | { | |
5414 | arg5 = &temp5; | |
5415 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5416 | } | |
5417 | } | |
8edf1c75 RD |
5418 | if (obj5) { |
5419 | { | |
5420 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
5421 | if (PyErr_Occurred()) SWIG_fail; | |
5422 | } | |
5423 | } | |
d14a1e28 RD |
5424 | if (obj6) { |
5425 | { | |
5426 | arg7 = wxString_in_helper(obj6); | |
5427 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 5428 | temp7 = True; |
d14a1e28 RD |
5429 | } |
5430 | } | |
5431 | { | |
5432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5433 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5434 | ||
5435 | wxPyEndAllowThreads(__tstate); | |
5436 | if (PyErr_Occurred()) SWIG_fail; | |
5437 | } | |
8edf1c75 | 5438 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5439 | { |
5440 | if (temp7) | |
5441 | delete arg7; | |
5442 | } | |
5443 | return resultobj; | |
5444 | fail: | |
5445 | { | |
5446 | if (temp7) | |
5447 | delete arg7; | |
5448 | } | |
5449 | return NULL; | |
5450 | } | |
5451 | ||
5452 | ||
5453 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject *resultobj; | |
5455 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5456 | wxWindow *result; | |
5457 | PyObject * obj0 = 0 ; | |
5458 | char *kwnames[] = { | |
5459 | (char *) "self", NULL | |
5460 | }; | |
5461 | ||
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5464 | { | |
5465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5466 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5467 | ||
5468 | wxPyEndAllowThreads(__tstate); | |
5469 | if (PyErr_Occurred()) SWIG_fail; | |
5470 | } | |
5471 | { | |
5472 | resultobj = wxPyMake_wxObject(result); | |
5473 | } | |
5474 | return resultobj; | |
5475 | fail: | |
5476 | return NULL; | |
5477 | } | |
5478 | ||
5479 | ||
5480 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5481 | PyObject *resultobj; | |
5482 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5483 | wxWindow *result; | |
5484 | PyObject * obj0 = 0 ; | |
5485 | char *kwnames[] = { | |
5486 | (char *) "self", NULL | |
5487 | }; | |
5488 | ||
5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5491 | { | |
5492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5493 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5494 | ||
5495 | wxPyEndAllowThreads(__tstate); | |
5496 | if (PyErr_Occurred()) SWIG_fail; | |
5497 | } | |
5498 | { | |
5499 | resultobj = wxPyMake_wxObject(result); | |
5500 | } | |
5501 | return resultobj; | |
5502 | fail: | |
5503 | return NULL; | |
5504 | } | |
5505 | ||
5506 | ||
5507 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5508 | PyObject *resultobj; | |
5509 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5510 | int arg2 ; | |
5511 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5512 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5513 | char *kwnames[] = { |
5514 | (char *) "self",(char *) "mode", NULL | |
5515 | }; | |
5516 | ||
8edf1c75 | 5517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5519 | { |
5520 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5521 | if (PyErr_Occurred()) SWIG_fail; | |
5522 | } | |
d14a1e28 RD |
5523 | { |
5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5525 | (arg1)->SetSplitMode(arg2); | |
5526 | ||
5527 | wxPyEndAllowThreads(__tstate); | |
5528 | if (PyErr_Occurred()) SWIG_fail; | |
5529 | } | |
5530 | Py_INCREF(Py_None); resultobj = Py_None; | |
5531 | return resultobj; | |
5532 | fail: | |
5533 | return NULL; | |
5534 | } | |
5535 | ||
5536 | ||
5537 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5538 | PyObject *resultobj; | |
5539 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5540 | int result; | |
5541 | PyObject * obj0 = 0 ; | |
5542 | char *kwnames[] = { | |
5543 | (char *) "self", NULL | |
5544 | }; | |
5545 | ||
5546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5548 | { | |
5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5550 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5551 | ||
5552 | wxPyEndAllowThreads(__tstate); | |
5553 | if (PyErr_Occurred()) SWIG_fail; | |
5554 | } | |
8edf1c75 | 5555 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5556 | return resultobj; |
5557 | fail: | |
5558 | return NULL; | |
5559 | } | |
5560 | ||
5561 | ||
5562 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5563 | PyObject *resultobj; | |
5564 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5565 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | PyObject * obj1 = 0 ; | |
5568 | char *kwnames[] = { | |
5569 | (char *) "self",(char *) "window", NULL | |
5570 | }; | |
5571 | ||
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5573 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5574 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5575 | { | |
5576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5577 | (arg1)->Initialize(arg2); | |
5578 | ||
5579 | wxPyEndAllowThreads(__tstate); | |
5580 | if (PyErr_Occurred()) SWIG_fail; | |
5581 | } | |
5582 | Py_INCREF(Py_None); resultobj = Py_None; | |
5583 | return resultobj; | |
5584 | fail: | |
5585 | return NULL; | |
5586 | } | |
5587 | ||
5588 | ||
5589 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5590 | PyObject *resultobj; | |
5591 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5592 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5593 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5594 | int arg4 = (int) 0 ; | |
5595 | bool result; | |
5596 | PyObject * obj0 = 0 ; | |
5597 | PyObject * obj1 = 0 ; | |
5598 | PyObject * obj2 = 0 ; | |
8edf1c75 | 5599 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5600 | char *kwnames[] = { |
5601 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5602 | }; | |
5603 | ||
8edf1c75 | 5604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5606 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5607 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5608 | if (obj3) { |
5609 | { | |
5610 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5611 | if (PyErr_Occurred()) SWIG_fail; | |
5612 | } | |
5613 | } | |
d14a1e28 RD |
5614 | { |
5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5616 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
5617 | ||
5618 | wxPyEndAllowThreads(__tstate); | |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
5620 | } | |
8edf1c75 | 5621 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5622 | return resultobj; |
5623 | fail: | |
5624 | return NULL; | |
5625 | } | |
5626 | ||
5627 | ||
5628 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5629 | PyObject *resultobj; | |
5630 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5631 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5632 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5633 | int arg4 = (int) 0 ; | |
5634 | bool result; | |
5635 | PyObject * obj0 = 0 ; | |
5636 | PyObject * obj1 = 0 ; | |
5637 | PyObject * obj2 = 0 ; | |
8edf1c75 | 5638 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5639 | char *kwnames[] = { |
5640 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5641 | }; | |
5642 | ||
8edf1c75 | 5643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5645 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5646 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
5647 | if (obj3) { |
5648 | { | |
5649 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5650 | if (PyErr_Occurred()) SWIG_fail; | |
5651 | } | |
5652 | } | |
d14a1e28 RD |
5653 | { |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
5656 | ||
5657 | wxPyEndAllowThreads(__tstate); | |
5658 | if (PyErr_Occurred()) SWIG_fail; | |
5659 | } | |
8edf1c75 | 5660 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5661 | return resultobj; |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
5667 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5668 | PyObject *resultobj; | |
5669 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5670 | wxWindow *arg2 = (wxWindow *) NULL ; | |
5671 | bool result; | |
5672 | PyObject * obj0 = 0 ; | |
5673 | PyObject * obj1 = 0 ; | |
5674 | char *kwnames[] = { | |
5675 | (char *) "self",(char *) "toRemove", NULL | |
5676 | }; | |
5677 | ||
5678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
5679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5680 | if (obj1) { | |
5681 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5682 | } | |
5683 | { | |
5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5685 | result = (bool)(arg1)->Unsplit(arg2); | |
5686 | ||
5687 | wxPyEndAllowThreads(__tstate); | |
5688 | if (PyErr_Occurred()) SWIG_fail; | |
5689 | } | |
8edf1c75 | 5690 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5691 | return resultobj; |
5692 | fail: | |
5693 | return NULL; | |
5694 | } | |
5695 | ||
5696 | ||
5697 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5698 | PyObject *resultobj; | |
5699 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5700 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5701 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5702 | bool result; | |
5703 | PyObject * obj0 = 0 ; | |
5704 | PyObject * obj1 = 0 ; | |
5705 | PyObject * obj2 = 0 ; | |
5706 | char *kwnames[] = { | |
5707 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
5708 | }; | |
5709 | ||
5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5712 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5713 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5714 | { | |
5715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5716 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
5717 | ||
5718 | wxPyEndAllowThreads(__tstate); | |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
5720 | } | |
8edf1c75 | 5721 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5722 | return resultobj; |
5723 | fail: | |
5724 | return NULL; | |
5725 | } | |
5726 | ||
5727 | ||
5728 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject *resultobj; | |
5730 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5731 | bool result; | |
5732 | PyObject * obj0 = 0 ; | |
5733 | char *kwnames[] = { | |
5734 | (char *) "self", NULL | |
5735 | }; | |
5736 | ||
5737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
5738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5739 | { | |
5740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5741 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
5742 | ||
5743 | wxPyEndAllowThreads(__tstate); | |
5744 | if (PyErr_Occurred()) SWIG_fail; | |
5745 | } | |
8edf1c75 | 5746 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
5747 | return resultobj; |
5748 | fail: | |
5749 | return NULL; | |
5750 | } | |
5751 | ||
5752 | ||
5753 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5754 | PyObject *resultobj; | |
5755 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5756 | int arg2 ; | |
5757 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5759 | char *kwnames[] = { |
5760 | (char *) "self",(char *) "width", NULL | |
5761 | }; | |
5762 | ||
8edf1c75 | 5763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5765 | { |
5766 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5767 | if (PyErr_Occurred()) SWIG_fail; | |
5768 | } | |
d14a1e28 RD |
5769 | { |
5770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5771 | (arg1)->SetSashSize(arg2); | |
5772 | ||
5773 | wxPyEndAllowThreads(__tstate); | |
5774 | if (PyErr_Occurred()) SWIG_fail; | |
5775 | } | |
5776 | Py_INCREF(Py_None); resultobj = Py_None; | |
5777 | return resultobj; | |
5778 | fail: | |
5779 | return NULL; | |
5780 | } | |
5781 | ||
5782 | ||
5783 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5784 | PyObject *resultobj; | |
5785 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5786 | int arg2 ; | |
5787 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5788 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5789 | char *kwnames[] = { |
5790 | (char *) "self",(char *) "width", NULL | |
5791 | }; | |
5792 | ||
8edf1c75 | 5793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5795 | { |
5796 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5797 | if (PyErr_Occurred()) SWIG_fail; | |
5798 | } | |
d14a1e28 RD |
5799 | { |
5800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5801 | (arg1)->SetBorderSize(arg2); | |
5802 | ||
5803 | wxPyEndAllowThreads(__tstate); | |
5804 | if (PyErr_Occurred()) SWIG_fail; | |
5805 | } | |
5806 | Py_INCREF(Py_None); resultobj = Py_None; | |
5807 | return resultobj; | |
5808 | fail: | |
5809 | return NULL; | |
5810 | } | |
5811 | ||
5812 | ||
5813 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5814 | PyObject *resultobj; | |
5815 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5816 | int result; | |
5817 | PyObject * obj0 = 0 ; | |
5818 | char *kwnames[] = { | |
5819 | (char *) "self", NULL | |
5820 | }; | |
5821 | ||
5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
5823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5824 | { | |
5825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5826 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
5827 | ||
5828 | wxPyEndAllowThreads(__tstate); | |
5829 | if (PyErr_Occurred()) SWIG_fail; | |
5830 | } | |
8edf1c75 | 5831 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5832 | return resultobj; |
5833 | fail: | |
5834 | return NULL; | |
5835 | } | |
5836 | ||
5837 | ||
5838 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject *resultobj; | |
5840 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5841 | int result; | |
5842 | PyObject * obj0 = 0 ; | |
5843 | char *kwnames[] = { | |
5844 | (char *) "self", NULL | |
5845 | }; | |
5846 | ||
5847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
5848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5849 | { | |
5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5851 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
5852 | ||
5853 | wxPyEndAllowThreads(__tstate); | |
5854 | if (PyErr_Occurred()) SWIG_fail; | |
5855 | } | |
8edf1c75 | 5856 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5857 | return resultobj; |
5858 | fail: | |
5859 | return NULL; | |
5860 | } | |
5861 | ||
5862 | ||
5863 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject *resultobj; | |
5865 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5866 | int arg2 ; | |
423f194a | 5867 | bool arg3 = (bool) True ; |
d14a1e28 | 5868 | PyObject * obj0 = 0 ; |
8edf1c75 | 5869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5870 | PyObject * obj2 = 0 ; |
5871 | char *kwnames[] = { | |
5872 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
5873 | }; | |
5874 | ||
8edf1c75 | 5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5877 | { |
5878 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | } | |
d14a1e28 | 5881 | if (obj2) { |
83448d71 | 5882 | { |
8edf1c75 | 5883 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
5884 | if (PyErr_Occurred()) SWIG_fail; |
5885 | } | |
d14a1e28 RD |
5886 | } |
5887 | { | |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | (arg1)->SetSashPosition(arg2,arg3); | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
5894 | Py_INCREF(Py_None); resultobj = Py_None; | |
5895 | return resultobj; | |
5896 | fail: | |
5897 | return NULL; | |
5898 | } | |
5899 | ||
5900 | ||
5901 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject *resultobj; | |
5903 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5904 | int result; | |
5905 | PyObject * obj0 = 0 ; | |
5906 | char *kwnames[] = { | |
5907 | (char *) "self", NULL | |
5908 | }; | |
5909 | ||
5910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
5911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5912 | { | |
5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5914 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
5915 | ||
5916 | wxPyEndAllowThreads(__tstate); | |
5917 | if (PyErr_Occurred()) SWIG_fail; | |
5918 | } | |
8edf1c75 | 5919 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5920 | return resultobj; |
5921 | fail: | |
5922 | return NULL; | |
5923 | } | |
5924 | ||
5925 | ||
5926 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5927 | PyObject *resultobj; | |
5928 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5929 | int arg2 ; | |
5930 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5932 | char *kwnames[] = { |
5933 | (char *) "self",(char *) "min", NULL | |
5934 | }; | |
5935 | ||
8edf1c75 | 5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5938 | { |
5939 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5940 | if (PyErr_Occurred()) SWIG_fail; | |
5941 | } | |
d14a1e28 RD |
5942 | { |
5943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5944 | (arg1)->SetMinimumPaneSize(arg2); | |
5945 | ||
5946 | wxPyEndAllowThreads(__tstate); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
5948 | } | |
5949 | Py_INCREF(Py_None); resultobj = Py_None; | |
5950 | return resultobj; | |
5951 | fail: | |
5952 | return NULL; | |
5953 | } | |
5954 | ||
5955 | ||
5956 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5957 | PyObject *resultobj; | |
5958 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5959 | int result; | |
5960 | PyObject * obj0 = 0 ; | |
5961 | char *kwnames[] = { | |
5962 | (char *) "self", NULL | |
5963 | }; | |
5964 | ||
5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
5966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5967 | { | |
5968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5969 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
5970 | ||
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
8edf1c75 | 5974 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5975 | return resultobj; |
5976 | fail: | |
5977 | return NULL; | |
5978 | } | |
5979 | ||
5980 | ||
5981 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5982 | PyObject *resultobj; | |
5983 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5984 | int arg2 ; | |
5985 | int arg3 ; | |
5986 | int arg4 = (int) 5 ; | |
5987 | bool result; | |
5988 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
5989 | PyObject * obj1 = 0 ; |
5990 | PyObject * obj2 = 0 ; | |
5991 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5992 | char *kwnames[] = { |
5993 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
5994 | }; | |
5995 | ||
8edf1c75 | 5996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
5998 | { |
5999 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
6002 | { | |
6003 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | } | |
6006 | if (obj3) { | |
6007 | { | |
6008 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
6009 | if (PyErr_Occurred()) SWIG_fail; | |
6010 | } | |
6011 | } | |
d14a1e28 RD |
6012 | { |
6013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6014 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6015 | ||
6016 | wxPyEndAllowThreads(__tstate); | |
6017 | if (PyErr_Occurred()) SWIG_fail; | |
6018 | } | |
8edf1c75 | 6019 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6020 | return resultobj; |
6021 | fail: | |
6022 | return NULL; | |
6023 | } | |
6024 | ||
6025 | ||
6026 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6027 | PyObject *resultobj; | |
6028 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6029 | PyObject * obj0 = 0 ; | |
6030 | char *kwnames[] = { | |
6031 | (char *) "self", NULL | |
6032 | }; | |
6033 | ||
6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
6035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6036 | { | |
6037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6038 | (arg1)->SizeWindows(); | |
6039 | ||
6040 | wxPyEndAllowThreads(__tstate); | |
6041 | if (PyErr_Occurred()) SWIG_fail; | |
6042 | } | |
6043 | Py_INCREF(Py_None); resultobj = Py_None; | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
6047 | } | |
6048 | ||
6049 | ||
6050 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6051 | PyObject *resultobj; | |
6052 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6053 | bool arg2 ; | |
6054 | PyObject * obj0 = 0 ; | |
6055 | PyObject * obj1 = 0 ; | |
6056 | char *kwnames[] = { | |
6057 | (char *) "self",(char *) "needUpdating", NULL | |
6058 | }; | |
6059 | ||
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
6061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 6062 | { |
8edf1c75 | 6063 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
6064 | if (PyErr_Occurred()) SWIG_fail; |
6065 | } | |
d14a1e28 RD |
6066 | { |
6067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6068 | (arg1)->SetNeedUpdating(arg2); | |
6069 | ||
6070 | wxPyEndAllowThreads(__tstate); | |
6071 | if (PyErr_Occurred()) SWIG_fail; | |
6072 | } | |
6073 | Py_INCREF(Py_None); resultobj = Py_None; | |
6074 | return resultobj; | |
6075 | fail: | |
6076 | return NULL; | |
6077 | } | |
6078 | ||
6079 | ||
6080 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject *resultobj; | |
6082 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6083 | bool result; | |
6084 | PyObject * obj0 = 0 ; | |
6085 | char *kwnames[] = { | |
6086 | (char *) "self", NULL | |
6087 | }; | |
6088 | ||
6089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6091 | { | |
6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6093 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6094 | ||
6095 | wxPyEndAllowThreads(__tstate); | |
6096 | if (PyErr_Occurred()) SWIG_fail; | |
6097 | } | |
8edf1c75 | 6098 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6099 | return resultobj; |
6100 | fail: | |
6101 | return NULL; | |
6102 | } | |
6103 | ||
6104 | ||
6105 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { | |
6106 | PyObject *obj; | |
6107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6108 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6109 | Py_INCREF(obj); | |
6110 | return Py_BuildValue((char *)""); | |
6111 | } | |
6112 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6113 | PyObject *resultobj; | |
6114 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6115 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6116 | wxSplitterEvent *result; | |
8edf1c75 | 6117 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6118 | PyObject * obj1 = 0 ; |
6119 | char *kwnames[] = { | |
6120 | (char *) "type",(char *) "splitter", NULL | |
6121 | }; | |
6122 | ||
8edf1c75 RD |
6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; |
6124 | if (obj0) { | |
6125 | { | |
6126 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
6127 | if (PyErr_Occurred()) SWIG_fail; | |
6128 | } | |
6129 | } | |
d14a1e28 RD |
6130 | if (obj1) { |
6131 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6132 | } | |
6133 | { | |
6134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6135 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6136 | ||
6137 | wxPyEndAllowThreads(__tstate); | |
6138 | if (PyErr_Occurred()) SWIG_fail; | |
6139 | } | |
6140 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplitterEvent, 1); | |
6141 | return resultobj; | |
6142 | fail: | |
6143 | return NULL; | |
6144 | } | |
6145 | ||
6146 | ||
6147 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6150 | int arg2 ; | |
6151 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6153 | char *kwnames[] = { |
6154 | (char *) "self",(char *) "pos", NULL | |
6155 | }; | |
6156 | ||
8edf1c75 | 6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6159 | { |
6160 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6161 | if (PyErr_Occurred()) SWIG_fail; | |
6162 | } | |
d14a1e28 RD |
6163 | { |
6164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6165 | (arg1)->SetSashPosition(arg2); | |
6166 | ||
6167 | wxPyEndAllowThreads(__tstate); | |
6168 | if (PyErr_Occurred()) SWIG_fail; | |
6169 | } | |
6170 | Py_INCREF(Py_None); resultobj = Py_None; | |
6171 | return resultobj; | |
6172 | fail: | |
6173 | return NULL; | |
6174 | } | |
6175 | ||
6176 | ||
6177 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6178 | PyObject *resultobj; | |
6179 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6180 | int result; | |
6181 | PyObject * obj0 = 0 ; | |
6182 | char *kwnames[] = { | |
6183 | (char *) "self", NULL | |
6184 | }; | |
6185 | ||
6186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6188 | { | |
6189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6190 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6191 | ||
6192 | wxPyEndAllowThreads(__tstate); | |
6193 | if (PyErr_Occurred()) SWIG_fail; | |
6194 | } | |
8edf1c75 | 6195 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6196 | return resultobj; |
6197 | fail: | |
6198 | return NULL; | |
6199 | } | |
6200 | ||
6201 | ||
6202 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6203 | PyObject *resultobj; | |
6204 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6205 | wxWindow *result; | |
6206 | PyObject * obj0 = 0 ; | |
6207 | char *kwnames[] = { | |
6208 | (char *) "self", NULL | |
6209 | }; | |
6210 | ||
6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6213 | { | |
6214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6215 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6216 | ||
6217 | wxPyEndAllowThreads(__tstate); | |
6218 | if (PyErr_Occurred()) SWIG_fail; | |
6219 | } | |
6220 | { | |
6221 | resultobj = wxPyMake_wxObject(result); | |
6222 | } | |
6223 | return resultobj; | |
6224 | fail: | |
6225 | return NULL; | |
6226 | } | |
6227 | ||
6228 | ||
6229 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6230 | PyObject *resultobj; | |
6231 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6232 | int result; | |
6233 | PyObject * obj0 = 0 ; | |
6234 | char *kwnames[] = { | |
6235 | (char *) "self", NULL | |
6236 | }; | |
6237 | ||
6238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6240 | { | |
6241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6242 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6243 | ||
6244 | wxPyEndAllowThreads(__tstate); | |
6245 | if (PyErr_Occurred()) SWIG_fail; | |
6246 | } | |
8edf1c75 | 6247 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6248 | return resultobj; |
6249 | fail: | |
6250 | return NULL; | |
6251 | } | |
6252 | ||
6253 | ||
6254 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6255 | PyObject *resultobj; | |
6256 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6257 | int result; | |
6258 | PyObject * obj0 = 0 ; | |
6259 | char *kwnames[] = { | |
6260 | (char *) "self", NULL | |
6261 | }; | |
6262 | ||
6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6265 | { | |
6266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6267 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6268 | ||
6269 | wxPyEndAllowThreads(__tstate); | |
6270 | if (PyErr_Occurred()) SWIG_fail; | |
6271 | } | |
8edf1c75 | 6272 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6273 | return resultobj; |
6274 | fail: | |
6275 | return NULL; | |
6276 | } | |
6277 | ||
6278 | ||
6279 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6280 | PyObject *obj; | |
6281 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6282 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6283 | Py_INCREF(obj); | |
6284 | return Py_BuildValue((char *)""); | |
6285 | } | |
8edf1c75 | 6286 | static int _wrap_SashNameStr_set(PyObject *) { |
d03fd34d RD |
6287 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); |
6288 | return 1; | |
6289 | } | |
6290 | ||
6291 | ||
6292 | static PyObject *_wrap_SashNameStr_get() { | |
6293 | PyObject *pyobj; | |
6294 | ||
6295 | { | |
6296 | #if wxUSE_UNICODE | |
6297 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6298 | #else | |
6299 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6300 | #endif | |
6301 | } | |
6302 | return pyobj; | |
6303 | } | |
6304 | ||
6305 | ||
8edf1c75 | 6306 | static int _wrap_SashLayoutNameStr_set(PyObject *) { |
d03fd34d RD |
6307 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); |
6308 | return 1; | |
6309 | } | |
6310 | ||
6311 | ||
6312 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6313 | PyObject *pyobj; | |
6314 | ||
6315 | { | |
6316 | #if wxUSE_UNICODE | |
6317 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6318 | #else | |
6319 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6320 | #endif | |
6321 | } | |
6322 | return pyobj; | |
6323 | } | |
6324 | ||
6325 | ||
d14a1e28 RD |
6326 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
6327 | PyObject *resultobj; | |
6328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 6329 | int arg2 ; |
d14a1e28 RD |
6330 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6331 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6332 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6333 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6334 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6335 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6336 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6337 | wxSashWindow *result; | |
6338 | wxPoint temp3 ; | |
6339 | wxSize temp4 ; | |
423f194a | 6340 | bool temp6 = False ; |
d14a1e28 | 6341 | PyObject * obj0 = 0 ; |
8edf1c75 | 6342 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6343 | PyObject * obj2 = 0 ; |
6344 | PyObject * obj3 = 0 ; | |
8edf1c75 | 6345 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
6346 | PyObject * obj5 = 0 ; |
6347 | char *kwnames[] = { | |
6348 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6349 | }; | |
6350 | ||
8edf1c75 | 6351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 6352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6353 | { |
6354 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6355 | if (PyErr_Occurred()) SWIG_fail; | |
6356 | } | |
d14a1e28 RD |
6357 | if (obj2) { |
6358 | { | |
6359 | arg3 = &temp3; | |
6360 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6361 | } | |
6362 | } | |
6363 | if (obj3) { | |
6364 | { | |
6365 | arg4 = &temp4; | |
6366 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6367 | } | |
6368 | } | |
8edf1c75 RD |
6369 | if (obj4) { |
6370 | { | |
6371 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
6374 | } | |
d14a1e28 RD |
6375 | if (obj5) { |
6376 | { | |
6377 | arg6 = wxString_in_helper(obj5); | |
6378 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 6379 | temp6 = True; |
d14a1e28 RD |
6380 | } |
6381 | } | |
6382 | { | |
6383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6384 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6385 | ||
6386 | wxPyEndAllowThreads(__tstate); | |
6387 | if (PyErr_Occurred()) SWIG_fail; | |
6388 | } | |
6389 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashWindow, 1); | |
6390 | { | |
6391 | if (temp6) | |
6392 | delete arg6; | |
6393 | } | |
6394 | return resultobj; | |
6395 | fail: | |
6396 | { | |
6397 | if (temp6) | |
6398 | delete arg6; | |
6399 | } | |
6400 | return NULL; | |
6401 | } | |
6402 | ||
6403 | ||
6404 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6405 | PyObject *resultobj; | |
6406 | wxSashWindow *result; | |
6407 | char *kwnames[] = { | |
6408 | NULL | |
6409 | }; | |
6410 | ||
6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6414 | result = (wxSashWindow *)new wxSashWindow(); | |
6415 | ||
6416 | wxPyEndAllowThreads(__tstate); | |
6417 | if (PyErr_Occurred()) SWIG_fail; | |
6418 | } | |
6419 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashWindow, 1); | |
6420 | return resultobj; | |
6421 | fail: | |
6422 | return NULL; | |
6423 | } | |
6424 | ||
6425 | ||
6426 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6427 | PyObject *resultobj; | |
6428 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6429 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6430 | int arg3 ; |
d14a1e28 RD |
6431 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6432 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6433 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6434 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6435 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6436 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6437 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6438 | bool result; | |
6439 | wxPoint temp4 ; | |
6440 | wxSize temp5 ; | |
423f194a | 6441 | bool temp7 = False ; |
d14a1e28 RD |
6442 | PyObject * obj0 = 0 ; |
6443 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6444 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6445 | PyObject * obj3 = 0 ; |
6446 | PyObject * obj4 = 0 ; | |
8edf1c75 | 6447 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6448 | PyObject * obj6 = 0 ; |
6449 | char *kwnames[] = { | |
6450 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6451 | }; | |
6452 | ||
8edf1c75 | 6453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
6454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6455 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
6456 | { |
6457 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6458 | if (PyErr_Occurred()) SWIG_fail; | |
6459 | } | |
d14a1e28 RD |
6460 | if (obj3) { |
6461 | { | |
6462 | arg4 = &temp4; | |
6463 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6464 | } | |
6465 | } | |
6466 | if (obj4) { | |
6467 | { | |
6468 | arg5 = &temp5; | |
6469 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6470 | } | |
6471 | } | |
8edf1c75 RD |
6472 | if (obj5) { |
6473 | { | |
6474 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
6475 | if (PyErr_Occurred()) SWIG_fail; | |
6476 | } | |
6477 | } | |
d14a1e28 RD |
6478 | if (obj6) { |
6479 | { | |
6480 | arg7 = wxString_in_helper(obj6); | |
6481 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 6482 | temp7 = True; |
d14a1e28 RD |
6483 | } |
6484 | } | |
6485 | { | |
6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6487 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6488 | ||
6489 | wxPyEndAllowThreads(__tstate); | |
6490 | if (PyErr_Occurred()) SWIG_fail; | |
6491 | } | |
8edf1c75 | 6492 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6493 | { |
6494 | if (temp7) | |
6495 | delete arg7; | |
6496 | } | |
6497 | return resultobj; | |
6498 | fail: | |
6499 | { | |
6500 | if (temp7) | |
6501 | delete arg7; | |
6502 | } | |
6503 | return NULL; | |
6504 | } | |
6505 | ||
6506 | ||
6507 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6508 | PyObject *resultobj; | |
6509 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6510 | int arg2 ; | |
6511 | bool arg3 ; | |
6512 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6513 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6514 | PyObject * obj2 = 0 ; |
6515 | char *kwnames[] = { | |
6516 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
6517 | }; | |
6518 | ||
8edf1c75 | 6519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 6521 | { |
8edf1c75 RD |
6522 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); |
6523 | if (PyErr_Occurred()) SWIG_fail; | |
6524 | } | |
6525 | { | |
6526 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
6527 | if (PyErr_Occurred()) SWIG_fail; |
6528 | } | |
d14a1e28 RD |
6529 | { |
6530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6531 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
6532 | ||
6533 | wxPyEndAllowThreads(__tstate); | |
6534 | if (PyErr_Occurred()) SWIG_fail; | |
6535 | } | |
6536 | Py_INCREF(Py_None); resultobj = Py_None; | |
6537 | return resultobj; | |
6538 | fail: | |
6539 | return NULL; | |
6540 | } | |
6541 | ||
6542 | ||
6543 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6544 | PyObject *resultobj; | |
6545 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6546 | int arg2 ; | |
6547 | bool result; | |
6548 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6549 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6550 | char *kwnames[] = { |
6551 | (char *) "self",(char *) "edge", NULL | |
6552 | }; | |
6553 | ||
8edf1c75 | 6554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6556 | { |
6557 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
6558 | if (PyErr_Occurred()) SWIG_fail; | |
6559 | } | |
d14a1e28 RD |
6560 | { |
6561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6562 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
6563 | ||
6564 | wxPyEndAllowThreads(__tstate); | |
6565 | if (PyErr_Occurred()) SWIG_fail; | |
6566 | } | |
8edf1c75 | 6567 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6568 | return resultobj; |
6569 | fail: | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6577 | int arg2 ; | |
6578 | bool arg3 ; | |
6579 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6580 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6581 | PyObject * obj2 = 0 ; |
6582 | char *kwnames[] = { | |
6583 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
6584 | }; | |
6585 | ||
8edf1c75 | 6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
83448d71 | 6588 | { |
8edf1c75 RD |
6589 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); |
6590 | if (PyErr_Occurred()) SWIG_fail; | |
6591 | } | |
6592 | { | |
6593 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
83448d71 RD |
6594 | if (PyErr_Occurred()) SWIG_fail; |
6595 | } | |
d14a1e28 RD |
6596 | { |
6597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6598 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
6599 | ||
6600 | wxPyEndAllowThreads(__tstate); | |
6601 | if (PyErr_Occurred()) SWIG_fail; | |
6602 | } | |
6603 | Py_INCREF(Py_None); resultobj = Py_None; | |
6604 | return resultobj; | |
6605 | fail: | |
6606 | return NULL; | |
6607 | } | |
6608 | ||
6609 | ||
6610 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6611 | PyObject *resultobj; | |
6612 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6613 | int arg2 ; | |
6614 | bool result; | |
6615 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6617 | char *kwnames[] = { |
6618 | (char *) "self",(char *) "edge", NULL | |
6619 | }; | |
6620 | ||
8edf1c75 | 6621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6623 | { |
6624 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
6625 | if (PyErr_Occurred()) SWIG_fail; | |
6626 | } | |
d14a1e28 RD |
6627 | { |
6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6629 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
6630 | ||
6631 | wxPyEndAllowThreads(__tstate); | |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
6633 | } | |
8edf1c75 | 6634 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
6635 | return resultobj; |
6636 | fail: | |
6637 | return NULL; | |
6638 | } | |
6639 | ||
6640 | ||
6641 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6642 | PyObject *resultobj; | |
6643 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6644 | int arg2 ; | |
6645 | int result; | |
6646 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6648 | char *kwnames[] = { |
6649 | (char *) "self",(char *) "edge", NULL | |
6650 | }; | |
6651 | ||
8edf1c75 | 6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6654 | { |
6655 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
6656 | if (PyErr_Occurred()) SWIG_fail; | |
6657 | } | |
d14a1e28 RD |
6658 | { |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
6661 | ||
6662 | wxPyEndAllowThreads(__tstate); | |
6663 | if (PyErr_Occurred()) SWIG_fail; | |
6664 | } | |
8edf1c75 | 6665 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6666 | return resultobj; |
6667 | fail: | |
6668 | return NULL; | |
6669 | } | |
6670 | ||
6671 | ||
6672 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6673 | PyObject *resultobj; | |
6674 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6675 | int arg2 ; | |
6676 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6677 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6678 | char *kwnames[] = { |
6679 | (char *) "self",(char *) "width", NULL | |
6680 | }; | |
6681 | ||
8edf1c75 | 6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6684 | { |
6685 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6686 | if (PyErr_Occurred()) SWIG_fail; | |
6687 | } | |
d14a1e28 RD |
6688 | { |
6689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6690 | (arg1)->SetDefaultBorderSize(arg2); | |
6691 | ||
6692 | wxPyEndAllowThreads(__tstate); | |
6693 | if (PyErr_Occurred()) SWIG_fail; | |
6694 | } | |
6695 | Py_INCREF(Py_None); resultobj = Py_None; | |
6696 | return resultobj; | |
6697 | fail: | |
6698 | return NULL; | |
6699 | } | |
6700 | ||
6701 | ||
6702 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6703 | PyObject *resultobj; | |
6704 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6705 | int result; | |
6706 | PyObject * obj0 = 0 ; | |
6707 | char *kwnames[] = { | |
6708 | (char *) "self", NULL | |
6709 | }; | |
6710 | ||
6711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
6712 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6713 | { | |
6714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6715 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
6716 | ||
6717 | wxPyEndAllowThreads(__tstate); | |
6718 | if (PyErr_Occurred()) SWIG_fail; | |
6719 | } | |
8edf1c75 | 6720 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6721 | return resultobj; |
6722 | fail: | |
6723 | return NULL; | |
6724 | } | |
6725 | ||
6726 | ||
6727 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6728 | PyObject *resultobj; | |
6729 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6730 | int arg2 ; | |
6731 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6732 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6733 | char *kwnames[] = { |
6734 | (char *) "self",(char *) "width", NULL | |
6735 | }; | |
6736 | ||
8edf1c75 | 6737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6739 | { |
6740 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6741 | if (PyErr_Occurred()) SWIG_fail; | |
6742 | } | |
d14a1e28 RD |
6743 | { |
6744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6745 | (arg1)->SetExtraBorderSize(arg2); | |
6746 | ||
6747 | wxPyEndAllowThreads(__tstate); | |
6748 | if (PyErr_Occurred()) SWIG_fail; | |
6749 | } | |
6750 | Py_INCREF(Py_None); resultobj = Py_None; | |
6751 | return resultobj; | |
6752 | fail: | |
6753 | return NULL; | |
6754 | } | |
6755 | ||
6756 | ||
6757 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6758 | PyObject *resultobj; | |
6759 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6760 | int result; | |
6761 | PyObject * obj0 = 0 ; | |
6762 | char *kwnames[] = { | |
6763 | (char *) "self", NULL | |
6764 | }; | |
6765 | ||
6766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
6767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6768 | { | |
6769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6770 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
6771 | ||
6772 | wxPyEndAllowThreads(__tstate); | |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
6774 | } | |
8edf1c75 | 6775 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6776 | return resultobj; |
6777 | fail: | |
6778 | return NULL; | |
6779 | } | |
6780 | ||
6781 | ||
6782 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6783 | PyObject *resultobj; | |
6784 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6785 | int arg2 ; | |
6786 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6787 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6788 | char *kwnames[] = { |
6789 | (char *) "self",(char *) "min", NULL | |
6790 | }; | |
6791 | ||
8edf1c75 | 6792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6794 | { |
6795 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6796 | if (PyErr_Occurred()) SWIG_fail; | |
6797 | } | |
d14a1e28 RD |
6798 | { |
6799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6800 | (arg1)->SetMinimumSizeX(arg2); | |
6801 | ||
6802 | wxPyEndAllowThreads(__tstate); | |
6803 | if (PyErr_Occurred()) SWIG_fail; | |
6804 | } | |
6805 | Py_INCREF(Py_None); resultobj = Py_None; | |
6806 | return resultobj; | |
6807 | fail: | |
6808 | return NULL; | |
6809 | } | |
6810 | ||
6811 | ||
6812 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6813 | PyObject *resultobj; | |
6814 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6815 | int arg2 ; | |
6816 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6818 | char *kwnames[] = { |
6819 | (char *) "self",(char *) "min", NULL | |
6820 | }; | |
6821 | ||
8edf1c75 | 6822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6824 | { |
6825 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6826 | if (PyErr_Occurred()) SWIG_fail; | |
6827 | } | |
d14a1e28 RD |
6828 | { |
6829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6830 | (arg1)->SetMinimumSizeY(arg2); | |
6831 | ||
6832 | wxPyEndAllowThreads(__tstate); | |
6833 | if (PyErr_Occurred()) SWIG_fail; | |
6834 | } | |
6835 | Py_INCREF(Py_None); resultobj = Py_None; | |
6836 | return resultobj; | |
6837 | fail: | |
6838 | return NULL; | |
6839 | } | |
6840 | ||
6841 | ||
6842 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6843 | PyObject *resultobj; | |
6844 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6845 | int result; | |
6846 | PyObject * obj0 = 0 ; | |
6847 | char *kwnames[] = { | |
6848 | (char *) "self", NULL | |
6849 | }; | |
6850 | ||
6851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
6852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6853 | { | |
6854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6855 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
6856 | ||
6857 | wxPyEndAllowThreads(__tstate); | |
6858 | if (PyErr_Occurred()) SWIG_fail; | |
6859 | } | |
8edf1c75 | 6860 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6861 | return resultobj; |
6862 | fail: | |
6863 | return NULL; | |
6864 | } | |
6865 | ||
6866 | ||
6867 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6868 | PyObject *resultobj; | |
6869 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6870 | int result; | |
6871 | PyObject * obj0 = 0 ; | |
6872 | char *kwnames[] = { | |
6873 | (char *) "self", NULL | |
6874 | }; | |
6875 | ||
6876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
6877 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6878 | { | |
6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6880 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
6881 | ||
6882 | wxPyEndAllowThreads(__tstate); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | } | |
8edf1c75 | 6885 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6886 | return resultobj; |
6887 | fail: | |
6888 | return NULL; | |
6889 | } | |
6890 | ||
6891 | ||
6892 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6893 | PyObject *resultobj; | |
6894 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6895 | int arg2 ; | |
6896 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6897 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6898 | char *kwnames[] = { |
6899 | (char *) "self",(char *) "max", NULL | |
6900 | }; | |
6901 | ||
8edf1c75 | 6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6904 | { |
6905 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6906 | if (PyErr_Occurred()) SWIG_fail; | |
6907 | } | |
d14a1e28 RD |
6908 | { |
6909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6910 | (arg1)->SetMaximumSizeX(arg2); | |
6911 | ||
6912 | wxPyEndAllowThreads(__tstate); | |
6913 | if (PyErr_Occurred()) SWIG_fail; | |
6914 | } | |
6915 | Py_INCREF(Py_None); resultobj = Py_None; | |
6916 | return resultobj; | |
6917 | fail: | |
6918 | return NULL; | |
6919 | } | |
6920 | ||
6921 | ||
6922 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6923 | PyObject *resultobj; | |
6924 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6925 | int arg2 ; | |
6926 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6927 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6928 | char *kwnames[] = { |
6929 | (char *) "self",(char *) "max", NULL | |
6930 | }; | |
6931 | ||
8edf1c75 | 6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
6934 | { |
6935 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6936 | if (PyErr_Occurred()) SWIG_fail; | |
6937 | } | |
d14a1e28 RD |
6938 | { |
6939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6940 | (arg1)->SetMaximumSizeY(arg2); | |
6941 | ||
6942 | wxPyEndAllowThreads(__tstate); | |
6943 | if (PyErr_Occurred()) SWIG_fail; | |
6944 | } | |
6945 | Py_INCREF(Py_None); resultobj = Py_None; | |
6946 | return resultobj; | |
6947 | fail: | |
6948 | return NULL; | |
6949 | } | |
6950 | ||
6951 | ||
6952 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6953 | PyObject *resultobj; | |
6954 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6955 | int result; | |
6956 | PyObject * obj0 = 0 ; | |
6957 | char *kwnames[] = { | |
6958 | (char *) "self", NULL | |
6959 | }; | |
6960 | ||
6961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
6962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6963 | { | |
6964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6965 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
6966 | ||
6967 | wxPyEndAllowThreads(__tstate); | |
6968 | if (PyErr_Occurred()) SWIG_fail; | |
6969 | } | |
8edf1c75 | 6970 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6971 | return resultobj; |
6972 | fail: | |
6973 | return NULL; | |
6974 | } | |
6975 | ||
6976 | ||
6977 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6978 | PyObject *resultobj; | |
6979 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6980 | int result; | |
6981 | PyObject * obj0 = 0 ; | |
6982 | char *kwnames[] = { | |
6983 | (char *) "self", NULL | |
6984 | }; | |
6985 | ||
6986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
6987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6988 | { | |
6989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6990 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
6991 | ||
6992 | wxPyEndAllowThreads(__tstate); | |
6993 | if (PyErr_Occurred()) SWIG_fail; | |
6994 | } | |
8edf1c75 | 6995 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6996 | return resultobj; |
6997 | fail: | |
6998 | return NULL; | |
6999 | } | |
7000 | ||
7001 | ||
7002 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7003 | PyObject *resultobj; | |
7004 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7005 | int arg2 ; | |
7006 | int arg3 ; | |
7007 | int arg4 = (int) 2 ; | |
7008 | int result; | |
7009 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7010 | PyObject * obj1 = 0 ; |
7011 | PyObject * obj2 = 0 ; | |
7012 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
7013 | char *kwnames[] = { |
7014 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
7015 | }; | |
7016 | ||
8edf1c75 | 7017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 7018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7019 | { |
7020 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7021 | if (PyErr_Occurred()) SWIG_fail; | |
7022 | } | |
7023 | { | |
7024 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7025 | if (PyErr_Occurred()) SWIG_fail; | |
7026 | } | |
7027 | if (obj3) { | |
7028 | { | |
7029 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
7030 | if (PyErr_Occurred()) SWIG_fail; | |
7031 | } | |
7032 | } | |
d14a1e28 RD |
7033 | { |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
8edf1c75 | 7040 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7041 | return resultobj; |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
7047 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7048 | PyObject *resultobj; | |
7049 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
7050 | PyObject * obj0 = 0 ; | |
7051 | char *kwnames[] = { | |
7052 | (char *) "self", NULL | |
7053 | }; | |
7054 | ||
7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",kwnames,&obj0)) goto fail; | |
7056 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7057 | { | |
7058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7059 | (arg1)->SizeWindows(); | |
7060 | ||
7061 | wxPyEndAllowThreads(__tstate); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
7064 | Py_INCREF(Py_None); resultobj = Py_None; | |
7065 | return resultobj; | |
7066 | fail: | |
7067 | return NULL; | |
7068 | } | |
7069 | ||
7070 | ||
7071 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7072 | PyObject *obj; | |
7073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7074 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7075 | Py_INCREF(obj); | |
7076 | return Py_BuildValue((char *)""); | |
7077 | } | |
7078 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7079 | PyObject *resultobj; | |
7080 | int arg1 = (int) 0 ; | |
7081 | int arg2 = (int) wxSASH_NONE ; | |
7082 | wxSashEvent *result; | |
8edf1c75 RD |
7083 | PyObject * obj0 = 0 ; |
7084 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7085 | char *kwnames[] = { |
7086 | (char *) "id",(char *) "edge", NULL | |
7087 | }; | |
7088 | ||
8edf1c75 RD |
7089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; |
7090 | if (obj0) { | |
7091 | { | |
7092 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
7095 | } | |
7096 | if (obj1) { | |
7097 | { | |
7098 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
7099 | if (PyErr_Occurred()) SWIG_fail; | |
7100 | } | |
7101 | } | |
d14a1e28 RD |
7102 | { |
7103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7104 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7105 | ||
7106 | wxPyEndAllowThreads(__tstate); | |
7107 | if (PyErr_Occurred()) SWIG_fail; | |
7108 | } | |
7109 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashEvent, 1); | |
7110 | return resultobj; | |
7111 | fail: | |
7112 | return NULL; | |
7113 | } | |
7114 | ||
7115 | ||
7116 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7117 | PyObject *resultobj; | |
7118 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7119 | int arg2 ; | |
7120 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7121 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7122 | char *kwnames[] = { |
7123 | (char *) "self",(char *) "edge", NULL | |
7124 | }; | |
7125 | ||
8edf1c75 | 7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7128 | { |
7129 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
7130 | if (PyErr_Occurred()) SWIG_fail; | |
7131 | } | |
d14a1e28 RD |
7132 | { |
7133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7134 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7135 | ||
7136 | wxPyEndAllowThreads(__tstate); | |
7137 | if (PyErr_Occurred()) SWIG_fail; | |
7138 | } | |
7139 | Py_INCREF(Py_None); resultobj = Py_None; | |
7140 | return resultobj; | |
7141 | fail: | |
7142 | return NULL; | |
7143 | } | |
7144 | ||
7145 | ||
7146 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7147 | PyObject *resultobj; | |
7148 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7149 | int result; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | char *kwnames[] = { | |
7152 | (char *) "self", NULL | |
7153 | }; | |
7154 | ||
7155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7156 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7157 | { | |
7158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7159 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7160 | ||
7161 | wxPyEndAllowThreads(__tstate); | |
7162 | if (PyErr_Occurred()) SWIG_fail; | |
7163 | } | |
8edf1c75 | 7164 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7165 | return resultobj; |
7166 | fail: | |
7167 | return NULL; | |
7168 | } | |
7169 | ||
7170 | ||
7171 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7172 | PyObject *resultobj; | |
7173 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7174 | wxRect *arg2 = 0 ; | |
7175 | wxRect temp2 ; | |
7176 | PyObject * obj0 = 0 ; | |
7177 | PyObject * obj1 = 0 ; | |
7178 | char *kwnames[] = { | |
7179 | (char *) "self",(char *) "rect", NULL | |
7180 | }; | |
7181 | ||
7182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7184 | { | |
7185 | arg2 = &temp2; | |
7186 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7187 | } | |
7188 | { | |
7189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7190 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7191 | ||
7192 | wxPyEndAllowThreads(__tstate); | |
7193 | if (PyErr_Occurred()) SWIG_fail; | |
7194 | } | |
7195 | Py_INCREF(Py_None); resultobj = Py_None; | |
7196 | return resultobj; | |
7197 | fail: | |
7198 | return NULL; | |
7199 | } | |
7200 | ||
7201 | ||
7202 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7203 | PyObject *resultobj; | |
7204 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7205 | wxRect result; | |
7206 | PyObject * obj0 = 0 ; | |
7207 | char *kwnames[] = { | |
7208 | (char *) "self", NULL | |
7209 | }; | |
7210 | ||
7211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7213 | { | |
7214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7215 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7216 | ||
7217 | wxPyEndAllowThreads(__tstate); | |
7218 | if (PyErr_Occurred()) SWIG_fail; | |
7219 | } | |
7220 | { | |
7221 | wxRect * resultptr; | |
7222 | resultptr = new wxRect((wxRect &) result); | |
7223 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
7224 | } | |
7225 | return resultobj; | |
7226 | fail: | |
7227 | return NULL; | |
7228 | } | |
7229 | ||
7230 | ||
7231 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7232 | PyObject *resultobj; | |
7233 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7234 | int arg2 ; | |
7235 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7237 | char *kwnames[] = { |
7238 | (char *) "self",(char *) "status", NULL | |
7239 | }; | |
7240 | ||
8edf1c75 | 7241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7243 | { |
7244 | arg2 = (wxSashDragStatus) SWIG_PyObj_AsInt(obj1); | |
7245 | if (PyErr_Occurred()) SWIG_fail; | |
7246 | } | |
d14a1e28 RD |
7247 | { |
7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7249 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7250 | ||
7251 | wxPyEndAllowThreads(__tstate); | |
7252 | if (PyErr_Occurred()) SWIG_fail; | |
7253 | } | |
7254 | Py_INCREF(Py_None); resultobj = Py_None; | |
7255 | return resultobj; | |
7256 | fail: | |
7257 | return NULL; | |
7258 | } | |
7259 | ||
7260 | ||
7261 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7262 | PyObject *resultobj; | |
7263 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7264 | int result; | |
7265 | PyObject * obj0 = 0 ; | |
7266 | char *kwnames[] = { | |
7267 | (char *) "self", NULL | |
7268 | }; | |
7269 | ||
7270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7272 | { | |
7273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7274 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7275 | ||
7276 | wxPyEndAllowThreads(__tstate); | |
7277 | if (PyErr_Occurred()) SWIG_fail; | |
7278 | } | |
8edf1c75 | 7279 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7280 | return resultobj; |
7281 | fail: | |
7282 | return NULL; | |
7283 | } | |
7284 | ||
7285 | ||
7286 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7287 | PyObject *obj; | |
7288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7289 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7290 | Py_INCREF(obj); | |
7291 | return Py_BuildValue((char *)""); | |
7292 | } | |
7293 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
423f194a | 7295 | int arg1 = (int) 0 ; |
d14a1e28 | 7296 | wxQueryLayoutInfoEvent *result; |
8edf1c75 | 7297 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7298 | char *kwnames[] = { |
7299 | (char *) "id", NULL | |
7300 | }; | |
7301 | ||
8edf1c75 RD |
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; |
7303 | if (obj0) { | |
7304 | { | |
7305 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7306 | if (PyErr_Occurred()) SWIG_fail; | |
7307 | } | |
7308 | } | |
d14a1e28 RD |
7309 | { |
7310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7311 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7312 | ||
7313 | wxPyEndAllowThreads(__tstate); | |
7314 | if (PyErr_Occurred()) SWIG_fail; | |
7315 | } | |
7316 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7317 | return resultobj; | |
7318 | fail: | |
7319 | return NULL; | |
7320 | } | |
7321 | ||
7322 | ||
7323 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject *resultobj; | |
7325 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7326 | int arg2 ; | |
7327 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7329 | char *kwnames[] = { |
7330 | (char *) "self",(char *) "length", NULL | |
7331 | }; | |
7332 | ||
8edf1c75 | 7333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7335 | { |
7336 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
d14a1e28 RD |
7339 | { |
7340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7341 | (arg1)->SetRequestedLength(arg2); | |
7342 | ||
7343 | wxPyEndAllowThreads(__tstate); | |
7344 | if (PyErr_Occurred()) SWIG_fail; | |
7345 | } | |
7346 | Py_INCREF(Py_None); resultobj = Py_None; | |
7347 | return resultobj; | |
7348 | fail: | |
7349 | return NULL; | |
7350 | } | |
7351 | ||
7352 | ||
7353 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7354 | PyObject *resultobj; | |
7355 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7356 | int result; | |
7357 | PyObject * obj0 = 0 ; | |
7358 | char *kwnames[] = { | |
7359 | (char *) "self", NULL | |
7360 | }; | |
7361 | ||
7362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7364 | { | |
7365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7366 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7367 | ||
7368 | wxPyEndAllowThreads(__tstate); | |
7369 | if (PyErr_Occurred()) SWIG_fail; | |
7370 | } | |
8edf1c75 | 7371 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7372 | return resultobj; |
7373 | fail: | |
7374 | return NULL; | |
7375 | } | |
7376 | ||
7377 | ||
7378 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7379 | PyObject *resultobj; | |
7380 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7381 | int arg2 ; | |
7382 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7383 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7384 | char *kwnames[] = { |
7385 | (char *) "self",(char *) "flags", NULL | |
7386 | }; | |
7387 | ||
8edf1c75 | 7388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7390 | { |
7391 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7392 | if (PyErr_Occurred()) SWIG_fail; | |
7393 | } | |
d14a1e28 RD |
7394 | { |
7395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7396 | (arg1)->SetFlags(arg2); | |
7397 | ||
7398 | wxPyEndAllowThreads(__tstate); | |
7399 | if (PyErr_Occurred()) SWIG_fail; | |
7400 | } | |
7401 | Py_INCREF(Py_None); resultobj = Py_None; | |
7402 | return resultobj; | |
7403 | fail: | |
7404 | return NULL; | |
7405 | } | |
7406 | ||
7407 | ||
7408 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7409 | PyObject *resultobj; | |
7410 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7411 | int result; | |
7412 | PyObject * obj0 = 0 ; | |
7413 | char *kwnames[] = { | |
7414 | (char *) "self", NULL | |
7415 | }; | |
7416 | ||
7417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7419 | { | |
7420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7421 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7422 | ||
7423 | wxPyEndAllowThreads(__tstate); | |
7424 | if (PyErr_Occurred()) SWIG_fail; | |
7425 | } | |
8edf1c75 | 7426 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7427 | return resultobj; |
7428 | fail: | |
7429 | return NULL; | |
7430 | } | |
7431 | ||
7432 | ||
7433 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7434 | PyObject *resultobj; | |
7435 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7436 | wxSize *arg2 = 0 ; | |
7437 | wxSize temp2 ; | |
7438 | PyObject * obj0 = 0 ; | |
7439 | PyObject * obj1 = 0 ; | |
7440 | char *kwnames[] = { | |
7441 | (char *) "self",(char *) "size", NULL | |
7442 | }; | |
7443 | ||
7444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7446 | { | |
7447 | arg2 = &temp2; | |
7448 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7449 | } | |
7450 | { | |
7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7452 | (arg1)->SetSize((wxSize const &)*arg2); | |
7453 | ||
7454 | wxPyEndAllowThreads(__tstate); | |
7455 | if (PyErr_Occurred()) SWIG_fail; | |
7456 | } | |
7457 | Py_INCREF(Py_None); resultobj = Py_None; | |
7458 | return resultobj; | |
7459 | fail: | |
7460 | return NULL; | |
7461 | } | |
7462 | ||
7463 | ||
7464 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7465 | PyObject *resultobj; | |
7466 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7467 | wxSize result; | |
7468 | PyObject * obj0 = 0 ; | |
7469 | char *kwnames[] = { | |
7470 | (char *) "self", NULL | |
7471 | }; | |
7472 | ||
7473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7475 | { | |
7476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7477 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7478 | ||
7479 | wxPyEndAllowThreads(__tstate); | |
7480 | if (PyErr_Occurred()) SWIG_fail; | |
7481 | } | |
7482 | { | |
7483 | wxSize * resultptr; | |
7484 | resultptr = new wxSize((wxSize &) result); | |
7485 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
7486 | } | |
7487 | return resultobj; | |
7488 | fail: | |
7489 | return NULL; | |
7490 | } | |
7491 | ||
7492 | ||
7493 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7494 | PyObject *resultobj; | |
7495 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7496 | int arg2 ; | |
7497 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7498 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7499 | char *kwnames[] = { |
7500 | (char *) "self",(char *) "orient", NULL | |
7501 | }; | |
7502 | ||
8edf1c75 | 7503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7505 | { |
7506 | arg2 = (wxLayoutOrientation) SWIG_PyObj_AsInt(obj1); | |
7507 | if (PyErr_Occurred()) SWIG_fail; | |
7508 | } | |
d14a1e28 RD |
7509 | { |
7510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7511 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7512 | ||
7513 | wxPyEndAllowThreads(__tstate); | |
7514 | if (PyErr_Occurred()) SWIG_fail; | |
7515 | } | |
7516 | Py_INCREF(Py_None); resultobj = Py_None; | |
7517 | return resultobj; | |
7518 | fail: | |
7519 | return NULL; | |
7520 | } | |
7521 | ||
7522 | ||
7523 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7524 | PyObject *resultobj; | |
7525 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7526 | int result; | |
7527 | PyObject * obj0 = 0 ; | |
7528 | char *kwnames[] = { | |
7529 | (char *) "self", NULL | |
7530 | }; | |
7531 | ||
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
7533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7534 | { | |
7535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7536 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
7537 | ||
7538 | wxPyEndAllowThreads(__tstate); | |
7539 | if (PyErr_Occurred()) SWIG_fail; | |
7540 | } | |
8edf1c75 | 7541 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7542 | return resultobj; |
7543 | fail: | |
7544 | return NULL; | |
7545 | } | |
7546 | ||
7547 | ||
7548 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7549 | PyObject *resultobj; | |
7550 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7551 | int arg2 ; | |
7552 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7553 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7554 | char *kwnames[] = { |
7555 | (char *) "self",(char *) "align", NULL | |
7556 | }; | |
7557 | ||
8edf1c75 | 7558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7560 | { |
7561 | arg2 = (wxLayoutAlignment) SWIG_PyObj_AsInt(obj1); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
d14a1e28 RD |
7564 | { |
7565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7566 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
7567 | ||
7568 | wxPyEndAllowThreads(__tstate); | |
7569 | if (PyErr_Occurred()) SWIG_fail; | |
7570 | } | |
7571 | Py_INCREF(Py_None); resultobj = Py_None; | |
7572 | return resultobj; | |
7573 | fail: | |
7574 | return NULL; | |
7575 | } | |
7576 | ||
7577 | ||
7578 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7579 | PyObject *resultobj; | |
7580 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7581 | int result; | |
7582 | PyObject * obj0 = 0 ; | |
7583 | char *kwnames[] = { | |
7584 | (char *) "self", NULL | |
7585 | }; | |
7586 | ||
7587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
7588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7589 | { | |
7590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7591 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
7592 | ||
7593 | wxPyEndAllowThreads(__tstate); | |
7594 | if (PyErr_Occurred()) SWIG_fail; | |
7595 | } | |
8edf1c75 | 7596 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7597 | return resultobj; |
7598 | fail: | |
7599 | return NULL; | |
7600 | } | |
7601 | ||
7602 | ||
7603 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
7604 | PyObject *obj; | |
7605 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7606 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
7607 | Py_INCREF(obj); | |
7608 | return Py_BuildValue((char *)""); | |
7609 | } | |
7610 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7611 | PyObject *resultobj; | |
423f194a | 7612 | int arg1 = (int) 0 ; |
d14a1e28 | 7613 | wxCalculateLayoutEvent *result; |
8edf1c75 | 7614 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7615 | char *kwnames[] = { |
7616 | (char *) "id", NULL | |
7617 | }; | |
7618 | ||
8edf1c75 RD |
7619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; |
7620 | if (obj0) { | |
7621 | { | |
7622 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7623 | if (PyErr_Occurred()) SWIG_fail; | |
7624 | } | |
7625 | } | |
d14a1e28 RD |
7626 | { |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
7629 | ||
7630 | wxPyEndAllowThreads(__tstate); | |
7631 | if (PyErr_Occurred()) SWIG_fail; | |
7632 | } | |
7633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
7634 | return resultobj; | |
7635 | fail: | |
7636 | return NULL; | |
7637 | } | |
7638 | ||
7639 | ||
7640 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7641 | PyObject *resultobj; | |
7642 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7643 | int arg2 ; | |
7644 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7646 | char *kwnames[] = { |
7647 | (char *) "self",(char *) "flags", NULL | |
7648 | }; | |
7649 | ||
8edf1c75 | 7650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7652 | { |
7653 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7654 | if (PyErr_Occurred()) SWIG_fail; | |
7655 | } | |
d14a1e28 RD |
7656 | { |
7657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7658 | (arg1)->SetFlags(arg2); | |
7659 | ||
7660 | wxPyEndAllowThreads(__tstate); | |
7661 | if (PyErr_Occurred()) SWIG_fail; | |
7662 | } | |
7663 | Py_INCREF(Py_None); resultobj = Py_None; | |
7664 | return resultobj; | |
7665 | fail: | |
7666 | return NULL; | |
7667 | } | |
7668 | ||
7669 | ||
7670 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7671 | PyObject *resultobj; | |
7672 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7673 | int result; | |
7674 | PyObject * obj0 = 0 ; | |
7675 | char *kwnames[] = { | |
7676 | (char *) "self", NULL | |
7677 | }; | |
7678 | ||
7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7681 | { | |
7682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7683 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
7684 | ||
7685 | wxPyEndAllowThreads(__tstate); | |
7686 | if (PyErr_Occurred()) SWIG_fail; | |
7687 | } | |
8edf1c75 | 7688 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7689 | return resultobj; |
7690 | fail: | |
7691 | return NULL; | |
7692 | } | |
7693 | ||
7694 | ||
7695 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7696 | PyObject *resultobj; | |
7697 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7698 | wxRect *arg2 = 0 ; | |
7699 | wxRect temp2 ; | |
7700 | PyObject * obj0 = 0 ; | |
7701 | PyObject * obj1 = 0 ; | |
7702 | char *kwnames[] = { | |
7703 | (char *) "self",(char *) "rect", NULL | |
7704 | }; | |
7705 | ||
7706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
7707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7708 | { | |
7709 | arg2 = &temp2; | |
7710 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7711 | } | |
7712 | { | |
7713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7714 | (arg1)->SetRect((wxRect const &)*arg2); | |
7715 | ||
7716 | wxPyEndAllowThreads(__tstate); | |
7717 | if (PyErr_Occurred()) SWIG_fail; | |
7718 | } | |
7719 | Py_INCREF(Py_None); resultobj = Py_None; | |
7720 | return resultobj; | |
7721 | fail: | |
7722 | return NULL; | |
7723 | } | |
7724 | ||
7725 | ||
7726 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7727 | PyObject *resultobj; | |
7728 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7729 | wxRect result; | |
7730 | PyObject * obj0 = 0 ; | |
7731 | char *kwnames[] = { | |
7732 | (char *) "self", NULL | |
7733 | }; | |
7734 | ||
7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
7736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7737 | { | |
7738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7739 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
7740 | ||
7741 | wxPyEndAllowThreads(__tstate); | |
7742 | if (PyErr_Occurred()) SWIG_fail; | |
7743 | } | |
7744 | { | |
7745 | wxRect * resultptr; | |
7746 | resultptr = new wxRect((wxRect &) result); | |
7747 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
7748 | } | |
7749 | return resultobj; | |
7750 | fail: | |
7751 | return NULL; | |
7752 | } | |
7753 | ||
7754 | ||
7755 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
7756 | PyObject *obj; | |
7757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7758 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
7759 | Py_INCREF(obj); | |
7760 | return Py_BuildValue((char *)""); | |
7761 | } | |
7762 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7763 | PyObject *resultobj; | |
7764 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7765 | int arg2 ; |
d14a1e28 RD |
7766 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7767 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7768 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7769 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7770 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
7771 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
7772 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7773 | wxSashLayoutWindow *result; | |
7774 | wxPoint temp3 ; | |
7775 | wxSize temp4 ; | |
423f194a | 7776 | bool temp6 = False ; |
d14a1e28 | 7777 | PyObject * obj0 = 0 ; |
8edf1c75 | 7778 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7779 | PyObject * obj2 = 0 ; |
7780 | PyObject * obj3 = 0 ; | |
8edf1c75 | 7781 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7782 | PyObject * obj5 = 0 ; |
7783 | char *kwnames[] = { | |
7784 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7785 | }; | |
7786 | ||
8edf1c75 | 7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 7788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
7789 | { |
7790 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
d14a1e28 RD |
7793 | if (obj2) { |
7794 | { | |
7795 | arg3 = &temp3; | |
7796 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7797 | } | |
7798 | } | |
7799 | if (obj3) { | |
7800 | { | |
7801 | arg4 = &temp4; | |
7802 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7803 | } | |
7804 | } | |
8edf1c75 RD |
7805 | if (obj4) { |
7806 | { | |
7807 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
7808 | if (PyErr_Occurred()) SWIG_fail; | |
7809 | } | |
7810 | } | |
d14a1e28 RD |
7811 | if (obj5) { |
7812 | { | |
7813 | arg6 = wxString_in_helper(obj5); | |
7814 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 7815 | temp6 = True; |
d14a1e28 RD |
7816 | } |
7817 | } | |
7818 | { | |
7819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7820 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7821 | ||
7822 | wxPyEndAllowThreads(__tstate); | |
7823 | if (PyErr_Occurred()) SWIG_fail; | |
7824 | } | |
7825 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashLayoutWindow, 1); | |
7826 | { | |
7827 | if (temp6) | |
7828 | delete arg6; | |
7829 | } | |
7830 | return resultobj; | |
7831 | fail: | |
7832 | { | |
7833 | if (temp6) | |
7834 | delete arg6; | |
7835 | } | |
7836 | return NULL; | |
7837 | } | |
7838 | ||
7839 | ||
7840 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7841 | PyObject *resultobj; | |
7842 | wxSashLayoutWindow *result; | |
7843 | char *kwnames[] = { | |
7844 | NULL | |
7845 | }; | |
7846 | ||
7847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
7848 | { | |
7849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7850 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
7851 | ||
7852 | wxPyEndAllowThreads(__tstate); | |
7853 | if (PyErr_Occurred()) SWIG_fail; | |
7854 | } | |
7855 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashLayoutWindow, 1); | |
7856 | return resultobj; | |
7857 | fail: | |
7858 | return NULL; | |
7859 | } | |
7860 | ||
7861 | ||
7862 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7863 | PyObject *resultobj; | |
7864 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7865 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7866 | int arg3 ; |
d14a1e28 RD |
7867 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7868 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7869 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7870 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7871 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
7872 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
7873 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7874 | bool result; | |
7875 | wxPoint temp4 ; | |
7876 | wxSize temp5 ; | |
423f194a | 7877 | bool temp7 = False ; |
d14a1e28 RD |
7878 | PyObject * obj0 = 0 ; |
7879 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7880 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7881 | PyObject * obj3 = 0 ; |
7882 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7883 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7884 | PyObject * obj6 = 0 ; |
7885 | char *kwnames[] = { | |
7886 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7887 | }; | |
7888 | ||
8edf1c75 | 7889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
7890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7891 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
7892 | { |
7893 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7894 | if (PyErr_Occurred()) SWIG_fail; | |
7895 | } | |
d14a1e28 RD |
7896 | if (obj3) { |
7897 | { | |
7898 | arg4 = &temp4; | |
7899 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7900 | } | |
7901 | } | |
7902 | if (obj4) { | |
7903 | { | |
7904 | arg5 = &temp5; | |
7905 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7906 | } | |
7907 | } | |
8edf1c75 RD |
7908 | if (obj5) { |
7909 | { | |
7910 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7911 | if (PyErr_Occurred()) SWIG_fail; | |
7912 | } | |
7913 | } | |
d14a1e28 RD |
7914 | if (obj6) { |
7915 | { | |
7916 | arg7 = wxString_in_helper(obj6); | |
7917 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 7918 | temp7 = True; |
d14a1e28 RD |
7919 | } |
7920 | } | |
7921 | { | |
7922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7923 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7924 | ||
7925 | wxPyEndAllowThreads(__tstate); | |
7926 | if (PyErr_Occurred()) SWIG_fail; | |
7927 | } | |
8edf1c75 | 7928 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
7929 | { |
7930 | if (temp7) | |
7931 | delete arg7; | |
7932 | } | |
7933 | return resultobj; | |
7934 | fail: | |
7935 | { | |
7936 | if (temp7) | |
7937 | delete arg7; | |
7938 | } | |
7939 | return NULL; | |
7940 | } | |
7941 | ||
7942 | ||
7943 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7944 | PyObject *resultobj; | |
7945 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7946 | int result; | |
7947 | PyObject * obj0 = 0 ; | |
7948 | char *kwnames[] = { | |
7949 | (char *) "self", NULL | |
7950 | }; | |
7951 | ||
7952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
7953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7954 | { | |
7955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7956 | result = (int)(arg1)->GetAlignment(); | |
7957 | ||
7958 | wxPyEndAllowThreads(__tstate); | |
7959 | if (PyErr_Occurred()) SWIG_fail; | |
7960 | } | |
8edf1c75 | 7961 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7962 | return resultobj; |
7963 | fail: | |
7964 | return NULL; | |
7965 | } | |
7966 | ||
7967 | ||
7968 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7969 | PyObject *resultobj; | |
7970 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7971 | int result; | |
7972 | PyObject * obj0 = 0 ; | |
7973 | char *kwnames[] = { | |
7974 | (char *) "self", NULL | |
7975 | }; | |
7976 | ||
7977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
7978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7979 | { | |
7980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7981 | result = (int)(arg1)->GetOrientation(); | |
7982 | ||
7983 | wxPyEndAllowThreads(__tstate); | |
7984 | if (PyErr_Occurred()) SWIG_fail; | |
7985 | } | |
8edf1c75 | 7986 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7987 | return resultobj; |
7988 | fail: | |
7989 | return NULL; | |
7990 | } | |
7991 | ||
7992 | ||
7993 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7994 | PyObject *resultobj; | |
7995 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7996 | int arg2 ; | |
7997 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7998 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7999 | char *kwnames[] = { |
8000 | (char *) "self",(char *) "alignment", NULL | |
8001 | }; | |
8002 | ||
8edf1c75 | 8003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8005 | { |
8006 | arg2 = (wxLayoutAlignment) SWIG_PyObj_AsInt(obj1); | |
8007 | if (PyErr_Occurred()) SWIG_fail; | |
8008 | } | |
d14a1e28 RD |
8009 | { |
8010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8011 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
8012 | ||
8013 | wxPyEndAllowThreads(__tstate); | |
8014 | if (PyErr_Occurred()) SWIG_fail; | |
8015 | } | |
8016 | Py_INCREF(Py_None); resultobj = Py_None; | |
8017 | return resultobj; | |
8018 | fail: | |
8019 | return NULL; | |
8020 | } | |
8021 | ||
8022 | ||
8023 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8024 | PyObject *resultobj; | |
8025 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8026 | wxSize *arg2 = 0 ; | |
8027 | wxSize temp2 ; | |
8028 | PyObject * obj0 = 0 ; | |
8029 | PyObject * obj1 = 0 ; | |
8030 | char *kwnames[] = { | |
8031 | (char *) "self",(char *) "size", NULL | |
8032 | }; | |
8033 | ||
8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
8035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8036 | { | |
8037 | arg2 = &temp2; | |
8038 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
8039 | } | |
8040 | { | |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) SWIG_fail; | |
8046 | } | |
8047 | Py_INCREF(Py_None); resultobj = Py_None; | |
8048 | return resultobj; | |
8049 | fail: | |
8050 | return NULL; | |
8051 | } | |
8052 | ||
8053 | ||
8054 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8055 | PyObject *resultobj; | |
8056 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
8057 | int arg2 ; | |
8058 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8060 | char *kwnames[] = { |
8061 | (char *) "self",(char *) "orientation", NULL | |
8062 | }; | |
8063 | ||
8edf1c75 | 8064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8066 | { |
8067 | arg2 = (wxLayoutOrientation) SWIG_PyObj_AsInt(obj1); | |
8068 | if (PyErr_Occurred()) SWIG_fail; | |
8069 | } | |
d14a1e28 RD |
8070 | { |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
8077 | Py_INCREF(Py_None); resultobj = Py_None; | |
8078 | return resultobj; | |
8079 | fail: | |
8080 | return NULL; | |
8081 | } | |
8082 | ||
8083 | ||
8084 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8085 | PyObject *obj; | |
8086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8087 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8088 | Py_INCREF(obj); | |
8089 | return Py_BuildValue((char *)""); | |
8090 | } | |
8091 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8092 | PyObject *resultobj; | |
8093 | wxLayoutAlgorithm *result; | |
8094 | char *kwnames[] = { | |
8095 | NULL | |
8096 | }; | |
8097 | ||
8098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8099 | { | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8102 | ||
8103 | wxPyEndAllowThreads(__tstate); | |
8104 | if (PyErr_Occurred()) SWIG_fail; | |
8105 | } | |
8106 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8107 | return resultobj; | |
8108 | fail: | |
8109 | return NULL; | |
8110 | } | |
8111 | ||
8112 | ||
8113 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8114 | PyObject *resultobj; | |
8115 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8116 | PyObject * obj0 = 0 ; | |
8117 | char *kwnames[] = { | |
8118 | (char *) "self", NULL | |
8119 | }; | |
8120 | ||
8121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8123 | { | |
8124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8125 | delete arg1; | |
8126 | ||
8127 | wxPyEndAllowThreads(__tstate); | |
8128 | if (PyErr_Occurred()) SWIG_fail; | |
8129 | } | |
8130 | Py_INCREF(Py_None); resultobj = Py_None; | |
8131 | return resultobj; | |
8132 | fail: | |
8133 | return NULL; | |
8134 | } | |
8135 | ||
8136 | ||
8137 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8138 | PyObject *resultobj; | |
8139 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8140 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8141 | wxRect *arg3 = (wxRect *) NULL ; | |
8142 | bool result; | |
8143 | PyObject * obj0 = 0 ; | |
8144 | PyObject * obj1 = 0 ; | |
8145 | PyObject * obj2 = 0 ; | |
8146 | char *kwnames[] = { | |
8147 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8148 | }; | |
8149 | ||
8150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8153 | if (obj2) { | |
8154 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8155 | } | |
8156 | { | |
8157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8158 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8159 | ||
8160 | wxPyEndAllowThreads(__tstate); | |
8161 | if (PyErr_Occurred()) SWIG_fail; | |
8162 | } | |
8edf1c75 | 8163 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8164 | return resultobj; |
8165 | fail: | |
8166 | return NULL; | |
8167 | } | |
8168 | ||
8169 | ||
8170 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8171 | PyObject *resultobj; | |
8172 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8173 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8174 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8175 | bool result; | |
8176 | PyObject * obj0 = 0 ; | |
8177 | PyObject * obj1 = 0 ; | |
8178 | PyObject * obj2 = 0 ; | |
8179 | char *kwnames[] = { | |
8180 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8181 | }; | |
8182 | ||
8183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8185 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8186 | if (obj2) { | |
8187 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8188 | } | |
8189 | { | |
8190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8191 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8192 | ||
8193 | wxPyEndAllowThreads(__tstate); | |
8194 | if (PyErr_Occurred()) SWIG_fail; | |
8195 | } | |
8edf1c75 | 8196 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8197 | return resultobj; |
8198 | fail: | |
8199 | return NULL; | |
8200 | } | |
8201 | ||
8202 | ||
8203 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8204 | PyObject *resultobj; | |
8205 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8206 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8207 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8208 | bool result; | |
8209 | PyObject * obj0 = 0 ; | |
8210 | PyObject * obj1 = 0 ; | |
8211 | PyObject * obj2 = 0 ; | |
8212 | char *kwnames[] = { | |
8213 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8214 | }; | |
8215 | ||
8216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8218 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8219 | if (obj2) { | |
8220 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8221 | } | |
8222 | { | |
8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8224 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8225 | ||
8226 | wxPyEndAllowThreads(__tstate); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
8228 | } | |
8edf1c75 | 8229 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8230 | return resultobj; |
8231 | fail: | |
8232 | return NULL; | |
8233 | } | |
8234 | ||
8235 | ||
8236 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8237 | PyObject *obj; | |
8238 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8239 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8240 | Py_INCREF(obj); | |
8241 | return Py_BuildValue((char *)""); | |
8242 | } | |
8243 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8244 | PyObject *resultobj; | |
8245 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8246 | int arg2 = (int) wxBORDER_NONE ; | |
8247 | wxPopupWindow *result; | |
8248 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8250 | char *kwnames[] = { |
8251 | (char *) "parent",(char *) "flags", NULL | |
8252 | }; | |
8253 | ||
8edf1c75 | 8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8256 | if (obj1) { |
8257 | { | |
8258 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8259 | if (PyErr_Occurred()) SWIG_fail; | |
8260 | } | |
8261 | } | |
d14a1e28 RD |
8262 | { |
8263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8264 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8265 | ||
8266 | wxPyEndAllowThreads(__tstate); | |
8267 | if (PyErr_Occurred()) SWIG_fail; | |
8268 | } | |
8269 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPopupWindow, 1); | |
8270 | return resultobj; | |
8271 | fail: | |
8272 | return NULL; | |
8273 | } | |
8274 | ||
8275 | ||
8276 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8277 | PyObject *resultobj; | |
8278 | wxPopupWindow *result; | |
8279 | char *kwnames[] = { | |
8280 | NULL | |
8281 | }; | |
8282 | ||
8283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8284 | { | |
8285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8286 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8287 | ||
8288 | wxPyEndAllowThreads(__tstate); | |
8289 | if (PyErr_Occurred()) SWIG_fail; | |
8290 | } | |
8291 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPopupWindow, 1); | |
8292 | return resultobj; | |
8293 | fail: | |
8294 | return NULL; | |
8295 | } | |
8296 | ||
8297 | ||
8298 | static PyObject *_wrap_PopupWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8299 | PyObject *resultobj; | |
8300 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8301 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8302 | int arg3 = (int) wxBORDER_NONE ; | |
8303 | bool result; | |
8304 | PyObject * obj0 = 0 ; | |
8305 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8306 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8307 | char *kwnames[] = { |
8308 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
8309 | }; | |
8310 | ||
8edf1c75 | 8311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPopupWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8313 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
8314 | if (obj2) { |
8315 | { | |
8316 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8317 | if (PyErr_Occurred()) SWIG_fail; | |
8318 | } | |
8319 | } | |
d14a1e28 RD |
8320 | { |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8322 | result = (bool)(arg1)->Create(arg2,arg3); | |
8323 | ||
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) SWIG_fail; | |
8326 | } | |
8edf1c75 | 8327 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8328 | return resultobj; |
8329 | fail: | |
8330 | return NULL; | |
8331 | } | |
8332 | ||
8333 | ||
8334 | static PyObject *_wrap_PopupWindow_Position(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8335 | PyObject *resultobj; | |
8336 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8337 | wxPoint *arg2 = 0 ; | |
8338 | wxSize *arg3 = 0 ; | |
8339 | wxPoint temp2 ; | |
8340 | wxSize temp3 ; | |
8341 | PyObject * obj0 = 0 ; | |
8342 | PyObject * obj1 = 0 ; | |
8343 | PyObject * obj2 = 0 ; | |
8344 | char *kwnames[] = { | |
8345 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
8346 | }; | |
8347 | ||
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPopupWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8350 | { | |
8351 | arg2 = &temp2; | |
8352 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8353 | } | |
8354 | { | |
8355 | arg3 = &temp3; | |
8356 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
8357 | } | |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | Py_INCREF(Py_None); resultobj = Py_None; | |
8366 | return resultobj; | |
8367 | fail: | |
8368 | return NULL; | |
8369 | } | |
8370 | ||
8371 | ||
8372 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8373 | PyObject *obj; | |
8374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8375 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8376 | Py_INCREF(obj); | |
8377 | return Py_BuildValue((char *)""); | |
8378 | } | |
8379 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj; | |
8381 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8382 | int arg2 = (int) wxBORDER_NONE ; | |
8383 | wxPyPopupTransientWindow *result; | |
8384 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8385 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8386 | char *kwnames[] = { |
8387 | (char *) "parent",(char *) "style", NULL | |
8388 | }; | |
8389 | ||
8edf1c75 | 8390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8392 | if (obj1) { |
8393 | { | |
8394 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8395 | if (PyErr_Occurred()) SWIG_fail; | |
8396 | } | |
8397 | } | |
d14a1e28 RD |
8398 | { |
8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8400 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8401 | ||
8402 | wxPyEndAllowThreads(__tstate); | |
8403 | if (PyErr_Occurred()) SWIG_fail; | |
8404 | } | |
8405 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8406 | return resultobj; | |
8407 | fail: | |
8408 | return NULL; | |
8409 | } | |
8410 | ||
8411 | ||
8412 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8413 | PyObject *resultobj; | |
8414 | wxPyPopupTransientWindow *result; | |
8415 | char *kwnames[] = { | |
8416 | NULL | |
8417 | }; | |
8418 | ||
8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8420 | { | |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8422 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8423 | ||
8424 | wxPyEndAllowThreads(__tstate); | |
8425 | if (PyErr_Occurred()) SWIG_fail; | |
8426 | } | |
8427 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8428 | return resultobj; | |
8429 | fail: | |
8430 | return NULL; | |
8431 | } | |
8432 | ||
8433 | ||
8434 | static PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8435 | PyObject *resultobj; | |
8436 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8437 | PyObject *arg2 = (PyObject *) 0 ; | |
8438 | PyObject *arg3 = (PyObject *) 0 ; | |
8439 | PyObject * obj0 = 0 ; | |
8440 | PyObject * obj1 = 0 ; | |
8441 | PyObject * obj2 = 0 ; | |
8442 | char *kwnames[] = { | |
8443 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8444 | }; | |
8445 | ||
8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPopupTransientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8448 | arg2 = obj1; | |
8449 | arg3 = obj2; | |
8450 | { | |
8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8452 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8453 | ||
8454 | wxPyEndAllowThreads(__tstate); | |
8455 | if (PyErr_Occurred()) SWIG_fail; | |
8456 | } | |
8457 | Py_INCREF(Py_None); resultobj = Py_None; | |
8458 | return resultobj; | |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | static PyObject *_wrap_PopupTransientWindow_Popup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8465 | PyObject *resultobj; | |
8466 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8467 | wxWindow *arg2 = (wxWindow *) NULL ; | |
8468 | PyObject * obj0 = 0 ; | |
8469 | PyObject * obj1 = 0 ; | |
8470 | char *kwnames[] = { | |
8471 | (char *) "self",(char *) "focus", NULL | |
8472 | }; | |
8473 | ||
8474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) goto fail; | |
8475 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPopupTransientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8476 | if (obj1) { | |
8477 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8478 | } | |
8479 | { | |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | (arg1)->Popup(arg2); | |
8482 | ||
8483 | wxPyEndAllowThreads(__tstate); | |
8484 | if (PyErr_Occurred()) SWIG_fail; | |
8485 | } | |
8486 | Py_INCREF(Py_None); resultobj = Py_None; | |
8487 | return resultobj; | |
8488 | fail: | |
8489 | return NULL; | |
8490 | } | |
8491 | ||
8492 | ||
8493 | static PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8494 | PyObject *resultobj; | |
8495 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8496 | PyObject * obj0 = 0 ; | |
8497 | char *kwnames[] = { | |
8498 | (char *) "self", NULL | |
8499 | }; | |
8500 | ||
8501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PopupTransientWindow_Dismiss",kwnames,&obj0)) goto fail; | |
8502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPopupTransientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8503 | { | |
8504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8505 | (arg1)->Dismiss(); | |
8506 | ||
8507 | wxPyEndAllowThreads(__tstate); | |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | } | |
8510 | Py_INCREF(Py_None); resultobj = Py_None; | |
8511 | return resultobj; | |
8512 | fail: | |
8513 | return NULL; | |
8514 | } | |
8515 | ||
8516 | ||
8517 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
8518 | PyObject *obj; | |
8519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8520 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
8521 | Py_INCREF(obj); | |
8522 | return Py_BuildValue((char *)""); | |
8523 | } | |
8524 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8525 | PyObject *resultobj; | |
8526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8a0b029b | 8527 | wxString *arg2 = 0 ; |
423f194a | 8528 | int arg3 = (int) 100 ; |
d14a1e28 RD |
8529 | wxRect *arg4 = (wxRect *) NULL ; |
8530 | wxTipWindow *result; | |
8a0b029b | 8531 | bool temp2 = False ; |
d14a1e28 RD |
8532 | PyObject * obj0 = 0 ; |
8533 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8534 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8535 | PyObject * obj3 = 0 ; |
8536 | char *kwnames[] = { | |
8537 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
8538 | }; | |
8539 | ||
8edf1c75 | 8540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8541 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8a0b029b RD |
8542 | { |
8543 | arg2 = wxString_in_helper(obj1); | |
8544 | if (arg2 == NULL) SWIG_fail; | |
8545 | temp2 = True; | |
8546 | } | |
8edf1c75 RD |
8547 | if (obj2) { |
8548 | { | |
8549 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8550 | if (PyErr_Occurred()) SWIG_fail; | |
8551 | } | |
8552 | } | |
d14a1e28 RD |
8553 | if (obj3) { |
8554 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8555 | } | |
8556 | { | |
8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8a0b029b | 8558 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); |
d14a1e28 RD |
8559 | |
8560 | wxPyEndAllowThreads(__tstate); | |
8561 | if (PyErr_Occurred()) SWIG_fail; | |
8562 | } | |
8563 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipWindow, 1); | |
8a0b029b RD |
8564 | { |
8565 | if (temp2) | |
8566 | delete arg2; | |
8567 | } | |
d14a1e28 RD |
8568 | return resultobj; |
8569 | fail: | |
8a0b029b RD |
8570 | { |
8571 | if (temp2) | |
8572 | delete arg2; | |
8573 | } | |
d14a1e28 RD |
8574 | return NULL; |
8575 | } | |
8576 | ||
8577 | ||
8578 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8579 | PyObject *resultobj; | |
8580 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8581 | wxRect *arg2 = 0 ; | |
8582 | wxRect temp2 ; | |
8583 | PyObject * obj0 = 0 ; | |
8584 | PyObject * obj1 = 0 ; | |
8585 | char *kwnames[] = { | |
8586 | (char *) "self",(char *) "rectBound", NULL | |
8587 | }; | |
8588 | ||
8589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
8590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8591 | { | |
8592 | arg2 = &temp2; | |
8593 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8594 | } | |
8595 | { | |
8596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8597 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
8598 | ||
8599 | wxPyEndAllowThreads(__tstate); | |
8600 | if (PyErr_Occurred()) SWIG_fail; | |
8601 | } | |
8602 | Py_INCREF(Py_None); resultobj = Py_None; | |
8603 | return resultobj; | |
8604 | fail: | |
8605 | return NULL; | |
8606 | } | |
8607 | ||
8608 | ||
8609 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8610 | PyObject *resultobj; | |
8611 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8612 | PyObject * obj0 = 0 ; | |
8613 | char *kwnames[] = { | |
8614 | (char *) "self", NULL | |
8615 | }; | |
8616 | ||
8617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
8618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8619 | { | |
8620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8621 | (arg1)->Close(); | |
8622 | ||
8623 | wxPyEndAllowThreads(__tstate); | |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
8625 | } | |
8626 | Py_INCREF(Py_None); resultobj = Py_None; | |
8627 | return resultobj; | |
8628 | fail: | |
8629 | return NULL; | |
8630 | } | |
8631 | ||
8632 | ||
8633 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
8634 | PyObject *obj; | |
8635 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8636 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
8637 | Py_INCREF(obj); | |
8638 | return Py_BuildValue((char *)""); | |
8639 | } | |
8640 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8641 | PyObject *resultobj; | |
8642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 8643 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
8644 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8645 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8646 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8647 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8648 | long arg5 = (long) 0 ; | |
8649 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8650 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8651 | wxPyVScrolledWindow *result; | |
8652 | wxPoint temp3 ; | |
8653 | wxSize temp4 ; | |
423f194a | 8654 | bool temp6 = False ; |
d14a1e28 | 8655 | PyObject * obj0 = 0 ; |
8edf1c75 | 8656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8657 | PyObject * obj2 = 0 ; |
8658 | PyObject * obj3 = 0 ; | |
8edf1c75 | 8659 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
8660 | PyObject * obj5 = 0 ; |
8661 | char *kwnames[] = { | |
8662 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8663 | }; | |
8664 | ||
8edf1c75 | 8665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 8666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8667 | if (obj1) { |
8668 | { | |
8669 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8670 | if (PyErr_Occurred()) SWIG_fail; | |
8671 | } | |
8672 | } | |
d14a1e28 RD |
8673 | if (obj2) { |
8674 | { | |
8675 | arg3 = &temp3; | |
8676 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8677 | } | |
8678 | } | |
8679 | if (obj3) { | |
8680 | { | |
8681 | arg4 = &temp4; | |
8682 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8683 | } | |
8684 | } | |
8edf1c75 RD |
8685 | if (obj4) { |
8686 | { | |
8687 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
8689 | } | |
8690 | } | |
d14a1e28 RD |
8691 | if (obj5) { |
8692 | { | |
8693 | arg6 = wxString_in_helper(obj5); | |
8694 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 8695 | temp6 = True; |
d14a1e28 RD |
8696 | } |
8697 | } | |
8698 | { | |
8699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8700 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8701 | ||
8702 | wxPyEndAllowThreads(__tstate); | |
8703 | if (PyErr_Occurred()) SWIG_fail; | |
8704 | } | |
8705 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8706 | { | |
8707 | if (temp6) | |
8708 | delete arg6; | |
8709 | } | |
8710 | return resultobj; | |
8711 | fail: | |
8712 | { | |
8713 | if (temp6) | |
8714 | delete arg6; | |
8715 | } | |
8716 | return NULL; | |
8717 | } | |
8718 | ||
8719 | ||
8720 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8721 | PyObject *resultobj; | |
8722 | wxPyVScrolledWindow *result; | |
8723 | char *kwnames[] = { | |
8724 | NULL | |
8725 | }; | |
8726 | ||
8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
8728 | { | |
8729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8730 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
8731 | ||
8732 | wxPyEndAllowThreads(__tstate); | |
8733 | if (PyErr_Occurred()) SWIG_fail; | |
8734 | } | |
8735 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8736 | return resultobj; | |
8737 | fail: | |
8738 | return NULL; | |
8739 | } | |
8740 | ||
8741 | ||
8742 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8743 | PyObject *resultobj; | |
8744 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8745 | PyObject *arg2 = (PyObject *) 0 ; | |
8746 | PyObject *arg3 = (PyObject *) 0 ; | |
8747 | PyObject * obj0 = 0 ; | |
8748 | PyObject * obj1 = 0 ; | |
8749 | PyObject * obj2 = 0 ; | |
8750 | char *kwnames[] = { | |
8751 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8752 | }; | |
8753 | ||
8754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8756 | arg2 = obj1; | |
8757 | arg3 = obj2; | |
8758 | { | |
8759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8760 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8761 | ||
8762 | wxPyEndAllowThreads(__tstate); | |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
8764 | } | |
8765 | Py_INCREF(Py_None); resultobj = Py_None; | |
8766 | return resultobj; | |
8767 | fail: | |
8768 | return NULL; | |
8769 | } | |
8770 | ||
8771 | ||
8772 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8773 | PyObject *resultobj; | |
8774 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8775 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 8776 | int arg3 = (int) wxID_ANY ; |
d14a1e28 RD |
8777 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8778 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8779 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8780 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8781 | long arg6 = (long) 0 ; | |
8782 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
8783 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8784 | bool result; | |
8785 | wxPoint temp4 ; | |
8786 | wxSize temp5 ; | |
423f194a | 8787 | bool temp7 = False ; |
d14a1e28 RD |
8788 | PyObject * obj0 = 0 ; |
8789 | PyObject * obj1 = 0 ; | |
8edf1c75 | 8790 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8791 | PyObject * obj3 = 0 ; |
8792 | PyObject * obj4 = 0 ; | |
8edf1c75 | 8793 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8794 | PyObject * obj6 = 0 ; |
8795 | char *kwnames[] = { | |
8796 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8797 | }; | |
8798 | ||
8edf1c75 | 8799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
8800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8801 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
8802 | if (obj2) { |
8803 | { | |
8804 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
8807 | } | |
d14a1e28 RD |
8808 | if (obj3) { |
8809 | { | |
8810 | arg4 = &temp4; | |
8811 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8812 | } | |
8813 | } | |
8814 | if (obj4) { | |
8815 | { | |
8816 | arg5 = &temp5; | |
8817 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8818 | } | |
8819 | } | |
8edf1c75 RD |
8820 | if (obj5) { |
8821 | { | |
8822 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
8825 | } | |
d14a1e28 RD |
8826 | if (obj6) { |
8827 | { | |
8828 | arg7 = wxString_in_helper(obj6); | |
8829 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 8830 | temp7 = True; |
d14a1e28 RD |
8831 | } |
8832 | } | |
8833 | { | |
8834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8835 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8836 | ||
8837 | wxPyEndAllowThreads(__tstate); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
8edf1c75 | 8840 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8841 | { |
8842 | if (temp7) | |
8843 | delete arg7; | |
8844 | } | |
8845 | return resultobj; | |
8846 | fail: | |
8847 | { | |
8848 | if (temp7) | |
8849 | delete arg7; | |
8850 | } | |
8851 | return NULL; | |
8852 | } | |
8853 | ||
8854 | ||
8855 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject *resultobj; | |
8857 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8858 | size_t arg2 ; | |
8859 | PyObject * obj0 = 0 ; | |
8860 | PyObject * obj1 = 0 ; | |
8861 | char *kwnames[] = { | |
8862 | (char *) "self",(char *) "count", NULL | |
8863 | }; | |
8864 | ||
8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
8866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8867 | { |
8edf1c75 | 8868 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
8869 | if (PyErr_Occurred()) SWIG_fail; |
8870 | } | |
d14a1e28 RD |
8871 | { |
8872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8873 | (arg1)->SetLineCount(arg2); | |
8874 | ||
8875 | wxPyEndAllowThreads(__tstate); | |
8876 | if (PyErr_Occurred()) SWIG_fail; | |
8877 | } | |
8878 | Py_INCREF(Py_None); resultobj = Py_None; | |
8879 | return resultobj; | |
8880 | fail: | |
8881 | return NULL; | |
8882 | } | |
8883 | ||
8884 | ||
8885 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8886 | PyObject *resultobj; | |
8887 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8888 | size_t arg2 ; | |
8889 | bool result; | |
8890 | PyObject * obj0 = 0 ; | |
8891 | PyObject * obj1 = 0 ; | |
8892 | char *kwnames[] = { | |
8893 | (char *) "self",(char *) "line", NULL | |
8894 | }; | |
8895 | ||
8896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
8897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8898 | { |
8edf1c75 | 8899 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
8900 | if (PyErr_Occurred()) SWIG_fail; |
8901 | } | |
d14a1e28 RD |
8902 | { |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | result = (bool)(arg1)->ScrollToLine(arg2); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
8edf1c75 | 8909 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8910 | return resultobj; |
8911 | fail: | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
8916 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8917 | PyObject *resultobj; | |
8918 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8919 | int arg2 ; | |
8920 | bool result; | |
8921 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8922 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8923 | char *kwnames[] = { |
8924 | (char *) "self",(char *) "lines", NULL | |
8925 | }; | |
8926 | ||
8edf1c75 | 8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8929 | { |
8930 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8931 | if (PyErr_Occurred()) SWIG_fail; | |
8932 | } | |
d14a1e28 RD |
8933 | { |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | result = (bool)(arg1)->ScrollLines(arg2); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
8edf1c75 | 8940 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8941 | return resultobj; |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj; | |
8949 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8950 | int arg2 ; | |
8951 | bool result; | |
8952 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8954 | char *kwnames[] = { |
8955 | (char *) "self",(char *) "pages", NULL | |
8956 | }; | |
8957 | ||
8edf1c75 | 8958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
8960 | { |
8961 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
d14a1e28 RD |
8964 | { |
8965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8966 | result = (bool)(arg1)->ScrollPages(arg2); | |
8967 | ||
8968 | wxPyEndAllowThreads(__tstate); | |
8969 | if (PyErr_Occurred()) SWIG_fail; | |
8970 | } | |
8edf1c75 | 8971 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
8972 | return resultobj; |
8973 | fail: | |
8974 | return NULL; | |
8975 | } | |
8976 | ||
8977 | ||
8978 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8979 | PyObject *resultobj; | |
8980 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8981 | size_t arg2 ; | |
8982 | PyObject * obj0 = 0 ; | |
8983 | PyObject * obj1 = 0 ; | |
8984 | char *kwnames[] = { | |
8985 | (char *) "self",(char *) "line", NULL | |
8986 | }; | |
8987 | ||
8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
8989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 8990 | { |
8edf1c75 | 8991 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
8992 | if (PyErr_Occurred()) SWIG_fail; |
8993 | } | |
d14a1e28 RD |
8994 | { |
8995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8996 | (arg1)->RefreshLine(arg2); | |
8997 | ||
8998 | wxPyEndAllowThreads(__tstate); | |
8999 | if (PyErr_Occurred()) SWIG_fail; | |
9000 | } | |
9001 | Py_INCREF(Py_None); resultobj = Py_None; | |
9002 | return resultobj; | |
9003 | fail: | |
9004 | return NULL; | |
9005 | } | |
9006 | ||
9007 | ||
9008 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9009 | PyObject *resultobj; | |
9010 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9011 | size_t arg2 ; | |
9012 | size_t arg3 ; | |
9013 | PyObject * obj0 = 0 ; | |
9014 | PyObject * obj1 = 0 ; | |
9015 | PyObject * obj2 = 0 ; | |
9016 | char *kwnames[] = { | |
9017 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9018 | }; | |
9019 | ||
9020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9022 | { |
8edf1c75 | 9023 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
9024 | if (PyErr_Occurred()) SWIG_fail; |
9025 | } | |
9026 | { | |
8edf1c75 | 9027 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
83448d71 RD |
9028 | if (PyErr_Occurred()) SWIG_fail; |
9029 | } | |
d14a1e28 RD |
9030 | { |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | (arg1)->RefreshLines(arg2,arg3); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | Py_INCREF(Py_None); resultobj = Py_None; | |
9038 | return resultobj; | |
9039 | fail: | |
9040 | return NULL; | |
9041 | } | |
9042 | ||
9043 | ||
9044 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9045 | PyObject *resultobj; | |
9046 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
423f194a RD |
9047 | int arg2 ; |
9048 | int arg3 ; | |
d14a1e28 RD |
9049 | int result; |
9050 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9051 | PyObject * obj1 = 0 ; |
9052 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9053 | char *kwnames[] = { |
9054 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9055 | }; | |
9056 | ||
8edf1c75 | 9057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9059 | { |
9060 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9061 | if (PyErr_Occurred()) SWIG_fail; | |
9062 | } | |
9063 | { | |
9064 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
d14a1e28 RD |
9067 | { |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9070 | ||
9071 | wxPyEndAllowThreads(__tstate); | |
9072 | if (PyErr_Occurred()) SWIG_fail; | |
9073 | } | |
8edf1c75 | 9074 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9075 | return resultobj; |
9076 | fail: | |
9077 | return NULL; | |
9078 | } | |
9079 | ||
9080 | ||
9081 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9082 | PyObject *resultobj; | |
9083 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9084 | wxPoint *arg2 = 0 ; | |
9085 | int result; | |
9086 | wxPoint temp2 ; | |
9087 | PyObject * obj0 = 0 ; | |
9088 | PyObject * obj1 = 0 ; | |
9089 | char *kwnames[] = { | |
9090 | (char *) "self",(char *) "pt", NULL | |
9091 | }; | |
9092 | ||
9093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9095 | { | |
9096 | arg2 = &temp2; | |
9097 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9098 | } | |
9099 | { | |
9100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9101 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9102 | ||
9103 | wxPyEndAllowThreads(__tstate); | |
9104 | if (PyErr_Occurred()) SWIG_fail; | |
9105 | } | |
8edf1c75 | 9106 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9107 | return resultobj; |
9108 | fail: | |
9109 | return NULL; | |
9110 | } | |
9111 | ||
9112 | ||
9113 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9114 | PyObject *resultobj; | |
9115 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9116 | PyObject * obj0 = 0 ; | |
9117 | char *kwnames[] = { | |
9118 | (char *) "self", NULL | |
9119 | }; | |
9120 | ||
9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9123 | { | |
9124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9125 | (arg1)->RefreshAll(); | |
9126 | ||
9127 | wxPyEndAllowThreads(__tstate); | |
9128 | if (PyErr_Occurred()) SWIG_fail; | |
9129 | } | |
9130 | Py_INCREF(Py_None); resultobj = Py_None; | |
9131 | return resultobj; | |
9132 | fail: | |
9133 | return NULL; | |
9134 | } | |
9135 | ||
9136 | ||
9137 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9138 | PyObject *resultobj; | |
9139 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9140 | size_t result; | |
9141 | PyObject * obj0 = 0 ; | |
9142 | char *kwnames[] = { | |
9143 | (char *) "self", NULL | |
9144 | }; | |
9145 | ||
9146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9148 | { | |
9149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9150 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9151 | ||
9152 | wxPyEndAllowThreads(__tstate); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | } | |
8edf1c75 | 9155 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9156 | return resultobj; |
9157 | fail: | |
9158 | return NULL; | |
9159 | } | |
9160 | ||
9161 | ||
9162 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9163 | PyObject *resultobj; | |
9164 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9165 | size_t result; | |
9166 | PyObject * obj0 = 0 ; | |
9167 | char *kwnames[] = { | |
9168 | (char *) "self", NULL | |
9169 | }; | |
9170 | ||
9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9173 | { | |
9174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9175 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9176 | ||
9177 | wxPyEndAllowThreads(__tstate); | |
9178 | if (PyErr_Occurred()) SWIG_fail; | |
9179 | } | |
8edf1c75 | 9180 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9181 | return resultobj; |
9182 | fail: | |
9183 | return NULL; | |
9184 | } | |
9185 | ||
9186 | ||
9187 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9188 | PyObject *resultobj; | |
9189 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9190 | size_t result; | |
9191 | PyObject * obj0 = 0 ; | |
9192 | char *kwnames[] = { | |
9193 | (char *) "self", NULL | |
9194 | }; | |
9195 | ||
9196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9197 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9198 | { | |
9199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9200 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9201 | ||
9202 | wxPyEndAllowThreads(__tstate); | |
9203 | if (PyErr_Occurred()) SWIG_fail; | |
9204 | } | |
8edf1c75 | 9205 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9206 | return resultobj; |
9207 | fail: | |
9208 | return NULL; | |
9209 | } | |
9210 | ||
9211 | ||
9212 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9213 | PyObject *resultobj; | |
9214 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9215 | size_t arg2 ; | |
9216 | bool result; | |
9217 | PyObject * obj0 = 0 ; | |
9218 | PyObject * obj1 = 0 ; | |
9219 | char *kwnames[] = { | |
9220 | (char *) "self",(char *) "line", NULL | |
9221 | }; | |
9222 | ||
9223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9225 | { |
8edf1c75 | 9226 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
9227 | if (PyErr_Occurred()) SWIG_fail; |
9228 | } | |
d14a1e28 RD |
9229 | { |
9230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9231 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9232 | ||
9233 | wxPyEndAllowThreads(__tstate); | |
9234 | if (PyErr_Occurred()) SWIG_fail; | |
9235 | } | |
8edf1c75 | 9236 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9237 | return resultobj; |
9238 | fail: | |
9239 | return NULL; | |
9240 | } | |
9241 | ||
9242 | ||
9243 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9244 | PyObject *obj; | |
9245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9246 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9247 | Py_INCREF(obj); | |
9248 | return Py_BuildValue((char *)""); | |
9249 | } | |
8edf1c75 | 9250 | static int _wrap_VListBoxNameStr_set(PyObject *) { |
d03fd34d RD |
9251 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); |
9252 | return 1; | |
9253 | } | |
9254 | ||
9255 | ||
9256 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9257 | PyObject *pyobj; | |
9258 | ||
9259 | { | |
9260 | #if wxUSE_UNICODE | |
9261 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9262 | #else | |
9263 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9264 | #endif | |
9265 | } | |
9266 | return pyobj; | |
9267 | } | |
9268 | ||
9269 | ||
d14a1e28 RD |
9270 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9271 | PyObject *resultobj; | |
9272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9273 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
9274 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9275 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9276 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9277 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9278 | long arg5 = (long) 0 ; | |
9279 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9280 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9281 | wxPyVListBox *result; | |
9282 | wxPoint temp3 ; | |
9283 | wxSize temp4 ; | |
423f194a | 9284 | bool temp6 = False ; |
d14a1e28 | 9285 | PyObject * obj0 = 0 ; |
8edf1c75 | 9286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9287 | PyObject * obj2 = 0 ; |
9288 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9289 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9290 | PyObject * obj5 = 0 ; |
9291 | char *kwnames[] = { | |
9292 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9293 | }; | |
9294 | ||
8edf1c75 | 9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9297 | if (obj1) { |
9298 | { | |
9299 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9300 | if (PyErr_Occurred()) SWIG_fail; | |
9301 | } | |
9302 | } | |
d14a1e28 RD |
9303 | if (obj2) { |
9304 | { | |
9305 | arg3 = &temp3; | |
9306 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9307 | } | |
9308 | } | |
9309 | if (obj3) { | |
9310 | { | |
9311 | arg4 = &temp4; | |
9312 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9313 | } | |
9314 | } | |
8edf1c75 RD |
9315 | if (obj4) { |
9316 | { | |
9317 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | } | |
d14a1e28 RD |
9321 | if (obj5) { |
9322 | { | |
9323 | arg6 = wxString_in_helper(obj5); | |
9324 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 9325 | temp6 = True; |
d14a1e28 RD |
9326 | } |
9327 | } | |
9328 | { | |
9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9330 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9331 | ||
9332 | wxPyEndAllowThreads(__tstate); | |
9333 | if (PyErr_Occurred()) SWIG_fail; | |
9334 | } | |
9335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVListBox, 1); | |
9336 | { | |
9337 | if (temp6) | |
9338 | delete arg6; | |
9339 | } | |
9340 | return resultobj; | |
9341 | fail: | |
9342 | { | |
9343 | if (temp6) | |
9344 | delete arg6; | |
9345 | } | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
9350 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9351 | PyObject *resultobj; | |
9352 | wxPyVListBox *result; | |
9353 | char *kwnames[] = { | |
9354 | NULL | |
9355 | }; | |
9356 | ||
9357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9358 | { | |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9360 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9361 | ||
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
9365 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVListBox, 1); | |
9366 | return resultobj; | |
9367 | fail: | |
9368 | return NULL; | |
9369 | } | |
9370 | ||
9371 | ||
9372 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9373 | PyObject *resultobj; | |
9374 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9375 | PyObject *arg2 = (PyObject *) 0 ; | |
9376 | PyObject *arg3 = (PyObject *) 0 ; | |
9377 | PyObject * obj0 = 0 ; | |
9378 | PyObject * obj1 = 0 ; | |
9379 | PyObject * obj2 = 0 ; | |
9380 | char *kwnames[] = { | |
9381 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9382 | }; | |
9383 | ||
9384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9386 | arg2 = obj1; | |
9387 | arg3 = obj2; | |
9388 | { | |
9389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9390 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9391 | ||
9392 | wxPyEndAllowThreads(__tstate); | |
9393 | if (PyErr_Occurred()) SWIG_fail; | |
9394 | } | |
9395 | Py_INCREF(Py_None); resultobj = Py_None; | |
9396 | return resultobj; | |
9397 | fail: | |
9398 | return NULL; | |
9399 | } | |
9400 | ||
9401 | ||
9402 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9403 | PyObject *resultobj; | |
9404 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9405 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9406 | int arg3 = (int) wxID_ANY ; |
d14a1e28 RD |
9407 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9408 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9409 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9410 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9411 | long arg6 = (long) 0 ; | |
9412 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9413 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9414 | bool result; | |
9415 | wxPoint temp4 ; | |
9416 | wxSize temp5 ; | |
423f194a | 9417 | bool temp7 = False ; |
d14a1e28 RD |
9418 | PyObject * obj0 = 0 ; |
9419 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9420 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9421 | PyObject * obj3 = 0 ; |
9422 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9423 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9424 | PyObject * obj6 = 0 ; |
9425 | char *kwnames[] = { | |
9426 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9427 | }; | |
9428 | ||
8edf1c75 | 9429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9431 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
9432 | if (obj2) { |
9433 | { | |
9434 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | } | |
9437 | } | |
d14a1e28 RD |
9438 | if (obj3) { |
9439 | { | |
9440 | arg4 = &temp4; | |
9441 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9442 | } | |
9443 | } | |
9444 | if (obj4) { | |
9445 | { | |
9446 | arg5 = &temp5; | |
9447 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9448 | } | |
9449 | } | |
8edf1c75 RD |
9450 | if (obj5) { |
9451 | { | |
9452 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9453 | if (PyErr_Occurred()) SWIG_fail; | |
9454 | } | |
9455 | } | |
d14a1e28 RD |
9456 | if (obj6) { |
9457 | { | |
9458 | arg7 = wxString_in_helper(obj6); | |
9459 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9460 | temp7 = True; |
d14a1e28 RD |
9461 | } |
9462 | } | |
9463 | { | |
9464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9465 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9466 | ||
9467 | wxPyEndAllowThreads(__tstate); | |
9468 | if (PyErr_Occurred()) SWIG_fail; | |
9469 | } | |
8edf1c75 | 9470 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9471 | { |
9472 | if (temp7) | |
9473 | delete arg7; | |
9474 | } | |
9475 | return resultobj; | |
9476 | fail: | |
9477 | { | |
9478 | if (temp7) | |
9479 | delete arg7; | |
9480 | } | |
9481 | return NULL; | |
9482 | } | |
9483 | ||
9484 | ||
9485 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9486 | PyObject *resultobj; | |
9487 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9488 | size_t result; | |
9489 | PyObject * obj0 = 0 ; | |
9490 | char *kwnames[] = { | |
9491 | (char *) "self", NULL | |
9492 | }; | |
9493 | ||
9494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
9495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9496 | { | |
9497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9498 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
9499 | ||
9500 | wxPyEndAllowThreads(__tstate); | |
9501 | if (PyErr_Occurred()) SWIG_fail; | |
9502 | } | |
8edf1c75 | 9503 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9504 | return resultobj; |
9505 | fail: | |
9506 | return NULL; | |
9507 | } | |
9508 | ||
9509 | ||
9510 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9511 | PyObject *resultobj; | |
9512 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9513 | bool result; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
9520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9521 | { | |
9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9523 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
9524 | ||
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
9527 | } | |
8edf1c75 | 9528 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9529 | return resultobj; |
9530 | fail: | |
9531 | return NULL; | |
9532 | } | |
9533 | ||
9534 | ||
9535 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9536 | PyObject *resultobj; | |
9537 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9538 | int result; | |
9539 | PyObject * obj0 = 0 ; | |
9540 | char *kwnames[] = { | |
9541 | (char *) "self", NULL | |
9542 | }; | |
9543 | ||
9544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
9545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9546 | { | |
9547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9548 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
9549 | ||
9550 | wxPyEndAllowThreads(__tstate); | |
9551 | if (PyErr_Occurred()) SWIG_fail; | |
9552 | } | |
8edf1c75 | 9553 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9554 | return resultobj; |
9555 | fail: | |
9556 | return NULL; | |
9557 | } | |
9558 | ||
9559 | ||
9560 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9561 | PyObject *resultobj; | |
9562 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9563 | size_t arg2 ; | |
9564 | bool result; | |
9565 | PyObject * obj0 = 0 ; | |
9566 | PyObject * obj1 = 0 ; | |
9567 | char *kwnames[] = { | |
9568 | (char *) "self",(char *) "item", NULL | |
9569 | }; | |
9570 | ||
9571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
9572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9573 | { |
8edf1c75 | 9574 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
9575 | if (PyErr_Occurred()) SWIG_fail; |
9576 | } | |
d14a1e28 RD |
9577 | { |
9578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9579 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
9580 | ||
9581 | wxPyEndAllowThreads(__tstate); | |
9582 | if (PyErr_Occurred()) SWIG_fail; | |
9583 | } | |
8edf1c75 | 9584 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9585 | return resultobj; |
9586 | fail: | |
9587 | return NULL; | |
9588 | } | |
9589 | ||
9590 | ||
9591 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9592 | PyObject *resultobj; | |
9593 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9594 | size_t arg2 ; | |
9595 | bool result; | |
9596 | PyObject * obj0 = 0 ; | |
9597 | PyObject * obj1 = 0 ; | |
9598 | char *kwnames[] = { | |
9599 | (char *) "self",(char *) "item", NULL | |
9600 | }; | |
9601 | ||
9602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
9603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9604 | { |
8edf1c75 | 9605 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
9606 | if (PyErr_Occurred()) SWIG_fail; |
9607 | } | |
d14a1e28 RD |
9608 | { |
9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9610 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
9611 | ||
9612 | wxPyEndAllowThreads(__tstate); | |
9613 | if (PyErr_Occurred()) SWIG_fail; | |
9614 | } | |
8edf1c75 | 9615 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9616 | return resultobj; |
9617 | fail: | |
9618 | return NULL; | |
9619 | } | |
9620 | ||
9621 | ||
9622 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9623 | PyObject *resultobj; | |
9624 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9625 | size_t result; | |
9626 | PyObject * obj0 = 0 ; | |
9627 | char *kwnames[] = { | |
9628 | (char *) "self", NULL | |
9629 | }; | |
9630 | ||
9631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
9632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9633 | { | |
9634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9635 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
9636 | ||
9637 | wxPyEndAllowThreads(__tstate); | |
9638 | if (PyErr_Occurred()) SWIG_fail; | |
9639 | } | |
8edf1c75 | 9640 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9641 | return resultobj; |
9642 | fail: | |
9643 | return NULL; | |
9644 | } | |
9645 | ||
9646 | ||
9647 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9648 | PyObject *resultobj; | |
9649 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9650 | unsigned long *arg2 = 0 ; | |
9651 | int result; | |
9652 | PyObject * obj0 = 0 ; | |
9653 | PyObject * obj1 = 0 ; | |
9654 | char *kwnames[] = { | |
9655 | (char *) "self",(char *) "cookie", NULL | |
9656 | }; | |
9657 | ||
9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; | |
9659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9660 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9661 | if (arg2 == NULL) { | |
9662 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9663 | } | |
9664 | { | |
9665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9666 | result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); | |
9667 | ||
9668 | wxPyEndAllowThreads(__tstate); | |
9669 | if (PyErr_Occurred()) SWIG_fail; | |
9670 | } | |
8edf1c75 | 9671 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9672 | return resultobj; |
9673 | fail: | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
9678 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9679 | PyObject *resultobj; | |
9680 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9681 | unsigned long *arg2 = 0 ; | |
9682 | int result; | |
9683 | PyObject * obj0 = 0 ; | |
9684 | PyObject * obj1 = 0 ; | |
9685 | char *kwnames[] = { | |
9686 | (char *) "self",(char *) "cookie", NULL | |
9687 | }; | |
9688 | ||
9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
9690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9691 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9692 | if (arg2 == NULL) { | |
9693 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9694 | } | |
9695 | { | |
9696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9697 | result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); | |
9698 | ||
9699 | wxPyEndAllowThreads(__tstate); | |
9700 | if (PyErr_Occurred()) SWIG_fail; | |
9701 | } | |
8edf1c75 | 9702 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9703 | return resultobj; |
9704 | fail: | |
9705 | return NULL; | |
9706 | } | |
9707 | ||
9708 | ||
9709 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9710 | PyObject *resultobj; | |
9711 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9712 | wxPoint result; | |
9713 | PyObject * obj0 = 0 ; | |
9714 | char *kwnames[] = { | |
9715 | (char *) "self", NULL | |
9716 | }; | |
9717 | ||
9718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
9719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9720 | { | |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9722 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
9723 | ||
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
9727 | { | |
9728 | wxPoint * resultptr; | |
9729 | resultptr = new wxPoint((wxPoint &) result); | |
9730 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9731 | } | |
9732 | return resultobj; | |
9733 | fail: | |
9734 | return NULL; | |
9735 | } | |
9736 | ||
9737 | ||
9738 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9739 | PyObject *resultobj; | |
9740 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9741 | wxColour *result; | |
9742 | PyObject * obj0 = 0 ; | |
9743 | char *kwnames[] = { | |
9744 | (char *) "self", NULL | |
9745 | }; | |
9746 | ||
9747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
9748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9749 | { | |
9750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9751 | { | |
9752 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
9753 | result = (wxColour *) &_result_ref; | |
9754 | } | |
9755 | ||
9756 | wxPyEndAllowThreads(__tstate); | |
9757 | if (PyErr_Occurred()) SWIG_fail; | |
9758 | } | |
9759 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
9760 | return resultobj; | |
9761 | fail: | |
9762 | return NULL; | |
9763 | } | |
9764 | ||
9765 | ||
9766 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9767 | PyObject *resultobj; | |
9768 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9769 | size_t arg2 ; | |
9770 | PyObject * obj0 = 0 ; | |
9771 | PyObject * obj1 = 0 ; | |
9772 | char *kwnames[] = { | |
9773 | (char *) "self",(char *) "count", NULL | |
9774 | }; | |
9775 | ||
9776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
9777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9778 | { |
8edf1c75 | 9779 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
9780 | if (PyErr_Occurred()) SWIG_fail; |
9781 | } | |
d14a1e28 RD |
9782 | { |
9783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9784 | (arg1)->SetItemCount(arg2); | |
9785 | ||
9786 | wxPyEndAllowThreads(__tstate); | |
9787 | if (PyErr_Occurred()) SWIG_fail; | |
9788 | } | |
9789 | Py_INCREF(Py_None); resultobj = Py_None; | |
9790 | return resultobj; | |
9791 | fail: | |
9792 | return NULL; | |
9793 | } | |
9794 | ||
9795 | ||
9796 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9797 | PyObject *resultobj; | |
9798 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9799 | PyObject * obj0 = 0 ; | |
9800 | char *kwnames[] = { | |
9801 | (char *) "self", NULL | |
9802 | }; | |
9803 | ||
9804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
9805 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9806 | { | |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | (arg1)->Clear(); | |
9809 | ||
9810 | wxPyEndAllowThreads(__tstate); | |
9811 | if (PyErr_Occurred()) SWIG_fail; | |
9812 | } | |
9813 | Py_INCREF(Py_None); resultobj = Py_None; | |
9814 | return resultobj; | |
9815 | fail: | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9821 | PyObject *resultobj; | |
9822 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9823 | int arg2 ; | |
9824 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9826 | char *kwnames[] = { |
9827 | (char *) "self",(char *) "selection", NULL | |
9828 | }; | |
9829 | ||
8edf1c75 | 9830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
9832 | { |
9833 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9834 | if (PyErr_Occurred()) SWIG_fail; | |
9835 | } | |
d14a1e28 RD |
9836 | { |
9837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9838 | (arg1)->SetSelection(arg2); | |
9839 | ||
9840 | wxPyEndAllowThreads(__tstate); | |
9841 | if (PyErr_Occurred()) SWIG_fail; | |
9842 | } | |
9843 | Py_INCREF(Py_None); resultobj = Py_None; | |
9844 | return resultobj; | |
9845 | fail: | |
9846 | return NULL; | |
9847 | } | |
9848 | ||
9849 | ||
9850 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9851 | PyObject *resultobj; | |
9852 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9853 | size_t arg2 ; | |
423f194a | 9854 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9855 | bool result; |
9856 | PyObject * obj0 = 0 ; | |
9857 | PyObject * obj1 = 0 ; | |
9858 | PyObject * obj2 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self",(char *) "item",(char *) "select", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9865 | { |
8edf1c75 | 9866 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
d14a1e28 RD |
9867 | if (PyErr_Occurred()) SWIG_fail; |
9868 | } | |
83448d71 RD |
9869 | if (obj2) { |
9870 | { | |
8edf1c75 | 9871 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
83448d71 RD |
9872 | if (PyErr_Occurred()) SWIG_fail; |
9873 | } | |
9874 | } | |
d14a1e28 RD |
9875 | { |
9876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9877 | result = (bool)(arg1)->Select(arg2,arg3); | |
9878 | ||
9879 | wxPyEndAllowThreads(__tstate); | |
9880 | if (PyErr_Occurred()) SWIG_fail; | |
9881 | } | |
8edf1c75 | 9882 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9883 | return resultobj; |
9884 | fail: | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
9889 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9890 | PyObject *resultobj; | |
9891 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9892 | size_t arg2 ; | |
9893 | size_t arg3 ; | |
9894 | bool result; | |
9895 | PyObject * obj0 = 0 ; | |
9896 | PyObject * obj1 = 0 ; | |
9897 | PyObject * obj2 = 0 ; | |
9898 | char *kwnames[] = { | |
9899 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9900 | }; | |
9901 | ||
9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9904 | { |
8edf1c75 | 9905 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
9906 | if (PyErr_Occurred()) SWIG_fail; |
9907 | } | |
9908 | { | |
8edf1c75 | 9909 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
83448d71 RD |
9910 | if (PyErr_Occurred()) SWIG_fail; |
9911 | } | |
d14a1e28 RD |
9912 | { |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
8edf1c75 | 9919 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9920 | return resultobj; |
9921 | fail: | |
9922 | return NULL; | |
9923 | } | |
9924 | ||
9925 | ||
9926 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9927 | PyObject *resultobj; | |
9928 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9929 | size_t arg2 ; | |
9930 | PyObject * obj0 = 0 ; | |
9931 | PyObject * obj1 = 0 ; | |
9932 | char *kwnames[] = { | |
9933 | (char *) "self",(char *) "item", NULL | |
9934 | }; | |
9935 | ||
9936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
9937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 9938 | { |
8edf1c75 | 9939 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
9940 | if (PyErr_Occurred()) SWIG_fail; |
9941 | } | |
d14a1e28 RD |
9942 | { |
9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9944 | (arg1)->Toggle(arg2); | |
9945 | ||
9946 | wxPyEndAllowThreads(__tstate); | |
9947 | if (PyErr_Occurred()) SWIG_fail; | |
9948 | } | |
9949 | Py_INCREF(Py_None); resultobj = Py_None; | |
9950 | return resultobj; | |
9951 | fail: | |
9952 | return NULL; | |
9953 | } | |
9954 | ||
9955 | ||
9956 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9957 | PyObject *resultobj; | |
9958 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9959 | bool result; | |
9960 | PyObject * obj0 = 0 ; | |
9961 | char *kwnames[] = { | |
9962 | (char *) "self", NULL | |
9963 | }; | |
9964 | ||
9965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
9966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9967 | { | |
9968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9969 | result = (bool)(arg1)->SelectAll(); | |
9970 | ||
9971 | wxPyEndAllowThreads(__tstate); | |
9972 | if (PyErr_Occurred()) SWIG_fail; | |
9973 | } | |
8edf1c75 | 9974 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
9975 | return resultobj; |
9976 | fail: | |
9977 | return NULL; | |
9978 | } | |
9979 | ||
9980 | ||
9981 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9982 | PyObject *resultobj; | |
9983 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9984 | bool result; | |
9985 | PyObject * obj0 = 0 ; | |
9986 | char *kwnames[] = { | |
9987 | (char *) "self", NULL | |
9988 | }; | |
9989 | ||
9990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
9991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9992 | { | |
9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9994 | result = (bool)(arg1)->DeselectAll(); | |
9995 | ||
9996 | wxPyEndAllowThreads(__tstate); | |
9997 | if (PyErr_Occurred()) SWIG_fail; | |
9998 | } | |
8edf1c75 | 9999 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10000 | return resultobj; |
10001 | fail: | |
10002 | return NULL; | |
10003 | } | |
10004 | ||
10005 | ||
10006 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10007 | PyObject *resultobj; | |
10008 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10009 | wxPoint *arg2 = 0 ; | |
10010 | wxPoint temp2 ; | |
10011 | PyObject * obj0 = 0 ; | |
10012 | PyObject * obj1 = 0 ; | |
10013 | char *kwnames[] = { | |
10014 | (char *) "self",(char *) "pt", NULL | |
10015 | }; | |
10016 | ||
10017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
10018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10019 | { | |
10020 | arg2 = &temp2; | |
10021 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10022 | } | |
10023 | { | |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
10030 | Py_INCREF(Py_None); resultobj = Py_None; | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | return NULL; | |
10034 | } | |
10035 | ||
10036 | ||
10037 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10038 | PyObject *resultobj; | |
10039 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
423f194a RD |
10040 | int arg2 ; |
10041 | int arg3 ; | |
d14a1e28 | 10042 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
10043 | PyObject * obj1 = 0 ; |
10044 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10045 | char *kwnames[] = { |
10046 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10047 | }; | |
10048 | ||
8edf1c75 | 10049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10051 | { |
10052 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
10054 | } | |
10055 | { | |
10056 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10057 | if (PyErr_Occurred()) SWIG_fail; | |
10058 | } | |
d14a1e28 RD |
10059 | { |
10060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10061 | (arg1)->SetMargins(arg2,arg3); | |
10062 | ||
10063 | wxPyEndAllowThreads(__tstate); | |
10064 | if (PyErr_Occurred()) SWIG_fail; | |
10065 | } | |
10066 | Py_INCREF(Py_None); resultobj = Py_None; | |
10067 | return resultobj; | |
10068 | fail: | |
10069 | return NULL; | |
10070 | } | |
10071 | ||
10072 | ||
10073 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10074 | PyObject *resultobj; | |
10075 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10076 | wxColour *arg2 = 0 ; | |
10077 | wxColour temp2 ; | |
10078 | PyObject * obj0 = 0 ; | |
10079 | PyObject * obj1 = 0 ; | |
10080 | char *kwnames[] = { | |
10081 | (char *) "self",(char *) "col", NULL | |
10082 | }; | |
10083 | ||
10084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10086 | { | |
10087 | arg2 = &temp2; | |
10088 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10089 | } | |
10090 | { | |
10091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10092 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10093 | ||
10094 | wxPyEndAllowThreads(__tstate); | |
10095 | if (PyErr_Occurred()) SWIG_fail; | |
10096 | } | |
10097 | Py_INCREF(Py_None); resultobj = Py_None; | |
10098 | return resultobj; | |
10099 | fail: | |
10100 | return NULL; | |
10101 | } | |
10102 | ||
10103 | ||
10104 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10105 | PyObject *obj; | |
10106 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10107 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10108 | Py_INCREF(obj); | |
10109 | return Py_BuildValue((char *)""); | |
10110 | } | |
10111 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10112 | PyObject *resultobj; | |
10113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10114 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
10115 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10116 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10117 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10118 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10119 | long arg5 = (long) 0 ; | |
10120 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10121 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10122 | wxPyHtmlListBox *result; | |
10123 | wxPoint temp3 ; | |
10124 | wxSize temp4 ; | |
423f194a | 10125 | bool temp6 = False ; |
d14a1e28 | 10126 | PyObject * obj0 = 0 ; |
8edf1c75 | 10127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10128 | PyObject * obj2 = 0 ; |
10129 | PyObject * obj3 = 0 ; | |
8edf1c75 | 10130 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10131 | PyObject * obj5 = 0 ; |
10132 | char *kwnames[] = { | |
10133 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10134 | }; | |
10135 | ||
8edf1c75 | 10136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 10137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10138 | if (obj1) { |
10139 | { | |
10140 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10141 | if (PyErr_Occurred()) SWIG_fail; | |
10142 | } | |
10143 | } | |
d14a1e28 RD |
10144 | if (obj2) { |
10145 | { | |
10146 | arg3 = &temp3; | |
10147 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10148 | } | |
10149 | } | |
10150 | if (obj3) { | |
10151 | { | |
10152 | arg4 = &temp4; | |
10153 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10154 | } | |
10155 | } | |
8edf1c75 RD |
10156 | if (obj4) { |
10157 | { | |
10158 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
10159 | if (PyErr_Occurred()) SWIG_fail; | |
10160 | } | |
10161 | } | |
d14a1e28 RD |
10162 | if (obj5) { |
10163 | { | |
10164 | arg6 = wxString_in_helper(obj5); | |
10165 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 10166 | temp6 = True; |
d14a1e28 RD |
10167 | } |
10168 | } | |
10169 | { | |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10172 | ||
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10177 | { | |
10178 | if (temp6) | |
10179 | delete arg6; | |
10180 | } | |
10181 | return resultobj; | |
10182 | fail: | |
10183 | { | |
10184 | if (temp6) | |
10185 | delete arg6; | |
10186 | } | |
10187 | return NULL; | |
10188 | } | |
10189 | ||
10190 | ||
10191 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10192 | PyObject *resultobj; | |
10193 | wxPyHtmlListBox *result; | |
10194 | char *kwnames[] = { | |
10195 | NULL | |
10196 | }; | |
10197 | ||
10198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10199 | { | |
10200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10201 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10202 | ||
10203 | wxPyEndAllowThreads(__tstate); | |
10204 | if (PyErr_Occurred()) SWIG_fail; | |
10205 | } | |
10206 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10207 | return resultobj; | |
10208 | fail: | |
10209 | return NULL; | |
10210 | } | |
10211 | ||
10212 | ||
10213 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10214 | PyObject *resultobj; | |
10215 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10216 | PyObject *arg2 = (PyObject *) 0 ; | |
10217 | PyObject *arg3 = (PyObject *) 0 ; | |
10218 | PyObject * obj0 = 0 ; | |
10219 | PyObject * obj1 = 0 ; | |
10220 | PyObject * obj2 = 0 ; | |
10221 | char *kwnames[] = { | |
10222 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10223 | }; | |
10224 | ||
10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10227 | arg2 = obj1; | |
10228 | arg3 = obj2; | |
10229 | { | |
10230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10231 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10232 | ||
10233 | wxPyEndAllowThreads(__tstate); | |
10234 | if (PyErr_Occurred()) SWIG_fail; | |
10235 | } | |
10236 | Py_INCREF(Py_None); resultobj = Py_None; | |
10237 | return resultobj; | |
10238 | fail: | |
10239 | return NULL; | |
10240 | } | |
10241 | ||
10242 | ||
10243 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10244 | PyObject *resultobj; | |
10245 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10246 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10247 | int arg3 = (int) wxID_ANY ; |
d14a1e28 RD |
10248 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10249 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10250 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10251 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10252 | long arg6 = (long) 0 ; | |
10253 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10254 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10255 | bool result; | |
10256 | wxPoint temp4 ; | |
10257 | wxSize temp5 ; | |
423f194a | 10258 | bool temp7 = False ; |
d14a1e28 RD |
10259 | PyObject * obj0 = 0 ; |
10260 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10261 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10262 | PyObject * obj3 = 0 ; |
10263 | PyObject * obj4 = 0 ; | |
8edf1c75 | 10264 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10265 | PyObject * obj6 = 0 ; |
10266 | char *kwnames[] = { | |
10267 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10268 | }; | |
10269 | ||
8edf1c75 | 10270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
10271 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10272 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
10273 | if (obj2) { |
10274 | { | |
10275 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10276 | if (PyErr_Occurred()) SWIG_fail; | |
10277 | } | |
10278 | } | |
d14a1e28 RD |
10279 | if (obj3) { |
10280 | { | |
10281 | arg4 = &temp4; | |
10282 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10283 | } | |
10284 | } | |
10285 | if (obj4) { | |
10286 | { | |
10287 | arg5 = &temp5; | |
10288 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10289 | } | |
10290 | } | |
8edf1c75 RD |
10291 | if (obj5) { |
10292 | { | |
10293 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10294 | if (PyErr_Occurred()) SWIG_fail; | |
10295 | } | |
10296 | } | |
d14a1e28 RD |
10297 | if (obj6) { |
10298 | { | |
10299 | arg7 = wxString_in_helper(obj6); | |
10300 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 10301 | temp7 = True; |
d14a1e28 RD |
10302 | } |
10303 | } | |
10304 | { | |
10305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10306 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10307 | ||
10308 | wxPyEndAllowThreads(__tstate); | |
10309 | if (PyErr_Occurred()) SWIG_fail; | |
10310 | } | |
8edf1c75 | 10311 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10312 | { |
10313 | if (temp7) | |
10314 | delete arg7; | |
10315 | } | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | { | |
10319 | if (temp7) | |
10320 | delete arg7; | |
10321 | } | |
10322 | return NULL; | |
10323 | } | |
10324 | ||
10325 | ||
10326 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10327 | PyObject *resultobj; | |
10328 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10329 | PyObject * obj0 = 0 ; | |
10330 | char *kwnames[] = { | |
10331 | (char *) "self", NULL | |
10332 | }; | |
10333 | ||
10334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10336 | { | |
10337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10338 | (arg1)->RefreshAll(); | |
10339 | ||
10340 | wxPyEndAllowThreads(__tstate); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
10343 | Py_INCREF(Py_None); resultobj = Py_None; | |
10344 | return resultobj; | |
10345 | fail: | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
10350 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10351 | PyObject *resultobj; | |
10352 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10353 | size_t arg2 ; | |
10354 | PyObject * obj0 = 0 ; | |
10355 | PyObject * obj1 = 0 ; | |
10356 | char *kwnames[] = { | |
10357 | (char *) "self",(char *) "count", NULL | |
10358 | }; | |
10359 | ||
10360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 10362 | { |
8edf1c75 | 10363 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
83448d71 RD |
10364 | if (PyErr_Occurred()) SWIG_fail; |
10365 | } | |
d14a1e28 RD |
10366 | { |
10367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10368 | (arg1)->SetItemCount(arg2); | |
10369 | ||
10370 | wxPyEndAllowThreads(__tstate); | |
10371 | if (PyErr_Occurred()) SWIG_fail; | |
10372 | } | |
10373 | Py_INCREF(Py_None); resultobj = Py_None; | |
10374 | return resultobj; | |
10375 | fail: | |
10376 | return NULL; | |
10377 | } | |
10378 | ||
10379 | ||
10380 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { | |
10381 | PyObject *obj; | |
10382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10383 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10384 | Py_INCREF(obj); | |
10385 | return Py_BuildValue((char *)""); | |
10386 | } | |
10387 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10388 | PyObject *resultobj; | |
10389 | wxTaskBarIcon *result; | |
10390 | char *kwnames[] = { | |
10391 | NULL | |
10392 | }; | |
10393 | ||
10394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10395 | { | |
10396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10397 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10398 | ||
10399 | wxPyEndAllowThreads(__tstate); | |
10400 | if (PyErr_Occurred()) SWIG_fail; | |
10401 | } | |
10402 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTaskBarIcon, 1); | |
10403 | return resultobj; | |
10404 | fail: | |
10405 | return NULL; | |
10406 | } | |
10407 | ||
10408 | ||
10409 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10410 | PyObject *resultobj; | |
10411 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10412 | PyObject * obj0 = 0 ; | |
10413 | char *kwnames[] = { | |
10414 | (char *) "self", NULL | |
10415 | }; | |
10416 | ||
10417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10418 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10419 | { | |
10420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10421 | delete arg1; | |
10422 | ||
10423 | wxPyEndAllowThreads(__tstate); | |
10424 | if (PyErr_Occurred()) SWIG_fail; | |
10425 | } | |
10426 | Py_INCREF(Py_None); resultobj = Py_None; | |
10427 | return resultobj; | |
10428 | fail: | |
10429 | return NULL; | |
10430 | } | |
10431 | ||
10432 | ||
10433 | static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10434 | PyObject *resultobj; | |
10435 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10436 | bool result; | |
10437 | PyObject * obj0 = 0 ; | |
10438 | char *kwnames[] = { | |
10439 | (char *) "self", NULL | |
10440 | }; | |
10441 | ||
10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsOk",kwnames,&obj0)) goto fail; | |
10443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10444 | { | |
10445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10446 | result = (bool)((wxTaskBarIcon const *)arg1)->IsOk(); | |
10447 | ||
10448 | wxPyEndAllowThreads(__tstate); | |
10449 | if (PyErr_Occurred()) SWIG_fail; | |
10450 | } | |
8edf1c75 | 10451 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10452 | return resultobj; |
10453 | fail: | |
10454 | return NULL; | |
10455 | } | |
10456 | ||
10457 | ||
10458 | static PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10459 | PyObject *resultobj; | |
10460 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10461 | bool result; | |
10462 | PyObject * obj0 = 0 ; | |
10463 | char *kwnames[] = { | |
10464 | (char *) "self", NULL | |
10465 | }; | |
10466 | ||
10467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsIconInstalled",kwnames,&obj0)) goto fail; | |
10468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10469 | { | |
10470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10471 | result = (bool)((wxTaskBarIcon const *)arg1)->IsIconInstalled(); | |
10472 | ||
10473 | wxPyEndAllowThreads(__tstate); | |
10474 | if (PyErr_Occurred()) SWIG_fail; | |
10475 | } | |
8edf1c75 | 10476 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10477 | return resultobj; |
10478 | fail: | |
10479 | return NULL; | |
10480 | } | |
10481 | ||
10482 | ||
10483 | static PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10484 | PyObject *resultobj; | |
10485 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10486 | wxIcon *arg2 = 0 ; | |
10487 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10488 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10489 | bool result; | |
423f194a | 10490 | bool temp3 = False ; |
d14a1e28 RD |
10491 | PyObject * obj0 = 0 ; |
10492 | PyObject * obj1 = 0 ; | |
10493 | PyObject * obj2 = 0 ; | |
10494 | char *kwnames[] = { | |
10495 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
10496 | }; | |
10497 | ||
10498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10500 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10501 | if (arg2 == NULL) { | |
10502 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10503 | } | |
10504 | if (obj2) { | |
10505 | { | |
10506 | arg3 = wxString_in_helper(obj2); | |
10507 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10508 | temp3 = True; |
d14a1e28 RD |
10509 | } |
10510 | } | |
10511 | { | |
10512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10513 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
10514 | ||
10515 | wxPyEndAllowThreads(__tstate); | |
10516 | if (PyErr_Occurred()) SWIG_fail; | |
10517 | } | |
8edf1c75 | 10518 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10519 | { |
10520 | if (temp3) | |
10521 | delete arg3; | |
10522 | } | |
10523 | return resultobj; | |
10524 | fail: | |
10525 | { | |
10526 | if (temp3) | |
10527 | delete arg3; | |
10528 | } | |
10529 | return NULL; | |
10530 | } | |
10531 | ||
10532 | ||
10533 | static PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10534 | PyObject *resultobj; | |
10535 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10536 | bool result; | |
10537 | PyObject * obj0 = 0 ; | |
10538 | char *kwnames[] = { | |
10539 | (char *) "self", NULL | |
10540 | }; | |
10541 | ||
10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_RemoveIcon",kwnames,&obj0)) goto fail; | |
10543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10544 | { | |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | result = (bool)(arg1)->RemoveIcon(); | |
10547 | ||
10548 | wxPyEndAllowThreads(__tstate); | |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
8edf1c75 | 10551 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10552 | return resultobj; |
10553 | fail: | |
10554 | return NULL; | |
10555 | } | |
10556 | ||
10557 | ||
10558 | static PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10559 | PyObject *resultobj; | |
10560 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10561 | wxMenu *arg2 = (wxMenu *) 0 ; | |
10562 | bool result; | |
10563 | PyObject * obj0 = 0 ; | |
10564 | PyObject * obj1 = 0 ; | |
10565 | char *kwnames[] = { | |
10566 | (char *) "self",(char *) "menu", NULL | |
10567 | }; | |
10568 | ||
10569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) goto fail; | |
10570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10571 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10572 | { | |
10573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10574 | result = (bool)(arg1)->PopupMenu(arg2); | |
10575 | ||
10576 | wxPyEndAllowThreads(__tstate); | |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
10578 | } | |
8edf1c75 | 10579 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10580 | return resultobj; |
10581 | fail: | |
10582 | return NULL; | |
10583 | } | |
10584 | ||
10585 | ||
10586 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
10587 | PyObject *obj; | |
10588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10589 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
10590 | Py_INCREF(obj); | |
10591 | return Py_BuildValue((char *)""); | |
10592 | } | |
10593 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10594 | PyObject *resultobj; | |
10595 | wxEventType arg1 ; | |
10596 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
10597 | wxTaskBarIconEvent *result; | |
8edf1c75 | 10598 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10599 | PyObject * obj1 = 0 ; |
10600 | char *kwnames[] = { | |
10601 | (char *) "evtType",(char *) "tbIcon", NULL | |
10602 | }; | |
10603 | ||
8edf1c75 RD |
10604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; |
10605 | { | |
10606 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
d14a1e28 RD |
10609 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10610 | { | |
10611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10612 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
10613 | ||
10614 | wxPyEndAllowThreads(__tstate); | |
10615 | if (PyErr_Occurred()) SWIG_fail; | |
10616 | } | |
10617 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
10618 | return resultobj; | |
10619 | fail: | |
10620 | return NULL; | |
10621 | } | |
10622 | ||
10623 | ||
10624 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
10625 | PyObject *obj; | |
10626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10627 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
10628 | Py_INCREF(obj); | |
10629 | return Py_BuildValue((char *)""); | |
10630 | } | |
8edf1c75 | 10631 | static int _wrap_FileSelectorPromptStr_set(PyObject *) { |
d03fd34d RD |
10632 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); |
10633 | return 1; | |
10634 | } | |
10635 | ||
10636 | ||
10637 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
10638 | PyObject *pyobj; | |
10639 | ||
10640 | { | |
10641 | #if wxUSE_UNICODE | |
10642 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10643 | #else | |
10644 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10645 | #endif | |
10646 | } | |
10647 | return pyobj; | |
10648 | } | |
10649 | ||
10650 | ||
8edf1c75 | 10651 | static int _wrap_DirSelectorPromptStr_set(PyObject *) { |
d03fd34d RD |
10652 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); |
10653 | return 1; | |
10654 | } | |
10655 | ||
10656 | ||
10657 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
10658 | PyObject *pyobj; | |
10659 | ||
10660 | { | |
10661 | #if wxUSE_UNICODE | |
10662 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10663 | #else | |
10664 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10665 | #endif | |
10666 | } | |
10667 | return pyobj; | |
10668 | } | |
10669 | ||
10670 | ||
8edf1c75 | 10671 | static int _wrap_DirDialogNameStr_set(PyObject *) { |
d03fd34d RD |
10672 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); |
10673 | return 1; | |
10674 | } | |
10675 | ||
10676 | ||
10677 | static PyObject *_wrap_DirDialogNameStr_get() { | |
10678 | PyObject *pyobj; | |
10679 | ||
10680 | { | |
10681 | #if wxUSE_UNICODE | |
10682 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10683 | #else | |
10684 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10685 | #endif | |
10686 | } | |
10687 | return pyobj; | |
10688 | } | |
10689 | ||
10690 | ||
8edf1c75 | 10691 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *) { |
d03fd34d RD |
10692 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); |
10693 | return 1; | |
10694 | } | |
10695 | ||
10696 | ||
10697 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
10698 | PyObject *pyobj; | |
10699 | ||
10700 | { | |
10701 | #if wxUSE_UNICODE | |
10702 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10703 | #else | |
10704 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10705 | #endif | |
10706 | } | |
10707 | return pyobj; | |
10708 | } | |
10709 | ||
10710 | ||
8edf1c75 | 10711 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *) { |
d03fd34d RD |
10712 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); |
10713 | return 1; | |
10714 | } | |
10715 | ||
10716 | ||
10717 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
10718 | PyObject *pyobj; | |
10719 | ||
10720 | { | |
10721 | #if wxUSE_UNICODE | |
10722 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10723 | #else | |
10724 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10725 | #endif | |
10726 | } | |
10727 | return pyobj; | |
10728 | } | |
10729 | ||
10730 | ||
8edf1c75 | 10731 | static int _wrap_MessageBoxCaptionStr_set(PyObject *) { |
d03fd34d RD |
10732 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); |
10733 | return 1; | |
10734 | } | |
10735 | ||
10736 | ||
10737 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
10738 | PyObject *pyobj; | |
10739 | ||
10740 | { | |
10741 | #if wxUSE_UNICODE | |
10742 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10743 | #else | |
10744 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10745 | #endif | |
10746 | } | |
10747 | return pyobj; | |
10748 | } | |
10749 | ||
10750 | ||
d14a1e28 RD |
10751 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
10752 | PyObject *resultobj; | |
10753 | wxColourData *result; | |
10754 | char *kwnames[] = { | |
10755 | NULL | |
10756 | }; | |
10757 | ||
10758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
10759 | { | |
10760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10761 | result = (wxColourData *)new wxColourData(); | |
10762 | ||
10763 | wxPyEndAllowThreads(__tstate); | |
10764 | if (PyErr_Occurred()) SWIG_fail; | |
10765 | } | |
10766 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourData, 1); | |
10767 | return resultobj; | |
10768 | fail: | |
10769 | return NULL; | |
10770 | } | |
10771 | ||
10772 | ||
10773 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10774 | PyObject *resultobj; | |
10775 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10776 | PyObject * obj0 = 0 ; | |
10777 | char *kwnames[] = { | |
10778 | (char *) "self", NULL | |
10779 | }; | |
10780 | ||
10781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
10782 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10783 | { | |
10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10785 | delete arg1; | |
10786 | ||
10787 | wxPyEndAllowThreads(__tstate); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
10790 | Py_INCREF(Py_None); resultobj = Py_None; | |
10791 | return resultobj; | |
10792 | fail: | |
10793 | return NULL; | |
10794 | } | |
10795 | ||
10796 | ||
10797 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10798 | PyObject *resultobj; | |
10799 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10800 | bool result; | |
10801 | PyObject * obj0 = 0 ; | |
10802 | char *kwnames[] = { | |
10803 | (char *) "self", NULL | |
10804 | }; | |
10805 | ||
10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
10807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10808 | { | |
10809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10810 | result = (bool)(arg1)->GetChooseFull(); | |
10811 | ||
10812 | wxPyEndAllowThreads(__tstate); | |
10813 | if (PyErr_Occurred()) SWIG_fail; | |
10814 | } | |
8edf1c75 | 10815 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
10816 | return resultobj; |
10817 | fail: | |
10818 | return NULL; | |
10819 | } | |
10820 | ||
10821 | ||
10822 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10823 | PyObject *resultobj; | |
10824 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10825 | wxColour result; | |
10826 | PyObject * obj0 = 0 ; | |
10827 | char *kwnames[] = { | |
10828 | (char *) "self", NULL | |
10829 | }; | |
10830 | ||
10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
10832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | result = (arg1)->GetColour(); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | { | |
10841 | wxColour * resultptr; | |
10842 | resultptr = new wxColour((wxColour &) result); | |
10843 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10844 | } | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj; | |
10853 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10854 | int arg2 ; | |
10855 | wxColour result; | |
10856 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10858 | char *kwnames[] = { |
10859 | (char *) "self",(char *) "i", NULL | |
10860 | }; | |
10861 | ||
8edf1c75 | 10862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10864 | { |
10865 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10866 | if (PyErr_Occurred()) SWIG_fail; | |
10867 | } | |
d14a1e28 RD |
10868 | { |
10869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10870 | result = (arg1)->GetCustomColour(arg2); | |
10871 | ||
10872 | wxPyEndAllowThreads(__tstate); | |
10873 | if (PyErr_Occurred()) SWIG_fail; | |
10874 | } | |
10875 | { | |
10876 | wxColour * resultptr; | |
10877 | resultptr = new wxColour((wxColour &) result); | |
10878 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10879 | } | |
10880 | return resultobj; | |
10881 | fail: | |
10882 | return NULL; | |
10883 | } | |
10884 | ||
10885 | ||
10886 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10887 | PyObject *resultobj; | |
10888 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10889 | int arg2 ; | |
10890 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10891 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10892 | char *kwnames[] = { |
10893 | (char *) "self",(char *) "flag", NULL | |
10894 | }; | |
10895 | ||
8edf1c75 | 10896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10898 | { |
10899 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10900 | if (PyErr_Occurred()) SWIG_fail; | |
10901 | } | |
d14a1e28 RD |
10902 | { |
10903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10904 | (arg1)->SetChooseFull(arg2); | |
10905 | ||
10906 | wxPyEndAllowThreads(__tstate); | |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
10908 | } | |
10909 | Py_INCREF(Py_None); resultobj = Py_None; | |
10910 | return resultobj; | |
10911 | fail: | |
10912 | return NULL; | |
10913 | } | |
10914 | ||
10915 | ||
10916 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10917 | PyObject *resultobj; | |
10918 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10919 | wxColour *arg2 = 0 ; | |
10920 | wxColour temp2 ; | |
10921 | PyObject * obj0 = 0 ; | |
10922 | PyObject * obj1 = 0 ; | |
10923 | char *kwnames[] = { | |
10924 | (char *) "self",(char *) "colour", NULL | |
10925 | }; | |
10926 | ||
10927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
10928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10929 | { | |
10930 | arg2 = &temp2; | |
10931 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10932 | } | |
10933 | { | |
10934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10935 | (arg1)->SetColour((wxColour const &)*arg2); | |
10936 | ||
10937 | wxPyEndAllowThreads(__tstate); | |
10938 | if (PyErr_Occurred()) SWIG_fail; | |
10939 | } | |
10940 | Py_INCREF(Py_None); resultobj = Py_None; | |
10941 | return resultobj; | |
10942 | fail: | |
10943 | return NULL; | |
10944 | } | |
10945 | ||
10946 | ||
10947 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10948 | PyObject *resultobj; | |
10949 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10950 | int arg2 ; | |
10951 | wxColour *arg3 = 0 ; | |
10952 | wxColour temp3 ; | |
10953 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10955 | PyObject * obj2 = 0 ; |
10956 | char *kwnames[] = { | |
10957 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
10958 | }; | |
10959 | ||
8edf1c75 | 10960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
10962 | { |
10963 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10964 | if (PyErr_Occurred()) SWIG_fail; | |
10965 | } | |
d14a1e28 RD |
10966 | { |
10967 | arg3 = &temp3; | |
10968 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10969 | } | |
10970 | { | |
10971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10972 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
10973 | ||
10974 | wxPyEndAllowThreads(__tstate); | |
10975 | if (PyErr_Occurred()) SWIG_fail; | |
10976 | } | |
10977 | Py_INCREF(Py_None); resultobj = Py_None; | |
10978 | return resultobj; | |
10979 | fail: | |
10980 | return NULL; | |
10981 | } | |
10982 | ||
10983 | ||
10984 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
10985 | PyObject *obj; | |
10986 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10987 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
10988 | Py_INCREF(obj); | |
10989 | return Py_BuildValue((char *)""); | |
10990 | } | |
10991 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10992 | PyObject *resultobj; | |
10993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10994 | wxColourData *arg2 = (wxColourData *) NULL ; | |
10995 | wxColourDialog *result; | |
10996 | PyObject * obj0 = 0 ; | |
10997 | PyObject * obj1 = 0 ; | |
10998 | char *kwnames[] = { | |
10999 | (char *) "parent",(char *) "data", NULL | |
11000 | }; | |
11001 | ||
11002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
11003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11004 | if (obj1) { | |
11005 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11006 | } | |
11007 | { | |
11008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11009 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
11010 | ||
11011 | wxPyEndAllowThreads(__tstate); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | } | |
11014 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDialog, 1); | |
11015 | return resultobj; | |
11016 | fail: | |
11017 | return NULL; | |
11018 | } | |
11019 | ||
11020 | ||
11021 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11022 | PyObject *resultobj; | |
11023 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11024 | wxColourData *result; | |
11025 | PyObject * obj0 = 0 ; | |
11026 | char *kwnames[] = { | |
11027 | (char *) "self", NULL | |
11028 | }; | |
11029 | ||
11030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
11031 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11032 | { | |
11033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11034 | { | |
11035 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
11036 | result = (wxColourData *) &_result_ref; | |
11037 | } | |
11038 | ||
11039 | wxPyEndAllowThreads(__tstate); | |
11040 | if (PyErr_Occurred()) SWIG_fail; | |
11041 | } | |
11042 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourData, 0); | |
11043 | return resultobj; | |
11044 | fail: | |
11045 | return NULL; | |
11046 | } | |
11047 | ||
11048 | ||
11049 | static PyObject *_wrap_ColourDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11050 | PyObject *resultobj; | |
11051 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
11052 | int result; | |
11053 | PyObject * obj0 = 0 ; | |
11054 | char *kwnames[] = { | |
11055 | (char *) "self", NULL | |
11056 | }; | |
11057 | ||
11058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_ShowModal",kwnames,&obj0)) goto fail; | |
11059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11060 | { | |
11061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11062 | result = (int)(arg1)->ShowModal(); | |
11063 | ||
11064 | wxPyEndAllowThreads(__tstate); | |
11065 | if (PyErr_Occurred()) SWIG_fail; | |
11066 | } | |
8edf1c75 | 11067 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11068 | return resultobj; |
11069 | fail: | |
11070 | return NULL; | |
11071 | } | |
11072 | ||
11073 | ||
11074 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11075 | PyObject *obj; | |
11076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11077 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11078 | Py_INCREF(obj); | |
11079 | return Py_BuildValue((char *)""); | |
11080 | } | |
11081 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11082 | PyObject *resultobj; | |
11083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11084 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11085 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11086 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11087 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11088 | long arg4 = (long) 0 ; | |
11089 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11090 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11091 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11092 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11093 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11094 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11095 | wxDirDialog *result; | |
423f194a RD |
11096 | bool temp2 = False ; |
11097 | bool temp3 = False ; | |
d14a1e28 RD |
11098 | wxPoint temp5 ; |
11099 | wxSize temp6 ; | |
423f194a | 11100 | bool temp7 = False ; |
d14a1e28 RD |
11101 | PyObject * obj0 = 0 ; |
11102 | PyObject * obj1 = 0 ; | |
11103 | PyObject * obj2 = 0 ; | |
8edf1c75 | 11104 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11105 | PyObject * obj4 = 0 ; |
11106 | PyObject * obj5 = 0 ; | |
11107 | PyObject * obj6 = 0 ; | |
11108 | char *kwnames[] = { | |
11109 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11110 | }; | |
11111 | ||
8edf1c75 | 11112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
11113 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11114 | if (obj1) { | |
11115 | { | |
11116 | arg2 = wxString_in_helper(obj1); | |
11117 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11118 | temp2 = True; |
d14a1e28 RD |
11119 | } |
11120 | } | |
11121 | if (obj2) { | |
11122 | { | |
11123 | arg3 = wxString_in_helper(obj2); | |
11124 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11125 | temp3 = True; |
d14a1e28 RD |
11126 | } |
11127 | } | |
8edf1c75 RD |
11128 | if (obj3) { |
11129 | { | |
11130 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
11132 | } | |
11133 | } | |
d14a1e28 RD |
11134 | if (obj4) { |
11135 | { | |
11136 | arg5 = &temp5; | |
11137 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11138 | } | |
11139 | } | |
11140 | if (obj5) { | |
11141 | { | |
11142 | arg6 = &temp6; | |
11143 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11144 | } | |
11145 | } | |
11146 | if (obj6) { | |
11147 | { | |
11148 | arg7 = wxString_in_helper(obj6); | |
11149 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 11150 | temp7 = True; |
d14a1e28 RD |
11151 | } |
11152 | } | |
11153 | { | |
11154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11155 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11156 | ||
11157 | wxPyEndAllowThreads(__tstate); | |
11158 | if (PyErr_Occurred()) SWIG_fail; | |
11159 | } | |
11160 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirDialog, 1); | |
11161 | { | |
11162 | if (temp2) | |
11163 | delete arg2; | |
11164 | } | |
11165 | { | |
11166 | if (temp3) | |
11167 | delete arg3; | |
11168 | } | |
11169 | { | |
11170 | if (temp7) | |
11171 | delete arg7; | |
11172 | } | |
11173 | return resultobj; | |
11174 | fail: | |
11175 | { | |
11176 | if (temp2) | |
11177 | delete arg2; | |
11178 | } | |
11179 | { | |
11180 | if (temp3) | |
11181 | delete arg3; | |
11182 | } | |
11183 | { | |
11184 | if (temp7) | |
11185 | delete arg7; | |
11186 | } | |
11187 | return NULL; | |
11188 | } | |
11189 | ||
11190 | ||
11191 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11192 | PyObject *resultobj; | |
11193 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11194 | wxString result; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | char *kwnames[] = { | |
11197 | (char *) "self", NULL | |
11198 | }; | |
11199 | ||
11200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11202 | { | |
11203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11204 | result = (arg1)->GetPath(); | |
11205 | ||
11206 | wxPyEndAllowThreads(__tstate); | |
11207 | if (PyErr_Occurred()) SWIG_fail; | |
11208 | } | |
11209 | { | |
11210 | #if wxUSE_UNICODE | |
11211 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11212 | #else | |
11213 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11214 | #endif | |
11215 | } | |
11216 | return resultobj; | |
11217 | fail: | |
11218 | return NULL; | |
11219 | } | |
11220 | ||
11221 | ||
11222 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11223 | PyObject *resultobj; | |
11224 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11225 | wxString result; | |
11226 | PyObject * obj0 = 0 ; | |
11227 | char *kwnames[] = { | |
11228 | (char *) "self", NULL | |
11229 | }; | |
11230 | ||
11231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11233 | { | |
11234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11235 | result = (arg1)->GetMessage(); | |
11236 | ||
11237 | wxPyEndAllowThreads(__tstate); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | } | |
11240 | { | |
11241 | #if wxUSE_UNICODE | |
11242 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11243 | #else | |
11244 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11245 | #endif | |
11246 | } | |
11247 | return resultobj; | |
11248 | fail: | |
11249 | return NULL; | |
11250 | } | |
11251 | ||
11252 | ||
11253 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11254 | PyObject *resultobj; | |
11255 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11256 | long result; | |
11257 | PyObject * obj0 = 0 ; | |
11258 | char *kwnames[] = { | |
11259 | (char *) "self", NULL | |
11260 | }; | |
11261 | ||
11262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11264 | { | |
11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11266 | result = (long)(arg1)->GetStyle(); | |
11267 | ||
11268 | wxPyEndAllowThreads(__tstate); | |
11269 | if (PyErr_Occurred()) SWIG_fail; | |
11270 | } | |
8edf1c75 | 11271 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
11272 | return resultobj; |
11273 | fail: | |
11274 | return NULL; | |
11275 | } | |
11276 | ||
11277 | ||
11278 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11279 | PyObject *resultobj; | |
11280 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11281 | wxString *arg2 = 0 ; | |
423f194a | 11282 | bool temp2 = False ; |
d14a1e28 RD |
11283 | PyObject * obj0 = 0 ; |
11284 | PyObject * obj1 = 0 ; | |
11285 | char *kwnames[] = { | |
11286 | (char *) "self",(char *) "message", NULL | |
11287 | }; | |
11288 | ||
11289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11291 | { | |
11292 | arg2 = wxString_in_helper(obj1); | |
11293 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11294 | temp2 = True; |
d14a1e28 RD |
11295 | } |
11296 | { | |
11297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11298 | (arg1)->SetMessage((wxString const &)*arg2); | |
11299 | ||
11300 | wxPyEndAllowThreads(__tstate); | |
11301 | if (PyErr_Occurred()) SWIG_fail; | |
11302 | } | |
11303 | Py_INCREF(Py_None); resultobj = Py_None; | |
11304 | { | |
11305 | if (temp2) | |
11306 | delete arg2; | |
11307 | } | |
11308 | return resultobj; | |
11309 | fail: | |
11310 | { | |
11311 | if (temp2) | |
11312 | delete arg2; | |
11313 | } | |
11314 | return NULL; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11319 | PyObject *resultobj; | |
11320 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11321 | wxString *arg2 = 0 ; | |
423f194a | 11322 | bool temp2 = False ; |
d14a1e28 RD |
11323 | PyObject * obj0 = 0 ; |
11324 | PyObject * obj1 = 0 ; | |
11325 | char *kwnames[] = { | |
11326 | (char *) "self",(char *) "path", NULL | |
11327 | }; | |
11328 | ||
11329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11331 | { | |
11332 | arg2 = wxString_in_helper(obj1); | |
11333 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11334 | temp2 = True; |
d14a1e28 RD |
11335 | } |
11336 | { | |
11337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11338 | (arg1)->SetPath((wxString const &)*arg2); | |
11339 | ||
11340 | wxPyEndAllowThreads(__tstate); | |
11341 | if (PyErr_Occurred()) SWIG_fail; | |
11342 | } | |
11343 | Py_INCREF(Py_None); resultobj = Py_None; | |
11344 | { | |
11345 | if (temp2) | |
11346 | delete arg2; | |
11347 | } | |
11348 | return resultobj; | |
11349 | fail: | |
11350 | { | |
11351 | if (temp2) | |
11352 | delete arg2; | |
11353 | } | |
11354 | return NULL; | |
11355 | } | |
11356 | ||
11357 | ||
11358 | static PyObject *_wrap_DirDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11359 | PyObject *resultobj; | |
11360 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11361 | int result; | |
11362 | PyObject * obj0 = 0 ; | |
11363 | char *kwnames[] = { | |
11364 | (char *) "self", NULL | |
11365 | }; | |
11366 | ||
11367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_ShowModal",kwnames,&obj0)) goto fail; | |
11368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11369 | { | |
11370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11371 | result = (int)(arg1)->ShowModal(); | |
11372 | ||
11373 | wxPyEndAllowThreads(__tstate); | |
11374 | if (PyErr_Occurred()) SWIG_fail; | |
11375 | } | |
8edf1c75 | 11376 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11377 | return resultobj; |
11378 | fail: | |
11379 | return NULL; | |
11380 | } | |
11381 | ||
11382 | ||
11383 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11384 | PyObject *obj; | |
11385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11386 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11387 | Py_INCREF(obj); | |
11388 | return Py_BuildValue((char *)""); | |
11389 | } | |
11390 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj; | |
11392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11393 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11394 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11395 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11396 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11397 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11398 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11399 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11400 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11401 | long arg6 = (long) 0 ; | |
11402 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11403 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11404 | wxFileDialog *result; | |
423f194a RD |
11405 | bool temp2 = False ; |
11406 | bool temp3 = False ; | |
11407 | bool temp4 = False ; | |
11408 | bool temp5 = False ; | |
d14a1e28 RD |
11409 | wxPoint temp7 ; |
11410 | PyObject * obj0 = 0 ; | |
11411 | PyObject * obj1 = 0 ; | |
11412 | PyObject * obj2 = 0 ; | |
11413 | PyObject * obj3 = 0 ; | |
11414 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11415 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11416 | PyObject * obj6 = 0 ; |
11417 | char *kwnames[] = { | |
11418 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11419 | }; | |
11420 | ||
8edf1c75 | 11421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
11422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11423 | if (obj1) { | |
11424 | { | |
11425 | arg2 = wxString_in_helper(obj1); | |
11426 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11427 | temp2 = True; |
d14a1e28 RD |
11428 | } |
11429 | } | |
11430 | if (obj2) { | |
11431 | { | |
11432 | arg3 = wxString_in_helper(obj2); | |
11433 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11434 | temp3 = True; |
d14a1e28 RD |
11435 | } |
11436 | } | |
11437 | if (obj3) { | |
11438 | { | |
11439 | arg4 = wxString_in_helper(obj3); | |
11440 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11441 | temp4 = True; |
d14a1e28 RD |
11442 | } |
11443 | } | |
11444 | if (obj4) { | |
11445 | { | |
11446 | arg5 = wxString_in_helper(obj4); | |
11447 | if (arg5 == NULL) SWIG_fail; | |
423f194a | 11448 | temp5 = True; |
d14a1e28 RD |
11449 | } |
11450 | } | |
8edf1c75 RD |
11451 | if (obj5) { |
11452 | { | |
11453 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11454 | if (PyErr_Occurred()) SWIG_fail; | |
11455 | } | |
11456 | } | |
d14a1e28 RD |
11457 | if (obj6) { |
11458 | { | |
11459 | arg7 = &temp7; | |
11460 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11461 | } | |
11462 | } | |
11463 | { | |
11464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11465 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
11466 | ||
11467 | wxPyEndAllowThreads(__tstate); | |
11468 | if (PyErr_Occurred()) SWIG_fail; | |
11469 | } | |
11470 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDialog, 1); | |
11471 | { | |
11472 | if (temp2) | |
11473 | delete arg2; | |
11474 | } | |
11475 | { | |
11476 | if (temp3) | |
11477 | delete arg3; | |
11478 | } | |
11479 | { | |
11480 | if (temp4) | |
11481 | delete arg4; | |
11482 | } | |
11483 | { | |
11484 | if (temp5) | |
11485 | delete arg5; | |
11486 | } | |
11487 | return resultobj; | |
11488 | fail: | |
11489 | { | |
11490 | if (temp2) | |
11491 | delete arg2; | |
11492 | } | |
11493 | { | |
11494 | if (temp3) | |
11495 | delete arg3; | |
11496 | } | |
11497 | { | |
11498 | if (temp4) | |
11499 | delete arg4; | |
11500 | } | |
11501 | { | |
11502 | if (temp5) | |
11503 | delete arg5; | |
11504 | } | |
11505 | return NULL; | |
11506 | } | |
11507 | ||
11508 | ||
11509 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11510 | PyObject *resultobj; | |
11511 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11512 | wxString *arg2 = 0 ; | |
423f194a | 11513 | bool temp2 = False ; |
d14a1e28 RD |
11514 | PyObject * obj0 = 0 ; |
11515 | PyObject * obj1 = 0 ; | |
11516 | char *kwnames[] = { | |
11517 | (char *) "self",(char *) "message", NULL | |
11518 | }; | |
11519 | ||
11520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11522 | { | |
11523 | arg2 = wxString_in_helper(obj1); | |
11524 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11525 | temp2 = True; |
d14a1e28 RD |
11526 | } |
11527 | { | |
11528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11529 | (arg1)->SetMessage((wxString const &)*arg2); | |
11530 | ||
11531 | wxPyEndAllowThreads(__tstate); | |
11532 | if (PyErr_Occurred()) SWIG_fail; | |
11533 | } | |
11534 | Py_INCREF(Py_None); resultobj = Py_None; | |
11535 | { | |
11536 | if (temp2) | |
11537 | delete arg2; | |
11538 | } | |
11539 | return resultobj; | |
11540 | fail: | |
11541 | { | |
11542 | if (temp2) | |
11543 | delete arg2; | |
11544 | } | |
11545 | return NULL; | |
11546 | } | |
11547 | ||
11548 | ||
11549 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11550 | PyObject *resultobj; | |
11551 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11552 | wxString *arg2 = 0 ; | |
423f194a | 11553 | bool temp2 = False ; |
d14a1e28 RD |
11554 | PyObject * obj0 = 0 ; |
11555 | PyObject * obj1 = 0 ; | |
11556 | char *kwnames[] = { | |
11557 | (char *) "self",(char *) "path", NULL | |
11558 | }; | |
11559 | ||
11560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11562 | { | |
11563 | arg2 = wxString_in_helper(obj1); | |
11564 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11565 | temp2 = True; |
d14a1e28 RD |
11566 | } |
11567 | { | |
11568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11569 | (arg1)->SetPath((wxString const &)*arg2); | |
11570 | ||
11571 | wxPyEndAllowThreads(__tstate); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | } | |
11574 | Py_INCREF(Py_None); resultobj = Py_None; | |
11575 | { | |
11576 | if (temp2) | |
11577 | delete arg2; | |
11578 | } | |
11579 | return resultobj; | |
11580 | fail: | |
11581 | { | |
11582 | if (temp2) | |
11583 | delete arg2; | |
11584 | } | |
11585 | return NULL; | |
11586 | } | |
11587 | ||
11588 | ||
11589 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11590 | PyObject *resultobj; | |
11591 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11592 | wxString *arg2 = 0 ; | |
423f194a | 11593 | bool temp2 = False ; |
d14a1e28 RD |
11594 | PyObject * obj0 = 0 ; |
11595 | PyObject * obj1 = 0 ; | |
11596 | char *kwnames[] = { | |
11597 | (char *) "self",(char *) "dir", NULL | |
11598 | }; | |
11599 | ||
11600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
11601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11602 | { | |
11603 | arg2 = wxString_in_helper(obj1); | |
11604 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11605 | temp2 = True; |
d14a1e28 RD |
11606 | } |
11607 | { | |
11608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11609 | (arg1)->SetDirectory((wxString const &)*arg2); | |
11610 | ||
11611 | wxPyEndAllowThreads(__tstate); | |
11612 | if (PyErr_Occurred()) SWIG_fail; | |
11613 | } | |
11614 | Py_INCREF(Py_None); resultobj = Py_None; | |
11615 | { | |
11616 | if (temp2) | |
11617 | delete arg2; | |
11618 | } | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | { | |
11622 | if (temp2) | |
11623 | delete arg2; | |
11624 | } | |
11625 | return NULL; | |
11626 | } | |
11627 | ||
11628 | ||
11629 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11630 | PyObject *resultobj; | |
11631 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11632 | wxString *arg2 = 0 ; | |
423f194a | 11633 | bool temp2 = False ; |
d14a1e28 RD |
11634 | PyObject * obj0 = 0 ; |
11635 | PyObject * obj1 = 0 ; | |
11636 | char *kwnames[] = { | |
11637 | (char *) "self",(char *) "name", NULL | |
11638 | }; | |
11639 | ||
11640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
11641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11642 | { | |
11643 | arg2 = wxString_in_helper(obj1); | |
11644 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11645 | temp2 = True; |
d14a1e28 RD |
11646 | } |
11647 | { | |
11648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11649 | (arg1)->SetFilename((wxString const &)*arg2); | |
11650 | ||
11651 | wxPyEndAllowThreads(__tstate); | |
11652 | if (PyErr_Occurred()) SWIG_fail; | |
11653 | } | |
11654 | Py_INCREF(Py_None); resultobj = Py_None; | |
11655 | { | |
11656 | if (temp2) | |
11657 | delete arg2; | |
11658 | } | |
11659 | return resultobj; | |
11660 | fail: | |
11661 | { | |
11662 | if (temp2) | |
11663 | delete arg2; | |
11664 | } | |
11665 | return NULL; | |
11666 | } | |
11667 | ||
11668 | ||
11669 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11670 | PyObject *resultobj; | |
11671 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11672 | wxString *arg2 = 0 ; | |
423f194a | 11673 | bool temp2 = False ; |
d14a1e28 RD |
11674 | PyObject * obj0 = 0 ; |
11675 | PyObject * obj1 = 0 ; | |
11676 | char *kwnames[] = { | |
11677 | (char *) "self",(char *) "wildCard", NULL | |
11678 | }; | |
11679 | ||
11680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
11681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11682 | { | |
11683 | arg2 = wxString_in_helper(obj1); | |
11684 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11685 | temp2 = True; |
d14a1e28 RD |
11686 | } |
11687 | { | |
11688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11689 | (arg1)->SetWildcard((wxString const &)*arg2); | |
11690 | ||
11691 | wxPyEndAllowThreads(__tstate); | |
11692 | if (PyErr_Occurred()) SWIG_fail; | |
11693 | } | |
11694 | Py_INCREF(Py_None); resultobj = Py_None; | |
11695 | { | |
11696 | if (temp2) | |
11697 | delete arg2; | |
11698 | } | |
11699 | return resultobj; | |
11700 | fail: | |
11701 | { | |
11702 | if (temp2) | |
11703 | delete arg2; | |
11704 | } | |
11705 | return NULL; | |
11706 | } | |
11707 | ||
11708 | ||
11709 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11710 | PyObject *resultobj; | |
11711 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11712 | long arg2 ; | |
11713 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11714 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11715 | char *kwnames[] = { |
11716 | (char *) "self",(char *) "style", NULL | |
11717 | }; | |
11718 | ||
8edf1c75 | 11719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11721 | { |
11722 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
11723 | if (PyErr_Occurred()) SWIG_fail; | |
11724 | } | |
d14a1e28 RD |
11725 | { |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | (arg1)->SetStyle(arg2); | |
11728 | ||
11729 | wxPyEndAllowThreads(__tstate); | |
11730 | if (PyErr_Occurred()) SWIG_fail; | |
11731 | } | |
11732 | Py_INCREF(Py_None); resultobj = Py_None; | |
11733 | return resultobj; | |
11734 | fail: | |
11735 | return NULL; | |
11736 | } | |
11737 | ||
11738 | ||
11739 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11740 | PyObject *resultobj; | |
11741 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11742 | int arg2 ; | |
11743 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11744 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11745 | char *kwnames[] = { |
11746 | (char *) "self",(char *) "filterIndex", NULL | |
11747 | }; | |
11748 | ||
8edf1c75 | 11749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
11751 | { |
11752 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11753 | if (PyErr_Occurred()) SWIG_fail; | |
11754 | } | |
d14a1e28 RD |
11755 | { |
11756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11757 | (arg1)->SetFilterIndex(arg2); | |
11758 | ||
11759 | wxPyEndAllowThreads(__tstate); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
11761 | } | |
11762 | Py_INCREF(Py_None); resultobj = Py_None; | |
11763 | return resultobj; | |
11764 | fail: | |
11765 | return NULL; | |
11766 | } | |
11767 | ||
11768 | ||
11769 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11770 | PyObject *resultobj; | |
11771 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11772 | wxString result; | |
11773 | PyObject * obj0 = 0 ; | |
11774 | char *kwnames[] = { | |
11775 | (char *) "self", NULL | |
11776 | }; | |
11777 | ||
11778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11780 | { | |
11781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11782 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
11783 | ||
11784 | wxPyEndAllowThreads(__tstate); | |
11785 | if (PyErr_Occurred()) SWIG_fail; | |
11786 | } | |
11787 | { | |
11788 | #if wxUSE_UNICODE | |
11789 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11790 | #else | |
11791 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11792 | #endif | |
11793 | } | |
11794 | return resultobj; | |
11795 | fail: | |
11796 | return NULL; | |
11797 | } | |
11798 | ||
11799 | ||
11800 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11801 | PyObject *resultobj; | |
11802 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11803 | wxString result; | |
11804 | PyObject * obj0 = 0 ; | |
11805 | char *kwnames[] = { | |
11806 | (char *) "self", NULL | |
11807 | }; | |
11808 | ||
11809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
11810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11811 | { | |
11812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11813 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
11814 | ||
11815 | wxPyEndAllowThreads(__tstate); | |
11816 | if (PyErr_Occurred()) SWIG_fail; | |
11817 | } | |
11818 | { | |
11819 | #if wxUSE_UNICODE | |
11820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11821 | #else | |
11822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11823 | #endif | |
11824 | } | |
11825 | return resultobj; | |
11826 | fail: | |
11827 | return NULL; | |
11828 | } | |
11829 | ||
11830 | ||
11831 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11832 | PyObject *resultobj; | |
11833 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11834 | wxString result; | |
11835 | PyObject * obj0 = 0 ; | |
11836 | char *kwnames[] = { | |
11837 | (char *) "self", NULL | |
11838 | }; | |
11839 | ||
11840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
11841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11842 | { | |
11843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11844 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
11845 | ||
11846 | wxPyEndAllowThreads(__tstate); | |
11847 | if (PyErr_Occurred()) SWIG_fail; | |
11848 | } | |
11849 | { | |
11850 | #if wxUSE_UNICODE | |
11851 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11852 | #else | |
11853 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11854 | #endif | |
11855 | } | |
11856 | return resultobj; | |
11857 | fail: | |
11858 | return NULL; | |
11859 | } | |
11860 | ||
11861 | ||
11862 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11863 | PyObject *resultobj; | |
11864 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11865 | wxString result; | |
11866 | PyObject * obj0 = 0 ; | |
11867 | char *kwnames[] = { | |
11868 | (char *) "self", NULL | |
11869 | }; | |
11870 | ||
11871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
11872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11873 | { | |
11874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11875 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
11876 | ||
11877 | wxPyEndAllowThreads(__tstate); | |
11878 | if (PyErr_Occurred()) SWIG_fail; | |
11879 | } | |
11880 | { | |
11881 | #if wxUSE_UNICODE | |
11882 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11883 | #else | |
11884 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11885 | #endif | |
11886 | } | |
11887 | return resultobj; | |
11888 | fail: | |
11889 | return NULL; | |
11890 | } | |
11891 | ||
11892 | ||
11893 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11894 | PyObject *resultobj; | |
11895 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11896 | wxString result; | |
11897 | PyObject * obj0 = 0 ; | |
11898 | char *kwnames[] = { | |
11899 | (char *) "self", NULL | |
11900 | }; | |
11901 | ||
11902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
11903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11904 | { | |
11905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11906 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
11907 | ||
11908 | wxPyEndAllowThreads(__tstate); | |
11909 | if (PyErr_Occurred()) SWIG_fail; | |
11910 | } | |
11911 | { | |
11912 | #if wxUSE_UNICODE | |
11913 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11914 | #else | |
11915 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11916 | #endif | |
11917 | } | |
11918 | return resultobj; | |
11919 | fail: | |
11920 | return NULL; | |
11921 | } | |
11922 | ||
11923 | ||
11924 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11925 | PyObject *resultobj; | |
11926 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11927 | long result; | |
11928 | PyObject * obj0 = 0 ; | |
11929 | char *kwnames[] = { | |
11930 | (char *) "self", NULL | |
11931 | }; | |
11932 | ||
11933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11935 | { | |
11936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11937 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
11938 | ||
11939 | wxPyEndAllowThreads(__tstate); | |
11940 | if (PyErr_Occurred()) SWIG_fail; | |
11941 | } | |
8edf1c75 | 11942 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
11943 | return resultobj; |
11944 | fail: | |
11945 | return NULL; | |
11946 | } | |
11947 | ||
11948 | ||
11949 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11950 | PyObject *resultobj; | |
11951 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11952 | int result; | |
11953 | PyObject * obj0 = 0 ; | |
11954 | char *kwnames[] = { | |
11955 | (char *) "self", NULL | |
11956 | }; | |
11957 | ||
11958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
11959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11960 | { | |
11961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11962 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
11963 | ||
11964 | wxPyEndAllowThreads(__tstate); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
8edf1c75 | 11967 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11968 | return resultobj; |
11969 | fail: | |
11970 | return NULL; | |
11971 | } | |
11972 | ||
11973 | ||
11974 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11975 | PyObject *resultobj; | |
11976 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11977 | PyObject *result; | |
11978 | PyObject * obj0 = 0 ; | |
11979 | char *kwnames[] = { | |
11980 | (char *) "self", NULL | |
11981 | }; | |
11982 | ||
11983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
11984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11985 | { | |
11986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11987 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
11988 | ||
11989 | wxPyEndAllowThreads(__tstate); | |
11990 | if (PyErr_Occurred()) SWIG_fail; | |
11991 | } | |
11992 | resultobj = result; | |
11993 | return resultobj; | |
11994 | fail: | |
11995 | return NULL; | |
11996 | } | |
11997 | ||
11998 | ||
11999 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12000 | PyObject *resultobj; | |
12001 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
12002 | PyObject *result; | |
12003 | PyObject * obj0 = 0 ; | |
12004 | char *kwnames[] = { | |
12005 | (char *) "self", NULL | |
12006 | }; | |
12007 | ||
12008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
12009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12010 | { | |
12011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12012 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
12013 | ||
12014 | wxPyEndAllowThreads(__tstate); | |
12015 | if (PyErr_Occurred()) SWIG_fail; | |
12016 | } | |
12017 | resultobj = result; | |
12018 | return resultobj; | |
12019 | fail: | |
12020 | return NULL; | |
12021 | } | |
12022 | ||
12023 | ||
12024 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
12025 | PyObject *obj; | |
12026 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12027 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
12028 | Py_INCREF(obj); | |
12029 | return Py_BuildValue((char *)""); | |
12030 | } | |
12031 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12032 | PyObject *resultobj; | |
12033 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12034 | wxString *arg2 = 0 ; | |
12035 | wxString *arg3 = 0 ; | |
12036 | int arg4 ; | |
12037 | wxString *arg5 = (wxString *) 0 ; | |
12038 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12039 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12040 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12041 | wxMultiChoiceDialog *result; | |
423f194a RD |
12042 | bool temp2 = False ; |
12043 | bool temp3 = False ; | |
f775c30d | 12044 | bool temp5 = False ; |
d14a1e28 RD |
12045 | wxPoint temp7 ; |
12046 | PyObject * obj0 = 0 ; | |
12047 | PyObject * obj1 = 0 ; | |
12048 | PyObject * obj2 = 0 ; | |
8edf1c75 | 12049 | PyObject * obj3 = 0 ; |
d14a1e28 | 12050 | PyObject * obj4 = 0 ; |
8edf1c75 | 12051 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12052 | PyObject * obj6 = 0 ; |
12053 | char *kwnames[] = { | |
12054 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "LCOUNT",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12055 | }; | |
12056 | ||
8edf1c75 | 12057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
12058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12059 | { | |
12060 | arg2 = wxString_in_helper(obj1); | |
12061 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12062 | temp2 = True; |
d14a1e28 RD |
12063 | } |
12064 | { | |
12065 | arg3 = wxString_in_helper(obj2); | |
12066 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12067 | temp3 = True; |
d14a1e28 | 12068 | } |
8edf1c75 RD |
12069 | { |
12070 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
12071 | if (PyErr_Occurred()) SWIG_fail; | |
12072 | } | |
f775c30d RD |
12073 | { |
12074 | arg5 = wxString_in_helper(obj4); | |
12075 | if (arg5 == NULL) SWIG_fail; | |
12076 | temp5 = True; | |
12077 | } | |
8edf1c75 RD |
12078 | if (obj5) { |
12079 | { | |
12080 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | } | |
12083 | } | |
d14a1e28 RD |
12084 | if (obj6) { |
12085 | { | |
12086 | arg7 = &temp7; | |
12087 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12088 | } | |
12089 | } | |
12090 | { | |
12091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12092 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12093 | ||
12094 | wxPyEndAllowThreads(__tstate); | |
12095 | if (PyErr_Occurred()) SWIG_fail; | |
12096 | } | |
12097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12098 | { | |
12099 | if (temp2) | |
12100 | delete arg2; | |
12101 | } | |
12102 | { | |
12103 | if (temp3) | |
12104 | delete arg3; | |
12105 | } | |
f775c30d RD |
12106 | { |
12107 | if (temp5) | |
12108 | delete arg5; | |
12109 | } | |
d14a1e28 RD |
12110 | return resultobj; |
12111 | fail: | |
12112 | { | |
12113 | if (temp2) | |
12114 | delete arg2; | |
12115 | } | |
12116 | { | |
12117 | if (temp3) | |
12118 | delete arg3; | |
12119 | } | |
f775c30d RD |
12120 | { |
12121 | if (temp5) | |
12122 | delete arg5; | |
12123 | } | |
d14a1e28 RD |
12124 | return NULL; |
12125 | } | |
12126 | ||
12127 | ||
12128 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12129 | PyObject *resultobj; | |
12130 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12131 | wxArrayInt *arg2 = 0 ; | |
12132 | PyObject * obj0 = 0 ; | |
12133 | PyObject * obj1 = 0 ; | |
12134 | char *kwnames[] = { | |
12135 | (char *) "self",(char *) "selections", NULL | |
12136 | }; | |
12137 | ||
12138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMultiChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12140 | { | |
12141 | if (! PySequence_Check(obj1)) { | |
12142 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12143 | SWIG_fail; | |
12144 | } | |
12145 | arg2 = new wxArrayInt; | |
12146 | int i, len=PySequence_Length(obj1); | |
12147 | for (i=0; i<len; i++) { | |
12148 | PyObject* item = PySequence_GetItem(obj1, i); | |
12149 | PyObject* number = PyNumber_Int(item); | |
12150 | arg2->Add(PyInt_AS_LONG(number)); | |
12151 | Py_DECREF(item); | |
12152 | Py_DECREF(number); | |
12153 | } | |
12154 | } | |
12155 | { | |
12156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12157 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12158 | ||
12159 | wxPyEndAllowThreads(__tstate); | |
12160 | if (PyErr_Occurred()) SWIG_fail; | |
12161 | } | |
12162 | Py_INCREF(Py_None); resultobj = Py_None; | |
12163 | { | |
12164 | if (arg2) delete arg2; | |
12165 | } | |
12166 | return resultobj; | |
12167 | fail: | |
12168 | { | |
12169 | if (arg2) delete arg2; | |
12170 | } | |
12171 | return NULL; | |
12172 | } | |
12173 | ||
12174 | ||
12175 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12176 | PyObject *resultobj; | |
12177 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12178 | PyObject *result; | |
12179 | PyObject * obj0 = 0 ; | |
12180 | char *kwnames[] = { | |
12181 | (char *) "self", NULL | |
12182 | }; | |
12183 | ||
12184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12185 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMultiChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12186 | { | |
12187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12188 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12189 | ||
12190 | wxPyEndAllowThreads(__tstate); | |
12191 | if (PyErr_Occurred()) SWIG_fail; | |
12192 | } | |
12193 | resultobj = result; | |
12194 | return resultobj; | |
12195 | fail: | |
12196 | return NULL; | |
12197 | } | |
12198 | ||
12199 | ||
12200 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12201 | PyObject *obj; | |
12202 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12203 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12204 | Py_INCREF(obj); | |
12205 | return Py_BuildValue((char *)""); | |
12206 | } | |
12207 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12208 | PyObject *resultobj; | |
12209 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12210 | wxString *arg2 = 0 ; | |
12211 | wxString *arg3 = 0 ; | |
12212 | int arg4 ; | |
12213 | wxString *arg5 = (wxString *) 0 ; | |
12214 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12215 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12216 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12217 | wxSingleChoiceDialog *result; | |
423f194a RD |
12218 | bool temp2 = False ; |
12219 | bool temp3 = False ; | |
d14a1e28 RD |
12220 | wxPoint temp6 ; |
12221 | PyObject * obj0 = 0 ; | |
12222 | PyObject * obj1 = 0 ; | |
12223 | PyObject * obj2 = 0 ; | |
12224 | PyObject * obj3 = 0 ; | |
8edf1c75 | 12225 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12226 | PyObject * obj5 = 0 ; |
12227 | char *kwnames[] = { | |
12228 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12229 | }; | |
12230 | ||
8edf1c75 | 12231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
12232 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12233 | { | |
12234 | arg2 = wxString_in_helper(obj1); | |
12235 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12236 | temp2 = True; |
d14a1e28 RD |
12237 | } |
12238 | { | |
12239 | arg3 = wxString_in_helper(obj2); | |
12240 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12241 | temp3 = True; |
d14a1e28 RD |
12242 | } |
12243 | { | |
12244 | arg4 = PyList_Size(obj3); | |
12245 | arg5 = wxString_LIST_helper(obj3); | |
12246 | if (arg5 == NULL) SWIG_fail; | |
12247 | } | |
8edf1c75 RD |
12248 | if (obj4) { |
12249 | { | |
12250 | arg6 = (long) SWIG_PyObj_AsLong(obj4); | |
12251 | if (PyErr_Occurred()) SWIG_fail; | |
12252 | } | |
12253 | } | |
d14a1e28 RD |
12254 | if (obj5) { |
12255 | { | |
12256 | arg7 = &temp6; | |
12257 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12258 | } | |
12259 | } | |
12260 | { | |
12261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12262 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12263 | ||
12264 | wxPyEndAllowThreads(__tstate); | |
12265 | if (PyErr_Occurred()) SWIG_fail; | |
12266 | } | |
12267 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12268 | { | |
12269 | if (temp2) | |
12270 | delete arg2; | |
12271 | } | |
12272 | { | |
12273 | if (temp3) | |
12274 | delete arg3; | |
12275 | } | |
12276 | { | |
12277 | if (arg5) delete [] arg5; | |
12278 | } | |
12279 | return resultobj; | |
12280 | fail: | |
12281 | { | |
12282 | if (temp2) | |
12283 | delete arg2; | |
12284 | } | |
12285 | { | |
12286 | if (temp3) | |
12287 | delete arg3; | |
12288 | } | |
12289 | { | |
12290 | if (arg5) delete [] arg5; | |
12291 | } | |
12292 | return NULL; | |
12293 | } | |
12294 | ||
12295 | ||
12296 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12297 | PyObject *resultobj; | |
12298 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12299 | int result; | |
12300 | PyObject * obj0 = 0 ; | |
12301 | char *kwnames[] = { | |
12302 | (char *) "self", NULL | |
12303 | }; | |
12304 | ||
12305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12307 | { | |
12308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12309 | result = (int)(arg1)->GetSelection(); | |
12310 | ||
12311 | wxPyEndAllowThreads(__tstate); | |
12312 | if (PyErr_Occurred()) SWIG_fail; | |
12313 | } | |
8edf1c75 | 12314 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12315 | return resultobj; |
12316 | fail: | |
12317 | return NULL; | |
12318 | } | |
12319 | ||
12320 | ||
12321 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12322 | PyObject *resultobj; | |
12323 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12324 | wxString result; | |
12325 | PyObject * obj0 = 0 ; | |
12326 | char *kwnames[] = { | |
12327 | (char *) "self", NULL | |
12328 | }; | |
12329 | ||
12330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12332 | { | |
12333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12334 | result = (arg1)->GetStringSelection(); | |
12335 | ||
12336 | wxPyEndAllowThreads(__tstate); | |
12337 | if (PyErr_Occurred()) SWIG_fail; | |
12338 | } | |
12339 | { | |
12340 | #if wxUSE_UNICODE | |
12341 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12342 | #else | |
12343 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12344 | #endif | |
12345 | } | |
12346 | return resultobj; | |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
12352 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12353 | PyObject *resultobj; | |
12354 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12355 | int arg2 ; | |
12356 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12357 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12358 | char *kwnames[] = { |
12359 | (char *) "self",(char *) "sel", NULL | |
12360 | }; | |
12361 | ||
8edf1c75 | 12362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12364 | { |
12365 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12366 | if (PyErr_Occurred()) SWIG_fail; | |
12367 | } | |
d14a1e28 RD |
12368 | { |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | (arg1)->SetSelection(arg2); | |
12371 | ||
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
12375 | Py_INCREF(Py_None); resultobj = Py_None; | |
12376 | return resultobj; | |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
12382 | static PyObject *_wrap_SingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12383 | PyObject *resultobj; | |
12384 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12385 | int result; | |
12386 | PyObject * obj0 = 0 ; | |
12387 | char *kwnames[] = { | |
12388 | (char *) "self", NULL | |
12389 | }; | |
12390 | ||
12391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_ShowModal",kwnames,&obj0)) goto fail; | |
12392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12393 | { | |
12394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12395 | result = (int)(arg1)->ShowModal(); | |
12396 | ||
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
8edf1c75 | 12400 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12401 | return resultobj; |
12402 | fail: | |
12403 | return NULL; | |
12404 | } | |
12405 | ||
12406 | ||
12407 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12408 | PyObject *obj; | |
12409 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12410 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12411 | Py_INCREF(obj); | |
12412 | return Py_BuildValue((char *)""); | |
12413 | } | |
12414 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12415 | PyObject *resultobj; | |
12416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12417 | wxString *arg2 = 0 ; | |
12418 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12419 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12420 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12421 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12422 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12423 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12424 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12425 | wxTextEntryDialog *result; | |
423f194a RD |
12426 | bool temp2 = False ; |
12427 | bool temp3 = False ; | |
12428 | bool temp4 = False ; | |
d14a1e28 RD |
12429 | wxPoint temp6 ; |
12430 | PyObject * obj0 = 0 ; | |
12431 | PyObject * obj1 = 0 ; | |
12432 | PyObject * obj2 = 0 ; | |
12433 | PyObject * obj3 = 0 ; | |
8edf1c75 | 12434 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12435 | PyObject * obj5 = 0 ; |
12436 | char *kwnames[] = { | |
12437 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12438 | }; | |
12439 | ||
8edf1c75 | 12440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
12441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12442 | { | |
12443 | arg2 = wxString_in_helper(obj1); | |
12444 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12445 | temp2 = True; |
d14a1e28 RD |
12446 | } |
12447 | if (obj2) { | |
12448 | { | |
12449 | arg3 = wxString_in_helper(obj2); | |
12450 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12451 | temp3 = True; |
d14a1e28 RD |
12452 | } |
12453 | } | |
12454 | if (obj3) { | |
12455 | { | |
12456 | arg4 = wxString_in_helper(obj3); | |
12457 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 12458 | temp4 = True; |
d14a1e28 RD |
12459 | } |
12460 | } | |
8edf1c75 RD |
12461 | if (obj4) { |
12462 | { | |
12463 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
12464 | if (PyErr_Occurred()) SWIG_fail; | |
12465 | } | |
12466 | } | |
d14a1e28 RD |
12467 | if (obj5) { |
12468 | { | |
12469 | arg6 = &temp6; | |
12470 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12471 | } | |
12472 | } | |
12473 | { | |
12474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12475 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
12476 | ||
12477 | wxPyEndAllowThreads(__tstate); | |
12478 | if (PyErr_Occurred()) SWIG_fail; | |
12479 | } | |
12480 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextEntryDialog, 1); | |
12481 | { | |
12482 | if (temp2) | |
12483 | delete arg2; | |
12484 | } | |
12485 | { | |
12486 | if (temp3) | |
12487 | delete arg3; | |
12488 | } | |
12489 | { | |
12490 | if (temp4) | |
12491 | delete arg4; | |
12492 | } | |
12493 | return resultobj; | |
12494 | fail: | |
12495 | { | |
12496 | if (temp2) | |
12497 | delete arg2; | |
12498 | } | |
12499 | { | |
12500 | if (temp3) | |
12501 | delete arg3; | |
12502 | } | |
12503 | { | |
12504 | if (temp4) | |
12505 | delete arg4; | |
12506 | } | |
12507 | return NULL; | |
12508 | } | |
12509 | ||
12510 | ||
12511 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12512 | PyObject *resultobj; | |
12513 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12514 | wxString result; | |
12515 | PyObject * obj0 = 0 ; | |
12516 | char *kwnames[] = { | |
12517 | (char *) "self", NULL | |
12518 | }; | |
12519 | ||
12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
12521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextEntryDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | result = (arg1)->GetValue(); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
12529 | { | |
12530 | #if wxUSE_UNICODE | |
12531 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12532 | #else | |
12533 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12534 | #endif | |
12535 | } | |
12536 | return resultobj; | |
12537 | fail: | |
12538 | return NULL; | |
12539 | } | |
12540 | ||
12541 | ||
12542 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12543 | PyObject *resultobj; | |
12544 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12545 | wxString *arg2 = 0 ; | |
423f194a | 12546 | bool temp2 = False ; |
d14a1e28 RD |
12547 | PyObject * obj0 = 0 ; |
12548 | PyObject * obj1 = 0 ; | |
12549 | char *kwnames[] = { | |
12550 | (char *) "self",(char *) "value", NULL | |
12551 | }; | |
12552 | ||
12553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextEntryDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12555 | { | |
12556 | arg2 = wxString_in_helper(obj1); | |
12557 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 12558 | temp2 = True; |
d14a1e28 RD |
12559 | } |
12560 | { | |
12561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12562 | (arg1)->SetValue((wxString const &)*arg2); | |
12563 | ||
12564 | wxPyEndAllowThreads(__tstate); | |
12565 | if (PyErr_Occurred()) SWIG_fail; | |
12566 | } | |
12567 | Py_INCREF(Py_None); resultobj = Py_None; | |
12568 | { | |
12569 | if (temp2) | |
12570 | delete arg2; | |
12571 | } | |
12572 | return resultobj; | |
12573 | fail: | |
12574 | { | |
12575 | if (temp2) | |
12576 | delete arg2; | |
12577 | } | |
12578 | return NULL; | |
12579 | } | |
12580 | ||
12581 | ||
12582 | static PyObject *_wrap_TextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12583 | PyObject *resultobj; | |
12584 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12585 | int result; | |
12586 | PyObject * obj0 = 0 ; | |
12587 | char *kwnames[] = { | |
12588 | (char *) "self", NULL | |
12589 | }; | |
12590 | ||
12591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_ShowModal",kwnames,&obj0)) goto fail; | |
12592 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextEntryDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12593 | { | |
12594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12595 | result = (int)(arg1)->ShowModal(); | |
12596 | ||
12597 | wxPyEndAllowThreads(__tstate); | |
12598 | if (PyErr_Occurred()) SWIG_fail; | |
12599 | } | |
8edf1c75 | 12600 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12601 | return resultobj; |
12602 | fail: | |
12603 | return NULL; | |
12604 | } | |
12605 | ||
12606 | ||
12607 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
12608 | PyObject *obj; | |
12609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12610 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
12611 | Py_INCREF(obj); | |
12612 | return Py_BuildValue((char *)""); | |
12613 | } | |
12614 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12615 | PyObject *resultobj; | |
12616 | wxFontData *result; | |
12617 | char *kwnames[] = { | |
12618 | NULL | |
12619 | }; | |
12620 | ||
12621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
12622 | { | |
12623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12624 | result = (wxFontData *)new wxFontData(); | |
12625 | ||
12626 | wxPyEndAllowThreads(__tstate); | |
12627 | if (PyErr_Occurred()) SWIG_fail; | |
12628 | } | |
12629 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontData, 1); | |
12630 | return resultobj; | |
12631 | fail: | |
12632 | return NULL; | |
12633 | } | |
12634 | ||
12635 | ||
12636 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12637 | PyObject *resultobj; | |
12638 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12639 | PyObject * obj0 = 0 ; | |
12640 | char *kwnames[] = { | |
12641 | (char *) "self", NULL | |
12642 | }; | |
12643 | ||
12644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
12645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12646 | { | |
12647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12648 | delete arg1; | |
12649 | ||
12650 | wxPyEndAllowThreads(__tstate); | |
12651 | if (PyErr_Occurred()) SWIG_fail; | |
12652 | } | |
12653 | Py_INCREF(Py_None); resultobj = Py_None; | |
12654 | return resultobj; | |
12655 | fail: | |
12656 | return NULL; | |
12657 | } | |
12658 | ||
12659 | ||
12660 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12661 | PyObject *resultobj; | |
12662 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12663 | bool arg2 ; | |
12664 | PyObject * obj0 = 0 ; | |
12665 | PyObject * obj1 = 0 ; | |
12666 | char *kwnames[] = { | |
12667 | (char *) "self",(char *) "enable", NULL | |
12668 | }; | |
12669 | ||
12670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
12671 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 12672 | { |
8edf1c75 | 12673 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
12674 | if (PyErr_Occurred()) SWIG_fail; |
12675 | } | |
d14a1e28 RD |
12676 | { |
12677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12678 | (arg1)->EnableEffects(arg2); | |
12679 | ||
12680 | wxPyEndAllowThreads(__tstate); | |
12681 | if (PyErr_Occurred()) SWIG_fail; | |
12682 | } | |
12683 | Py_INCREF(Py_None); resultobj = Py_None; | |
12684 | return resultobj; | |
12685 | fail: | |
12686 | return NULL; | |
12687 | } | |
12688 | ||
12689 | ||
12690 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12691 | PyObject *resultobj; | |
12692 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12693 | bool result; | |
12694 | PyObject * obj0 = 0 ; | |
12695 | char *kwnames[] = { | |
12696 | (char *) "self", NULL | |
12697 | }; | |
12698 | ||
12699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
12700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12701 | { | |
12702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12703 | result = (bool)(arg1)->GetAllowSymbols(); | |
12704 | ||
12705 | wxPyEndAllowThreads(__tstate); | |
12706 | if (PyErr_Occurred()) SWIG_fail; | |
12707 | } | |
8edf1c75 | 12708 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12709 | return resultobj; |
12710 | fail: | |
12711 | return NULL; | |
12712 | } | |
12713 | ||
12714 | ||
12715 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12716 | PyObject *resultobj; | |
12717 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12718 | wxColour result; | |
12719 | PyObject * obj0 = 0 ; | |
12720 | char *kwnames[] = { | |
12721 | (char *) "self", NULL | |
12722 | }; | |
12723 | ||
12724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
12725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12726 | { | |
12727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12728 | result = (arg1)->GetColour(); | |
12729 | ||
12730 | wxPyEndAllowThreads(__tstate); | |
12731 | if (PyErr_Occurred()) SWIG_fail; | |
12732 | } | |
12733 | { | |
12734 | wxColour * resultptr; | |
12735 | resultptr = new wxColour((wxColour &) result); | |
12736 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
12737 | } | |
12738 | return resultobj; | |
12739 | fail: | |
12740 | return NULL; | |
12741 | } | |
12742 | ||
12743 | ||
12744 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12745 | PyObject *resultobj; | |
12746 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12747 | wxFont result; | |
12748 | PyObject * obj0 = 0 ; | |
12749 | char *kwnames[] = { | |
12750 | (char *) "self", NULL | |
12751 | }; | |
12752 | ||
12753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
12754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12755 | { | |
12756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12757 | result = (arg1)->GetChosenFont(); | |
12758 | ||
12759 | wxPyEndAllowThreads(__tstate); | |
12760 | if (PyErr_Occurred()) SWIG_fail; | |
12761 | } | |
12762 | { | |
12763 | wxFont * resultptr; | |
12764 | resultptr = new wxFont((wxFont &) result); | |
12765 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
12766 | } | |
12767 | return resultobj; | |
12768 | fail: | |
12769 | return NULL; | |
12770 | } | |
12771 | ||
12772 | ||
12773 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12774 | PyObject *resultobj; | |
12775 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12776 | bool result; | |
12777 | PyObject * obj0 = 0 ; | |
12778 | char *kwnames[] = { | |
12779 | (char *) "self", NULL | |
12780 | }; | |
12781 | ||
12782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
12783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12784 | { | |
12785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12786 | result = (bool)(arg1)->GetEnableEffects(); | |
12787 | ||
12788 | wxPyEndAllowThreads(__tstate); | |
12789 | if (PyErr_Occurred()) SWIG_fail; | |
12790 | } | |
8edf1c75 | 12791 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12792 | return resultobj; |
12793 | fail: | |
12794 | return NULL; | |
12795 | } | |
12796 | ||
12797 | ||
12798 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12799 | PyObject *resultobj; | |
12800 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12801 | wxFont result; | |
12802 | PyObject * obj0 = 0 ; | |
12803 | char *kwnames[] = { | |
12804 | (char *) "self", NULL | |
12805 | }; | |
12806 | ||
12807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
12808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12809 | { | |
12810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12811 | result = (arg1)->GetInitialFont(); | |
12812 | ||
12813 | wxPyEndAllowThreads(__tstate); | |
12814 | if (PyErr_Occurred()) SWIG_fail; | |
12815 | } | |
12816 | { | |
12817 | wxFont * resultptr; | |
12818 | resultptr = new wxFont((wxFont &) result); | |
12819 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
12820 | } | |
12821 | return resultobj; | |
12822 | fail: | |
12823 | return NULL; | |
12824 | } | |
12825 | ||
12826 | ||
12827 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12828 | PyObject *resultobj; | |
12829 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12830 | bool result; | |
12831 | PyObject * obj0 = 0 ; | |
12832 | char *kwnames[] = { | |
12833 | (char *) "self", NULL | |
12834 | }; | |
12835 | ||
12836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
12837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12838 | { | |
12839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12840 | result = (bool)(arg1)->GetShowHelp(); | |
12841 | ||
12842 | wxPyEndAllowThreads(__tstate); | |
12843 | if (PyErr_Occurred()) SWIG_fail; | |
12844 | } | |
8edf1c75 | 12845 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
12846 | return resultobj; |
12847 | fail: | |
12848 | return NULL; | |
12849 | } | |
12850 | ||
12851 | ||
12852 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12853 | PyObject *resultobj; | |
12854 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12855 | bool arg2 ; | |
12856 | PyObject * obj0 = 0 ; | |
12857 | PyObject * obj1 = 0 ; | |
12858 | char *kwnames[] = { | |
12859 | (char *) "self",(char *) "allowSymbols", NULL | |
12860 | }; | |
12861 | ||
12862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
12863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 12864 | { |
8edf1c75 | 12865 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
12866 | if (PyErr_Occurred()) SWIG_fail; |
12867 | } | |
d14a1e28 RD |
12868 | { |
12869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12870 | (arg1)->SetAllowSymbols(arg2); | |
12871 | ||
12872 | wxPyEndAllowThreads(__tstate); | |
12873 | if (PyErr_Occurred()) SWIG_fail; | |
12874 | } | |
12875 | Py_INCREF(Py_None); resultobj = Py_None; | |
12876 | return resultobj; | |
12877 | fail: | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
12882 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12883 | PyObject *resultobj; | |
12884 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12885 | wxFont *arg2 = 0 ; | |
12886 | PyObject * obj0 = 0 ; | |
12887 | PyObject * obj1 = 0 ; | |
12888 | char *kwnames[] = { | |
12889 | (char *) "self",(char *) "font", NULL | |
12890 | }; | |
12891 | ||
12892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
12893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12894 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12895 | if (arg2 == NULL) { | |
12896 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12897 | } | |
12898 | { | |
12899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12900 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
12901 | ||
12902 | wxPyEndAllowThreads(__tstate); | |
12903 | if (PyErr_Occurred()) SWIG_fail; | |
12904 | } | |
12905 | Py_INCREF(Py_None); resultobj = Py_None; | |
12906 | return resultobj; | |
12907 | fail: | |
12908 | return NULL; | |
12909 | } | |
12910 | ||
12911 | ||
12912 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12913 | PyObject *resultobj; | |
12914 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12915 | wxColour *arg2 = 0 ; | |
12916 | wxColour temp2 ; | |
12917 | PyObject * obj0 = 0 ; | |
12918 | PyObject * obj1 = 0 ; | |
12919 | char *kwnames[] = { | |
12920 | (char *) "self",(char *) "colour", NULL | |
12921 | }; | |
12922 | ||
12923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
12924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12925 | { | |
12926 | arg2 = &temp2; | |
12927 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12928 | } | |
12929 | { | |
12930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12931 | (arg1)->SetColour((wxColour const &)*arg2); | |
12932 | ||
12933 | wxPyEndAllowThreads(__tstate); | |
12934 | if (PyErr_Occurred()) SWIG_fail; | |
12935 | } | |
12936 | Py_INCREF(Py_None); resultobj = Py_None; | |
12937 | return resultobj; | |
12938 | fail: | |
12939 | return NULL; | |
12940 | } | |
12941 | ||
12942 | ||
12943 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12944 | PyObject *resultobj; | |
12945 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12946 | wxFont *arg2 = 0 ; | |
12947 | PyObject * obj0 = 0 ; | |
12948 | PyObject * obj1 = 0 ; | |
12949 | char *kwnames[] = { | |
12950 | (char *) "self",(char *) "font", NULL | |
12951 | }; | |
12952 | ||
12953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
12954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12955 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12956 | if (arg2 == NULL) { | |
12957 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12958 | } | |
12959 | { | |
12960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12961 | (arg1)->SetInitialFont((wxFont const &)*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 *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12974 | PyObject *resultobj; | |
12975 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12976 | int arg2 ; | |
12977 | int arg3 ; | |
12978 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12979 | PyObject * obj1 = 0 ; |
12980 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12981 | char *kwnames[] = { |
12982 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12983 | }; | |
12984 | ||
8edf1c75 | 12985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
12987 | { |
12988 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12989 | if (PyErr_Occurred()) SWIG_fail; | |
12990 | } | |
12991 | { | |
12992 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12993 | if (PyErr_Occurred()) SWIG_fail; | |
12994 | } | |
d14a1e28 RD |
12995 | { |
12996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12997 | (arg1)->SetRange(arg2,arg3); | |
12998 | ||
12999 | wxPyEndAllowThreads(__tstate); | |
13000 | if (PyErr_Occurred()) SWIG_fail; | |
13001 | } | |
13002 | Py_INCREF(Py_None); resultobj = Py_None; | |
13003 | return resultobj; | |
13004 | fail: | |
13005 | return NULL; | |
13006 | } | |
13007 | ||
13008 | ||
13009 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13010 | PyObject *resultobj; | |
13011 | wxFontData *arg1 = (wxFontData *) 0 ; | |
13012 | bool arg2 ; | |
13013 | PyObject * obj0 = 0 ; | |
13014 | PyObject * obj1 = 0 ; | |
13015 | char *kwnames[] = { | |
13016 | (char *) "self",(char *) "showHelp", NULL | |
13017 | }; | |
13018 | ||
13019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
13020 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 13021 | { |
8edf1c75 | 13022 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
13023 | if (PyErr_Occurred()) SWIG_fail; |
13024 | } | |
d14a1e28 RD |
13025 | { |
13026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13027 | (arg1)->SetShowHelp(arg2); | |
13028 | ||
13029 | wxPyEndAllowThreads(__tstate); | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | } | |
13032 | Py_INCREF(Py_None); resultobj = Py_None; | |
13033 | return resultobj; | |
13034 | fail: | |
13035 | return NULL; | |
13036 | } | |
13037 | ||
13038 | ||
13039 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
13040 | PyObject *obj; | |
13041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13042 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
13043 | Py_INCREF(obj); | |
13044 | return Py_BuildValue((char *)""); | |
13045 | } | |
13046 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13047 | PyObject *resultobj; | |
13048 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13049 | wxFontData *arg2 = 0 ; | |
13050 | wxFontDialog *result; | |
13051 | PyObject * obj0 = 0 ; | |
13052 | PyObject * obj1 = 0 ; | |
13053 | char *kwnames[] = { | |
13054 | (char *) "parent",(char *) "data", NULL | |
13055 | }; | |
13056 | ||
13057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
13058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13059 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13060 | if (arg2 == NULL) { | |
13061 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13062 | } | |
13063 | { | |
13064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13065 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
13066 | ||
13067 | wxPyEndAllowThreads(__tstate); | |
13068 | if (PyErr_Occurred()) SWIG_fail; | |
13069 | } | |
13070 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontDialog, 1); | |
13071 | return resultobj; | |
13072 | fail: | |
13073 | return NULL; | |
13074 | } | |
13075 | ||
13076 | ||
13077 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13078 | PyObject *resultobj; | |
13079 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13080 | wxFontData *result; | |
13081 | PyObject * obj0 = 0 ; | |
13082 | char *kwnames[] = { | |
13083 | (char *) "self", NULL | |
13084 | }; | |
13085 | ||
13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13088 | { | |
13089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13090 | { | |
13091 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13092 | result = (wxFontData *) &_result_ref; | |
13093 | } | |
13094 | ||
13095 | wxPyEndAllowThreads(__tstate); | |
13096 | if (PyErr_Occurred()) SWIG_fail; | |
13097 | } | |
13098 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontData, 0); | |
13099 | return resultobj; | |
13100 | fail: | |
13101 | return NULL; | |
13102 | } | |
13103 | ||
13104 | ||
13105 | static PyObject *_wrap_FontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13106 | PyObject *resultobj; | |
13107 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13108 | int result; | |
13109 | PyObject * obj0 = 0 ; | |
13110 | char *kwnames[] = { | |
13111 | (char *) "self", NULL | |
13112 | }; | |
13113 | ||
13114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_ShowModal",kwnames,&obj0)) goto fail; | |
13115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13116 | { | |
13117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13118 | result = (int)(arg1)->ShowModal(); | |
13119 | ||
13120 | wxPyEndAllowThreads(__tstate); | |
13121 | if (PyErr_Occurred()) SWIG_fail; | |
13122 | } | |
8edf1c75 | 13123 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13124 | return resultobj; |
13125 | fail: | |
13126 | return NULL; | |
13127 | } | |
13128 | ||
13129 | ||
13130 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13131 | PyObject *obj; | |
13132 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13133 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13134 | Py_INCREF(obj); | |
13135 | return Py_BuildValue((char *)""); | |
13136 | } | |
13137 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13138 | PyObject *resultobj; | |
13139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13140 | wxString *arg2 = 0 ; | |
13141 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13142 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13143 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13144 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13145 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13146 | wxMessageDialog *result; | |
423f194a RD |
13147 | bool temp2 = False ; |
13148 | bool temp3 = False ; | |
d14a1e28 RD |
13149 | wxPoint temp5 ; |
13150 | PyObject * obj0 = 0 ; | |
13151 | PyObject * obj1 = 0 ; | |
13152 | PyObject * obj2 = 0 ; | |
8edf1c75 | 13153 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
13154 | PyObject * obj4 = 0 ; |
13155 | char *kwnames[] = { | |
13156 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13157 | }; | |
13158 | ||
8edf1c75 | 13159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13161 | { | |
13162 | arg2 = wxString_in_helper(obj1); | |
13163 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13164 | temp2 = True; |
d14a1e28 RD |
13165 | } |
13166 | if (obj2) { | |
13167 | { | |
13168 | arg3 = wxString_in_helper(obj2); | |
13169 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13170 | temp3 = True; |
d14a1e28 RD |
13171 | } |
13172 | } | |
8edf1c75 RD |
13173 | if (obj3) { |
13174 | { | |
13175 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
13176 | if (PyErr_Occurred()) SWIG_fail; | |
13177 | } | |
13178 | } | |
d14a1e28 RD |
13179 | if (obj4) { |
13180 | { | |
13181 | arg5 = &temp5; | |
13182 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13183 | } | |
13184 | } | |
13185 | { | |
13186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13187 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13188 | ||
13189 | wxPyEndAllowThreads(__tstate); | |
13190 | if (PyErr_Occurred()) SWIG_fail; | |
13191 | } | |
13192 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMessageDialog, 1); | |
13193 | { | |
13194 | if (temp2) | |
13195 | delete arg2; | |
13196 | } | |
13197 | { | |
13198 | if (temp3) | |
13199 | delete arg3; | |
13200 | } | |
13201 | return resultobj; | |
13202 | fail: | |
13203 | { | |
13204 | if (temp2) | |
13205 | delete arg2; | |
13206 | } | |
13207 | { | |
13208 | if (temp3) | |
13209 | delete arg3; | |
13210 | } | |
13211 | return NULL; | |
13212 | } | |
13213 | ||
13214 | ||
13215 | static PyObject *_wrap_MessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13216 | PyObject *resultobj; | |
13217 | wxMessageDialog *arg1 = (wxMessageDialog *) 0 ; | |
13218 | int result; | |
13219 | PyObject * obj0 = 0 ; | |
13220 | char *kwnames[] = { | |
13221 | (char *) "self", NULL | |
13222 | }; | |
13223 | ||
13224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MessageDialog_ShowModal",kwnames,&obj0)) goto fail; | |
13225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMessageDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13226 | { | |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | result = (int)(arg1)->ShowModal(); | |
13229 | ||
13230 | wxPyEndAllowThreads(__tstate); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
13232 | } | |
8edf1c75 | 13233 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13234 | return resultobj; |
13235 | fail: | |
13236 | return NULL; | |
13237 | } | |
13238 | ||
13239 | ||
13240 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13241 | PyObject *obj; | |
13242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13243 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13244 | Py_INCREF(obj); | |
13245 | return Py_BuildValue((char *)""); | |
13246 | } | |
13247 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13248 | PyObject *resultobj; | |
13249 | wxString *arg1 = 0 ; | |
13250 | wxString *arg2 = 0 ; | |
13251 | int arg3 = (int) 100 ; | |
13252 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13253 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13254 | wxProgressDialog *result; | |
423f194a RD |
13255 | bool temp1 = False ; |
13256 | bool temp2 = False ; | |
d14a1e28 RD |
13257 | PyObject * obj0 = 0 ; |
13258 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13259 | PyObject * obj2 = 0 ; |
d14a1e28 | 13260 | PyObject * obj3 = 0 ; |
8edf1c75 | 13261 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13262 | char *kwnames[] = { |
13263 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13264 | }; | |
13265 | ||
8edf1c75 | 13266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13267 | { |
13268 | arg1 = wxString_in_helper(obj0); | |
13269 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 13270 | temp1 = True; |
d14a1e28 RD |
13271 | } |
13272 | { | |
13273 | arg2 = wxString_in_helper(obj1); | |
13274 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13275 | temp2 = True; |
d14a1e28 | 13276 | } |
8edf1c75 RD |
13277 | if (obj2) { |
13278 | { | |
13279 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | } | |
d14a1e28 RD |
13283 | if (obj3) { |
13284 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13285 | } | |
8edf1c75 RD |
13286 | if (obj4) { |
13287 | { | |
13288 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
13289 | if (PyErr_Occurred()) SWIG_fail; | |
13290 | } | |
13291 | } | |
d14a1e28 RD |
13292 | { |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13295 | ||
13296 | wxPyEndAllowThreads(__tstate); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
13299 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProgressDialog, 1); | |
13300 | { | |
13301 | if (temp1) | |
13302 | delete arg1; | |
13303 | } | |
13304 | { | |
13305 | if (temp2) | |
13306 | delete arg2; | |
13307 | } | |
13308 | return resultobj; | |
13309 | fail: | |
13310 | { | |
13311 | if (temp1) | |
13312 | delete arg1; | |
13313 | } | |
13314 | { | |
13315 | if (temp2) | |
13316 | delete arg2; | |
13317 | } | |
13318 | return NULL; | |
13319 | } | |
13320 | ||
13321 | ||
13322 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13323 | PyObject *resultobj; | |
13324 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13325 | int arg2 ; | |
13326 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13327 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13328 | bool result; | |
423f194a | 13329 | bool temp3 = False ; |
d14a1e28 | 13330 | PyObject * obj0 = 0 ; |
8edf1c75 | 13331 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13332 | PyObject * obj2 = 0 ; |
13333 | char *kwnames[] = { | |
13334 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13335 | }; | |
13336 | ||
8edf1c75 | 13337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProgressDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13339 | { |
13340 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
13342 | } | |
d14a1e28 RD |
13343 | if (obj2) { |
13344 | { | |
13345 | arg3 = wxString_in_helper(obj2); | |
13346 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13347 | temp3 = True; |
d14a1e28 RD |
13348 | } |
13349 | } | |
13350 | { | |
13351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13352 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13353 | ||
13354 | wxPyEndAllowThreads(__tstate); | |
13355 | if (PyErr_Occurred()) SWIG_fail; | |
13356 | } | |
8edf1c75 | 13357 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
13358 | { |
13359 | if (temp3) | |
13360 | delete arg3; | |
13361 | } | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | { | |
13365 | if (temp3) | |
13366 | delete arg3; | |
13367 | } | |
13368 | return NULL; | |
13369 | } | |
13370 | ||
13371 | ||
13372 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13373 | PyObject *resultobj; | |
13374 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13375 | PyObject * obj0 = 0 ; | |
13376 | char *kwnames[] = { | |
13377 | (char *) "self", NULL | |
13378 | }; | |
13379 | ||
13380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProgressDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13382 | { | |
13383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13384 | (arg1)->Resume(); | |
13385 | ||
13386 | wxPyEndAllowThreads(__tstate); | |
13387 | if (PyErr_Occurred()) SWIG_fail; | |
13388 | } | |
13389 | Py_INCREF(Py_None); resultobj = Py_None; | |
13390 | return resultobj; | |
13391 | fail: | |
13392 | return NULL; | |
13393 | } | |
13394 | ||
13395 | ||
13396 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13397 | PyObject *obj; | |
13398 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13399 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13400 | Py_INCREF(obj); | |
13401 | return Py_BuildValue((char *)""); | |
13402 | } | |
13403 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13404 | PyObject *resultobj; | |
13405 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13406 | int arg2 = (int) 0 ; | |
13407 | wxFindDialogEvent *result; | |
8edf1c75 RD |
13408 | PyObject * obj0 = 0 ; |
13409 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13410 | char *kwnames[] = { |
13411 | (char *) "commandType",(char *) "id", NULL | |
13412 | }; | |
13413 | ||
8edf1c75 RD |
13414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; |
13415 | if (obj0) { | |
13416 | { | |
13417 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13418 | if (PyErr_Occurred()) SWIG_fail; | |
13419 | } | |
13420 | } | |
13421 | if (obj1) { | |
13422 | { | |
13423 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13424 | if (PyErr_Occurred()) SWIG_fail; | |
13425 | } | |
13426 | } | |
d14a1e28 RD |
13427 | { |
13428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13429 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13430 | ||
13431 | wxPyEndAllowThreads(__tstate); | |
13432 | if (PyErr_Occurred()) SWIG_fail; | |
13433 | } | |
13434 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindDialogEvent, 1); | |
13435 | return resultobj; | |
13436 | fail: | |
13437 | return NULL; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13442 | PyObject *resultobj; | |
13443 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13444 | int result; | |
13445 | PyObject * obj0 = 0 ; | |
13446 | char *kwnames[] = { | |
13447 | (char *) "self", NULL | |
13448 | }; | |
13449 | ||
13450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13452 | { | |
13453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13454 | result = (int)(arg1)->GetFlags(); | |
13455 | ||
13456 | wxPyEndAllowThreads(__tstate); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
13458 | } | |
8edf1c75 | 13459 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13460 | return resultobj; |
13461 | fail: | |
13462 | return NULL; | |
13463 | } | |
13464 | ||
13465 | ||
13466 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13467 | PyObject *resultobj; | |
13468 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
f0983263 | 13469 | wxString *result; |
d14a1e28 RD |
13470 | PyObject * obj0 = 0 ; |
13471 | char *kwnames[] = { | |
13472 | (char *) "self", NULL | |
13473 | }; | |
13474 | ||
13475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13477 | { | |
13478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f0983263 RD |
13479 | { |
13480 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13481 | result = (wxString *) &_result_ref; | |
13482 | } | |
d14a1e28 RD |
13483 | |
13484 | wxPyEndAllowThreads(__tstate); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | { | |
13488 | #if wxUSE_UNICODE | |
f0983263 | 13489 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 13490 | #else |
f0983263 | 13491 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
13492 | #endif |
13493 | } | |
13494 | return resultobj; | |
13495 | fail: | |
13496 | return NULL; | |
13497 | } | |
13498 | ||
13499 | ||
13500 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13501 | PyObject *resultobj; | |
13502 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13503 | wxString *result; | |
13504 | PyObject * obj0 = 0 ; | |
13505 | char *kwnames[] = { | |
13506 | (char *) "self", NULL | |
13507 | }; | |
13508 | ||
13509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13511 | { | |
13512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13513 | { | |
13514 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13515 | result = (wxString *) &_result_ref; | |
13516 | } | |
13517 | ||
13518 | wxPyEndAllowThreads(__tstate); | |
13519 | if (PyErr_Occurred()) SWIG_fail; | |
13520 | } | |
f0983263 RD |
13521 | { |
13522 | #if wxUSE_UNICODE | |
13523 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13524 | #else | |
13525 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13526 | #endif | |
13527 | } | |
d14a1e28 RD |
13528 | return resultobj; |
13529 | fail: | |
13530 | return NULL; | |
13531 | } | |
13532 | ||
13533 | ||
13534 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13535 | PyObject *resultobj; | |
13536 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13537 | wxFindReplaceDialog *result; | |
13538 | PyObject * obj0 = 0 ; | |
13539 | char *kwnames[] = { | |
13540 | (char *) "self", NULL | |
13541 | }; | |
13542 | ||
13543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
13544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13545 | { | |
13546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13547 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
13548 | ||
13549 | wxPyEndAllowThreads(__tstate); | |
13550 | if (PyErr_Occurred()) SWIG_fail; | |
13551 | } | |
13552 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceDialog, 0); | |
13553 | return resultobj; | |
13554 | fail: | |
13555 | return NULL; | |
13556 | } | |
13557 | ||
13558 | ||
13559 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13560 | PyObject *resultobj; | |
13561 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13562 | int arg2 ; | |
13563 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13565 | char *kwnames[] = { |
13566 | (char *) "self",(char *) "flags", NULL | |
13567 | }; | |
13568 | ||
8edf1c75 | 13569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13571 | { |
13572 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13573 | if (PyErr_Occurred()) SWIG_fail; | |
13574 | } | |
d14a1e28 RD |
13575 | { |
13576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13577 | (arg1)->SetFlags(arg2); | |
13578 | ||
13579 | wxPyEndAllowThreads(__tstate); | |
13580 | if (PyErr_Occurred()) SWIG_fail; | |
13581 | } | |
13582 | Py_INCREF(Py_None); resultobj = Py_None; | |
13583 | return resultobj; | |
13584 | fail: | |
13585 | return NULL; | |
13586 | } | |
13587 | ||
13588 | ||
13589 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13590 | PyObject *resultobj; | |
13591 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13592 | wxString *arg2 = 0 ; | |
423f194a | 13593 | bool temp2 = False ; |
d14a1e28 RD |
13594 | PyObject * obj0 = 0 ; |
13595 | PyObject * obj1 = 0 ; | |
13596 | char *kwnames[] = { | |
13597 | (char *) "self",(char *) "str", NULL | |
13598 | }; | |
13599 | ||
13600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13602 | { | |
13603 | arg2 = wxString_in_helper(obj1); | |
13604 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13605 | temp2 = True; |
d14a1e28 RD |
13606 | } |
13607 | { | |
13608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13609 | (arg1)->SetFindString((wxString const &)*arg2); | |
13610 | ||
13611 | wxPyEndAllowThreads(__tstate); | |
13612 | if (PyErr_Occurred()) SWIG_fail; | |
13613 | } | |
13614 | Py_INCREF(Py_None); resultobj = Py_None; | |
13615 | { | |
13616 | if (temp2) | |
13617 | delete arg2; | |
13618 | } | |
13619 | return resultobj; | |
13620 | fail: | |
13621 | { | |
13622 | if (temp2) | |
13623 | delete arg2; | |
13624 | } | |
13625 | return NULL; | |
13626 | } | |
13627 | ||
13628 | ||
13629 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13630 | PyObject *resultobj; | |
13631 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13632 | wxString *arg2 = 0 ; | |
423f194a | 13633 | bool temp2 = False ; |
d14a1e28 RD |
13634 | PyObject * obj0 = 0 ; |
13635 | PyObject * obj1 = 0 ; | |
13636 | char *kwnames[] = { | |
13637 | (char *) "self",(char *) "str", NULL | |
13638 | }; | |
13639 | ||
13640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13642 | { | |
13643 | arg2 = wxString_in_helper(obj1); | |
13644 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13645 | temp2 = True; |
d14a1e28 RD |
13646 | } |
13647 | { | |
13648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13649 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13650 | ||
13651 | wxPyEndAllowThreads(__tstate); | |
13652 | if (PyErr_Occurred()) SWIG_fail; | |
13653 | } | |
13654 | Py_INCREF(Py_None); resultobj = Py_None; | |
13655 | { | |
13656 | if (temp2) | |
13657 | delete arg2; | |
13658 | } | |
13659 | return resultobj; | |
13660 | fail: | |
13661 | { | |
13662 | if (temp2) | |
13663 | delete arg2; | |
13664 | } | |
13665 | return NULL; | |
13666 | } | |
13667 | ||
13668 | ||
13669 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
13670 | PyObject *obj; | |
13671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13672 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
13673 | Py_INCREF(obj); | |
13674 | return Py_BuildValue((char *)""); | |
13675 | } | |
13676 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13677 | PyObject *resultobj; | |
13678 | int arg1 = (int) 0 ; | |
13679 | wxFindReplaceData *result; | |
8edf1c75 | 13680 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13681 | char *kwnames[] = { |
13682 | (char *) "flags", NULL | |
13683 | }; | |
13684 | ||
8edf1c75 RD |
13685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; |
13686 | if (obj0) { | |
13687 | { | |
13688 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
13689 | if (PyErr_Occurred()) SWIG_fail; | |
13690 | } | |
13691 | } | |
d14a1e28 RD |
13692 | { |
13693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13694 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
13695 | ||
13696 | wxPyEndAllowThreads(__tstate); | |
13697 | if (PyErr_Occurred()) SWIG_fail; | |
13698 | } | |
13699 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceData, 1); | |
13700 | return resultobj; | |
13701 | fail: | |
13702 | return NULL; | |
13703 | } | |
13704 | ||
13705 | ||
13706 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13707 | PyObject *resultobj; | |
13708 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13709 | PyObject * obj0 = 0 ; | |
13710 | char *kwnames[] = { | |
13711 | (char *) "self", NULL | |
13712 | }; | |
13713 | ||
13714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
13715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13716 | { | |
13717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13718 | delete arg1; | |
13719 | ||
13720 | wxPyEndAllowThreads(__tstate); | |
13721 | if (PyErr_Occurred()) SWIG_fail; | |
13722 | } | |
13723 | Py_INCREF(Py_None); resultobj = Py_None; | |
13724 | return resultobj; | |
13725 | fail: | |
13726 | return NULL; | |
13727 | } | |
13728 | ||
13729 | ||
13730 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13731 | PyObject *resultobj; | |
13732 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13733 | wxString *result; | |
13734 | PyObject * obj0 = 0 ; | |
13735 | char *kwnames[] = { | |
13736 | (char *) "self", NULL | |
13737 | }; | |
13738 | ||
13739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
13740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13741 | { | |
13742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13743 | { | |
13744 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13745 | result = (wxString *) &_result_ref; | |
13746 | } | |
13747 | ||
13748 | wxPyEndAllowThreads(__tstate); | |
13749 | if (PyErr_Occurred()) SWIG_fail; | |
13750 | } | |
f0983263 RD |
13751 | { |
13752 | #if wxUSE_UNICODE | |
13753 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13754 | #else | |
13755 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13756 | #endif | |
13757 | } | |
d14a1e28 RD |
13758 | return resultobj; |
13759 | fail: | |
13760 | return NULL; | |
13761 | } | |
13762 | ||
13763 | ||
13764 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13765 | PyObject *resultobj; | |
13766 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13767 | wxString *result; | |
13768 | PyObject * obj0 = 0 ; | |
13769 | char *kwnames[] = { | |
13770 | (char *) "self", NULL | |
13771 | }; | |
13772 | ||
13773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
13774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13775 | { | |
13776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13777 | { | |
13778 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13779 | result = (wxString *) &_result_ref; | |
13780 | } | |
13781 | ||
13782 | wxPyEndAllowThreads(__tstate); | |
13783 | if (PyErr_Occurred()) SWIG_fail; | |
13784 | } | |
f0983263 RD |
13785 | { |
13786 | #if wxUSE_UNICODE | |
13787 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13788 | #else | |
13789 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13790 | #endif | |
13791 | } | |
d14a1e28 RD |
13792 | return resultobj; |
13793 | fail: | |
13794 | return NULL; | |
13795 | } | |
13796 | ||
13797 | ||
13798 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13799 | PyObject *resultobj; | |
13800 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13801 | int result; | |
13802 | PyObject * obj0 = 0 ; | |
13803 | char *kwnames[] = { | |
13804 | (char *) "self", NULL | |
13805 | }; | |
13806 | ||
13807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
13808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13809 | { | |
13810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13811 | result = (int)(arg1)->GetFlags(); | |
13812 | ||
13813 | wxPyEndAllowThreads(__tstate); | |
13814 | if (PyErr_Occurred()) SWIG_fail; | |
13815 | } | |
8edf1c75 | 13816 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13817 | return resultobj; |
13818 | fail: | |
13819 | return NULL; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13824 | PyObject *resultobj; | |
13825 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13826 | int arg2 ; | |
13827 | PyObject * obj0 = 0 ; | |
8edf1c75 | 13828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13829 | char *kwnames[] = { |
13830 | (char *) "self",(char *) "flags", NULL | |
13831 | }; | |
13832 | ||
8edf1c75 | 13833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
13835 | { |
13836 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13837 | if (PyErr_Occurred()) SWIG_fail; | |
13838 | } | |
d14a1e28 RD |
13839 | { |
13840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13841 | (arg1)->SetFlags(arg2); | |
13842 | ||
13843 | wxPyEndAllowThreads(__tstate); | |
13844 | if (PyErr_Occurred()) SWIG_fail; | |
13845 | } | |
13846 | Py_INCREF(Py_None); resultobj = Py_None; | |
13847 | return resultobj; | |
13848 | fail: | |
13849 | return NULL; | |
13850 | } | |
13851 | ||
13852 | ||
13853 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13854 | PyObject *resultobj; | |
13855 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13856 | wxString *arg2 = 0 ; | |
423f194a | 13857 | bool temp2 = False ; |
d14a1e28 RD |
13858 | PyObject * obj0 = 0 ; |
13859 | PyObject * obj1 = 0 ; | |
13860 | char *kwnames[] = { | |
13861 | (char *) "self",(char *) "str", NULL | |
13862 | }; | |
13863 | ||
13864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13866 | { | |
13867 | arg2 = wxString_in_helper(obj1); | |
13868 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13869 | temp2 = True; |
d14a1e28 RD |
13870 | } |
13871 | { | |
13872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13873 | (arg1)->SetFindString((wxString const &)*arg2); | |
13874 | ||
13875 | wxPyEndAllowThreads(__tstate); | |
13876 | if (PyErr_Occurred()) SWIG_fail; | |
13877 | } | |
13878 | Py_INCREF(Py_None); resultobj = Py_None; | |
13879 | { | |
13880 | if (temp2) | |
13881 | delete arg2; | |
13882 | } | |
13883 | return resultobj; | |
13884 | fail: | |
13885 | { | |
13886 | if (temp2) | |
13887 | delete arg2; | |
13888 | } | |
13889 | return NULL; | |
13890 | } | |
13891 | ||
13892 | ||
13893 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13894 | PyObject *resultobj; | |
13895 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13896 | wxString *arg2 = 0 ; | |
423f194a | 13897 | bool temp2 = False ; |
d14a1e28 RD |
13898 | PyObject * obj0 = 0 ; |
13899 | PyObject * obj1 = 0 ; | |
13900 | char *kwnames[] = { | |
13901 | (char *) "self",(char *) "str", NULL | |
13902 | }; | |
13903 | ||
13904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13906 | { | |
13907 | arg2 = wxString_in_helper(obj1); | |
13908 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13909 | temp2 = True; |
d14a1e28 RD |
13910 | } |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13913 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13914 | ||
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | Py_INCREF(Py_None); resultobj = Py_None; | |
13919 | { | |
13920 | if (temp2) | |
13921 | delete arg2; | |
13922 | } | |
13923 | return resultobj; | |
13924 | fail: | |
13925 | { | |
13926 | if (temp2) | |
13927 | delete arg2; | |
13928 | } | |
13929 | return NULL; | |
13930 | } | |
13931 | ||
13932 | ||
13933 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
13934 | PyObject *obj; | |
13935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13936 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
13937 | Py_INCREF(obj); | |
13938 | return Py_BuildValue((char *)""); | |
13939 | } | |
13940 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13941 | PyObject *resultobj; | |
13942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13943 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
13944 | wxString *arg3 = 0 ; | |
13945 | int arg4 = (int) 0 ; | |
13946 | wxFindReplaceDialog *result; | |
423f194a | 13947 | bool temp3 = False ; |
d14a1e28 RD |
13948 | PyObject * obj0 = 0 ; |
13949 | PyObject * obj1 = 0 ; | |
13950 | PyObject * obj2 = 0 ; | |
8edf1c75 | 13951 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
13952 | char *kwnames[] = { |
13953 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
13954 | }; | |
13955 | ||
8edf1c75 | 13956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
13957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13958 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13959 | { | |
13960 | arg3 = wxString_in_helper(obj2); | |
13961 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13962 | temp3 = True; |
d14a1e28 | 13963 | } |
8edf1c75 RD |
13964 | if (obj3) { |
13965 | { | |
13966 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13967 | if (PyErr_Occurred()) SWIG_fail; | |
13968 | } | |
13969 | } | |
d14a1e28 RD |
13970 | { |
13971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13972 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
13973 | ||
13974 | wxPyEndAllowThreads(__tstate); | |
13975 | if (PyErr_Occurred()) SWIG_fail; | |
13976 | } | |
13977 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceDialog, 1); | |
13978 | { | |
13979 | if (temp3) | |
13980 | delete arg3; | |
13981 | } | |
13982 | return resultobj; | |
13983 | fail: | |
13984 | { | |
13985 | if (temp3) | |
13986 | delete arg3; | |
13987 | } | |
13988 | return NULL; | |
13989 | } | |
13990 | ||
13991 | ||
13992 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13993 | PyObject *resultobj; | |
13994 | wxFindReplaceDialog *result; | |
13995 | char *kwnames[] = { | |
13996 | NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
14000 | { | |
14001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14002 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
14003 | ||
14004 | wxPyEndAllowThreads(__tstate); | |
14005 | if (PyErr_Occurred()) SWIG_fail; | |
14006 | } | |
14007 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceDialog, 1); | |
14008 | return resultobj; | |
14009 | fail: | |
14010 | return NULL; | |
14011 | } | |
14012 | ||
14013 | ||
14014 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14015 | PyObject *resultobj; | |
14016 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14017 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14018 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
14019 | wxString *arg4 = 0 ; | |
14020 | int arg5 = (int) 0 ; | |
14021 | bool result; | |
423f194a | 14022 | bool temp4 = False ; |
d14a1e28 RD |
14023 | PyObject * obj0 = 0 ; |
14024 | PyObject * obj1 = 0 ; | |
14025 | PyObject * obj2 = 0 ; | |
14026 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14027 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14028 | char *kwnames[] = { |
14029 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
14030 | }; | |
14031 | ||
8edf1c75 | 14032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
14033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14034 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14035 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14036 | { | |
14037 | arg4 = wxString_in_helper(obj3); | |
14038 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14039 | temp4 = True; |
d14a1e28 | 14040 | } |
8edf1c75 RD |
14041 | if (obj4) { |
14042 | { | |
14043 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
14044 | if (PyErr_Occurred()) SWIG_fail; | |
14045 | } | |
14046 | } | |
d14a1e28 RD |
14047 | { |
14048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14049 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
14050 | ||
14051 | wxPyEndAllowThreads(__tstate); | |
14052 | if (PyErr_Occurred()) SWIG_fail; | |
14053 | } | |
8edf1c75 | 14054 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14055 | { |
14056 | if (temp4) | |
14057 | delete arg4; | |
14058 | } | |
14059 | return resultobj; | |
14060 | fail: | |
14061 | { | |
14062 | if (temp4) | |
14063 | delete arg4; | |
14064 | } | |
14065 | return NULL; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14070 | PyObject *resultobj; | |
14071 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14072 | wxFindReplaceData *result; | |
14073 | PyObject * obj0 = 0 ; | |
14074 | char *kwnames[] = { | |
14075 | (char *) "self", NULL | |
14076 | }; | |
14077 | ||
14078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14080 | { | |
14081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14082 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14083 | ||
14084 | wxPyEndAllowThreads(__tstate); | |
14085 | if (PyErr_Occurred()) SWIG_fail; | |
14086 | } | |
14087 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceData, 0); | |
14088 | return resultobj; | |
14089 | fail: | |
14090 | return NULL; | |
14091 | } | |
14092 | ||
14093 | ||
14094 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14095 | PyObject *resultobj; | |
14096 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14097 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14098 | PyObject * obj0 = 0 ; | |
14099 | PyObject * obj1 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self",(char *) "data", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14106 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14107 | { | |
14108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14109 | (arg1)->SetData(arg2); | |
14110 | ||
14111 | wxPyEndAllowThreads(__tstate); | |
14112 | if (PyErr_Occurred()) SWIG_fail; | |
14113 | } | |
14114 | Py_INCREF(Py_None); resultobj = Py_None; | |
14115 | return resultobj; | |
14116 | fail: | |
14117 | return NULL; | |
14118 | } | |
14119 | ||
14120 | ||
14121 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14122 | PyObject *obj; | |
14123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14124 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14125 | Py_INCREF(obj); | |
14126 | return Py_BuildValue((char *)""); | |
14127 | } | |
14128 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14129 | PyObject *resultobj; | |
14130 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 14131 | int arg2 ; |
d14a1e28 RD |
14132 | wxString *arg3 = 0 ; |
14133 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14134 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14135 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14136 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14137 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14138 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14139 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14140 | wxMDIParentFrame *result; | |
423f194a | 14141 | bool temp3 = False ; |
d14a1e28 RD |
14142 | wxPoint temp4 ; |
14143 | wxSize temp5 ; | |
423f194a | 14144 | bool temp7 = False ; |
d14a1e28 | 14145 | PyObject * obj0 = 0 ; |
8edf1c75 | 14146 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14147 | PyObject * obj2 = 0 ; |
14148 | PyObject * obj3 = 0 ; | |
14149 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14150 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14151 | PyObject * obj6 = 0 ; |
14152 | char *kwnames[] = { | |
14153 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14154 | }; | |
14155 | ||
8edf1c75 | 14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 14157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14158 | { |
14159 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
14161 | } | |
d14a1e28 RD |
14162 | { |
14163 | arg3 = wxString_in_helper(obj2); | |
14164 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14165 | temp3 = True; |
d14a1e28 RD |
14166 | } |
14167 | if (obj3) { | |
14168 | { | |
14169 | arg4 = &temp4; | |
14170 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14171 | } | |
14172 | } | |
14173 | if (obj4) { | |
14174 | { | |
14175 | arg5 = &temp5; | |
14176 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14177 | } | |
14178 | } | |
8edf1c75 RD |
14179 | if (obj5) { |
14180 | { | |
14181 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14182 | if (PyErr_Occurred()) SWIG_fail; | |
14183 | } | |
14184 | } | |
d14a1e28 RD |
14185 | if (obj6) { |
14186 | { | |
14187 | arg7 = wxString_in_helper(obj6); | |
14188 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14189 | temp7 = True; |
d14a1e28 RD |
14190 | } |
14191 | } | |
14192 | { | |
14193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14194 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14195 | ||
14196 | wxPyEndAllowThreads(__tstate); | |
14197 | if (PyErr_Occurred()) SWIG_fail; | |
14198 | } | |
14199 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMDIParentFrame, 1); | |
14200 | { | |
14201 | if (temp3) | |
14202 | delete arg3; | |
14203 | } | |
14204 | { | |
14205 | if (temp7) | |
14206 | delete arg7; | |
14207 | } | |
14208 | return resultobj; | |
14209 | fail: | |
14210 | { | |
14211 | if (temp3) | |
14212 | delete arg3; | |
14213 | } | |
14214 | { | |
14215 | if (temp7) | |
14216 | delete arg7; | |
14217 | } | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
14222 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14223 | PyObject *resultobj; | |
14224 | wxMDIParentFrame *result; | |
14225 | char *kwnames[] = { | |
14226 | NULL | |
14227 | }; | |
14228 | ||
14229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14230 | { | |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
14237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMDIParentFrame, 1); | |
14238 | return resultobj; | |
14239 | fail: | |
14240 | return NULL; | |
14241 | } | |
14242 | ||
14243 | ||
14244 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14245 | PyObject *resultobj; | |
14246 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14248 | int arg3 ; |
d14a1e28 RD |
14249 | wxString *arg4 = 0 ; |
14250 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14251 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14252 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14253 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14254 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14255 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14256 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14257 | bool result; | |
423f194a | 14258 | bool temp4 = False ; |
d14a1e28 RD |
14259 | wxPoint temp5 ; |
14260 | wxSize temp6 ; | |
423f194a | 14261 | bool temp8 = False ; |
d14a1e28 RD |
14262 | PyObject * obj0 = 0 ; |
14263 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14264 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14265 | PyObject * obj3 = 0 ; |
14266 | PyObject * obj4 = 0 ; | |
14267 | PyObject * obj5 = 0 ; | |
8edf1c75 | 14268 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14269 | PyObject * obj7 = 0 ; |
14270 | char *kwnames[] = { | |
14271 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14272 | }; | |
14273 | ||
8edf1c75 | 14274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
14275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14277 | { |
14278 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
14279 | if (PyErr_Occurred()) SWIG_fail; | |
14280 | } | |
d14a1e28 RD |
14281 | { |
14282 | arg4 = wxString_in_helper(obj3); | |
14283 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14284 | temp4 = True; |
d14a1e28 RD |
14285 | } |
14286 | if (obj4) { | |
14287 | { | |
14288 | arg5 = &temp5; | |
14289 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14290 | } | |
14291 | } | |
14292 | if (obj5) { | |
14293 | { | |
14294 | arg6 = &temp6; | |
14295 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14296 | } | |
14297 | } | |
8edf1c75 RD |
14298 | if (obj6) { |
14299 | { | |
14300 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
14303 | } | |
d14a1e28 RD |
14304 | if (obj7) { |
14305 | { | |
14306 | arg8 = wxString_in_helper(obj7); | |
14307 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 14308 | temp8 = True; |
d14a1e28 RD |
14309 | } |
14310 | } | |
14311 | { | |
14312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14313 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14314 | ||
14315 | wxPyEndAllowThreads(__tstate); | |
14316 | if (PyErr_Occurred()) SWIG_fail; | |
14317 | } | |
8edf1c75 | 14318 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14319 | { |
14320 | if (temp4) | |
14321 | delete arg4; | |
14322 | } | |
14323 | { | |
14324 | if (temp8) | |
14325 | delete arg8; | |
14326 | } | |
14327 | return resultobj; | |
14328 | fail: | |
14329 | { | |
14330 | if (temp4) | |
14331 | delete arg4; | |
14332 | } | |
14333 | { | |
14334 | if (temp8) | |
14335 | delete arg8; | |
14336 | } | |
14337 | return NULL; | |
14338 | } | |
14339 | ||
14340 | ||
14341 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14342 | PyObject *resultobj; | |
14343 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14344 | PyObject * obj0 = 0 ; | |
14345 | char *kwnames[] = { | |
14346 | (char *) "self", NULL | |
14347 | }; | |
14348 | ||
14349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14351 | { | |
14352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14353 | (arg1)->ActivateNext(); | |
14354 | ||
14355 | wxPyEndAllowThreads(__tstate); | |
14356 | if (PyErr_Occurred()) SWIG_fail; | |
14357 | } | |
14358 | Py_INCREF(Py_None); resultobj = Py_None; | |
14359 | return resultobj; | |
14360 | fail: | |
14361 | return NULL; | |
14362 | } | |
14363 | ||
14364 | ||
14365 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14366 | PyObject *resultobj; | |
14367 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14368 | PyObject * obj0 = 0 ; | |
14369 | char *kwnames[] = { | |
14370 | (char *) "self", NULL | |
14371 | }; | |
14372 | ||
14373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14375 | { | |
14376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14377 | (arg1)->ActivatePrevious(); | |
14378 | ||
14379 | wxPyEndAllowThreads(__tstate); | |
14380 | if (PyErr_Occurred()) SWIG_fail; | |
14381 | } | |
14382 | Py_INCREF(Py_None); resultobj = Py_None; | |
14383 | return resultobj; | |
14384 | fail: | |
14385 | return NULL; | |
14386 | } | |
14387 | ||
14388 | ||
14389 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14390 | PyObject *resultobj; | |
14391 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14392 | PyObject * obj0 = 0 ; | |
14393 | char *kwnames[] = { | |
14394 | (char *) "self", NULL | |
14395 | }; | |
14396 | ||
14397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14399 | { | |
14400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14401 | (arg1)->ArrangeIcons(); | |
14402 | ||
14403 | wxPyEndAllowThreads(__tstate); | |
14404 | if (PyErr_Occurred()) SWIG_fail; | |
14405 | } | |
14406 | Py_INCREF(Py_None); resultobj = Py_None; | |
14407 | return resultobj; | |
14408 | fail: | |
14409 | return NULL; | |
14410 | } | |
14411 | ||
14412 | ||
14413 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14414 | PyObject *resultobj; | |
14415 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14416 | PyObject * obj0 = 0 ; | |
14417 | char *kwnames[] = { | |
14418 | (char *) "self", NULL | |
14419 | }; | |
14420 | ||
14421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14423 | { | |
14424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14425 | (arg1)->Cascade(); | |
14426 | ||
14427 | wxPyEndAllowThreads(__tstate); | |
14428 | if (PyErr_Occurred()) SWIG_fail; | |
14429 | } | |
14430 | Py_INCREF(Py_None); resultobj = Py_None; | |
14431 | return resultobj; | |
14432 | fail: | |
14433 | return NULL; | |
14434 | } | |
14435 | ||
14436 | ||
14437 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14438 | PyObject *resultobj; | |
14439 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14440 | wxMDIChildFrame *result; | |
14441 | PyObject * obj0 = 0 ; | |
14442 | char *kwnames[] = { | |
14443 | (char *) "self", NULL | |
14444 | }; | |
14445 | ||
14446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",kwnames,&obj0)) goto fail; | |
14447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14448 | { | |
14449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14450 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14451 | ||
14452 | wxPyEndAllowThreads(__tstate); | |
14453 | if (PyErr_Occurred()) SWIG_fail; | |
14454 | } | |
14455 | { | |
14456 | resultobj = wxPyMake_wxObject(result); | |
14457 | } | |
14458 | return resultobj; | |
14459 | fail: | |
14460 | return NULL; | |
14461 | } | |
14462 | ||
14463 | ||
14464 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14465 | PyObject *resultobj; | |
14466 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14467 | wxMDIClientWindow *result; | |
14468 | PyObject * obj0 = 0 ; | |
14469 | char *kwnames[] = { | |
14470 | (char *) "self", NULL | |
14471 | }; | |
14472 | ||
14473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14475 | { | |
14476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14477 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14478 | ||
14479 | wxPyEndAllowThreads(__tstate); | |
14480 | if (PyErr_Occurred()) SWIG_fail; | |
14481 | } | |
14482 | { | |
14483 | resultobj = wxPyMake_wxObject(result); | |
14484 | } | |
14485 | return resultobj; | |
14486 | fail: | |
14487 | return NULL; | |
14488 | } | |
14489 | ||
14490 | ||
14491 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14492 | PyObject *resultobj; | |
14493 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14494 | wxWindow *result; | |
14495 | PyObject * obj0 = 0 ; | |
14496 | char *kwnames[] = { | |
14497 | (char *) "self", NULL | |
14498 | }; | |
14499 | ||
14500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
14501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14502 | { | |
14503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14504 | result = (wxWindow *)(arg1)->GetToolBar(); | |
14505 | ||
14506 | wxPyEndAllowThreads(__tstate); | |
14507 | if (PyErr_Occurred()) SWIG_fail; | |
14508 | } | |
14509 | { | |
14510 | resultobj = wxPyMake_wxObject(result); | |
14511 | } | |
14512 | return resultobj; | |
14513 | fail: | |
14514 | return NULL; | |
14515 | } | |
14516 | ||
14517 | ||
14518 | static PyObject *_wrap_MDIParentFrame_GetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14519 | PyObject *resultobj; | |
14520 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14521 | wxMenu *result; | |
14522 | PyObject * obj0 = 0 ; | |
14523 | char *kwnames[] = { | |
14524 | (char *) "self", NULL | |
14525 | }; | |
14526 | ||
14527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetWindowMenu",kwnames,&obj0)) goto fail; | |
14528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14529 | { | |
14530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14531 | result = (wxMenu *)(arg1)->GetWindowMenu(); | |
14532 | ||
14533 | wxPyEndAllowThreads(__tstate); | |
14534 | if (PyErr_Occurred()) SWIG_fail; | |
14535 | } | |
14536 | { | |
14537 | resultobj = wxPyMake_wxObject(result); | |
14538 | } | |
14539 | return resultobj; | |
14540 | fail: | |
14541 | return NULL; | |
14542 | } | |
14543 | ||
14544 | ||
14545 | static PyObject *_wrap_MDIParentFrame_SetWindowMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14546 | PyObject *resultobj; | |
14547 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14548 | wxMenu *arg2 = (wxMenu *) 0 ; | |
14549 | PyObject * obj0 = 0 ; | |
14550 | PyObject * obj1 = 0 ; | |
14551 | char *kwnames[] = { | |
14552 | (char *) "self",(char *) "menu", NULL | |
14553 | }; | |
14554 | ||
14555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetWindowMenu",kwnames,&obj0,&obj1)) goto fail; | |
14556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14557 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14558 | { | |
14559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14560 | (arg1)->SetWindowMenu(arg2); | |
14561 | ||
14562 | wxPyEndAllowThreads(__tstate); | |
14563 | if (PyErr_Occurred()) SWIG_fail; | |
14564 | } | |
14565 | Py_INCREF(Py_None); resultobj = Py_None; | |
14566 | return resultobj; | |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
14572 | static PyObject *_wrap_MDIParentFrame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14573 | PyObject *resultobj; | |
14574 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14575 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
14576 | PyObject * obj0 = 0 ; | |
14577 | PyObject * obj1 = 0 ; | |
14578 | char *kwnames[] = { | |
14579 | (char *) "self",(char *) "toolbar", NULL | |
14580 | }; | |
14581 | ||
14582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIParentFrame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
14583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14584 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14585 | { | |
14586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14587 | (arg1)->SetToolBar(arg2); | |
14588 | ||
14589 | wxPyEndAllowThreads(__tstate); | |
14590 | if (PyErr_Occurred()) SWIG_fail; | |
14591 | } | |
14592 | Py_INCREF(Py_None); resultobj = Py_None; | |
14593 | return resultobj; | |
14594 | fail: | |
14595 | return NULL; | |
14596 | } | |
14597 | ||
14598 | ||
14599 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14600 | PyObject *resultobj; | |
14601 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14602 | PyObject * obj0 = 0 ; | |
14603 | char *kwnames[] = { | |
14604 | (char *) "self", NULL | |
14605 | }; | |
14606 | ||
14607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
14608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14609 | { | |
14610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14611 | (arg1)->Tile(); | |
14612 | ||
14613 | wxPyEndAllowThreads(__tstate); | |
14614 | if (PyErr_Occurred()) SWIG_fail; | |
14615 | } | |
14616 | Py_INCREF(Py_None); resultobj = Py_None; | |
14617 | return resultobj; | |
14618 | fail: | |
14619 | return NULL; | |
14620 | } | |
14621 | ||
14622 | ||
14623 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
14624 | PyObject *obj; | |
14625 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14626 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
14627 | Py_INCREF(obj); | |
14628 | return Py_BuildValue((char *)""); | |
14629 | } | |
14630 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14631 | PyObject *resultobj; | |
14632 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
423f194a | 14633 | int arg2 ; |
d14a1e28 RD |
14634 | wxString *arg3 = 0 ; |
14635 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14636 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14637 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14638 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14639 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
14640 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14641 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14642 | wxMDIChildFrame *result; | |
423f194a | 14643 | bool temp3 = False ; |
d14a1e28 RD |
14644 | wxPoint temp4 ; |
14645 | wxSize temp5 ; | |
423f194a | 14646 | bool temp7 = False ; |
d14a1e28 | 14647 | PyObject * obj0 = 0 ; |
8edf1c75 | 14648 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14649 | PyObject * obj2 = 0 ; |
14650 | PyObject * obj3 = 0 ; | |
14651 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14652 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14653 | PyObject * obj6 = 0 ; |
14654 | char *kwnames[] = { | |
14655 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14656 | }; | |
14657 | ||
8edf1c75 | 14658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 14659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14660 | { |
14661 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
14662 | if (PyErr_Occurred()) SWIG_fail; | |
14663 | } | |
d14a1e28 RD |
14664 | { |
14665 | arg3 = wxString_in_helper(obj2); | |
14666 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14667 | temp3 = True; |
d14a1e28 RD |
14668 | } |
14669 | if (obj3) { | |
14670 | { | |
14671 | arg4 = &temp4; | |
14672 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14673 | } | |
14674 | } | |
14675 | if (obj4) { | |
14676 | { | |
14677 | arg5 = &temp5; | |
14678 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14679 | } | |
14680 | } | |
8edf1c75 RD |
14681 | if (obj5) { |
14682 | { | |
14683 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14684 | if (PyErr_Occurred()) SWIG_fail; | |
14685 | } | |
14686 | } | |
d14a1e28 RD |
14687 | if (obj6) { |
14688 | { | |
14689 | arg7 = wxString_in_helper(obj6); | |
14690 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14691 | temp7 = True; |
d14a1e28 RD |
14692 | } |
14693 | } | |
14694 | { | |
14695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14696 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14697 | ||
14698 | wxPyEndAllowThreads(__tstate); | |
14699 | if (PyErr_Occurred()) SWIG_fail; | |
14700 | } | |
14701 | { | |
14702 | resultobj = wxPyMake_wxObject(result); | |
14703 | } | |
14704 | { | |
14705 | if (temp3) | |
14706 | delete arg3; | |
14707 | } | |
14708 | { | |
14709 | if (temp7) | |
14710 | delete arg7; | |
14711 | } | |
14712 | return resultobj; | |
14713 | fail: | |
14714 | { | |
14715 | if (temp3) | |
14716 | delete arg3; | |
14717 | } | |
14718 | { | |
14719 | if (temp7) | |
14720 | delete arg7; | |
14721 | } | |
14722 | return NULL; | |
14723 | } | |
14724 | ||
14725 | ||
14726 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14727 | PyObject *resultobj; | |
14728 | wxMDIChildFrame *result; | |
14729 | char *kwnames[] = { | |
14730 | NULL | |
14731 | }; | |
14732 | ||
14733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
14734 | { | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
14737 | ||
14738 | wxPyEndAllowThreads(__tstate); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
14741 | { | |
14742 | resultobj = wxPyMake_wxObject(result); | |
14743 | } | |
14744 | return resultobj; | |
14745 | fail: | |
14746 | return NULL; | |
14747 | } | |
14748 | ||
14749 | ||
14750 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14751 | PyObject *resultobj; | |
14752 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14753 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
423f194a | 14754 | int arg3 ; |
d14a1e28 RD |
14755 | wxString *arg4 = 0 ; |
14756 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14757 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14758 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14759 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14760 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
14761 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14762 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14763 | bool result; | |
423f194a | 14764 | bool temp4 = False ; |
d14a1e28 RD |
14765 | wxPoint temp5 ; |
14766 | wxSize temp6 ; | |
423f194a | 14767 | bool temp8 = False ; |
d14a1e28 RD |
14768 | PyObject * obj0 = 0 ; |
14769 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14770 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14771 | PyObject * obj3 = 0 ; |
14772 | PyObject * obj4 = 0 ; | |
14773 | PyObject * obj5 = 0 ; | |
8edf1c75 | 14774 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14775 | PyObject * obj7 = 0 ; |
14776 | char *kwnames[] = { | |
14777 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14778 | }; | |
14779 | ||
8edf1c75 | 14780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
14781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14782 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
14783 | { |
14784 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
14785 | if (PyErr_Occurred()) SWIG_fail; | |
14786 | } | |
d14a1e28 RD |
14787 | { |
14788 | arg4 = wxString_in_helper(obj3); | |
14789 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 14790 | temp4 = True; |
d14a1e28 RD |
14791 | } |
14792 | if (obj4) { | |
14793 | { | |
14794 | arg5 = &temp5; | |
14795 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14796 | } | |
14797 | } | |
14798 | if (obj5) { | |
14799 | { | |
14800 | arg6 = &temp6; | |
14801 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14802 | } | |
14803 | } | |
8edf1c75 RD |
14804 | if (obj6) { |
14805 | { | |
14806 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
14808 | } | |
14809 | } | |
d14a1e28 RD |
14810 | if (obj7) { |
14811 | { | |
14812 | arg8 = wxString_in_helper(obj7); | |
14813 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 14814 | temp8 = True; |
d14a1e28 RD |
14815 | } |
14816 | } | |
14817 | { | |
14818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14819 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14820 | ||
14821 | wxPyEndAllowThreads(__tstate); | |
14822 | if (PyErr_Occurred()) SWIG_fail; | |
14823 | } | |
8edf1c75 | 14824 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
14825 | { |
14826 | if (temp4) | |
14827 | delete arg4; | |
14828 | } | |
14829 | { | |
14830 | if (temp8) | |
14831 | delete arg8; | |
14832 | } | |
14833 | return resultobj; | |
14834 | fail: | |
14835 | { | |
14836 | if (temp4) | |
14837 | delete arg4; | |
14838 | } | |
14839 | { | |
14840 | if (temp8) | |
14841 | delete arg8; | |
14842 | } | |
14843 | return NULL; | |
14844 | } | |
14845 | ||
14846 | ||
14847 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14848 | PyObject *resultobj; | |
14849 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14850 | PyObject * obj0 = 0 ; | |
14851 | char *kwnames[] = { | |
14852 | (char *) "self", NULL | |
14853 | }; | |
14854 | ||
14855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
14856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14857 | { | |
14858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14859 | (arg1)->Activate(); | |
14860 | ||
14861 | wxPyEndAllowThreads(__tstate); | |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
14863 | } | |
14864 | Py_INCREF(Py_None); resultobj = Py_None; | |
14865 | return resultobj; | |
14866 | fail: | |
14867 | return NULL; | |
14868 | } | |
14869 | ||
14870 | ||
14871 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14872 | PyObject *resultobj; | |
14873 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14874 | bool arg2 ; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | PyObject * obj1 = 0 ; | |
14877 | char *kwnames[] = { | |
14878 | (char *) "self",(char *) "maximize", NULL | |
14879 | }; | |
14880 | ||
14881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
14882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 14883 | { |
8edf1c75 | 14884 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
14885 | if (PyErr_Occurred()) SWIG_fail; |
14886 | } | |
d14a1e28 RD |
14887 | { |
14888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14889 | (arg1)->Maximize(arg2); | |
14890 | ||
14891 | wxPyEndAllowThreads(__tstate); | |
14892 | if (PyErr_Occurred()) SWIG_fail; | |
14893 | } | |
14894 | Py_INCREF(Py_None); resultobj = Py_None; | |
14895 | return resultobj; | |
14896 | fail: | |
14897 | return NULL; | |
14898 | } | |
14899 | ||
14900 | ||
14901 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14902 | PyObject *resultobj; | |
14903 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14904 | PyObject * obj0 = 0 ; | |
14905 | char *kwnames[] = { | |
14906 | (char *) "self", NULL | |
14907 | }; | |
14908 | ||
14909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
14910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14911 | { | |
14912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14913 | (arg1)->Restore(); | |
14914 | ||
14915 | wxPyEndAllowThreads(__tstate); | |
14916 | if (PyErr_Occurred()) SWIG_fail; | |
14917 | } | |
14918 | Py_INCREF(Py_None); resultobj = Py_None; | |
14919 | return resultobj; | |
14920 | fail: | |
14921 | return NULL; | |
14922 | } | |
14923 | ||
14924 | ||
14925 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
14926 | PyObject *obj; | |
14927 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14928 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
14929 | Py_INCREF(obj); | |
14930 | return Py_BuildValue((char *)""); | |
14931 | } | |
14932 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14933 | PyObject *resultobj; | |
14934 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14935 | long arg2 = (long) 0 ; | |
14936 | wxMDIClientWindow *result; | |
14937 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14939 | char *kwnames[] = { |
14940 | (char *) "parent",(char *) "style", NULL | |
14941 | }; | |
14942 | ||
8edf1c75 | 14943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
14945 | if (obj1) { |
14946 | { | |
14947 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
14950 | } | |
d14a1e28 RD |
14951 | { |
14952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14953 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
14954 | ||
14955 | wxPyEndAllowThreads(__tstate); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
14958 | { | |
14959 | resultobj = wxPyMake_wxObject(result); | |
14960 | } | |
14961 | return resultobj; | |
14962 | fail: | |
14963 | return NULL; | |
14964 | } | |
14965 | ||
14966 | ||
14967 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14968 | PyObject *resultobj; | |
14969 | wxMDIClientWindow *result; | |
14970 | char *kwnames[] = { | |
14971 | NULL | |
14972 | }; | |
14973 | ||
14974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
14975 | { | |
14976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14977 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
14978 | ||
14979 | wxPyEndAllowThreads(__tstate); | |
14980 | if (PyErr_Occurred()) SWIG_fail; | |
14981 | } | |
14982 | { | |
14983 | resultobj = wxPyMake_wxObject(result); | |
14984 | } | |
14985 | return resultobj; | |
14986 | fail: | |
14987 | return NULL; | |
14988 | } | |
14989 | ||
14990 | ||
14991 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14992 | PyObject *resultobj; | |
14993 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
14994 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14995 | long arg3 = (long) 0 ; | |
14996 | bool result; | |
14997 | PyObject * obj0 = 0 ; | |
14998 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14999 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15000 | char *kwnames[] = { |
15001 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
15002 | }; | |
15003 | ||
8edf1c75 | 15004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
15005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIClientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
15006 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
15007 | if (obj2) { |
15008 | { | |
15009 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
15010 | if (PyErr_Occurred()) SWIG_fail; | |
15011 | } | |
15012 | } | |
d14a1e28 RD |
15013 | { |
15014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15015 | result = (bool)(arg1)->Create(arg2,arg3); | |
15016 | ||
15017 | wxPyEndAllowThreads(__tstate); | |
15018 | if (PyErr_Occurred()) SWIG_fail; | |
15019 | } | |
8edf1c75 | 15020 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15021 | return resultobj; |
15022 | fail: | |
15023 | return NULL; | |
15024 | } | |
15025 | ||
15026 | ||
15027 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
15028 | PyObject *obj; | |
15029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15030 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
15031 | Py_INCREF(obj); | |
15032 | return Py_BuildValue((char *)""); | |
15033 | } | |
15034 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15035 | PyObject *resultobj; | |
15036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 15037 | int arg2 ; |
d14a1e28 RD |
15038 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15039 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15040 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15041 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15042 | long arg5 = (long) 0 ; | |
15043 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15044 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15045 | wxPyWindow *result; | |
15046 | wxPoint temp3 ; | |
15047 | wxSize temp4 ; | |
423f194a | 15048 | bool temp6 = False ; |
d14a1e28 | 15049 | PyObject * obj0 = 0 ; |
8edf1c75 | 15050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15051 | PyObject * obj2 = 0 ; |
15052 | PyObject * obj3 = 0 ; | |
8edf1c75 | 15053 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15054 | PyObject * obj5 = 0 ; |
15055 | char *kwnames[] = { | |
15056 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15057 | }; | |
15058 | ||
8edf1c75 | 15059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 15060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15061 | { |
15062 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
15063 | if (PyErr_Occurred()) SWIG_fail; | |
15064 | } | |
d14a1e28 RD |
15065 | if (obj2) { |
15066 | { | |
15067 | arg3 = &temp3; | |
15068 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15069 | } | |
15070 | } | |
15071 | if (obj3) { | |
15072 | { | |
15073 | arg4 = &temp4; | |
15074 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15075 | } | |
15076 | } | |
8edf1c75 RD |
15077 | if (obj4) { |
15078 | { | |
15079 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
15080 | if (PyErr_Occurred()) SWIG_fail; | |
15081 | } | |
15082 | } | |
d14a1e28 RD |
15083 | if (obj5) { |
15084 | { | |
15085 | arg6 = wxString_in_helper(obj5); | |
15086 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 15087 | temp6 = True; |
d14a1e28 RD |
15088 | } |
15089 | } | |
15090 | { | |
15091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15092 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15093 | ||
15094 | wxPyEndAllowThreads(__tstate); | |
15095 | if (PyErr_Occurred()) SWIG_fail; | |
15096 | } | |
15097 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyWindow, 1); | |
15098 | { | |
15099 | if (temp6) | |
15100 | delete arg6; | |
15101 | } | |
15102 | return resultobj; | |
15103 | fail: | |
15104 | { | |
15105 | if (temp6) | |
15106 | delete arg6; | |
15107 | } | |
15108 | return NULL; | |
15109 | } | |
15110 | ||
15111 | ||
15112 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15113 | PyObject *resultobj; | |
15114 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15115 | PyObject *arg2 = (PyObject *) 0 ; | |
15116 | PyObject *arg3 = (PyObject *) 0 ; | |
15117 | PyObject * obj0 = 0 ; | |
15118 | PyObject * obj1 = 0 ; | |
15119 | PyObject * obj2 = 0 ; | |
15120 | char *kwnames[] = { | |
15121 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15122 | }; | |
15123 | ||
15124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15126 | arg2 = obj1; | |
15127 | arg3 = obj2; | |
15128 | { | |
15129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15130 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15131 | ||
15132 | wxPyEndAllowThreads(__tstate); | |
15133 | if (PyErr_Occurred()) SWIG_fail; | |
15134 | } | |
15135 | Py_INCREF(Py_None); resultobj = Py_None; | |
15136 | return resultobj; | |
15137 | fail: | |
15138 | return NULL; | |
15139 | } | |
15140 | ||
15141 | ||
15142 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15143 | PyObject *resultobj; | |
15144 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15145 | int arg2 ; | |
15146 | int arg3 ; | |
15147 | int arg4 ; | |
15148 | int arg5 ; | |
15149 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15150 | PyObject * obj1 = 0 ; |
15151 | PyObject * obj2 = 0 ; | |
15152 | PyObject * obj3 = 0 ; | |
15153 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
15154 | char *kwnames[] = { |
15155 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15156 | }; | |
15157 | ||
8edf1c75 | 15158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 15159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15160 | { |
15161 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | { | |
15165 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15166 | if (PyErr_Occurred()) SWIG_fail; | |
15167 | } | |
15168 | { | |
15169 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15170 | if (PyErr_Occurred()) SWIG_fail; | |
15171 | } | |
15172 | { | |
15173 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15174 | if (PyErr_Occurred()) SWIG_fail; | |
15175 | } | |
d14a1e28 RD |
15176 | { |
15177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15178 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15179 | ||
15180 | wxPyEndAllowThreads(__tstate); | |
15181 | if (PyErr_Occurred()) SWIG_fail; | |
15182 | } | |
15183 | Py_INCREF(Py_None); resultobj = Py_None; | |
15184 | return resultobj; | |
15185 | fail: | |
15186 | return NULL; | |
15187 | } | |
15188 | ||
15189 | ||
15190 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15191 | PyObject *resultobj; | |
15192 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15193 | int arg2 ; | |
15194 | int arg3 ; | |
15195 | int arg4 ; | |
15196 | int arg5 ; | |
15197 | int arg6 = (int) wxSIZE_AUTO ; | |
15198 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15199 | PyObject * obj1 = 0 ; |
15200 | PyObject * obj2 = 0 ; | |
15201 | PyObject * obj3 = 0 ; | |
15202 | PyObject * obj4 = 0 ; | |
15203 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15204 | char *kwnames[] = { |
15205 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15206 | }; | |
15207 | ||
8edf1c75 | 15208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 15209 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15210 | { |
15211 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15212 | if (PyErr_Occurred()) SWIG_fail; | |
15213 | } | |
15214 | { | |
15215 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15216 | if (PyErr_Occurred()) SWIG_fail; | |
15217 | } | |
15218 | { | |
15219 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15220 | if (PyErr_Occurred()) SWIG_fail; | |
15221 | } | |
15222 | { | |
15223 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15224 | if (PyErr_Occurred()) SWIG_fail; | |
15225 | } | |
15226 | if (obj5) { | |
15227 | { | |
15228 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15229 | if (PyErr_Occurred()) SWIG_fail; | |
15230 | } | |
15231 | } | |
d14a1e28 RD |
15232 | { |
15233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15234 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15235 | ||
15236 | wxPyEndAllowThreads(__tstate); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | } | |
15239 | Py_INCREF(Py_None); resultobj = Py_None; | |
15240 | return resultobj; | |
15241 | fail: | |
15242 | return NULL; | |
15243 | } | |
15244 | ||
15245 | ||
15246 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15247 | PyObject *resultobj; | |
15248 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15249 | int arg2 ; | |
15250 | int arg3 ; | |
15251 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15252 | PyObject * obj1 = 0 ; |
15253 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15254 | char *kwnames[] = { |
15255 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15256 | }; | |
15257 | ||
8edf1c75 | 15258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15260 | { |
15261 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15262 | if (PyErr_Occurred()) SWIG_fail; | |
15263 | } | |
15264 | { | |
15265 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15266 | if (PyErr_Occurred()) SWIG_fail; | |
15267 | } | |
d14a1e28 RD |
15268 | { |
15269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15270 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15271 | ||
15272 | wxPyEndAllowThreads(__tstate); | |
15273 | if (PyErr_Occurred()) SWIG_fail; | |
15274 | } | |
15275 | Py_INCREF(Py_None); resultobj = Py_None; | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
15282 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj; | |
15284 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15285 | int arg2 ; | |
15286 | int arg3 ; | |
15287 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15288 | PyObject * obj1 = 0 ; |
15289 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15290 | char *kwnames[] = { |
15291 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15292 | }; | |
15293 | ||
8edf1c75 | 15294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15295 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15296 | { |
15297 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15298 | if (PyErr_Occurred()) SWIG_fail; | |
15299 | } | |
15300 | { | |
15301 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15302 | if (PyErr_Occurred()) SWIG_fail; | |
15303 | } | |
d14a1e28 RD |
15304 | { |
15305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15306 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15307 | ||
15308 | wxPyEndAllowThreads(__tstate); | |
15309 | if (PyErr_Occurred()) SWIG_fail; | |
15310 | } | |
15311 | Py_INCREF(Py_None); resultobj = Py_None; | |
15312 | return resultobj; | |
15313 | fail: | |
15314 | return NULL; | |
15315 | } | |
15316 | ||
15317 | ||
15318 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15319 | PyObject *resultobj; | |
15320 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15321 | int *arg2 = (int *) 0 ; | |
15322 | int *arg3 = (int *) 0 ; | |
15323 | int temp2 ; | |
15324 | int temp3 ; | |
15325 | PyObject * obj0 = 0 ; | |
15326 | char *kwnames[] = { | |
15327 | (char *) "self", NULL | |
15328 | }; | |
15329 | ||
15330 | arg2 = &temp2; | |
15331 | arg3 = &temp3; | |
15332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15334 | { | |
15335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15336 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15337 | ||
15338 | wxPyEndAllowThreads(__tstate); | |
15339 | if (PyErr_Occurred()) SWIG_fail; | |
15340 | } | |
15341 | Py_INCREF(Py_None); resultobj = Py_None; | |
15342 | { | |
15343 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15344 | resultobj = t_output_helper(resultobj,o); | |
15345 | } | |
15346 | { | |
15347 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15348 | resultobj = t_output_helper(resultobj,o); | |
15349 | } | |
15350 | return resultobj; | |
15351 | fail: | |
15352 | return NULL; | |
15353 | } | |
15354 | ||
15355 | ||
15356 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15357 | PyObject *resultobj; | |
15358 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15359 | int *arg2 = (int *) 0 ; | |
15360 | int *arg3 = (int *) 0 ; | |
15361 | int temp2 ; | |
15362 | int temp3 ; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | char *kwnames[] = { | |
15365 | (char *) "self", NULL | |
15366 | }; | |
15367 | ||
15368 | arg2 = &temp2; | |
15369 | arg3 = &temp3; | |
15370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15372 | { | |
15373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15374 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15375 | ||
15376 | wxPyEndAllowThreads(__tstate); | |
15377 | if (PyErr_Occurred()) SWIG_fail; | |
15378 | } | |
15379 | Py_INCREF(Py_None); resultobj = Py_None; | |
15380 | { | |
15381 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15382 | resultobj = t_output_helper(resultobj,o); | |
15383 | } | |
15384 | { | |
15385 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15386 | resultobj = t_output_helper(resultobj,o); | |
15387 | } | |
15388 | return resultobj; | |
15389 | fail: | |
15390 | return NULL; | |
15391 | } | |
15392 | ||
15393 | ||
15394 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15395 | PyObject *resultobj; | |
15396 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15397 | int *arg2 = (int *) 0 ; | |
15398 | int *arg3 = (int *) 0 ; | |
15399 | int temp2 ; | |
15400 | int temp3 ; | |
15401 | PyObject * obj0 = 0 ; | |
15402 | char *kwnames[] = { | |
15403 | (char *) "self", NULL | |
15404 | }; | |
15405 | ||
15406 | arg2 = &temp2; | |
15407 | arg3 = &temp3; | |
15408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15409 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15410 | { | |
15411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15412 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15413 | ||
15414 | wxPyEndAllowThreads(__tstate); | |
15415 | if (PyErr_Occurred()) SWIG_fail; | |
15416 | } | |
15417 | Py_INCREF(Py_None); resultobj = Py_None; | |
15418 | { | |
15419 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15420 | resultobj = t_output_helper(resultobj,o); | |
15421 | } | |
15422 | { | |
15423 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15424 | resultobj = t_output_helper(resultobj,o); | |
15425 | } | |
15426 | return resultobj; | |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
15432 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15435 | wxSize result; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15443 | { | |
15444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15445 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
15446 | ||
15447 | wxPyEndAllowThreads(__tstate); | |
15448 | if (PyErr_Occurred()) SWIG_fail; | |
15449 | } | |
15450 | { | |
15451 | wxSize * resultptr; | |
15452 | resultptr = new wxSize((wxSize &) result); | |
15453 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15454 | } | |
15455 | return resultobj; | |
15456 | fail: | |
15457 | return NULL; | |
15458 | } | |
15459 | ||
15460 | ||
15461 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15462 | PyObject *resultobj; | |
15463 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15464 | wxSize result; | |
15465 | PyObject * obj0 = 0 ; | |
15466 | char *kwnames[] = { | |
15467 | (char *) "self", NULL | |
15468 | }; | |
15469 | ||
15470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15472 | { | |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15474 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
15475 | ||
15476 | wxPyEndAllowThreads(__tstate); | |
15477 | if (PyErr_Occurred()) SWIG_fail; | |
15478 | } | |
15479 | { | |
15480 | wxSize * resultptr; | |
15481 | resultptr = new wxSize((wxSize &) result); | |
15482 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15483 | } | |
15484 | return resultobj; | |
15485 | fail: | |
15486 | return NULL; | |
15487 | } | |
15488 | ||
15489 | ||
15490 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15491 | PyObject *resultobj; | |
15492 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15493 | PyObject * obj0 = 0 ; | |
15494 | char *kwnames[] = { | |
15495 | (char *) "self", NULL | |
15496 | }; | |
15497 | ||
15498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
15499 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15500 | { | |
15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15502 | (arg1)->base_InitDialog(); | |
15503 | ||
15504 | wxPyEndAllowThreads(__tstate); | |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
15506 | } | |
15507 | Py_INCREF(Py_None); resultobj = Py_None; | |
15508 | return resultobj; | |
15509 | fail: | |
15510 | return NULL; | |
15511 | } | |
15512 | ||
15513 | ||
15514 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15515 | PyObject *resultobj; | |
15516 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15517 | bool result; | |
15518 | PyObject * obj0 = 0 ; | |
15519 | char *kwnames[] = { | |
15520 | (char *) "self", NULL | |
15521 | }; | |
15522 | ||
15523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15525 | { | |
15526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15527 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15528 | ||
15529 | wxPyEndAllowThreads(__tstate); | |
15530 | if (PyErr_Occurred()) SWIG_fail; | |
15531 | } | |
8edf1c75 | 15532 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15533 | return resultobj; |
15534 | fail: | |
15535 | return NULL; | |
15536 | } | |
15537 | ||
15538 | ||
15539 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15540 | PyObject *resultobj; | |
15541 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15542 | bool result; | |
15543 | PyObject * obj0 = 0 ; | |
15544 | char *kwnames[] = { | |
15545 | (char *) "self", NULL | |
15546 | }; | |
15547 | ||
15548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15550 | { | |
15551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15552 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15553 | ||
15554 | wxPyEndAllowThreads(__tstate); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | } | |
8edf1c75 | 15557 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15558 | return resultobj; |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
15564 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15565 | PyObject *resultobj; | |
15566 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15567 | bool result; | |
15568 | PyObject * obj0 = 0 ; | |
15569 | char *kwnames[] = { | |
15570 | (char *) "self", NULL | |
15571 | }; | |
15572 | ||
15573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
15574 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15575 | { | |
15576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15577 | result = (bool)(arg1)->base_Validate(); | |
15578 | ||
15579 | wxPyEndAllowThreads(__tstate); | |
15580 | if (PyErr_Occurred()) SWIG_fail; | |
15581 | } | |
8edf1c75 | 15582 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15583 | return resultobj; |
15584 | fail: | |
15585 | return NULL; | |
15586 | } | |
15587 | ||
15588 | ||
15589 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15590 | PyObject *resultobj; | |
15591 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15592 | bool result; | |
15593 | PyObject * obj0 = 0 ; | |
15594 | char *kwnames[] = { | |
15595 | (char *) "self", NULL | |
15596 | }; | |
15597 | ||
15598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15600 | { | |
15601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15602 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
15603 | ||
15604 | wxPyEndAllowThreads(__tstate); | |
15605 | if (PyErr_Occurred()) SWIG_fail; | |
15606 | } | |
8edf1c75 | 15607 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15608 | return resultobj; |
15609 | fail: | |
15610 | return NULL; | |
15611 | } | |
15612 | ||
15613 | ||
15614 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15615 | PyObject *resultobj; | |
15616 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15617 | bool result; | |
15618 | PyObject * obj0 = 0 ; | |
15619 | char *kwnames[] = { | |
15620 | (char *) "self", NULL | |
15621 | }; | |
15622 | ||
15623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15625 | { | |
15626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15627 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
15628 | ||
15629 | wxPyEndAllowThreads(__tstate); | |
15630 | if (PyErr_Occurred()) SWIG_fail; | |
15631 | } | |
8edf1c75 | 15632 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
15633 | return resultobj; |
15634 | fail: | |
15635 | return NULL; | |
15636 | } | |
15637 | ||
15638 | ||
15639 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15640 | PyObject *resultobj; | |
15641 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15642 | wxSize result; | |
15643 | PyObject * obj0 = 0 ; | |
15644 | char *kwnames[] = { | |
15645 | (char *) "self", NULL | |
15646 | }; | |
15647 | ||
15648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15650 | { | |
15651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15652 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
15653 | ||
15654 | wxPyEndAllowThreads(__tstate); | |
15655 | if (PyErr_Occurred()) SWIG_fail; | |
15656 | } | |
15657 | { | |
15658 | wxSize * resultptr; | |
15659 | resultptr = new wxSize((wxSize &) result); | |
15660 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15661 | } | |
15662 | return resultobj; | |
15663 | fail: | |
15664 | return NULL; | |
15665 | } | |
15666 | ||
15667 | ||
15668 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15669 | PyObject *resultobj; | |
15670 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15671 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15672 | PyObject * obj0 = 0 ; | |
15673 | PyObject * obj1 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self",(char *) "child", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15680 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15681 | { | |
15682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15683 | (arg1)->base_AddChild(arg2); | |
15684 | ||
15685 | wxPyEndAllowThreads(__tstate); | |
15686 | if (PyErr_Occurred()) SWIG_fail; | |
15687 | } | |
15688 | Py_INCREF(Py_None); resultobj = Py_None; | |
15689 | return resultobj; | |
15690 | fail: | |
15691 | return NULL; | |
15692 | } | |
15693 | ||
15694 | ||
15695 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15696 | PyObject *resultobj; | |
15697 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15698 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15699 | PyObject * obj0 = 0 ; | |
15700 | PyObject * obj1 = 0 ; | |
15701 | char *kwnames[] = { | |
15702 | (char *) "self",(char *) "child", NULL | |
15703 | }; | |
15704 | ||
15705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15707 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15708 | { | |
15709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15710 | (arg1)->base_RemoveChild(arg2); | |
15711 | ||
15712 | wxPyEndAllowThreads(__tstate); | |
15713 | if (PyErr_Occurred()) SWIG_fail; | |
15714 | } | |
15715 | Py_INCREF(Py_None); resultobj = Py_None; | |
15716 | return resultobj; | |
15717 | fail: | |
15718 | return NULL; | |
15719 | } | |
15720 | ||
15721 | ||
15722 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { | |
15723 | PyObject *obj; | |
15724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15725 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
15726 | Py_INCREF(obj); | |
15727 | return Py_BuildValue((char *)""); | |
15728 | } | |
15729 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15730 | PyObject *resultobj; | |
15731 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 15732 | int arg2 ; |
d14a1e28 RD |
15733 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15734 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15735 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15736 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15737 | long arg5 = (long) 0 ; | |
15738 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15739 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15740 | wxPyPanel *result; | |
15741 | wxPoint temp3 ; | |
15742 | wxSize temp4 ; | |
423f194a | 15743 | bool temp6 = False ; |
d14a1e28 | 15744 | PyObject * obj0 = 0 ; |
8edf1c75 | 15745 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15746 | PyObject * obj2 = 0 ; |
15747 | PyObject * obj3 = 0 ; | |
8edf1c75 | 15748 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15749 | PyObject * obj5 = 0 ; |
15750 | char *kwnames[] = { | |
15751 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15752 | }; | |
15753 | ||
8edf1c75 | 15754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 15755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15756 | { |
15757 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
15758 | if (PyErr_Occurred()) SWIG_fail; | |
15759 | } | |
d14a1e28 RD |
15760 | if (obj2) { |
15761 | { | |
15762 | arg3 = &temp3; | |
15763 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15764 | } | |
15765 | } | |
15766 | if (obj3) { | |
15767 | { | |
15768 | arg4 = &temp4; | |
15769 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15770 | } | |
15771 | } | |
8edf1c75 RD |
15772 | if (obj4) { |
15773 | { | |
15774 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
15777 | } | |
d14a1e28 RD |
15778 | if (obj5) { |
15779 | { | |
15780 | arg6 = wxString_in_helper(obj5); | |
15781 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 15782 | temp6 = True; |
d14a1e28 RD |
15783 | } |
15784 | } | |
15785 | { | |
15786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15787 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15788 | ||
15789 | wxPyEndAllowThreads(__tstate); | |
15790 | if (PyErr_Occurred()) SWIG_fail; | |
15791 | } | |
15792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPanel, 1); | |
15793 | { | |
15794 | if (temp6) | |
15795 | delete arg6; | |
15796 | } | |
15797 | return resultobj; | |
15798 | fail: | |
15799 | { | |
15800 | if (temp6) | |
15801 | delete arg6; | |
15802 | } | |
15803 | return NULL; | |
15804 | } | |
15805 | ||
15806 | ||
15807 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15808 | PyObject *resultobj; | |
15809 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15810 | PyObject *arg2 = (PyObject *) 0 ; | |
15811 | PyObject *arg3 = (PyObject *) 0 ; | |
15812 | PyObject * obj0 = 0 ; | |
15813 | PyObject * obj1 = 0 ; | |
15814 | PyObject * obj2 = 0 ; | |
15815 | char *kwnames[] = { | |
15816 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15817 | }; | |
15818 | ||
15819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15821 | arg2 = obj1; | |
15822 | arg3 = obj2; | |
15823 | { | |
15824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15825 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15826 | ||
15827 | wxPyEndAllowThreads(__tstate); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
15829 | } | |
15830 | Py_INCREF(Py_None); resultobj = Py_None; | |
15831 | return resultobj; | |
15832 | fail: | |
15833 | return NULL; | |
15834 | } | |
15835 | ||
15836 | ||
15837 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15838 | PyObject *resultobj; | |
15839 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15840 | int arg2 ; | |
15841 | int arg3 ; | |
15842 | int arg4 ; | |
15843 | int arg5 ; | |
15844 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15845 | PyObject * obj1 = 0 ; |
15846 | PyObject * obj2 = 0 ; | |
15847 | PyObject * obj3 = 0 ; | |
15848 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
15849 | char *kwnames[] = { |
15850 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15851 | }; | |
15852 | ||
8edf1c75 | 15853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 15854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15855 | { |
15856 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | } | |
15859 | { | |
15860 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
15863 | { | |
15864 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15865 | if (PyErr_Occurred()) SWIG_fail; | |
15866 | } | |
15867 | { | |
15868 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
15870 | } | |
d14a1e28 RD |
15871 | { |
15872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15873 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15874 | ||
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
15878 | Py_INCREF(Py_None); resultobj = Py_None; | |
15879 | return resultobj; | |
15880 | fail: | |
15881 | return NULL; | |
15882 | } | |
15883 | ||
15884 | ||
15885 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15886 | PyObject *resultobj; | |
15887 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15888 | int arg2 ; | |
15889 | int arg3 ; | |
15890 | int arg4 ; | |
15891 | int arg5 ; | |
15892 | int arg6 = (int) wxSIZE_AUTO ; | |
15893 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15894 | PyObject * obj1 = 0 ; |
15895 | PyObject * obj2 = 0 ; | |
15896 | PyObject * obj3 = 0 ; | |
15897 | PyObject * obj4 = 0 ; | |
15898 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15899 | char *kwnames[] = { |
15900 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15901 | }; | |
15902 | ||
8edf1c75 | 15903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 15904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15905 | { |
15906 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15907 | if (PyErr_Occurred()) SWIG_fail; | |
15908 | } | |
15909 | { | |
15910 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15911 | if (PyErr_Occurred()) SWIG_fail; | |
15912 | } | |
15913 | { | |
15914 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15915 | if (PyErr_Occurred()) SWIG_fail; | |
15916 | } | |
15917 | { | |
15918 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | if (obj5) { | |
15922 | { | |
15923 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | } | |
d14a1e28 RD |
15927 | { |
15928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15929 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15930 | ||
15931 | wxPyEndAllowThreads(__tstate); | |
15932 | if (PyErr_Occurred()) SWIG_fail; | |
15933 | } | |
15934 | Py_INCREF(Py_None); resultobj = Py_None; | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
15938 | } | |
15939 | ||
15940 | ||
15941 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15942 | PyObject *resultobj; | |
15943 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15944 | int arg2 ; | |
15945 | int arg3 ; | |
15946 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15947 | PyObject * obj1 = 0 ; |
15948 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15949 | char *kwnames[] = { |
15950 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15951 | }; | |
15952 | ||
8edf1c75 | 15953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15955 | { |
15956 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | { | |
15960 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15961 | if (PyErr_Occurred()) SWIG_fail; | |
15962 | } | |
d14a1e28 RD |
15963 | { |
15964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15965 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15966 | ||
15967 | wxPyEndAllowThreads(__tstate); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
15969 | } | |
15970 | Py_INCREF(Py_None); resultobj = Py_None; | |
15971 | return resultobj; | |
15972 | fail: | |
15973 | return NULL; | |
15974 | } | |
15975 | ||
15976 | ||
15977 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15978 | PyObject *resultobj; | |
15979 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15980 | int arg2 ; | |
15981 | int arg3 ; | |
15982 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
15983 | PyObject * obj1 = 0 ; |
15984 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15985 | char *kwnames[] = { |
15986 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15987 | }; | |
15988 | ||
8edf1c75 | 15989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
15991 | { |
15992 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
15994 | } | |
15995 | { | |
15996 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15997 | if (PyErr_Occurred()) SWIG_fail; | |
15998 | } | |
d14a1e28 RD |
15999 | { |
16000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16001 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
16002 | ||
16003 | wxPyEndAllowThreads(__tstate); | |
16004 | if (PyErr_Occurred()) SWIG_fail; | |
16005 | } | |
16006 | Py_INCREF(Py_None); resultobj = Py_None; | |
16007 | return resultobj; | |
16008 | fail: | |
16009 | return NULL; | |
16010 | } | |
16011 | ||
16012 | ||
16013 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16014 | PyObject *resultobj; | |
16015 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16016 | int *arg2 = (int *) 0 ; | |
16017 | int *arg3 = (int *) 0 ; | |
16018 | int temp2 ; | |
16019 | int temp3 ; | |
16020 | PyObject * obj0 = 0 ; | |
16021 | char *kwnames[] = { | |
16022 | (char *) "self", NULL | |
16023 | }; | |
16024 | ||
16025 | arg2 = &temp2; | |
16026 | arg3 = &temp3; | |
16027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
16028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16029 | { | |
16030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16031 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
16032 | ||
16033 | wxPyEndAllowThreads(__tstate); | |
16034 | if (PyErr_Occurred()) SWIG_fail; | |
16035 | } | |
16036 | Py_INCREF(Py_None); resultobj = Py_None; | |
16037 | { | |
16038 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16039 | resultobj = t_output_helper(resultobj,o); | |
16040 | } | |
16041 | { | |
16042 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16043 | resultobj = t_output_helper(resultobj,o); | |
16044 | } | |
16045 | return resultobj; | |
16046 | fail: | |
16047 | return NULL; | |
16048 | } | |
16049 | ||
16050 | ||
16051 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16052 | PyObject *resultobj; | |
16053 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16054 | int *arg2 = (int *) 0 ; | |
16055 | int *arg3 = (int *) 0 ; | |
16056 | int temp2 ; | |
16057 | int temp3 ; | |
16058 | PyObject * obj0 = 0 ; | |
16059 | char *kwnames[] = { | |
16060 | (char *) "self", NULL | |
16061 | }; | |
16062 | ||
16063 | arg2 = &temp2; | |
16064 | arg3 = &temp3; | |
16065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
16066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16067 | { | |
16068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16069 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
16070 | ||
16071 | wxPyEndAllowThreads(__tstate); | |
16072 | if (PyErr_Occurred()) SWIG_fail; | |
16073 | } | |
16074 | Py_INCREF(Py_None); resultobj = Py_None; | |
16075 | { | |
16076 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16077 | resultobj = t_output_helper(resultobj,o); | |
16078 | } | |
16079 | { | |
16080 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16081 | resultobj = t_output_helper(resultobj,o); | |
16082 | } | |
16083 | return resultobj; | |
16084 | fail: | |
16085 | return NULL; | |
16086 | } | |
16087 | ||
16088 | ||
16089 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16090 | PyObject *resultobj; | |
16091 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16092 | int *arg2 = (int *) 0 ; | |
16093 | int *arg3 = (int *) 0 ; | |
16094 | int temp2 ; | |
16095 | int temp3 ; | |
16096 | PyObject * obj0 = 0 ; | |
16097 | char *kwnames[] = { | |
16098 | (char *) "self", NULL | |
16099 | }; | |
16100 | ||
16101 | arg2 = &temp2; | |
16102 | arg3 = &temp3; | |
16103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
16104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16105 | { | |
16106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16107 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
16108 | ||
16109 | wxPyEndAllowThreads(__tstate); | |
16110 | if (PyErr_Occurred()) SWIG_fail; | |
16111 | } | |
16112 | Py_INCREF(Py_None); resultobj = Py_None; | |
16113 | { | |
16114 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
16115 | resultobj = t_output_helper(resultobj,o); | |
16116 | } | |
16117 | { | |
16118 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
16119 | resultobj = t_output_helper(resultobj,o); | |
16120 | } | |
16121 | return resultobj; | |
16122 | fail: | |
16123 | return NULL; | |
16124 | } | |
16125 | ||
16126 | ||
16127 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16128 | PyObject *resultobj; | |
16129 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16130 | wxSize result; | |
16131 | PyObject * obj0 = 0 ; | |
16132 | char *kwnames[] = { | |
16133 | (char *) "self", NULL | |
16134 | }; | |
16135 | ||
16136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
16137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16138 | { | |
16139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16140 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
16141 | ||
16142 | wxPyEndAllowThreads(__tstate); | |
16143 | if (PyErr_Occurred()) SWIG_fail; | |
16144 | } | |
16145 | { | |
16146 | wxSize * resultptr; | |
16147 | resultptr = new wxSize((wxSize &) result); | |
16148 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16149 | } | |
16150 | return resultobj; | |
16151 | fail: | |
16152 | return NULL; | |
16153 | } | |
16154 | ||
16155 | ||
16156 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16157 | PyObject *resultobj; | |
16158 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16159 | wxSize result; | |
16160 | PyObject * obj0 = 0 ; | |
16161 | char *kwnames[] = { | |
16162 | (char *) "self", NULL | |
16163 | }; | |
16164 | ||
16165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16167 | { | |
16168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16169 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16170 | ||
16171 | wxPyEndAllowThreads(__tstate); | |
16172 | if (PyErr_Occurred()) SWIG_fail; | |
16173 | } | |
16174 | { | |
16175 | wxSize * resultptr; | |
16176 | resultptr = new wxSize((wxSize &) result); | |
16177 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16178 | } | |
16179 | return resultobj; | |
16180 | fail: | |
16181 | return NULL; | |
16182 | } | |
16183 | ||
16184 | ||
16185 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16186 | PyObject *resultobj; | |
16187 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16188 | PyObject * obj0 = 0 ; | |
16189 | char *kwnames[] = { | |
16190 | (char *) "self", NULL | |
16191 | }; | |
16192 | ||
16193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16195 | { | |
16196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16197 | (arg1)->base_InitDialog(); | |
16198 | ||
16199 | wxPyEndAllowThreads(__tstate); | |
16200 | if (PyErr_Occurred()) SWIG_fail; | |
16201 | } | |
16202 | Py_INCREF(Py_None); resultobj = Py_None; | |
16203 | return resultobj; | |
16204 | fail: | |
16205 | return NULL; | |
16206 | } | |
16207 | ||
16208 | ||
16209 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16210 | PyObject *resultobj; | |
16211 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16212 | bool result; | |
16213 | PyObject * obj0 = 0 ; | |
16214 | char *kwnames[] = { | |
16215 | (char *) "self", NULL | |
16216 | }; | |
16217 | ||
16218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16220 | { | |
16221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16222 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16223 | ||
16224 | wxPyEndAllowThreads(__tstate); | |
16225 | if (PyErr_Occurred()) SWIG_fail; | |
16226 | } | |
8edf1c75 | 16227 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16228 | return resultobj; |
16229 | fail: | |
16230 | return NULL; | |
16231 | } | |
16232 | ||
16233 | ||
16234 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16235 | PyObject *resultobj; | |
16236 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16237 | bool result; | |
16238 | PyObject * obj0 = 0 ; | |
16239 | char *kwnames[] = { | |
16240 | (char *) "self", NULL | |
16241 | }; | |
16242 | ||
16243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16245 | { | |
16246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16247 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16248 | ||
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
8edf1c75 | 16252 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16253 | return resultobj; |
16254 | fail: | |
16255 | return NULL; | |
16256 | } | |
16257 | ||
16258 | ||
16259 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16260 | PyObject *resultobj; | |
16261 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16262 | bool result; | |
16263 | PyObject * obj0 = 0 ; | |
16264 | char *kwnames[] = { | |
16265 | (char *) "self", NULL | |
16266 | }; | |
16267 | ||
16268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
16269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16270 | { | |
16271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16272 | result = (bool)(arg1)->base_Validate(); | |
16273 | ||
16274 | wxPyEndAllowThreads(__tstate); | |
16275 | if (PyErr_Occurred()) SWIG_fail; | |
16276 | } | |
8edf1c75 | 16277 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16278 | return resultobj; |
16279 | fail: | |
16280 | return NULL; | |
16281 | } | |
16282 | ||
16283 | ||
16284 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16285 | PyObject *resultobj; | |
16286 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16287 | bool result; | |
16288 | PyObject * obj0 = 0 ; | |
16289 | char *kwnames[] = { | |
16290 | (char *) "self", NULL | |
16291 | }; | |
16292 | ||
16293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16295 | { | |
16296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16297 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
16298 | ||
16299 | wxPyEndAllowThreads(__tstate); | |
16300 | if (PyErr_Occurred()) SWIG_fail; | |
16301 | } | |
8edf1c75 | 16302 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16303 | return resultobj; |
16304 | fail: | |
16305 | return NULL; | |
16306 | } | |
16307 | ||
16308 | ||
16309 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16310 | PyObject *resultobj; | |
16311 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16312 | bool result; | |
16313 | PyObject * obj0 = 0 ; | |
16314 | char *kwnames[] = { | |
16315 | (char *) "self", NULL | |
16316 | }; | |
16317 | ||
16318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16320 | { | |
16321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16322 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16323 | ||
16324 | wxPyEndAllowThreads(__tstate); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | } | |
8edf1c75 | 16327 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16328 | return resultobj; |
16329 | fail: | |
16330 | return NULL; | |
16331 | } | |
16332 | ||
16333 | ||
16334 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16335 | PyObject *resultobj; | |
16336 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16337 | wxSize result; | |
16338 | PyObject * obj0 = 0 ; | |
16339 | char *kwnames[] = { | |
16340 | (char *) "self", NULL | |
16341 | }; | |
16342 | ||
16343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16345 | { | |
16346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16347 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
16348 | ||
16349 | wxPyEndAllowThreads(__tstate); | |
16350 | if (PyErr_Occurred()) SWIG_fail; | |
16351 | } | |
16352 | { | |
16353 | wxSize * resultptr; | |
16354 | resultptr = new wxSize((wxSize &) result); | |
16355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16356 | } | |
16357 | return resultobj; | |
16358 | fail: | |
16359 | return NULL; | |
16360 | } | |
16361 | ||
16362 | ||
16363 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16364 | PyObject *resultobj; | |
16365 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16367 | PyObject * obj0 = 0 ; | |
16368 | PyObject * obj1 = 0 ; | |
16369 | char *kwnames[] = { | |
16370 | (char *) "self",(char *) "child", NULL | |
16371 | }; | |
16372 | ||
16373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16375 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16376 | { | |
16377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16378 | (arg1)->base_AddChild(arg2); | |
16379 | ||
16380 | wxPyEndAllowThreads(__tstate); | |
16381 | if (PyErr_Occurred()) SWIG_fail; | |
16382 | } | |
16383 | Py_INCREF(Py_None); resultobj = Py_None; | |
16384 | return resultobj; | |
16385 | fail: | |
16386 | return NULL; | |
16387 | } | |
16388 | ||
16389 | ||
16390 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16391 | PyObject *resultobj; | |
16392 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16393 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16394 | PyObject * obj0 = 0 ; | |
16395 | PyObject * obj1 = 0 ; | |
16396 | char *kwnames[] = { | |
16397 | (char *) "self",(char *) "child", NULL | |
16398 | }; | |
16399 | ||
16400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16402 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16403 | { | |
16404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16405 | (arg1)->base_RemoveChild(arg2); | |
16406 | ||
16407 | wxPyEndAllowThreads(__tstate); | |
16408 | if (PyErr_Occurred()) SWIG_fail; | |
16409 | } | |
16410 | Py_INCREF(Py_None); resultobj = Py_None; | |
16411 | return resultobj; | |
16412 | fail: | |
16413 | return NULL; | |
16414 | } | |
16415 | ||
16416 | ||
16417 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { | |
16418 | PyObject *obj; | |
16419 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16420 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
16421 | Py_INCREF(obj); | |
16422 | return Py_BuildValue((char *)""); | |
16423 | } | |
8edf1c75 | 16424 | static int _wrap_PrintoutTitleStr_set(PyObject *) { |
d03fd34d RD |
16425 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); |
16426 | return 1; | |
16427 | } | |
16428 | ||
16429 | ||
16430 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
16431 | PyObject *pyobj; | |
16432 | ||
16433 | { | |
16434 | #if wxUSE_UNICODE | |
16435 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
16436 | #else | |
16437 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
16438 | #endif | |
16439 | } | |
16440 | return pyobj; | |
16441 | } | |
16442 | ||
16443 | ||
8edf1c75 | 16444 | static int _wrap_PreviewCanvasNameStr_set(PyObject *) { |
d03fd34d RD |
16445 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); |
16446 | return 1; | |
16447 | } | |
16448 | ||
16449 | ||
16450 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
16451 | PyObject *pyobj; | |
16452 | ||
16453 | { | |
16454 | #if wxUSE_UNICODE | |
16455 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
16456 | #else | |
16457 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
16458 | #endif | |
16459 | } | |
16460 | return pyobj; | |
16461 | } | |
16462 | ||
16463 | ||
d14a1e28 RD |
16464 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
16465 | PyObject *resultobj; | |
16466 | wxPrintData *result; | |
16467 | char *kwnames[] = { | |
16468 | NULL | |
16469 | }; | |
16470 | ||
16471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; | |
16472 | { | |
16473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16474 | result = (wxPrintData *)new wxPrintData(); | |
16475 | ||
16476 | wxPyEndAllowThreads(__tstate); | |
16477 | if (PyErr_Occurred()) SWIG_fail; | |
16478 | } | |
16479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 1); | |
16480 | return resultobj; | |
16481 | fail: | |
16482 | return NULL; | |
16483 | } | |
16484 | ||
16485 | ||
16486 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16487 | PyObject *resultobj; | |
16488 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16489 | PyObject * obj0 = 0 ; | |
16490 | char *kwnames[] = { | |
16491 | (char *) "self", NULL | |
16492 | }; | |
16493 | ||
16494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
16495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16496 | { | |
16497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16498 | delete arg1; | |
16499 | ||
16500 | wxPyEndAllowThreads(__tstate); | |
16501 | if (PyErr_Occurred()) SWIG_fail; | |
16502 | } | |
16503 | Py_INCREF(Py_None); resultobj = Py_None; | |
16504 | return resultobj; | |
16505 | fail: | |
16506 | return NULL; | |
16507 | } | |
16508 | ||
16509 | ||
16510 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16511 | PyObject *resultobj; | |
16512 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16513 | int result; | |
16514 | PyObject * obj0 = 0 ; | |
16515 | char *kwnames[] = { | |
16516 | (char *) "self", NULL | |
16517 | }; | |
16518 | ||
16519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
16520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16521 | { | |
16522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16523 | result = (int)(arg1)->GetNoCopies(); | |
16524 | ||
16525 | wxPyEndAllowThreads(__tstate); | |
16526 | if (PyErr_Occurred()) SWIG_fail; | |
16527 | } | |
8edf1c75 | 16528 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16529 | return resultobj; |
16530 | fail: | |
16531 | return NULL; | |
16532 | } | |
16533 | ||
16534 | ||
16535 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16536 | PyObject *resultobj; | |
16537 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16538 | bool result; | |
16539 | PyObject * obj0 = 0 ; | |
16540 | char *kwnames[] = { | |
16541 | (char *) "self", NULL | |
16542 | }; | |
16543 | ||
16544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
16545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16546 | { | |
16547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16548 | result = (bool)(arg1)->GetCollate(); | |
16549 | ||
16550 | wxPyEndAllowThreads(__tstate); | |
16551 | if (PyErr_Occurred()) SWIG_fail; | |
16552 | } | |
8edf1c75 | 16553 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16554 | return resultobj; |
16555 | fail: | |
16556 | return NULL; | |
16557 | } | |
16558 | ||
16559 | ||
16560 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16561 | PyObject *resultobj; | |
16562 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16563 | int result; | |
16564 | PyObject * obj0 = 0 ; | |
16565 | char *kwnames[] = { | |
16566 | (char *) "self", NULL | |
16567 | }; | |
16568 | ||
16569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
16570 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16571 | { | |
16572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16573 | result = (int)(arg1)->GetOrientation(); | |
16574 | ||
16575 | wxPyEndAllowThreads(__tstate); | |
16576 | if (PyErr_Occurred()) SWIG_fail; | |
16577 | } | |
8edf1c75 | 16578 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16579 | return resultobj; |
16580 | fail: | |
16581 | return NULL; | |
16582 | } | |
16583 | ||
16584 | ||
16585 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16586 | PyObject *resultobj; | |
16587 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16588 | bool result; | |
16589 | PyObject * obj0 = 0 ; | |
16590 | char *kwnames[] = { | |
16591 | (char *) "self", NULL | |
16592 | }; | |
16593 | ||
16594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
16595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16596 | { | |
16597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16598 | result = (bool)(arg1)->Ok(); | |
16599 | ||
16600 | wxPyEndAllowThreads(__tstate); | |
16601 | if (PyErr_Occurred()) SWIG_fail; | |
16602 | } | |
8edf1c75 | 16603 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16604 | return resultobj; |
16605 | fail: | |
16606 | return NULL; | |
16607 | } | |
16608 | ||
16609 | ||
16610 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16611 | PyObject *resultobj; | |
16612 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16613 | wxString *result; | |
16614 | PyObject * obj0 = 0 ; | |
16615 | char *kwnames[] = { | |
16616 | (char *) "self", NULL | |
16617 | }; | |
16618 | ||
16619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
16620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16621 | { | |
16622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16623 | { | |
16624 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
16625 | result = (wxString *) &_result_ref; | |
16626 | } | |
16627 | ||
16628 | wxPyEndAllowThreads(__tstate); | |
16629 | if (PyErr_Occurred()) SWIG_fail; | |
16630 | } | |
f0983263 RD |
16631 | { |
16632 | #if wxUSE_UNICODE | |
16633 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16634 | #else | |
16635 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16636 | #endif | |
16637 | } | |
d14a1e28 RD |
16638 | return resultobj; |
16639 | fail: | |
16640 | return NULL; | |
16641 | } | |
16642 | ||
16643 | ||
16644 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16645 | PyObject *resultobj; | |
16646 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16647 | bool result; | |
16648 | PyObject * obj0 = 0 ; | |
16649 | char *kwnames[] = { | |
16650 | (char *) "self", NULL | |
16651 | }; | |
16652 | ||
16653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
16654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16655 | { | |
16656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16657 | result = (bool)(arg1)->GetColour(); | |
16658 | ||
16659 | wxPyEndAllowThreads(__tstate); | |
16660 | if (PyErr_Occurred()) SWIG_fail; | |
16661 | } | |
8edf1c75 | 16662 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
16663 | return resultobj; |
16664 | fail: | |
16665 | return NULL; | |
16666 | } | |
16667 | ||
16668 | ||
16669 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16670 | PyObject *resultobj; | |
16671 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16672 | int result; | |
16673 | PyObject * obj0 = 0 ; | |
16674 | char *kwnames[] = { | |
16675 | (char *) "self", NULL | |
16676 | }; | |
16677 | ||
16678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
16679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16680 | { | |
16681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16682 | result = (int)(arg1)->GetDuplex(); | |
16683 | ||
16684 | wxPyEndAllowThreads(__tstate); | |
16685 | if (PyErr_Occurred()) SWIG_fail; | |
16686 | } | |
8edf1c75 | 16687 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16688 | return resultobj; |
16689 | fail: | |
16690 | return NULL; | |
16691 | } | |
16692 | ||
16693 | ||
16694 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16695 | PyObject *resultobj; | |
16696 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16697 | int result; | |
16698 | PyObject * obj0 = 0 ; | |
16699 | char *kwnames[] = { | |
16700 | (char *) "self", NULL | |
16701 | }; | |
16702 | ||
16703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
16704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16705 | { | |
16706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16707 | result = (int)(arg1)->GetPaperId(); | |
16708 | ||
16709 | wxPyEndAllowThreads(__tstate); | |
16710 | if (PyErr_Occurred()) SWIG_fail; | |
16711 | } | |
8edf1c75 | 16712 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16713 | return resultobj; |
16714 | fail: | |
16715 | return NULL; | |
16716 | } | |
16717 | ||
16718 | ||
16719 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16720 | PyObject *resultobj; | |
16721 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16722 | wxSize *result; | |
16723 | PyObject * obj0 = 0 ; | |
16724 | char *kwnames[] = { | |
16725 | (char *) "self", NULL | |
16726 | }; | |
16727 | ||
16728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
16729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16730 | { | |
16731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16732 | { | |
16733 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
16734 | result = (wxSize *) &_result_ref; | |
16735 | } | |
16736 | ||
16737 | wxPyEndAllowThreads(__tstate); | |
16738 | if (PyErr_Occurred()) SWIG_fail; | |
16739 | } | |
16740 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
16741 | return resultobj; | |
16742 | fail: | |
16743 | return NULL; | |
16744 | } | |
16745 | ||
16746 | ||
16747 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16748 | PyObject *resultobj; | |
16749 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
d03fd34d | 16750 | int result; |
d14a1e28 RD |
16751 | PyObject * obj0 = 0 ; |
16752 | char *kwnames[] = { | |
16753 | (char *) "self", NULL | |
16754 | }; | |
16755 | ||
16756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
16757 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16758 | { | |
16759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d03fd34d | 16760 | result = (int)(arg1)->GetQuality(); |
d14a1e28 RD |
16761 | |
16762 | wxPyEndAllowThreads(__tstate); | |
16763 | if (PyErr_Occurred()) SWIG_fail; | |
16764 | } | |
8edf1c75 | 16765 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16766 | return resultobj; |
16767 | fail: | |
16768 | return NULL; | |
16769 | } | |
16770 | ||
16771 | ||
16772 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16773 | PyObject *resultobj; | |
16774 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16775 | int arg2 ; | |
16776 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16777 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16778 | char *kwnames[] = { |
16779 | (char *) "self",(char *) "v", NULL | |
16780 | }; | |
16781 | ||
8edf1c75 | 16782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16784 | { |
16785 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16786 | if (PyErr_Occurred()) SWIG_fail; | |
16787 | } | |
d14a1e28 RD |
16788 | { |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | (arg1)->SetNoCopies(arg2); | |
16791 | ||
16792 | wxPyEndAllowThreads(__tstate); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | Py_INCREF(Py_None); resultobj = Py_None; | |
16796 | return resultobj; | |
16797 | fail: | |
16798 | return NULL; | |
16799 | } | |
16800 | ||
16801 | ||
16802 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16803 | PyObject *resultobj; | |
16804 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16805 | bool arg2 ; | |
16806 | PyObject * obj0 = 0 ; | |
16807 | PyObject * obj1 = 0 ; | |
16808 | char *kwnames[] = { | |
16809 | (char *) "self",(char *) "flag", NULL | |
16810 | }; | |
16811 | ||
16812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
16813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16814 | { |
8edf1c75 | 16815 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16816 | if (PyErr_Occurred()) SWIG_fail; |
16817 | } | |
d14a1e28 RD |
16818 | { |
16819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16820 | (arg1)->SetCollate(arg2); | |
16821 | ||
16822 | wxPyEndAllowThreads(__tstate); | |
16823 | if (PyErr_Occurred()) SWIG_fail; | |
16824 | } | |
16825 | Py_INCREF(Py_None); resultobj = Py_None; | |
16826 | return resultobj; | |
16827 | fail: | |
16828 | return NULL; | |
16829 | } | |
16830 | ||
16831 | ||
16832 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16833 | PyObject *resultobj; | |
16834 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16835 | int arg2 ; | |
16836 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16838 | char *kwnames[] = { |
16839 | (char *) "self",(char *) "orient", NULL | |
16840 | }; | |
16841 | ||
8edf1c75 | 16842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16843 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16844 | { |
16845 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16846 | if (PyErr_Occurred()) SWIG_fail; | |
16847 | } | |
d14a1e28 RD |
16848 | { |
16849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16850 | (arg1)->SetOrientation(arg2); | |
16851 | ||
16852 | wxPyEndAllowThreads(__tstate); | |
16853 | if (PyErr_Occurred()) SWIG_fail; | |
16854 | } | |
16855 | Py_INCREF(Py_None); resultobj = Py_None; | |
16856 | return resultobj; | |
16857 | fail: | |
16858 | return NULL; | |
16859 | } | |
16860 | ||
16861 | ||
16862 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16863 | PyObject *resultobj; | |
16864 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16865 | wxString *arg2 = 0 ; | |
423f194a | 16866 | bool temp2 = False ; |
d14a1e28 RD |
16867 | PyObject * obj0 = 0 ; |
16868 | PyObject * obj1 = 0 ; | |
16869 | char *kwnames[] = { | |
16870 | (char *) "self",(char *) "name", NULL | |
16871 | }; | |
16872 | ||
16873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
16874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16875 | { | |
16876 | arg2 = wxString_in_helper(obj1); | |
16877 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 16878 | temp2 = True; |
d14a1e28 RD |
16879 | } |
16880 | { | |
16881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16882 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
16883 | ||
16884 | wxPyEndAllowThreads(__tstate); | |
16885 | if (PyErr_Occurred()) SWIG_fail; | |
16886 | } | |
16887 | Py_INCREF(Py_None); resultobj = Py_None; | |
16888 | { | |
16889 | if (temp2) | |
16890 | delete arg2; | |
16891 | } | |
16892 | return resultobj; | |
16893 | fail: | |
16894 | { | |
16895 | if (temp2) | |
16896 | delete arg2; | |
16897 | } | |
16898 | return NULL; | |
16899 | } | |
16900 | ||
16901 | ||
16902 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16903 | PyObject *resultobj; | |
16904 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16905 | bool arg2 ; | |
16906 | PyObject * obj0 = 0 ; | |
16907 | PyObject * obj1 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "self",(char *) "colour", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
16913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 16914 | { |
8edf1c75 | 16915 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
16916 | if (PyErr_Occurred()) SWIG_fail; |
16917 | } | |
d14a1e28 RD |
16918 | { |
16919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16920 | (arg1)->SetColour(arg2); | |
16921 | ||
16922 | wxPyEndAllowThreads(__tstate); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
16925 | Py_INCREF(Py_None); resultobj = Py_None; | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | return NULL; | |
16929 | } | |
16930 | ||
16931 | ||
16932 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16933 | PyObject *resultobj; | |
16934 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16935 | int arg2 ; | |
16936 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16937 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16938 | char *kwnames[] = { |
16939 | (char *) "self",(char *) "duplex", NULL | |
16940 | }; | |
16941 | ||
8edf1c75 | 16942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16944 | { |
16945 | arg2 = (wxDuplexMode) SWIG_PyObj_AsInt(obj1); | |
16946 | if (PyErr_Occurred()) SWIG_fail; | |
16947 | } | |
d14a1e28 RD |
16948 | { |
16949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16950 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
16951 | ||
16952 | wxPyEndAllowThreads(__tstate); | |
16953 | if (PyErr_Occurred()) SWIG_fail; | |
16954 | } | |
16955 | Py_INCREF(Py_None); resultobj = Py_None; | |
16956 | return resultobj; | |
16957 | fail: | |
16958 | return NULL; | |
16959 | } | |
16960 | ||
16961 | ||
16962 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16963 | PyObject *resultobj; | |
16964 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16965 | int arg2 ; | |
16966 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16967 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16968 | char *kwnames[] = { |
16969 | (char *) "self",(char *) "sizeId", NULL | |
16970 | }; | |
16971 | ||
8edf1c75 | 16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
16974 | { |
16975 | arg2 = (wxPaperSize) SWIG_PyObj_AsInt(obj1); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | } | |
d14a1e28 RD |
16978 | { |
16979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16980 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
16981 | ||
16982 | wxPyEndAllowThreads(__tstate); | |
16983 | if (PyErr_Occurred()) SWIG_fail; | |
16984 | } | |
16985 | Py_INCREF(Py_None); resultobj = Py_None; | |
16986 | return resultobj; | |
16987 | fail: | |
16988 | return NULL; | |
16989 | } | |
16990 | ||
16991 | ||
16992 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16993 | PyObject *resultobj; | |
16994 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16995 | wxSize *arg2 = 0 ; | |
16996 | wxSize temp2 ; | |
16997 | PyObject * obj0 = 0 ; | |
16998 | PyObject * obj1 = 0 ; | |
16999 | char *kwnames[] = { | |
17000 | (char *) "self",(char *) "sz", NULL | |
17001 | }; | |
17002 | ||
17003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
17004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17005 | { | |
17006 | arg2 = &temp2; | |
17007 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17008 | } | |
17009 | { | |
17010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17011 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
17012 | ||
17013 | wxPyEndAllowThreads(__tstate); | |
17014 | if (PyErr_Occurred()) SWIG_fail; | |
17015 | } | |
17016 | Py_INCREF(Py_None); resultobj = Py_None; | |
17017 | return resultobj; | |
17018 | fail: | |
17019 | return NULL; | |
17020 | } | |
17021 | ||
17022 | ||
17023 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17024 | PyObject *resultobj; | |
17025 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
d03fd34d | 17026 | int arg2 ; |
d14a1e28 | 17027 | PyObject * obj0 = 0 ; |
8edf1c75 | 17028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17029 | char *kwnames[] = { |
17030 | (char *) "self",(char *) "quality", NULL | |
17031 | }; | |
17032 | ||
8edf1c75 | 17033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17035 | { |
17036 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
17038 | } | |
d14a1e28 RD |
17039 | { |
17040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17041 | (arg1)->SetQuality(arg2); | |
17042 | ||
17043 | wxPyEndAllowThreads(__tstate); | |
17044 | if (PyErr_Occurred()) SWIG_fail; | |
17045 | } | |
17046 | Py_INCREF(Py_None); resultobj = Py_None; | |
17047 | return resultobj; | |
17048 | fail: | |
17049 | return NULL; | |
17050 | } | |
17051 | ||
17052 | ||
17053 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17054 | PyObject *resultobj; | |
17055 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17056 | wxString *result; | |
17057 | PyObject * obj0 = 0 ; | |
17058 | char *kwnames[] = { | |
17059 | (char *) "self", NULL | |
17060 | }; | |
17061 | ||
17062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
17063 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17064 | { | |
17065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17066 | { | |
17067 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
17068 | result = (wxString *) &_result_ref; | |
17069 | } | |
17070 | ||
17071 | wxPyEndAllowThreads(__tstate); | |
17072 | if (PyErr_Occurred()) SWIG_fail; | |
17073 | } | |
f0983263 RD |
17074 | { |
17075 | #if wxUSE_UNICODE | |
17076 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17077 | #else | |
17078 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17079 | #endif | |
17080 | } | |
d14a1e28 RD |
17081 | return resultobj; |
17082 | fail: | |
17083 | return NULL; | |
17084 | } | |
17085 | ||
17086 | ||
17087 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17088 | PyObject *resultobj; | |
17089 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17090 | wxString *result; | |
17091 | PyObject * obj0 = 0 ; | |
17092 | char *kwnames[] = { | |
17093 | (char *) "self", NULL | |
17094 | }; | |
17095 | ||
17096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
17097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17098 | { | |
17099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17100 | { | |
17101 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
17102 | result = (wxString *) &_result_ref; | |
17103 | } | |
17104 | ||
17105 | wxPyEndAllowThreads(__tstate); | |
17106 | if (PyErr_Occurred()) SWIG_fail; | |
17107 | } | |
f0983263 RD |
17108 | { |
17109 | #if wxUSE_UNICODE | |
17110 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17111 | #else | |
17112 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17113 | #endif | |
17114 | } | |
d14a1e28 RD |
17115 | return resultobj; |
17116 | fail: | |
17117 | return NULL; | |
17118 | } | |
17119 | ||
17120 | ||
17121 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17122 | PyObject *resultobj; | |
17123 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17124 | wxString *result; | |
17125 | PyObject * obj0 = 0 ; | |
17126 | char *kwnames[] = { | |
17127 | (char *) "self", NULL | |
17128 | }; | |
17129 | ||
17130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
17131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | { | |
17135 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
17136 | result = (wxString *) &_result_ref; | |
17137 | } | |
17138 | ||
17139 | wxPyEndAllowThreads(__tstate); | |
17140 | if (PyErr_Occurred()) SWIG_fail; | |
17141 | } | |
f0983263 RD |
17142 | { |
17143 | #if wxUSE_UNICODE | |
17144 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17145 | #else | |
17146 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17147 | #endif | |
17148 | } | |
d14a1e28 RD |
17149 | return resultobj; |
17150 | fail: | |
17151 | return NULL; | |
17152 | } | |
17153 | ||
17154 | ||
17155 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17156 | PyObject *resultobj; | |
17157 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17158 | wxString *result; | |
17159 | PyObject * obj0 = 0 ; | |
17160 | char *kwnames[] = { | |
17161 | (char *) "self", NULL | |
17162 | }; | |
17163 | ||
17164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
17165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17166 | { | |
17167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17168 | { | |
17169 | wxString const &_result_ref = (arg1)->GetFilename(); | |
17170 | result = (wxString *) &_result_ref; | |
17171 | } | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
f0983263 RD |
17176 | { |
17177 | #if wxUSE_UNICODE | |
17178 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17179 | #else | |
17180 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17181 | #endif | |
17182 | } | |
d14a1e28 RD |
17183 | return resultobj; |
17184 | fail: | |
17185 | return NULL; | |
17186 | } | |
17187 | ||
17188 | ||
17189 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17190 | PyObject *resultobj; | |
17191 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17192 | wxString *result; | |
17193 | PyObject * obj0 = 0 ; | |
17194 | char *kwnames[] = { | |
17195 | (char *) "self", NULL | |
17196 | }; | |
17197 | ||
17198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
17199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | { | |
17203 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
17204 | result = (wxString *) &_result_ref; | |
17205 | } | |
17206 | ||
17207 | wxPyEndAllowThreads(__tstate); | |
17208 | if (PyErr_Occurred()) SWIG_fail; | |
17209 | } | |
f0983263 RD |
17210 | { |
17211 | #if wxUSE_UNICODE | |
17212 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17213 | #else | |
17214 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17215 | #endif | |
17216 | } | |
d14a1e28 RD |
17217 | return resultobj; |
17218 | fail: | |
17219 | return NULL; | |
17220 | } | |
17221 | ||
17222 | ||
17223 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17224 | PyObject *resultobj; | |
17225 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17226 | double result; | |
17227 | PyObject * obj0 = 0 ; | |
17228 | char *kwnames[] = { | |
17229 | (char *) "self", NULL | |
17230 | }; | |
17231 | ||
17232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
17233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17234 | { | |
17235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17236 | result = (double)(arg1)->GetPrinterScaleX(); | |
17237 | ||
17238 | wxPyEndAllowThreads(__tstate); | |
17239 | if (PyErr_Occurred()) SWIG_fail; | |
17240 | } | |
8edf1c75 | 17241 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
17242 | return resultobj; |
17243 | fail: | |
17244 | return NULL; | |
17245 | } | |
17246 | ||
17247 | ||
17248 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17249 | PyObject *resultobj; | |
17250 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17251 | double result; | |
17252 | PyObject * obj0 = 0 ; | |
17253 | char *kwnames[] = { | |
17254 | (char *) "self", NULL | |
17255 | }; | |
17256 | ||
17257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
17258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17259 | { | |
17260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17261 | result = (double)(arg1)->GetPrinterScaleY(); | |
17262 | ||
17263 | wxPyEndAllowThreads(__tstate); | |
17264 | if (PyErr_Occurred()) SWIG_fail; | |
17265 | } | |
8edf1c75 | 17266 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
17267 | return resultobj; |
17268 | fail: | |
17269 | return NULL; | |
17270 | } | |
17271 | ||
17272 | ||
17273 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17274 | PyObject *resultobj; | |
17275 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17276 | long result; | |
17277 | PyObject * obj0 = 0 ; | |
17278 | char *kwnames[] = { | |
17279 | (char *) "self", NULL | |
17280 | }; | |
17281 | ||
17282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
17283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17284 | { | |
17285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17286 | result = (long)(arg1)->GetPrinterTranslateX(); | |
17287 | ||
17288 | wxPyEndAllowThreads(__tstate); | |
17289 | if (PyErr_Occurred()) SWIG_fail; | |
17290 | } | |
8edf1c75 | 17291 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17292 | return resultobj; |
17293 | fail: | |
17294 | return NULL; | |
17295 | } | |
17296 | ||
17297 | ||
17298 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17299 | PyObject *resultobj; | |
17300 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17301 | long result; | |
17302 | PyObject * obj0 = 0 ; | |
17303 | char *kwnames[] = { | |
17304 | (char *) "self", NULL | |
17305 | }; | |
17306 | ||
17307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
17308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17309 | { | |
17310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17311 | result = (long)(arg1)->GetPrinterTranslateY(); | |
17312 | ||
17313 | wxPyEndAllowThreads(__tstate); | |
17314 | if (PyErr_Occurred()) SWIG_fail; | |
17315 | } | |
8edf1c75 | 17316 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17317 | return resultobj; |
17318 | fail: | |
17319 | return NULL; | |
17320 | } | |
17321 | ||
17322 | ||
17323 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17324 | PyObject *resultobj; | |
17325 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17326 | int result; | |
17327 | PyObject * obj0 = 0 ; | |
17328 | char *kwnames[] = { | |
17329 | (char *) "self", NULL | |
17330 | }; | |
17331 | ||
17332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
17333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17334 | { | |
17335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17336 | result = (int)(arg1)->GetPrintMode(); | |
17337 | ||
17338 | wxPyEndAllowThreads(__tstate); | |
17339 | if (PyErr_Occurred()) SWIG_fail; | |
17340 | } | |
8edf1c75 | 17341 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17342 | return resultobj; |
17343 | fail: | |
17344 | return NULL; | |
17345 | } | |
17346 | ||
17347 | ||
17348 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17349 | PyObject *resultobj; | |
17350 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17351 | wxString *arg2 = 0 ; | |
423f194a | 17352 | bool temp2 = False ; |
d14a1e28 RD |
17353 | PyObject * obj0 = 0 ; |
17354 | PyObject * obj1 = 0 ; | |
17355 | char *kwnames[] = { | |
17356 | (char *) "self",(char *) "command", NULL | |
17357 | }; | |
17358 | ||
17359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
17360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17361 | { | |
17362 | arg2 = wxString_in_helper(obj1); | |
17363 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17364 | temp2 = True; |
d14a1e28 RD |
17365 | } |
17366 | { | |
17367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17368 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
17369 | ||
17370 | wxPyEndAllowThreads(__tstate); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | } | |
17373 | Py_INCREF(Py_None); resultobj = Py_None; | |
17374 | { | |
17375 | if (temp2) | |
17376 | delete arg2; | |
17377 | } | |
17378 | return resultobj; | |
17379 | fail: | |
17380 | { | |
17381 | if (temp2) | |
17382 | delete arg2; | |
17383 | } | |
17384 | return NULL; | |
17385 | } | |
17386 | ||
17387 | ||
17388 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17389 | PyObject *resultobj; | |
17390 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17391 | wxString *arg2 = 0 ; | |
423f194a | 17392 | bool temp2 = False ; |
d14a1e28 RD |
17393 | PyObject * obj0 = 0 ; |
17394 | PyObject * obj1 = 0 ; | |
17395 | char *kwnames[] = { | |
17396 | (char *) "self",(char *) "options", NULL | |
17397 | }; | |
17398 | ||
17399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
17400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17401 | { | |
17402 | arg2 = wxString_in_helper(obj1); | |
17403 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17404 | temp2 = True; |
d14a1e28 RD |
17405 | } |
17406 | { | |
17407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17408 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
17409 | ||
17410 | wxPyEndAllowThreads(__tstate); | |
17411 | if (PyErr_Occurred()) SWIG_fail; | |
17412 | } | |
17413 | Py_INCREF(Py_None); resultobj = Py_None; | |
17414 | { | |
17415 | if (temp2) | |
17416 | delete arg2; | |
17417 | } | |
17418 | return resultobj; | |
17419 | fail: | |
17420 | { | |
17421 | if (temp2) | |
17422 | delete arg2; | |
17423 | } | |
17424 | return NULL; | |
17425 | } | |
17426 | ||
17427 | ||
17428 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17429 | PyObject *resultobj; | |
17430 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17431 | wxString *arg2 = 0 ; | |
423f194a | 17432 | bool temp2 = False ; |
d14a1e28 RD |
17433 | PyObject * obj0 = 0 ; |
17434 | PyObject * obj1 = 0 ; | |
17435 | char *kwnames[] = { | |
17436 | (char *) "self",(char *) "command", NULL | |
17437 | }; | |
17438 | ||
17439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
17440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17441 | { | |
17442 | arg2 = wxString_in_helper(obj1); | |
17443 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17444 | temp2 = True; |
d14a1e28 RD |
17445 | } |
17446 | { | |
17447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17448 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
17449 | ||
17450 | wxPyEndAllowThreads(__tstate); | |
17451 | if (PyErr_Occurred()) SWIG_fail; | |
17452 | } | |
17453 | Py_INCREF(Py_None); resultobj = Py_None; | |
17454 | { | |
17455 | if (temp2) | |
17456 | delete arg2; | |
17457 | } | |
17458 | return resultobj; | |
17459 | fail: | |
17460 | { | |
17461 | if (temp2) | |
17462 | delete arg2; | |
17463 | } | |
17464 | return NULL; | |
17465 | } | |
17466 | ||
17467 | ||
17468 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17469 | PyObject *resultobj; | |
17470 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17471 | wxString *arg2 = 0 ; | |
423f194a | 17472 | bool temp2 = False ; |
d14a1e28 RD |
17473 | PyObject * obj0 = 0 ; |
17474 | PyObject * obj1 = 0 ; | |
17475 | char *kwnames[] = { | |
17476 | (char *) "self",(char *) "filename", NULL | |
17477 | }; | |
17478 | ||
17479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
17480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17481 | { | |
17482 | arg2 = wxString_in_helper(obj1); | |
17483 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17484 | temp2 = True; |
d14a1e28 RD |
17485 | } |
17486 | { | |
17487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17488 | (arg1)->SetFilename((wxString const &)*arg2); | |
17489 | ||
17490 | wxPyEndAllowThreads(__tstate); | |
17491 | if (PyErr_Occurred()) SWIG_fail; | |
17492 | } | |
17493 | Py_INCREF(Py_None); resultobj = Py_None; | |
17494 | { | |
17495 | if (temp2) | |
17496 | delete arg2; | |
17497 | } | |
17498 | return resultobj; | |
17499 | fail: | |
17500 | { | |
17501 | if (temp2) | |
17502 | delete arg2; | |
17503 | } | |
17504 | return NULL; | |
17505 | } | |
17506 | ||
17507 | ||
17508 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17509 | PyObject *resultobj; | |
17510 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17511 | wxString *arg2 = 0 ; | |
423f194a | 17512 | bool temp2 = False ; |
d14a1e28 RD |
17513 | PyObject * obj0 = 0 ; |
17514 | PyObject * obj1 = 0 ; | |
17515 | char *kwnames[] = { | |
17516 | (char *) "self",(char *) "path", NULL | |
17517 | }; | |
17518 | ||
17519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
17520 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17521 | { | |
17522 | arg2 = wxString_in_helper(obj1); | |
17523 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 17524 | temp2 = True; |
d14a1e28 RD |
17525 | } |
17526 | { | |
17527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17528 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
17529 | ||
17530 | wxPyEndAllowThreads(__tstate); | |
17531 | if (PyErr_Occurred()) SWIG_fail; | |
17532 | } | |
17533 | Py_INCREF(Py_None); resultobj = Py_None; | |
17534 | { | |
17535 | if (temp2) | |
17536 | delete arg2; | |
17537 | } | |
17538 | return resultobj; | |
17539 | fail: | |
17540 | { | |
17541 | if (temp2) | |
17542 | delete arg2; | |
17543 | } | |
17544 | return NULL; | |
17545 | } | |
17546 | ||
17547 | ||
17548 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17549 | PyObject *resultobj; | |
17550 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17551 | double arg2 ; | |
17552 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17553 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17554 | char *kwnames[] = { |
17555 | (char *) "self",(char *) "x", NULL | |
17556 | }; | |
17557 | ||
8edf1c75 | 17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17560 | { |
17561 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17562 | if (PyErr_Occurred()) SWIG_fail; | |
17563 | } | |
d14a1e28 RD |
17564 | { |
17565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17566 | (arg1)->SetPrinterScaleX(arg2); | |
17567 | ||
17568 | wxPyEndAllowThreads(__tstate); | |
17569 | if (PyErr_Occurred()) SWIG_fail; | |
17570 | } | |
17571 | Py_INCREF(Py_None); resultobj = Py_None; | |
17572 | return resultobj; | |
17573 | fail: | |
17574 | return NULL; | |
17575 | } | |
17576 | ||
17577 | ||
17578 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17579 | PyObject *resultobj; | |
17580 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17581 | double arg2 ; | |
17582 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17583 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17584 | char *kwnames[] = { |
17585 | (char *) "self",(char *) "y", NULL | |
17586 | }; | |
17587 | ||
8edf1c75 | 17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17590 | { |
17591 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17592 | if (PyErr_Occurred()) SWIG_fail; | |
17593 | } | |
d14a1e28 RD |
17594 | { |
17595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17596 | (arg1)->SetPrinterScaleY(arg2); | |
17597 | ||
17598 | wxPyEndAllowThreads(__tstate); | |
17599 | if (PyErr_Occurred()) SWIG_fail; | |
17600 | } | |
17601 | Py_INCREF(Py_None); resultobj = Py_None; | |
17602 | return resultobj; | |
17603 | fail: | |
17604 | return NULL; | |
17605 | } | |
17606 | ||
17607 | ||
17608 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17609 | PyObject *resultobj; | |
17610 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17611 | double arg2 ; | |
17612 | double arg3 ; | |
17613 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17614 | PyObject * obj1 = 0 ; |
17615 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17616 | char *kwnames[] = { |
17617 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17618 | }; | |
17619 | ||
8edf1c75 | 17620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17622 | { |
17623 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17624 | if (PyErr_Occurred()) SWIG_fail; | |
17625 | } | |
17626 | { | |
17627 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
17628 | if (PyErr_Occurred()) SWIG_fail; | |
17629 | } | |
d14a1e28 RD |
17630 | { |
17631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17632 | (arg1)->SetPrinterScaling(arg2,arg3); | |
17633 | ||
17634 | wxPyEndAllowThreads(__tstate); | |
17635 | if (PyErr_Occurred()) SWIG_fail; | |
17636 | } | |
17637 | Py_INCREF(Py_None); resultobj = Py_None; | |
17638 | return resultobj; | |
17639 | fail: | |
17640 | return NULL; | |
17641 | } | |
17642 | ||
17643 | ||
17644 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17645 | PyObject *resultobj; | |
17646 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17647 | long arg2 ; | |
17648 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17650 | char *kwnames[] = { |
17651 | (char *) "self",(char *) "x", NULL | |
17652 | }; | |
17653 | ||
8edf1c75 | 17654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17656 | { |
17657 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17658 | if (PyErr_Occurred()) SWIG_fail; | |
17659 | } | |
d14a1e28 RD |
17660 | { |
17661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17662 | (arg1)->SetPrinterTranslateX(arg2); | |
17663 | ||
17664 | wxPyEndAllowThreads(__tstate); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | } | |
17667 | Py_INCREF(Py_None); resultobj = Py_None; | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | return NULL; | |
17671 | } | |
17672 | ||
17673 | ||
17674 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17675 | PyObject *resultobj; | |
17676 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17677 | long arg2 ; | |
17678 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17679 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17680 | char *kwnames[] = { |
17681 | (char *) "self",(char *) "y", NULL | |
17682 | }; | |
17683 | ||
8edf1c75 | 17684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17686 | { |
17687 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17688 | if (PyErr_Occurred()) SWIG_fail; | |
17689 | } | |
d14a1e28 RD |
17690 | { |
17691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17692 | (arg1)->SetPrinterTranslateY(arg2); | |
17693 | ||
17694 | wxPyEndAllowThreads(__tstate); | |
17695 | if (PyErr_Occurred()) SWIG_fail; | |
17696 | } | |
17697 | Py_INCREF(Py_None); resultobj = Py_None; | |
17698 | return resultobj; | |
17699 | fail: | |
17700 | return NULL; | |
17701 | } | |
17702 | ||
17703 | ||
17704 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17705 | PyObject *resultobj; | |
17706 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17707 | long arg2 ; | |
17708 | long arg3 ; | |
17709 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17710 | PyObject * obj1 = 0 ; |
17711 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17712 | char *kwnames[] = { |
17713 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17714 | }; | |
17715 | ||
8edf1c75 | 17716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17718 | { |
17719 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17720 | if (PyErr_Occurred()) SWIG_fail; | |
17721 | } | |
17722 | { | |
17723 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
17725 | } | |
d14a1e28 RD |
17726 | { |
17727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17728 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
17729 | ||
17730 | wxPyEndAllowThreads(__tstate); | |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
17732 | } | |
17733 | Py_INCREF(Py_None); resultobj = Py_None; | |
17734 | return resultobj; | |
17735 | fail: | |
17736 | return NULL; | |
17737 | } | |
17738 | ||
17739 | ||
17740 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17741 | PyObject *resultobj; | |
17742 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17743 | int arg2 ; | |
17744 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17745 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17746 | char *kwnames[] = { |
17747 | (char *) "self",(char *) "printMode", NULL | |
17748 | }; | |
17749 | ||
8edf1c75 | 17750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
17752 | { |
17753 | arg2 = (wxPrintMode) SWIG_PyObj_AsInt(obj1); | |
17754 | if (PyErr_Occurred()) SWIG_fail; | |
17755 | } | |
d14a1e28 RD |
17756 | { |
17757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17758 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
17759 | ||
17760 | wxPyEndAllowThreads(__tstate); | |
17761 | if (PyErr_Occurred()) SWIG_fail; | |
17762 | } | |
17763 | Py_INCREF(Py_None); resultobj = Py_None; | |
17764 | return resultobj; | |
17765 | fail: | |
17766 | return NULL; | |
17767 | } | |
17768 | ||
17769 | ||
17770 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
17771 | PyObject *obj; | |
17772 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17773 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
17774 | Py_INCREF(obj); | |
17775 | return Py_BuildValue((char *)""); | |
17776 | } | |
17777 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17778 | PyObject *resultobj; | |
17779 | wxPageSetupDialogData *result; | |
17780 | char *kwnames[] = { | |
17781 | NULL | |
17782 | }; | |
17783 | ||
17784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; | |
17785 | { | |
17786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17787 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
17788 | ||
17789 | wxPyEndAllowThreads(__tstate); | |
17790 | if (PyErr_Occurred()) SWIG_fail; | |
17791 | } | |
17792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPageSetupDialogData, 1); | |
17793 | return resultobj; | |
17794 | fail: | |
17795 | return NULL; | |
17796 | } | |
17797 | ||
17798 | ||
17799 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17800 | PyObject *resultobj; | |
17801 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17802 | PyObject * obj0 = 0 ; | |
17803 | char *kwnames[] = { | |
17804 | (char *) "self", NULL | |
17805 | }; | |
17806 | ||
17807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
17808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17809 | { | |
17810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17811 | delete arg1; | |
17812 | ||
17813 | wxPyEndAllowThreads(__tstate); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
17815 | } | |
17816 | Py_INCREF(Py_None); resultobj = Py_None; | |
17817 | return resultobj; | |
17818 | fail: | |
17819 | return NULL; | |
17820 | } | |
17821 | ||
17822 | ||
17823 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17824 | PyObject *resultobj; | |
17825 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17826 | bool arg2 ; | |
17827 | PyObject * obj0 = 0 ; | |
17828 | PyObject * obj1 = 0 ; | |
17829 | char *kwnames[] = { | |
17830 | (char *) "self",(char *) "flag", NULL | |
17831 | }; | |
17832 | ||
17833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
17834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17835 | { |
8edf1c75 | 17836 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17837 | if (PyErr_Occurred()) SWIG_fail; |
17838 | } | |
d14a1e28 RD |
17839 | { |
17840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17841 | (arg1)->EnableHelp(arg2); | |
17842 | ||
17843 | wxPyEndAllowThreads(__tstate); | |
17844 | if (PyErr_Occurred()) SWIG_fail; | |
17845 | } | |
17846 | Py_INCREF(Py_None); resultobj = Py_None; | |
17847 | return resultobj; | |
17848 | fail: | |
17849 | return NULL; | |
17850 | } | |
17851 | ||
17852 | ||
17853 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17854 | PyObject *resultobj; | |
17855 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17856 | bool arg2 ; | |
17857 | PyObject * obj0 = 0 ; | |
17858 | PyObject * obj1 = 0 ; | |
17859 | char *kwnames[] = { | |
17860 | (char *) "self",(char *) "flag", NULL | |
17861 | }; | |
17862 | ||
17863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
17864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17865 | { |
8edf1c75 | 17866 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17867 | if (PyErr_Occurred()) SWIG_fail; |
17868 | } | |
d14a1e28 RD |
17869 | { |
17870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17871 | (arg1)->EnableMargins(arg2); | |
17872 | ||
17873 | wxPyEndAllowThreads(__tstate); | |
17874 | if (PyErr_Occurred()) SWIG_fail; | |
17875 | } | |
17876 | Py_INCREF(Py_None); resultobj = Py_None; | |
17877 | return resultobj; | |
17878 | fail: | |
17879 | return NULL; | |
17880 | } | |
17881 | ||
17882 | ||
17883 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17884 | PyObject *resultobj; | |
17885 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17886 | bool arg2 ; | |
17887 | PyObject * obj0 = 0 ; | |
17888 | PyObject * obj1 = 0 ; | |
17889 | char *kwnames[] = { | |
17890 | (char *) "self",(char *) "flag", NULL | |
17891 | }; | |
17892 | ||
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
17894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17895 | { |
8edf1c75 | 17896 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17897 | if (PyErr_Occurred()) SWIG_fail; |
17898 | } | |
d14a1e28 RD |
17899 | { |
17900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17901 | (arg1)->EnableOrientation(arg2); | |
17902 | ||
17903 | wxPyEndAllowThreads(__tstate); | |
17904 | if (PyErr_Occurred()) SWIG_fail; | |
17905 | } | |
17906 | Py_INCREF(Py_None); resultobj = Py_None; | |
17907 | return resultobj; | |
17908 | fail: | |
17909 | return NULL; | |
17910 | } | |
17911 | ||
17912 | ||
17913 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17914 | PyObject *resultobj; | |
17915 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17916 | bool arg2 ; | |
17917 | PyObject * obj0 = 0 ; | |
17918 | PyObject * obj1 = 0 ; | |
17919 | char *kwnames[] = { | |
17920 | (char *) "self",(char *) "flag", NULL | |
17921 | }; | |
17922 | ||
17923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
17924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17925 | { |
8edf1c75 | 17926 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17927 | if (PyErr_Occurred()) SWIG_fail; |
17928 | } | |
d14a1e28 RD |
17929 | { |
17930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17931 | (arg1)->EnablePaper(arg2); | |
17932 | ||
17933 | wxPyEndAllowThreads(__tstate); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
17935 | } | |
17936 | Py_INCREF(Py_None); resultobj = Py_None; | |
17937 | return resultobj; | |
17938 | fail: | |
17939 | return NULL; | |
17940 | } | |
17941 | ||
17942 | ||
17943 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17944 | PyObject *resultobj; | |
17945 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17946 | bool arg2 ; | |
17947 | PyObject * obj0 = 0 ; | |
17948 | PyObject * obj1 = 0 ; | |
17949 | char *kwnames[] = { | |
17950 | (char *) "self",(char *) "flag", NULL | |
17951 | }; | |
17952 | ||
17953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
17954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 17955 | { |
8edf1c75 | 17956 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
17957 | if (PyErr_Occurred()) SWIG_fail; |
17958 | } | |
d14a1e28 RD |
17959 | { |
17960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17961 | (arg1)->EnablePrinter(arg2); | |
17962 | ||
17963 | wxPyEndAllowThreads(__tstate); | |
17964 | if (PyErr_Occurred()) SWIG_fail; | |
17965 | } | |
17966 | Py_INCREF(Py_None); resultobj = Py_None; | |
17967 | return resultobj; | |
17968 | fail: | |
17969 | return NULL; | |
17970 | } | |
17971 | ||
17972 | ||
17973 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17974 | PyObject *resultobj; | |
17975 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17976 | bool result; | |
17977 | PyObject * obj0 = 0 ; | |
17978 | char *kwnames[] = { | |
17979 | (char *) "self", NULL | |
17980 | }; | |
17981 | ||
17982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
17983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17984 | { | |
17985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17986 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
17987 | ||
17988 | wxPyEndAllowThreads(__tstate); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | } | |
8edf1c75 | 17991 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
17992 | return resultobj; |
17993 | fail: | |
17994 | return NULL; | |
17995 | } | |
17996 | ||
17997 | ||
17998 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17999 | PyObject *resultobj; | |
18000 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18001 | bool result; | |
18002 | PyObject * obj0 = 0 ; | |
18003 | char *kwnames[] = { | |
18004 | (char *) "self", NULL | |
18005 | }; | |
18006 | ||
18007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
18008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18009 | { | |
18010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18011 | result = (bool)(arg1)->GetEnableMargins(); | |
18012 | ||
18013 | wxPyEndAllowThreads(__tstate); | |
18014 | if (PyErr_Occurred()) SWIG_fail; | |
18015 | } | |
8edf1c75 | 18016 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18017 | return resultobj; |
18018 | fail: | |
18019 | return NULL; | |
18020 | } | |
18021 | ||
18022 | ||
18023 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18024 | PyObject *resultobj; | |
18025 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18026 | bool result; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | char *kwnames[] = { | |
18029 | (char *) "self", NULL | |
18030 | }; | |
18031 | ||
18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
18033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18034 | { | |
18035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18036 | result = (bool)(arg1)->GetEnableOrientation(); | |
18037 | ||
18038 | wxPyEndAllowThreads(__tstate); | |
18039 | if (PyErr_Occurred()) SWIG_fail; | |
18040 | } | |
8edf1c75 | 18041 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18042 | return resultobj; |
18043 | fail: | |
18044 | return NULL; | |
18045 | } | |
18046 | ||
18047 | ||
18048 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18049 | PyObject *resultobj; | |
18050 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18051 | bool result; | |
18052 | PyObject * obj0 = 0 ; | |
18053 | char *kwnames[] = { | |
18054 | (char *) "self", NULL | |
18055 | }; | |
18056 | ||
18057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
18058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18059 | { | |
18060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18061 | result = (bool)(arg1)->GetEnablePaper(); | |
18062 | ||
18063 | wxPyEndAllowThreads(__tstate); | |
18064 | if (PyErr_Occurred()) SWIG_fail; | |
18065 | } | |
8edf1c75 | 18066 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18067 | return resultobj; |
18068 | fail: | |
18069 | return NULL; | |
18070 | } | |
18071 | ||
18072 | ||
18073 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18074 | PyObject *resultobj; | |
18075 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18076 | bool result; | |
18077 | PyObject * obj0 = 0 ; | |
18078 | char *kwnames[] = { | |
18079 | (char *) "self", NULL | |
18080 | }; | |
18081 | ||
18082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
18083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18084 | { | |
18085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18086 | result = (bool)(arg1)->GetEnablePrinter(); | |
18087 | ||
18088 | wxPyEndAllowThreads(__tstate); | |
18089 | if (PyErr_Occurred()) SWIG_fail; | |
18090 | } | |
8edf1c75 | 18091 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18092 | return resultobj; |
18093 | fail: | |
18094 | return NULL; | |
18095 | } | |
18096 | ||
18097 | ||
18098 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18099 | PyObject *resultobj; | |
18100 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18101 | bool result; | |
18102 | PyObject * obj0 = 0 ; | |
18103 | char *kwnames[] = { | |
18104 | (char *) "self", NULL | |
18105 | }; | |
18106 | ||
18107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
18108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18109 | { | |
18110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18111 | result = (bool)(arg1)->GetEnableHelp(); | |
18112 | ||
18113 | wxPyEndAllowThreads(__tstate); | |
18114 | if (PyErr_Occurred()) SWIG_fail; | |
18115 | } | |
8edf1c75 | 18116 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18117 | return resultobj; |
18118 | fail: | |
18119 | return NULL; | |
18120 | } | |
18121 | ||
18122 | ||
18123 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18124 | PyObject *resultobj; | |
18125 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18126 | bool result; | |
18127 | PyObject * obj0 = 0 ; | |
18128 | char *kwnames[] = { | |
18129 | (char *) "self", NULL | |
18130 | }; | |
18131 | ||
18132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
18133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18134 | { | |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | result = (bool)(arg1)->GetDefaultInfo(); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
8edf1c75 | 18141 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18142 | return resultobj; |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18149 | PyObject *resultobj; | |
18150 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18151 | wxPoint result; | |
18152 | PyObject * obj0 = 0 ; | |
18153 | char *kwnames[] = { | |
18154 | (char *) "self", NULL | |
18155 | }; | |
18156 | ||
18157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
18158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18159 | { | |
18160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18161 | result = (arg1)->GetMarginTopLeft(); | |
18162 | ||
18163 | wxPyEndAllowThreads(__tstate); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | } | |
18166 | { | |
18167 | wxPoint * resultptr; | |
18168 | resultptr = new wxPoint((wxPoint &) result); | |
18169 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18170 | } | |
18171 | return resultobj; | |
18172 | fail: | |
18173 | return NULL; | |
18174 | } | |
18175 | ||
18176 | ||
18177 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18178 | PyObject *resultobj; | |
18179 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18180 | wxPoint result; | |
18181 | PyObject * obj0 = 0 ; | |
18182 | char *kwnames[] = { | |
18183 | (char *) "self", NULL | |
18184 | }; | |
18185 | ||
18186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",kwnames,&obj0)) goto fail; | |
18187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18188 | { | |
18189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18190 | result = (arg1)->GetMarginBottomRight(); | |
18191 | ||
18192 | wxPyEndAllowThreads(__tstate); | |
18193 | if (PyErr_Occurred()) SWIG_fail; | |
18194 | } | |
18195 | { | |
18196 | wxPoint * resultptr; | |
18197 | resultptr = new wxPoint((wxPoint &) result); | |
18198 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18199 | } | |
18200 | return resultobj; | |
18201 | fail: | |
18202 | return NULL; | |
18203 | } | |
18204 | ||
18205 | ||
18206 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18207 | PyObject *resultobj; | |
18208 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18209 | wxPoint result; | |
18210 | PyObject * obj0 = 0 ; | |
18211 | char *kwnames[] = { | |
18212 | (char *) "self", NULL | |
18213 | }; | |
18214 | ||
18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
18216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18217 | { | |
18218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18219 | result = (arg1)->GetMinMarginTopLeft(); | |
18220 | ||
18221 | wxPyEndAllowThreads(__tstate); | |
18222 | if (PyErr_Occurred()) SWIG_fail; | |
18223 | } | |
18224 | { | |
18225 | wxPoint * resultptr; | |
18226 | resultptr = new wxPoint((wxPoint &) result); | |
18227 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18228 | } | |
18229 | return resultobj; | |
18230 | fail: | |
18231 | return NULL; | |
18232 | } | |
18233 | ||
18234 | ||
18235 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18236 | PyObject *resultobj; | |
18237 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18238 | wxPoint result; | |
18239 | PyObject * obj0 = 0 ; | |
18240 | char *kwnames[] = { | |
18241 | (char *) "self", NULL | |
18242 | }; | |
18243 | ||
18244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
18245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18246 | { | |
18247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18248 | result = (arg1)->GetMinMarginBottomRight(); | |
18249 | ||
18250 | wxPyEndAllowThreads(__tstate); | |
18251 | if (PyErr_Occurred()) SWIG_fail; | |
18252 | } | |
18253 | { | |
18254 | wxPoint * resultptr; | |
18255 | resultptr = new wxPoint((wxPoint &) result); | |
18256 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18257 | } | |
18258 | return resultobj; | |
18259 | fail: | |
18260 | return NULL; | |
18261 | } | |
18262 | ||
18263 | ||
18264 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18265 | PyObject *resultobj; | |
18266 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18267 | int result; | |
18268 | PyObject * obj0 = 0 ; | |
18269 | char *kwnames[] = { | |
18270 | (char *) "self", NULL | |
18271 | }; | |
18272 | ||
18273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
18274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18275 | { | |
18276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18277 | result = (int)(arg1)->GetPaperId(); | |
18278 | ||
18279 | wxPyEndAllowThreads(__tstate); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
18281 | } | |
8edf1c75 | 18282 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18283 | return resultobj; |
18284 | fail: | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
18289 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj; | |
18291 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18292 | wxSize result; | |
18293 | PyObject * obj0 = 0 ; | |
18294 | char *kwnames[] = { | |
18295 | (char *) "self", NULL | |
18296 | }; | |
18297 | ||
18298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
18299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18300 | { | |
18301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18302 | result = (arg1)->GetPaperSize(); | |
18303 | ||
18304 | wxPyEndAllowThreads(__tstate); | |
18305 | if (PyErr_Occurred()) SWIG_fail; | |
18306 | } | |
18307 | { | |
18308 | wxSize * resultptr; | |
18309 | resultptr = new wxSize((wxSize &) result); | |
18310 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
18311 | } | |
18312 | return resultobj; | |
18313 | fail: | |
18314 | return NULL; | |
18315 | } | |
18316 | ||
18317 | ||
18318 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18319 | PyObject *resultobj; | |
18320 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18321 | wxPrintData *result; | |
18322 | PyObject * obj0 = 0 ; | |
18323 | char *kwnames[] = { | |
18324 | (char *) "self", NULL | |
18325 | }; | |
18326 | ||
18327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
18328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18329 | { | |
18330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18331 | { | |
18332 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
18333 | result = (wxPrintData *) &_result_ref; | |
18334 | } | |
18335 | ||
18336 | wxPyEndAllowThreads(__tstate); | |
18337 | if (PyErr_Occurred()) SWIG_fail; | |
18338 | } | |
18339 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
18340 | return resultobj; | |
18341 | fail: | |
18342 | return NULL; | |
18343 | } | |
18344 | ||
18345 | ||
18346 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18347 | PyObject *resultobj; | |
18348 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18349 | bool result; | |
18350 | PyObject * obj0 = 0 ; | |
18351 | char *kwnames[] = { | |
18352 | (char *) "self", NULL | |
18353 | }; | |
18354 | ||
18355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
18356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18357 | { | |
18358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18359 | result = (bool)(arg1)->Ok(); | |
18360 | ||
18361 | wxPyEndAllowThreads(__tstate); | |
18362 | if (PyErr_Occurred()) SWIG_fail; | |
18363 | } | |
8edf1c75 | 18364 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18365 | return resultobj; |
18366 | fail: | |
18367 | return NULL; | |
18368 | } | |
18369 | ||
18370 | ||
18371 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18372 | PyObject *resultobj; | |
18373 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18374 | bool arg2 ; | |
18375 | PyObject * obj0 = 0 ; | |
18376 | PyObject * obj1 = 0 ; | |
18377 | char *kwnames[] = { | |
18378 | (char *) "self",(char *) "flag", NULL | |
18379 | }; | |
18380 | ||
18381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
18382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 18383 | { |
8edf1c75 | 18384 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
18385 | if (PyErr_Occurred()) SWIG_fail; |
18386 | } | |
d14a1e28 RD |
18387 | { |
18388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18389 | (arg1)->SetDefaultInfo(arg2); | |
18390 | ||
18391 | wxPyEndAllowThreads(__tstate); | |
18392 | if (PyErr_Occurred()) SWIG_fail; | |
18393 | } | |
18394 | Py_INCREF(Py_None); resultobj = Py_None; | |
18395 | return resultobj; | |
18396 | fail: | |
18397 | return NULL; | |
18398 | } | |
18399 | ||
18400 | ||
18401 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18402 | PyObject *resultobj; | |
18403 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18404 | bool arg2 ; | |
18405 | PyObject * obj0 = 0 ; | |
18406 | PyObject * obj1 = 0 ; | |
18407 | char *kwnames[] = { | |
18408 | (char *) "self",(char *) "flag", NULL | |
18409 | }; | |
18410 | ||
18411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
18412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 18413 | { |
8edf1c75 | 18414 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
18415 | if (PyErr_Occurred()) SWIG_fail; |
18416 | } | |
d14a1e28 RD |
18417 | { |
18418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18419 | (arg1)->SetDefaultMinMargins(arg2); | |
18420 | ||
18421 | wxPyEndAllowThreads(__tstate); | |
18422 | if (PyErr_Occurred()) SWIG_fail; | |
18423 | } | |
18424 | Py_INCREF(Py_None); resultobj = Py_None; | |
18425 | return resultobj; | |
18426 | fail: | |
18427 | return NULL; | |
18428 | } | |
18429 | ||
18430 | ||
18431 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18432 | PyObject *resultobj; | |
18433 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18434 | wxPoint *arg2 = 0 ; | |
18435 | wxPoint temp2 ; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | PyObject * obj1 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "self",(char *) "pt", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
18443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18444 | { | |
18445 | arg2 = &temp2; | |
18446 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18447 | } | |
18448 | { | |
18449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18450 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
18451 | ||
18452 | wxPyEndAllowThreads(__tstate); | |
18453 | if (PyErr_Occurred()) SWIG_fail; | |
18454 | } | |
18455 | Py_INCREF(Py_None); resultobj = Py_None; | |
18456 | return resultobj; | |
18457 | fail: | |
18458 | return NULL; | |
18459 | } | |
18460 | ||
18461 | ||
18462 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18463 | PyObject *resultobj; | |
18464 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18465 | wxPoint *arg2 = 0 ; | |
18466 | wxPoint temp2 ; | |
18467 | PyObject * obj0 = 0 ; | |
18468 | PyObject * obj1 = 0 ; | |
18469 | char *kwnames[] = { | |
18470 | (char *) "self",(char *) "pt", NULL | |
18471 | }; | |
18472 | ||
18473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
18474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18475 | { | |
18476 | arg2 = &temp2; | |
18477 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18478 | } | |
18479 | { | |
18480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18481 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
18482 | ||
18483 | wxPyEndAllowThreads(__tstate); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
18486 | Py_INCREF(Py_None); resultobj = Py_None; | |
18487 | return resultobj; | |
18488 | fail: | |
18489 | return NULL; | |
18490 | } | |
18491 | ||
18492 | ||
18493 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18494 | PyObject *resultobj; | |
18495 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18496 | wxPoint *arg2 = 0 ; | |
18497 | wxPoint temp2 ; | |
18498 | PyObject * obj0 = 0 ; | |
18499 | PyObject * obj1 = 0 ; | |
18500 | char *kwnames[] = { | |
18501 | (char *) "self",(char *) "pt", NULL | |
18502 | }; | |
18503 | ||
18504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
18505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18506 | { | |
18507 | arg2 = &temp2; | |
18508 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18509 | } | |
18510 | { | |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18512 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
18515 | if (PyErr_Occurred()) SWIG_fail; | |
18516 | } | |
18517 | Py_INCREF(Py_None); resultobj = Py_None; | |
18518 | return resultobj; | |
18519 | fail: | |
18520 | return NULL; | |
18521 | } | |
18522 | ||
18523 | ||
18524 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18525 | PyObject *resultobj; | |
18526 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18527 | wxPoint *arg2 = 0 ; | |
18528 | wxPoint temp2 ; | |
18529 | PyObject * obj0 = 0 ; | |
18530 | PyObject * obj1 = 0 ; | |
18531 | char *kwnames[] = { | |
18532 | (char *) "self",(char *) "pt", NULL | |
18533 | }; | |
18534 | ||
18535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
18536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18537 | { | |
18538 | arg2 = &temp2; | |
18539 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18540 | } | |
18541 | { | |
18542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18543 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*arg2); | |
18544 | ||
18545 | wxPyEndAllowThreads(__tstate); | |
18546 | if (PyErr_Occurred()) SWIG_fail; | |
18547 | } | |
18548 | Py_INCREF(Py_None); resultobj = Py_None; | |
18549 | return resultobj; | |
18550 | fail: | |
18551 | return NULL; | |
18552 | } | |
18553 | ||
18554 | ||
18555 | static PyObject *_wrap_PageSetupDialogData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18556 | PyObject *resultobj; | |
18557 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18558 | int arg2 ; | |
18559 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18560 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18561 | char *kwnames[] = { |
18562 | (char *) "self",(char *) "id", NULL | |
18563 | }; | |
18564 | ||
8edf1c75 | 18565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
18567 | { |
18568 | arg2 = (wxPaperSize) SWIG_PyObj_AsInt(obj1); | |
18569 | if (PyErr_Occurred()) SWIG_fail; | |
18570 | } | |
d14a1e28 RD |
18571 | { |
18572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18573 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
18574 | ||
18575 | wxPyEndAllowThreads(__tstate); | |
18576 | if (PyErr_Occurred()) SWIG_fail; | |
18577 | } | |
18578 | Py_INCREF(Py_None); resultobj = Py_None; | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | return NULL; | |
18582 | } | |
18583 | ||
18584 | ||
18585 | static PyObject *_wrap_PageSetupDialogData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18586 | PyObject *resultobj; | |
18587 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18588 | wxSize *arg2 = 0 ; | |
18589 | wxSize temp2 ; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | PyObject * obj1 = 0 ; | |
18592 | char *kwnames[] = { | |
18593 | (char *) "self",(char *) "size", NULL | |
18594 | }; | |
18595 | ||
18596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
18597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18598 | { | |
18599 | arg2 = &temp2; | |
18600 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18601 | } | |
18602 | { | |
18603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18604 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
18605 | ||
18606 | wxPyEndAllowThreads(__tstate); | |
18607 | if (PyErr_Occurred()) SWIG_fail; | |
18608 | } | |
18609 | Py_INCREF(Py_None); resultobj = Py_None; | |
18610 | return resultobj; | |
18611 | fail: | |
18612 | return NULL; | |
18613 | } | |
18614 | ||
18615 | ||
18616 | static PyObject *_wrap_PageSetupDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18617 | PyObject *resultobj; | |
18618 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18619 | wxPrintData *arg2 = 0 ; | |
18620 | PyObject * obj0 = 0 ; | |
18621 | PyObject * obj1 = 0 ; | |
18622 | char *kwnames[] = { | |
18623 | (char *) "self",(char *) "printData", NULL | |
18624 | }; | |
18625 | ||
18626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
18627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18628 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18629 | if (arg2 == NULL) { | |
18630 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18631 | } | |
18632 | { | |
18633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18634 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
18635 | ||
18636 | wxPyEndAllowThreads(__tstate); | |
18637 | if (PyErr_Occurred()) SWIG_fail; | |
18638 | } | |
18639 | Py_INCREF(Py_None); resultobj = Py_None; | |
18640 | return resultobj; | |
18641 | fail: | |
18642 | return NULL; | |
18643 | } | |
18644 | ||
18645 | ||
18646 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
18647 | PyObject *obj; | |
18648 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18649 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
18650 | Py_INCREF(obj); | |
18651 | return Py_BuildValue((char *)""); | |
18652 | } | |
18653 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18654 | PyObject *resultobj; | |
18655 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18656 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
18657 | wxPageSetupDialog *result; | |
18658 | PyObject * obj0 = 0 ; | |
18659 | PyObject * obj1 = 0 ; | |
18660 | char *kwnames[] = { | |
18661 | (char *) "parent",(char *) "data", NULL | |
18662 | }; | |
18663 | ||
18664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
18665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18666 | if (obj1) { | |
18667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18668 | } | |
18669 | { | |
18670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18671 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
18672 | ||
18673 | wxPyEndAllowThreads(__tstate); | |
18674 | if (PyErr_Occurred()) SWIG_fail; | |
18675 | } | |
18676 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPageSetupDialog, 1); | |
18677 | return resultobj; | |
18678 | fail: | |
18679 | return NULL; | |
18680 | } | |
18681 | ||
18682 | ||
18683 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18684 | PyObject *resultobj; | |
18685 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
18686 | wxPageSetupDialogData *result; | |
18687 | PyObject * obj0 = 0 ; | |
18688 | char *kwnames[] = { | |
18689 | (char *) "self", NULL | |
18690 | }; | |
18691 | ||
18692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
18693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18694 | { | |
18695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18696 | { | |
18697 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
18698 | result = (wxPageSetupDialogData *) &_result_ref; | |
18699 | } | |
18700 | ||
18701 | wxPyEndAllowThreads(__tstate); | |
18702 | if (PyErr_Occurred()) SWIG_fail; | |
18703 | } | |
18704 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPageSetupDialogData, 0); | |
18705 | return resultobj; | |
18706 | fail: | |
18707 | return NULL; | |
18708 | } | |
18709 | ||
18710 | ||
18711 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18712 | PyObject *resultobj; | |
18713 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
18714 | int result; | |
18715 | PyObject * obj0 = 0 ; | |
18716 | char *kwnames[] = { | |
18717 | (char *) "self", NULL | |
18718 | }; | |
18719 | ||
18720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
18721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18722 | { | |
18723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18724 | result = (int)(arg1)->ShowModal(); | |
18725 | ||
18726 | wxPyEndAllowThreads(__tstate); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | } | |
8edf1c75 | 18729 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18730 | return resultobj; |
18731 | fail: | |
18732 | return NULL; | |
18733 | } | |
18734 | ||
18735 | ||
18736 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
18737 | PyObject *obj; | |
18738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18739 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
18740 | Py_INCREF(obj); | |
18741 | return Py_BuildValue((char *)""); | |
18742 | } | |
18743 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18744 | PyObject *resultobj; | |
18745 | wxPrintDialogData *result; | |
18746 | char *kwnames[] = { | |
18747 | NULL | |
18748 | }; | |
18749 | ||
18750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintDialogData",kwnames)) goto fail; | |
18751 | { | |
18752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18753 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
18754 | ||
18755 | wxPyEndAllowThreads(__tstate); | |
18756 | if (PyErr_Occurred()) SWIG_fail; | |
18757 | } | |
18758 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 1); | |
18759 | return resultobj; | |
18760 | fail: | |
18761 | return NULL; | |
18762 | } | |
18763 | ||
18764 | ||
18765 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18766 | PyObject *resultobj; | |
18767 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18768 | PyObject * obj0 = 0 ; | |
18769 | char *kwnames[] = { | |
18770 | (char *) "self", NULL | |
18771 | }; | |
18772 | ||
18773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
18774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18775 | { | |
18776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18777 | delete arg1; | |
18778 | ||
18779 | wxPyEndAllowThreads(__tstate); | |
18780 | if (PyErr_Occurred()) SWIG_fail; | |
18781 | } | |
18782 | Py_INCREF(Py_None); resultobj = Py_None; | |
18783 | return resultobj; | |
18784 | fail: | |
18785 | return NULL; | |
18786 | } | |
18787 | ||
18788 | ||
18789 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18790 | PyObject *resultobj; | |
18791 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18792 | int result; | |
18793 | PyObject * obj0 = 0 ; | |
18794 | char *kwnames[] = { | |
18795 | (char *) "self", NULL | |
18796 | }; | |
18797 | ||
18798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
18799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18800 | { | |
18801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18802 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
18803 | ||
18804 | wxPyEndAllowThreads(__tstate); | |
18805 | if (PyErr_Occurred()) SWIG_fail; | |
18806 | } | |
8edf1c75 | 18807 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18808 | return resultobj; |
18809 | fail: | |
18810 | return NULL; | |
18811 | } | |
18812 | ||
18813 | ||
18814 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18815 | PyObject *resultobj; | |
18816 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18817 | int result; | |
18818 | PyObject * obj0 = 0 ; | |
18819 | char *kwnames[] = { | |
18820 | (char *) "self", NULL | |
18821 | }; | |
18822 | ||
18823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
18824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18825 | { | |
18826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18827 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
18828 | ||
18829 | wxPyEndAllowThreads(__tstate); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | } | |
8edf1c75 | 18832 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18833 | return resultobj; |
18834 | fail: | |
18835 | return NULL; | |
18836 | } | |
18837 | ||
18838 | ||
18839 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18840 | PyObject *resultobj; | |
18841 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18842 | int result; | |
18843 | PyObject * obj0 = 0 ; | |
18844 | char *kwnames[] = { | |
18845 | (char *) "self", NULL | |
18846 | }; | |
18847 | ||
18848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
18849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18850 | { | |
18851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18852 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
18853 | ||
18854 | wxPyEndAllowThreads(__tstate); | |
18855 | if (PyErr_Occurred()) SWIG_fail; | |
18856 | } | |
8edf1c75 | 18857 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18858 | return resultobj; |
18859 | fail: | |
18860 | return NULL; | |
18861 | } | |
18862 | ||
18863 | ||
18864 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18865 | PyObject *resultobj; | |
18866 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18867 | int result; | |
18868 | PyObject * obj0 = 0 ; | |
18869 | char *kwnames[] = { | |
18870 | (char *) "self", NULL | |
18871 | }; | |
18872 | ||
18873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
18874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18875 | { | |
18876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18877 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
18878 | ||
18879 | wxPyEndAllowThreads(__tstate); | |
18880 | if (PyErr_Occurred()) SWIG_fail; | |
18881 | } | |
8edf1c75 | 18882 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18883 | return resultobj; |
18884 | fail: | |
18885 | return NULL; | |
18886 | } | |
18887 | ||
18888 | ||
18889 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18890 | PyObject *resultobj; | |
18891 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18892 | int result; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | char *kwnames[] = { | |
18895 | (char *) "self", NULL | |
18896 | }; | |
18897 | ||
18898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
18899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18900 | { | |
18901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18902 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
18903 | ||
18904 | wxPyEndAllowThreads(__tstate); | |
18905 | if (PyErr_Occurred()) SWIG_fail; | |
18906 | } | |
8edf1c75 | 18907 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18908 | return resultobj; |
18909 | fail: | |
18910 | return NULL; | |
18911 | } | |
18912 | ||
18913 | ||
18914 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18915 | PyObject *resultobj; | |
18916 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18917 | bool result; | |
18918 | PyObject * obj0 = 0 ; | |
18919 | char *kwnames[] = { | |
18920 | (char *) "self", NULL | |
18921 | }; | |
18922 | ||
18923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
18924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18925 | { | |
18926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18927 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
18928 | ||
18929 | wxPyEndAllowThreads(__tstate); | |
18930 | if (PyErr_Occurred()) SWIG_fail; | |
18931 | } | |
8edf1c75 | 18932 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18933 | return resultobj; |
18934 | fail: | |
18935 | return NULL; | |
18936 | } | |
18937 | ||
18938 | ||
18939 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18940 | PyObject *resultobj; | |
18941 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18942 | bool result; | |
18943 | PyObject * obj0 = 0 ; | |
18944 | char *kwnames[] = { | |
18945 | (char *) "self", NULL | |
18946 | }; | |
18947 | ||
18948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
18949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18950 | { | |
18951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18952 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
18953 | ||
18954 | wxPyEndAllowThreads(__tstate); | |
18955 | if (PyErr_Occurred()) SWIG_fail; | |
18956 | } | |
8edf1c75 | 18957 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18958 | return resultobj; |
18959 | fail: | |
18960 | return NULL; | |
18961 | } | |
18962 | ||
18963 | ||
18964 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18965 | PyObject *resultobj; | |
18966 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18967 | bool result; | |
18968 | PyObject * obj0 = 0 ; | |
18969 | char *kwnames[] = { | |
18970 | (char *) "self", NULL | |
18971 | }; | |
18972 | ||
18973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
18974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18975 | { | |
18976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18977 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
18978 | ||
18979 | wxPyEndAllowThreads(__tstate); | |
18980 | if (PyErr_Occurred()) SWIG_fail; | |
18981 | } | |
8edf1c75 | 18982 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
18983 | return resultobj; |
18984 | fail: | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
18989 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18990 | PyObject *resultobj; | |
18991 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18992 | bool result; | |
18993 | PyObject * obj0 = 0 ; | |
18994 | char *kwnames[] = { | |
18995 | (char *) "self", NULL | |
18996 | }; | |
18997 | ||
18998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
18999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
19003 | ||
19004 | wxPyEndAllowThreads(__tstate); | |
19005 | if (PyErr_Occurred()) SWIG_fail; | |
19006 | } | |
8edf1c75 | 19007 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19008 | return resultobj; |
19009 | fail: | |
19010 | return NULL; | |
19011 | } | |
19012 | ||
19013 | ||
19014 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19015 | PyObject *resultobj; | |
19016 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19017 | bool result; | |
19018 | PyObject * obj0 = 0 ; | |
19019 | char *kwnames[] = { | |
19020 | (char *) "self", NULL | |
19021 | }; | |
19022 | ||
19023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
19024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19025 | { | |
19026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19027 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
19028 | ||
19029 | wxPyEndAllowThreads(__tstate); | |
19030 | if (PyErr_Occurred()) SWIG_fail; | |
19031 | } | |
8edf1c75 | 19032 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19033 | return resultobj; |
19034 | fail: | |
19035 | return NULL; | |
19036 | } | |
19037 | ||
19038 | ||
19039 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19040 | PyObject *resultobj; | |
19041 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19042 | int arg2 ; | |
19043 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19044 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19045 | char *kwnames[] = { |
19046 | (char *) "self",(char *) "v", NULL | |
19047 | }; | |
19048 | ||
8edf1c75 | 19049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19051 | { |
19052 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19053 | if (PyErr_Occurred()) SWIG_fail; | |
19054 | } | |
d14a1e28 RD |
19055 | { |
19056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19057 | (arg1)->SetFromPage(arg2); | |
19058 | ||
19059 | wxPyEndAllowThreads(__tstate); | |
19060 | if (PyErr_Occurred()) SWIG_fail; | |
19061 | } | |
19062 | Py_INCREF(Py_None); resultobj = Py_None; | |
19063 | return resultobj; | |
19064 | fail: | |
19065 | return NULL; | |
19066 | } | |
19067 | ||
19068 | ||
19069 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19070 | PyObject *resultobj; | |
19071 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19072 | int arg2 ; | |
19073 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19074 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19075 | char *kwnames[] = { |
19076 | (char *) "self",(char *) "v", NULL | |
19077 | }; | |
19078 | ||
8edf1c75 | 19079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19081 | { |
19082 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19083 | if (PyErr_Occurred()) SWIG_fail; | |
19084 | } | |
d14a1e28 RD |
19085 | { |
19086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19087 | (arg1)->SetToPage(arg2); | |
19088 | ||
19089 | wxPyEndAllowThreads(__tstate); | |
19090 | if (PyErr_Occurred()) SWIG_fail; | |
19091 | } | |
19092 | Py_INCREF(Py_None); resultobj = Py_None; | |
19093 | return resultobj; | |
19094 | fail: | |
19095 | return NULL; | |
19096 | } | |
19097 | ||
19098 | ||
19099 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19100 | PyObject *resultobj; | |
19101 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19102 | int arg2 ; | |
19103 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19104 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19105 | char *kwnames[] = { |
19106 | (char *) "self",(char *) "v", NULL | |
19107 | }; | |
19108 | ||
8edf1c75 | 19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19111 | { |
19112 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19113 | if (PyErr_Occurred()) SWIG_fail; | |
19114 | } | |
d14a1e28 RD |
19115 | { |
19116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19117 | (arg1)->SetMinPage(arg2); | |
19118 | ||
19119 | wxPyEndAllowThreads(__tstate); | |
19120 | if (PyErr_Occurred()) SWIG_fail; | |
19121 | } | |
19122 | Py_INCREF(Py_None); resultobj = Py_None; | |
19123 | return resultobj; | |
19124 | fail: | |
19125 | return NULL; | |
19126 | } | |
19127 | ||
19128 | ||
19129 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19130 | PyObject *resultobj; | |
19131 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19132 | int arg2 ; | |
19133 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19134 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19135 | char *kwnames[] = { |
19136 | (char *) "self",(char *) "v", NULL | |
19137 | }; | |
19138 | ||
8edf1c75 | 19139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19141 | { |
19142 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19143 | if (PyErr_Occurred()) SWIG_fail; | |
19144 | } | |
d14a1e28 RD |
19145 | { |
19146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19147 | (arg1)->SetMaxPage(arg2); | |
19148 | ||
19149 | wxPyEndAllowThreads(__tstate); | |
19150 | if (PyErr_Occurred()) SWIG_fail; | |
19151 | } | |
19152 | Py_INCREF(Py_None); resultobj = Py_None; | |
19153 | return resultobj; | |
19154 | fail: | |
19155 | return NULL; | |
19156 | } | |
19157 | ||
19158 | ||
19159 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19160 | PyObject *resultobj; | |
19161 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19162 | int arg2 ; | |
19163 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19164 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19165 | char *kwnames[] = { |
19166 | (char *) "self",(char *) "v", NULL | |
19167 | }; | |
19168 | ||
8edf1c75 | 19169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
19171 | { |
19172 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19173 | if (PyErr_Occurred()) SWIG_fail; | |
19174 | } | |
d14a1e28 RD |
19175 | { |
19176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19177 | (arg1)->SetNoCopies(arg2); | |
19178 | ||
19179 | wxPyEndAllowThreads(__tstate); | |
19180 | if (PyErr_Occurred()) SWIG_fail; | |
19181 | } | |
19182 | Py_INCREF(Py_None); resultobj = Py_None; | |
19183 | return resultobj; | |
19184 | fail: | |
19185 | return NULL; | |
19186 | } | |
19187 | ||
19188 | ||
19189 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19190 | PyObject *resultobj; | |
19191 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19192 | bool arg2 ; | |
19193 | PyObject * obj0 = 0 ; | |
19194 | PyObject * obj1 = 0 ; | |
19195 | char *kwnames[] = { | |
19196 | (char *) "self",(char *) "flag", NULL | |
19197 | }; | |
19198 | ||
19199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
19200 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19201 | { |
8edf1c75 | 19202 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19203 | if (PyErr_Occurred()) SWIG_fail; |
19204 | } | |
d14a1e28 RD |
19205 | { |
19206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19207 | (arg1)->SetAllPages(arg2); | |
19208 | ||
19209 | wxPyEndAllowThreads(__tstate); | |
19210 | if (PyErr_Occurred()) SWIG_fail; | |
19211 | } | |
19212 | Py_INCREF(Py_None); resultobj = Py_None; | |
19213 | return resultobj; | |
19214 | fail: | |
19215 | return NULL; | |
19216 | } | |
19217 | ||
19218 | ||
19219 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19220 | PyObject *resultobj; | |
19221 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19222 | bool arg2 ; | |
19223 | PyObject * obj0 = 0 ; | |
19224 | PyObject * obj1 = 0 ; | |
19225 | char *kwnames[] = { | |
19226 | (char *) "self",(char *) "flag", NULL | |
19227 | }; | |
19228 | ||
19229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
19230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19231 | { |
8edf1c75 | 19232 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19233 | if (PyErr_Occurred()) SWIG_fail; |
19234 | } | |
d14a1e28 RD |
19235 | { |
19236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19237 | (arg1)->SetSelection(arg2); | |
19238 | ||
19239 | wxPyEndAllowThreads(__tstate); | |
19240 | if (PyErr_Occurred()) SWIG_fail; | |
19241 | } | |
19242 | Py_INCREF(Py_None); resultobj = Py_None; | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | return NULL; | |
19246 | } | |
19247 | ||
19248 | ||
19249 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19250 | PyObject *resultobj; | |
19251 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19252 | bool arg2 ; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | PyObject * obj1 = 0 ; | |
19255 | char *kwnames[] = { | |
19256 | (char *) "self",(char *) "flag", NULL | |
19257 | }; | |
19258 | ||
19259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
19260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19261 | { |
8edf1c75 | 19262 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19263 | if (PyErr_Occurred()) SWIG_fail; |
19264 | } | |
d14a1e28 RD |
19265 | { |
19266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19267 | (arg1)->SetCollate(arg2); | |
19268 | ||
19269 | wxPyEndAllowThreads(__tstate); | |
19270 | if (PyErr_Occurred()) SWIG_fail; | |
19271 | } | |
19272 | Py_INCREF(Py_None); resultobj = Py_None; | |
19273 | return resultobj; | |
19274 | fail: | |
19275 | return NULL; | |
19276 | } | |
19277 | ||
19278 | ||
19279 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19280 | PyObject *resultobj; | |
19281 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19282 | bool arg2 ; | |
19283 | PyObject * obj0 = 0 ; | |
19284 | PyObject * obj1 = 0 ; | |
19285 | char *kwnames[] = { | |
19286 | (char *) "self",(char *) "flag", NULL | |
19287 | }; | |
19288 | ||
19289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
19290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19291 | { |
8edf1c75 | 19292 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19293 | if (PyErr_Occurred()) SWIG_fail; |
19294 | } | |
d14a1e28 RD |
19295 | { |
19296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19297 | (arg1)->SetPrintToFile(arg2); | |
19298 | ||
19299 | wxPyEndAllowThreads(__tstate); | |
19300 | if (PyErr_Occurred()) SWIG_fail; | |
19301 | } | |
19302 | Py_INCREF(Py_None); resultobj = Py_None; | |
19303 | return resultobj; | |
19304 | fail: | |
19305 | return NULL; | |
19306 | } | |
19307 | ||
19308 | ||
19309 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19310 | PyObject *resultobj; | |
19311 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19312 | bool arg2 ; | |
19313 | PyObject * obj0 = 0 ; | |
19314 | PyObject * obj1 = 0 ; | |
19315 | char *kwnames[] = { | |
19316 | (char *) "self",(char *) "flag", NULL | |
19317 | }; | |
19318 | ||
19319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
19320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19321 | { |
8edf1c75 | 19322 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19323 | if (PyErr_Occurred()) SWIG_fail; |
19324 | } | |
d14a1e28 RD |
19325 | { |
19326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19327 | (arg1)->SetSetupDialog(arg2); | |
19328 | ||
19329 | wxPyEndAllowThreads(__tstate); | |
19330 | if (PyErr_Occurred()) SWIG_fail; | |
19331 | } | |
19332 | Py_INCREF(Py_None); resultobj = Py_None; | |
19333 | return resultobj; | |
19334 | fail: | |
19335 | return NULL; | |
19336 | } | |
19337 | ||
19338 | ||
19339 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19340 | PyObject *resultobj; | |
19341 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19342 | bool arg2 ; | |
19343 | PyObject * obj0 = 0 ; | |
19344 | PyObject * obj1 = 0 ; | |
19345 | char *kwnames[] = { | |
19346 | (char *) "self",(char *) "flag", NULL | |
19347 | }; | |
19348 | ||
19349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
19350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19351 | { |
8edf1c75 | 19352 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19353 | if (PyErr_Occurred()) SWIG_fail; |
19354 | } | |
d14a1e28 RD |
19355 | { |
19356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19357 | (arg1)->EnablePrintToFile(arg2); | |
19358 | ||
19359 | wxPyEndAllowThreads(__tstate); | |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
19361 | } | |
19362 | Py_INCREF(Py_None); resultobj = Py_None; | |
19363 | return resultobj; | |
19364 | fail: | |
19365 | return NULL; | |
19366 | } | |
19367 | ||
19368 | ||
19369 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19370 | PyObject *resultobj; | |
19371 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19372 | bool arg2 ; | |
19373 | PyObject * obj0 = 0 ; | |
19374 | PyObject * obj1 = 0 ; | |
19375 | char *kwnames[] = { | |
19376 | (char *) "self",(char *) "flag", NULL | |
19377 | }; | |
19378 | ||
19379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
19380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19381 | { |
8edf1c75 | 19382 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19383 | if (PyErr_Occurred()) SWIG_fail; |
19384 | } | |
d14a1e28 RD |
19385 | { |
19386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19387 | (arg1)->EnableSelection(arg2); | |
19388 | ||
19389 | wxPyEndAllowThreads(__tstate); | |
19390 | if (PyErr_Occurred()) SWIG_fail; | |
19391 | } | |
19392 | Py_INCREF(Py_None); resultobj = Py_None; | |
19393 | return resultobj; | |
19394 | fail: | |
19395 | return NULL; | |
19396 | } | |
19397 | ||
19398 | ||
19399 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19400 | PyObject *resultobj; | |
19401 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19402 | bool arg2 ; | |
19403 | PyObject * obj0 = 0 ; | |
19404 | PyObject * obj1 = 0 ; | |
19405 | char *kwnames[] = { | |
19406 | (char *) "self",(char *) "flag", NULL | |
19407 | }; | |
19408 | ||
19409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
19410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19411 | { |
8edf1c75 | 19412 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19413 | if (PyErr_Occurred()) SWIG_fail; |
19414 | } | |
d14a1e28 RD |
19415 | { |
19416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19417 | (arg1)->EnablePageNumbers(arg2); | |
19418 | ||
19419 | wxPyEndAllowThreads(__tstate); | |
19420 | if (PyErr_Occurred()) SWIG_fail; | |
19421 | } | |
19422 | Py_INCREF(Py_None); resultobj = Py_None; | |
19423 | return resultobj; | |
19424 | fail: | |
19425 | return NULL; | |
19426 | } | |
19427 | ||
19428 | ||
19429 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19430 | PyObject *resultobj; | |
19431 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19432 | bool arg2 ; | |
19433 | PyObject * obj0 = 0 ; | |
19434 | PyObject * obj1 = 0 ; | |
19435 | char *kwnames[] = { | |
19436 | (char *) "self",(char *) "flag", NULL | |
19437 | }; | |
19438 | ||
19439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 19441 | { |
8edf1c75 | 19442 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
19443 | if (PyErr_Occurred()) SWIG_fail; |
19444 | } | |
d14a1e28 RD |
19445 | { |
19446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19447 | (arg1)->EnableHelp(arg2); | |
19448 | ||
19449 | wxPyEndAllowThreads(__tstate); | |
19450 | if (PyErr_Occurred()) SWIG_fail; | |
19451 | } | |
19452 | Py_INCREF(Py_None); resultobj = Py_None; | |
19453 | return resultobj; | |
19454 | fail: | |
19455 | return NULL; | |
19456 | } | |
19457 | ||
19458 | ||
19459 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19460 | PyObject *resultobj; | |
19461 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19462 | bool result; | |
19463 | PyObject * obj0 = 0 ; | |
19464 | char *kwnames[] = { | |
19465 | (char *) "self", NULL | |
19466 | }; | |
19467 | ||
19468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
19469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19470 | { | |
19471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19472 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
19473 | ||
19474 | wxPyEndAllowThreads(__tstate); | |
19475 | if (PyErr_Occurred()) SWIG_fail; | |
19476 | } | |
8edf1c75 | 19477 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19478 | return resultobj; |
19479 | fail: | |
19480 | return NULL; | |
19481 | } | |
19482 | ||
19483 | ||
19484 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19485 | PyObject *resultobj; | |
19486 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19487 | bool result; | |
19488 | PyObject * obj0 = 0 ; | |
19489 | char *kwnames[] = { | |
19490 | (char *) "self", NULL | |
19491 | }; | |
19492 | ||
19493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
19494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19495 | { | |
19496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19497 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
19498 | ||
19499 | wxPyEndAllowThreads(__tstate); | |
19500 | if (PyErr_Occurred()) SWIG_fail; | |
19501 | } | |
8edf1c75 | 19502 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19503 | return resultobj; |
19504 | fail: | |
19505 | return NULL; | |
19506 | } | |
19507 | ||
19508 | ||
19509 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19510 | PyObject *resultobj; | |
19511 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19512 | bool result; | |
19513 | PyObject * obj0 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
19519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19520 | { | |
19521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19522 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
19523 | ||
19524 | wxPyEndAllowThreads(__tstate); | |
19525 | if (PyErr_Occurred()) SWIG_fail; | |
19526 | } | |
8edf1c75 | 19527 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19528 | return resultobj; |
19529 | fail: | |
19530 | return NULL; | |
19531 | } | |
19532 | ||
19533 | ||
19534 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19535 | PyObject *resultobj; | |
19536 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19537 | bool result; | |
19538 | PyObject * obj0 = 0 ; | |
19539 | char *kwnames[] = { | |
19540 | (char *) "self", NULL | |
19541 | }; | |
19542 | ||
19543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19545 | { | |
19546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19547 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
19548 | ||
19549 | wxPyEndAllowThreads(__tstate); | |
19550 | if (PyErr_Occurred()) SWIG_fail; | |
19551 | } | |
8edf1c75 | 19552 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19553 | return resultobj; |
19554 | fail: | |
19555 | return NULL; | |
19556 | } | |
19557 | ||
19558 | ||
19559 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19560 | PyObject *resultobj; | |
19561 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19562 | bool result; | |
19563 | PyObject * obj0 = 0 ; | |
19564 | char *kwnames[] = { | |
19565 | (char *) "self", NULL | |
19566 | }; | |
19567 | ||
19568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
19569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19570 | { | |
19571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19572 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
19573 | ||
19574 | wxPyEndAllowThreads(__tstate); | |
19575 | if (PyErr_Occurred()) SWIG_fail; | |
19576 | } | |
8edf1c75 | 19577 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19578 | return resultobj; |
19579 | fail: | |
19580 | return NULL; | |
19581 | } | |
19582 | ||
19583 | ||
19584 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19585 | PyObject *resultobj; | |
19586 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19587 | wxPrintData *result; | |
19588 | PyObject * obj0 = 0 ; | |
19589 | char *kwnames[] = { | |
19590 | (char *) "self", NULL | |
19591 | }; | |
19592 | ||
19593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
19594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19595 | { | |
19596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19597 | { | |
19598 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
19599 | result = (wxPrintData *) &_result_ref; | |
19600 | } | |
19601 | ||
19602 | wxPyEndAllowThreads(__tstate); | |
19603 | if (PyErr_Occurred()) SWIG_fail; | |
19604 | } | |
19605 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
19606 | return resultobj; | |
19607 | fail: | |
19608 | return NULL; | |
19609 | } | |
19610 | ||
19611 | ||
19612 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19613 | PyObject *resultobj; | |
19614 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19615 | wxPrintData *arg2 = 0 ; | |
19616 | PyObject * obj0 = 0 ; | |
19617 | PyObject * obj1 = 0 ; | |
19618 | char *kwnames[] = { | |
19619 | (char *) "self",(char *) "printData", NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
19623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19624 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19625 | if (arg2 == NULL) { | |
19626 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19627 | } | |
19628 | { | |
19629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19630 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
19631 | ||
19632 | wxPyEndAllowThreads(__tstate); | |
19633 | if (PyErr_Occurred()) SWIG_fail; | |
19634 | } | |
19635 | Py_INCREF(Py_None); resultobj = Py_None; | |
19636 | return resultobj; | |
19637 | fail: | |
19638 | return NULL; | |
19639 | } | |
19640 | ||
19641 | ||
19642 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
19643 | PyObject *obj; | |
19644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19645 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
19646 | Py_INCREF(obj); | |
19647 | return Py_BuildValue((char *)""); | |
19648 | } | |
19649 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19650 | PyObject *resultobj; | |
19651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19652 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
19653 | wxPrintDialog *result; | |
19654 | PyObject * obj0 = 0 ; | |
19655 | PyObject * obj1 = 0 ; | |
19656 | char *kwnames[] = { | |
19657 | (char *) "parent",(char *) "data", NULL | |
19658 | }; | |
19659 | ||
19660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
19661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19662 | if (obj1) { | |
19663 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19664 | } | |
19665 | { | |
19666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19667 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
19668 | ||
19669 | wxPyEndAllowThreads(__tstate); | |
19670 | if (PyErr_Occurred()) SWIG_fail; | |
19671 | } | |
19672 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialog, 1); | |
19673 | return resultobj; | |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
19679 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19680 | PyObject *resultobj; | |
19681 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19682 | wxPrintDialogData *result; | |
19683 | PyObject * obj0 = 0 ; | |
19684 | char *kwnames[] = { | |
19685 | (char *) "self", NULL | |
19686 | }; | |
19687 | ||
19688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
19689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19690 | { | |
19691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19692 | { | |
19693 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
19694 | result = (wxPrintDialogData *) &_result_ref; | |
19695 | } | |
19696 | ||
19697 | wxPyEndAllowThreads(__tstate); | |
19698 | if (PyErr_Occurred()) SWIG_fail; | |
19699 | } | |
19700 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 0); | |
19701 | return resultobj; | |
19702 | fail: | |
19703 | return NULL; | |
19704 | } | |
19705 | ||
19706 | ||
19707 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19708 | PyObject *resultobj; | |
19709 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19710 | wxDC *result; | |
19711 | PyObject * obj0 = 0 ; | |
19712 | char *kwnames[] = { | |
19713 | (char *) "self", NULL | |
19714 | }; | |
19715 | ||
19716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
19717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19718 | { | |
19719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19720 | result = (wxDC *)(arg1)->GetPrintDC(); | |
19721 | ||
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
19725 | { | |
19726 | resultobj = wxPyMake_wxObject(result); | |
19727 | } | |
19728 | return resultobj; | |
19729 | fail: | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19735 | PyObject *resultobj; | |
19736 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19737 | int result; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | char *kwnames[] = { | |
19740 | (char *) "self", NULL | |
19741 | }; | |
19742 | ||
19743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
19744 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19745 | { | |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | result = (int)(arg1)->ShowModal(); | |
19748 | ||
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
8edf1c75 | 19752 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19753 | return resultobj; |
19754 | fail: | |
19755 | return NULL; | |
19756 | } | |
19757 | ||
19758 | ||
19759 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
19760 | PyObject *obj; | |
19761 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19762 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
19763 | Py_INCREF(obj); | |
19764 | return Py_BuildValue((char *)""); | |
19765 | } | |
19766 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19767 | PyObject *resultobj; | |
19768 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
19769 | wxPrinter *result; | |
19770 | PyObject * obj0 = 0 ; | |
19771 | char *kwnames[] = { | |
19772 | (char *) "data", NULL | |
19773 | }; | |
19774 | ||
19775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
19776 | if (obj0) { | |
19777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19778 | } | |
19779 | { | |
19780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19781 | result = (wxPrinter *)new wxPrinter(arg1); | |
19782 | ||
19783 | wxPyEndAllowThreads(__tstate); | |
19784 | if (PyErr_Occurred()) SWIG_fail; | |
19785 | } | |
19786 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinter, 1); | |
19787 | return resultobj; | |
19788 | fail: | |
19789 | return NULL; | |
19790 | } | |
19791 | ||
19792 | ||
19793 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19794 | PyObject *resultobj; | |
19795 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19796 | PyObject * obj0 = 0 ; | |
19797 | char *kwnames[] = { | |
19798 | (char *) "self", NULL | |
19799 | }; | |
19800 | ||
19801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
19802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19803 | { | |
19804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19805 | delete arg1; | |
19806 | ||
19807 | wxPyEndAllowThreads(__tstate); | |
19808 | if (PyErr_Occurred()) SWIG_fail; | |
19809 | } | |
19810 | Py_INCREF(Py_None); resultobj = Py_None; | |
19811 | return resultobj; | |
19812 | fail: | |
19813 | return NULL; | |
19814 | } | |
19815 | ||
19816 | ||
19817 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19818 | PyObject *resultobj; | |
19819 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19820 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19821 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
19822 | PyObject * obj0 = 0 ; | |
19823 | PyObject * obj1 = 0 ; | |
19824 | PyObject * obj2 = 0 ; | |
19825 | char *kwnames[] = { | |
19826 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
19827 | }; | |
19828 | ||
19829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19831 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19832 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19833 | { | |
19834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19835 | (arg1)->CreateAbortWindow(arg2,arg3); | |
19836 | ||
19837 | wxPyEndAllowThreads(__tstate); | |
19838 | if (PyErr_Occurred()) SWIG_fail; | |
19839 | } | |
19840 | Py_INCREF(Py_None); resultobj = Py_None; | |
19841 | return resultobj; | |
19842 | fail: | |
19843 | return NULL; | |
19844 | } | |
19845 | ||
19846 | ||
19847 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19848 | PyObject *resultobj; | |
19849 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19850 | wxPrintDialogData *result; | |
19851 | PyObject * obj0 = 0 ; | |
19852 | char *kwnames[] = { | |
19853 | (char *) "self", NULL | |
19854 | }; | |
19855 | ||
19856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
19857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19858 | { | |
19859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19860 | { | |
19861 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
19862 | result = (wxPrintDialogData *) &_result_ref; | |
19863 | } | |
19864 | ||
19865 | wxPyEndAllowThreads(__tstate); | |
19866 | if (PyErr_Occurred()) SWIG_fail; | |
19867 | } | |
19868 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 0); | |
19869 | return resultobj; | |
19870 | fail: | |
19871 | return NULL; | |
19872 | } | |
19873 | ||
19874 | ||
19875 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19876 | PyObject *resultobj; | |
19877 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19878 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19879 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
423f194a | 19880 | int arg4 = (int) True ; |
d14a1e28 RD |
19881 | bool result; |
19882 | PyObject * obj0 = 0 ; | |
19883 | PyObject * obj1 = 0 ; | |
19884 | PyObject * obj2 = 0 ; | |
8edf1c75 | 19885 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
19886 | char *kwnames[] = { |
19887 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
19888 | }; | |
19889 | ||
8edf1c75 | 19890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
19891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19892 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19893 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8edf1c75 RD |
19894 | if (obj3) { |
19895 | { | |
19896 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
19897 | if (PyErr_Occurred()) SWIG_fail; | |
19898 | } | |
19899 | } | |
d14a1e28 RD |
19900 | { |
19901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19902 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
19903 | ||
19904 | wxPyEndAllowThreads(__tstate); | |
19905 | if (PyErr_Occurred()) SWIG_fail; | |
19906 | } | |
8edf1c75 | 19907 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
19908 | return resultobj; |
19909 | fail: | |
19910 | return NULL; | |
19911 | } | |
19912 | ||
19913 | ||
19914 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19915 | PyObject *resultobj; | |
19916 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19917 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19918 | wxDC *result; | |
19919 | PyObject * obj0 = 0 ; | |
19920 | PyObject * obj1 = 0 ; | |
19921 | char *kwnames[] = { | |
19922 | (char *) "self",(char *) "parent", NULL | |
19923 | }; | |
19924 | ||
19925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
19926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19927 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19928 | { | |
19929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19930 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
19931 | ||
19932 | wxPyEndAllowThreads(__tstate); | |
19933 | if (PyErr_Occurred()) SWIG_fail; | |
19934 | } | |
19935 | { | |
19936 | resultobj = wxPyMake_wxObject(result); | |
19937 | } | |
19938 | return resultobj; | |
19939 | fail: | |
19940 | return NULL; | |
19941 | } | |
19942 | ||
19943 | ||
19944 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19945 | PyObject *resultobj; | |
19946 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19947 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19948 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
19949 | wxString *arg4 = 0 ; | |
423f194a | 19950 | bool temp4 = False ; |
d14a1e28 RD |
19951 | PyObject * obj0 = 0 ; |
19952 | PyObject * obj1 = 0 ; | |
19953 | PyObject * obj2 = 0 ; | |
19954 | PyObject * obj3 = 0 ; | |
19955 | char *kwnames[] = { | |
19956 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
19957 | }; | |
19958 | ||
19959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19962 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19963 | { | |
19964 | arg4 = wxString_in_helper(obj3); | |
19965 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 19966 | temp4 = True; |
d14a1e28 RD |
19967 | } |
19968 | { | |
19969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19970 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
19971 | ||
19972 | wxPyEndAllowThreads(__tstate); | |
19973 | if (PyErr_Occurred()) SWIG_fail; | |
19974 | } | |
19975 | Py_INCREF(Py_None); resultobj = Py_None; | |
19976 | { | |
19977 | if (temp4) | |
19978 | delete arg4; | |
19979 | } | |
19980 | return resultobj; | |
19981 | fail: | |
19982 | { | |
19983 | if (temp4) | |
19984 | delete arg4; | |
19985 | } | |
19986 | return NULL; | |
19987 | } | |
19988 | ||
19989 | ||
19990 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19991 | PyObject *resultobj; | |
19992 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19993 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19994 | bool result; | |
19995 | PyObject * obj0 = 0 ; | |
19996 | PyObject * obj1 = 0 ; | |
19997 | char *kwnames[] = { | |
19998 | (char *) "self",(char *) "parent", NULL | |
19999 | }; | |
20000 | ||
20001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
20002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20003 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20004 | { | |
20005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20006 | result = (bool)(arg1)->Setup(arg2); | |
20007 | ||
20008 | wxPyEndAllowThreads(__tstate); | |
20009 | if (PyErr_Occurred()) SWIG_fail; | |
20010 | } | |
8edf1c75 | 20011 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20012 | return resultobj; |
20013 | fail: | |
20014 | return NULL; | |
20015 | } | |
20016 | ||
20017 | ||
20018 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20019 | PyObject *resultobj; | |
20020 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
20021 | bool result; | |
20022 | PyObject * obj0 = 0 ; | |
20023 | char *kwnames[] = { | |
20024 | (char *) "self", NULL | |
20025 | }; | |
20026 | ||
20027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
20028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20029 | { | |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | result = (bool)(arg1)->GetAbort(); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
8edf1c75 | 20036 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20037 | return resultobj; |
20038 | fail: | |
20039 | return NULL; | |
20040 | } | |
20041 | ||
20042 | ||
20043 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20044 | PyObject *resultobj; | |
20045 | int result; | |
20046 | char *kwnames[] = { | |
20047 | NULL | |
20048 | }; | |
20049 | ||
20050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
20051 | { | |
20052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20053 | result = (int)wxPrinter::GetLastError(); | |
20054 | ||
20055 | wxPyEndAllowThreads(__tstate); | |
20056 | if (PyErr_Occurred()) SWIG_fail; | |
20057 | } | |
8edf1c75 | 20058 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
20059 | return resultobj; |
20060 | fail: | |
20061 | return NULL; | |
20062 | } | |
20063 | ||
20064 | ||
20065 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
20066 | PyObject *obj; | |
20067 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20068 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
20069 | Py_INCREF(obj); | |
20070 | return Py_BuildValue((char *)""); | |
20071 | } | |
20072 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20073 | PyObject *resultobj; | |
20074 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
20075 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
20076 | wxPyPrintout *result; | |
423f194a | 20077 | bool temp1 = False ; |
d14a1e28 RD |
20078 | PyObject * obj0 = 0 ; |
20079 | char *kwnames[] = { | |
20080 | (char *) "title", NULL | |
20081 | }; | |
20082 | ||
20083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
20084 | if (obj0) { | |
20085 | { | |
20086 | arg1 = wxString_in_helper(obj0); | |
20087 | if (arg1 == NULL) SWIG_fail; | |
423f194a | 20088 | temp1 = True; |
d14a1e28 RD |
20089 | } |
20090 | } | |
20091 | { | |
20092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20093 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
20094 | ||
20095 | wxPyEndAllowThreads(__tstate); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
20098 | { | |
20099 | resultobj = wxPyMake_wxObject(result); | |
20100 | } | |
20101 | { | |
20102 | if (temp1) | |
20103 | delete arg1; | |
20104 | } | |
20105 | return resultobj; | |
20106 | fail: | |
20107 | { | |
20108 | if (temp1) | |
20109 | delete arg1; | |
20110 | } | |
20111 | return NULL; | |
20112 | } | |
20113 | ||
20114 | ||
20115 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20116 | PyObject *resultobj; | |
20117 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20118 | PyObject *arg2 = (PyObject *) 0 ; | |
20119 | PyObject *arg3 = (PyObject *) 0 ; | |
20120 | PyObject * obj0 = 0 ; | |
20121 | PyObject * obj1 = 0 ; | |
20122 | PyObject * obj2 = 0 ; | |
20123 | char *kwnames[] = { | |
20124 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20125 | }; | |
20126 | ||
20127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20129 | arg2 = obj1; | |
20130 | arg3 = obj2; | |
20131 | { | |
20132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20133 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20134 | ||
20135 | wxPyEndAllowThreads(__tstate); | |
20136 | if (PyErr_Occurred()) SWIG_fail; | |
20137 | } | |
20138 | Py_INCREF(Py_None); resultobj = Py_None; | |
20139 | return resultobj; | |
20140 | fail: | |
20141 | return NULL; | |
20142 | } | |
20143 | ||
20144 | ||
20145 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20146 | PyObject *resultobj; | |
20147 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20148 | wxString result; | |
20149 | PyObject * obj0 = 0 ; | |
20150 | char *kwnames[] = { | |
20151 | (char *) "self", NULL | |
20152 | }; | |
20153 | ||
20154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
20155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20156 | { | |
20157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20158 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
20159 | ||
20160 | wxPyEndAllowThreads(__tstate); | |
20161 | if (PyErr_Occurred()) SWIG_fail; | |
20162 | } | |
20163 | { | |
20164 | #if wxUSE_UNICODE | |
20165 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20166 | #else | |
20167 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20168 | #endif | |
20169 | } | |
20170 | return resultobj; | |
20171 | fail: | |
20172 | return NULL; | |
20173 | } | |
20174 | ||
20175 | ||
20176 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20177 | PyObject *resultobj; | |
20178 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20179 | wxDC *result; | |
20180 | PyObject * obj0 = 0 ; | |
20181 | char *kwnames[] = { | |
20182 | (char *) "self", NULL | |
20183 | }; | |
20184 | ||
20185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
20186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20187 | { | |
20188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20189 | result = (wxDC *)(arg1)->GetDC(); | |
20190 | ||
20191 | wxPyEndAllowThreads(__tstate); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
20193 | } | |
20194 | { | |
20195 | resultobj = wxPyMake_wxObject(result); | |
20196 | } | |
20197 | return resultobj; | |
20198 | fail: | |
20199 | return NULL; | |
20200 | } | |
20201 | ||
20202 | ||
20203 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20204 | PyObject *resultobj; | |
20205 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20206 | wxDC *arg2 = (wxDC *) 0 ; | |
20207 | PyObject * obj0 = 0 ; | |
20208 | PyObject * obj1 = 0 ; | |
20209 | char *kwnames[] = { | |
20210 | (char *) "self",(char *) "dc", NULL | |
20211 | }; | |
20212 | ||
20213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
20214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20215 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20216 | { | |
20217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20218 | (arg1)->SetDC(arg2); | |
20219 | ||
20220 | wxPyEndAllowThreads(__tstate); | |
20221 | if (PyErr_Occurred()) SWIG_fail; | |
20222 | } | |
20223 | Py_INCREF(Py_None); resultobj = Py_None; | |
20224 | return resultobj; | |
20225 | fail: | |
20226 | return NULL; | |
20227 | } | |
20228 | ||
20229 | ||
44127b65 | 20230 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20231 | PyObject *resultobj; |
20232 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
44127b65 RD |
20233 | int arg2 ; |
20234 | int arg3 ; | |
d14a1e28 | 20235 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20236 | PyObject * obj1 = 0 ; |
20237 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20238 | char *kwnames[] = { |
44127b65 | 20239 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
20240 | }; |
20241 | ||
8edf1c75 | 20242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20244 | { |
20245 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20246 | if (PyErr_Occurred()) SWIG_fail; | |
20247 | } | |
20248 | { | |
20249 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20250 | if (PyErr_Occurred()) SWIG_fail; | |
20251 | } | |
d14a1e28 RD |
20252 | { |
20253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 20254 | (arg1)->SetPageSizePixels(arg2,arg3); |
d14a1e28 RD |
20255 | |
20256 | wxPyEndAllowThreads(__tstate); | |
20257 | if (PyErr_Occurred()) SWIG_fail; | |
20258 | } | |
20259 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
20260 | return resultobj; |
20261 | fail: | |
20262 | return NULL; | |
20263 | } | |
20264 | ||
20265 | ||
44127b65 | 20266 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20267 | PyObject *resultobj; |
20268 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
44127b65 RD |
20269 | int *arg2 = (int *) 0 ; |
20270 | int *arg3 = (int *) 0 ; | |
20271 | int temp2 ; | |
20272 | int temp3 ; | |
d14a1e28 RD |
20273 | PyObject * obj0 = 0 ; |
20274 | char *kwnames[] = { | |
44127b65 | 20275 | (char *) "self", NULL |
d14a1e28 RD |
20276 | }; |
20277 | ||
44127b65 RD |
20278 | arg2 = &temp2; |
20279 | arg3 = &temp3; | |
20280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
20281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20282 | { | |
20283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
44127b65 | 20284 | (arg1)->GetPageSizePixels(arg2,arg3); |
d14a1e28 RD |
20285 | |
20286 | wxPyEndAllowThreads(__tstate); | |
20287 | if (PyErr_Occurred()) SWIG_fail; | |
20288 | } | |
20289 | Py_INCREF(Py_None); resultobj = Py_None; | |
44127b65 RD |
20290 | { |
20291 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20292 | resultobj = t_output_helper(resultobj,o); | |
20293 | } | |
20294 | { | |
20295 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20296 | resultobj = t_output_helper(resultobj,o); | |
20297 | } | |
d14a1e28 RD |
20298 | return resultobj; |
20299 | fail: | |
20300 | return NULL; | |
20301 | } | |
20302 | ||
20303 | ||
20304 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20305 | PyObject *resultobj; | |
20306 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20307 | int arg2 ; | |
20308 | int arg3 ; | |
20309 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20310 | PyObject * obj1 = 0 ; |
20311 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20312 | char *kwnames[] = { |
20313 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20314 | }; | |
20315 | ||
8edf1c75 | 20316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20318 | { |
20319 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20320 | if (PyErr_Occurred()) SWIG_fail; | |
20321 | } | |
20322 | { | |
20323 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20324 | if (PyErr_Occurred()) SWIG_fail; | |
20325 | } | |
d14a1e28 RD |
20326 | { |
20327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20328 | (arg1)->SetPageSizeMM(arg2,arg3); | |
20329 | ||
20330 | wxPyEndAllowThreads(__tstate); | |
20331 | if (PyErr_Occurred()) SWIG_fail; | |
20332 | } | |
20333 | Py_INCREF(Py_None); resultobj = Py_None; | |
20334 | return resultobj; | |
20335 | fail: | |
20336 | return NULL; | |
20337 | } | |
20338 | ||
20339 | ||
20340 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20341 | PyObject *resultobj; | |
20342 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20343 | int *arg2 = (int *) 0 ; | |
20344 | int *arg3 = (int *) 0 ; | |
20345 | int temp2 ; | |
20346 | int temp3 ; | |
20347 | PyObject * obj0 = 0 ; | |
20348 | char *kwnames[] = { | |
20349 | (char *) "self", NULL | |
20350 | }; | |
20351 | ||
20352 | arg2 = &temp2; | |
20353 | arg3 = &temp3; | |
20354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
20355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20356 | { | |
20357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20358 | (arg1)->GetPageSizeMM(arg2,arg3); | |
20359 | ||
20360 | wxPyEndAllowThreads(__tstate); | |
20361 | if (PyErr_Occurred()) SWIG_fail; | |
20362 | } | |
20363 | Py_INCREF(Py_None); resultobj = Py_None; | |
20364 | { | |
20365 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20366 | resultobj = t_output_helper(resultobj,o); | |
20367 | } | |
20368 | { | |
20369 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20370 | resultobj = t_output_helper(resultobj,o); | |
20371 | } | |
20372 | return resultobj; | |
20373 | fail: | |
20374 | return NULL; | |
20375 | } | |
20376 | ||
20377 | ||
20378 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20379 | PyObject *resultobj; | |
20380 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20381 | int arg2 ; | |
20382 | int arg3 ; | |
20383 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20384 | PyObject * obj1 = 0 ; |
20385 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20386 | char *kwnames[] = { |
20387 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20388 | }; | |
20389 | ||
8edf1c75 | 20390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20392 | { |
20393 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20394 | if (PyErr_Occurred()) SWIG_fail; | |
20395 | } | |
20396 | { | |
20397 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20398 | if (PyErr_Occurred()) SWIG_fail; | |
20399 | } | |
d14a1e28 RD |
20400 | { |
20401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20402 | (arg1)->SetPPIScreen(arg2,arg3); | |
20403 | ||
20404 | wxPyEndAllowThreads(__tstate); | |
20405 | if (PyErr_Occurred()) SWIG_fail; | |
20406 | } | |
20407 | Py_INCREF(Py_None); resultobj = Py_None; | |
20408 | return resultobj; | |
20409 | fail: | |
20410 | return NULL; | |
20411 | } | |
20412 | ||
20413 | ||
20414 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20415 | PyObject *resultobj; | |
20416 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20417 | int *arg2 = (int *) 0 ; | |
20418 | int *arg3 = (int *) 0 ; | |
20419 | int temp2 ; | |
20420 | int temp3 ; | |
20421 | PyObject * obj0 = 0 ; | |
20422 | char *kwnames[] = { | |
20423 | (char *) "self", NULL | |
20424 | }; | |
20425 | ||
20426 | arg2 = &temp2; | |
20427 | arg3 = &temp3; | |
20428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
20429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20430 | { | |
20431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20432 | (arg1)->GetPPIScreen(arg2,arg3); | |
20433 | ||
20434 | wxPyEndAllowThreads(__tstate); | |
20435 | if (PyErr_Occurred()) SWIG_fail; | |
20436 | } | |
20437 | Py_INCREF(Py_None); resultobj = Py_None; | |
20438 | { | |
20439 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20440 | resultobj = t_output_helper(resultobj,o); | |
20441 | } | |
20442 | { | |
20443 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20444 | resultobj = t_output_helper(resultobj,o); | |
20445 | } | |
20446 | return resultobj; | |
20447 | fail: | |
20448 | return NULL; | |
20449 | } | |
20450 | ||
20451 | ||
20452 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20453 | PyObject *resultobj; | |
20454 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20455 | int arg2 ; | |
20456 | int arg3 ; | |
20457 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20458 | PyObject * obj1 = 0 ; |
20459 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20460 | char *kwnames[] = { |
20461 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20462 | }; | |
20463 | ||
8edf1c75 | 20464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20466 | { |
20467 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20468 | if (PyErr_Occurred()) SWIG_fail; | |
20469 | } | |
20470 | { | |
20471 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20472 | if (PyErr_Occurred()) SWIG_fail; | |
20473 | } | |
d14a1e28 RD |
20474 | { |
20475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20476 | (arg1)->SetPPIPrinter(arg2,arg3); | |
20477 | ||
20478 | wxPyEndAllowThreads(__tstate); | |
20479 | if (PyErr_Occurred()) SWIG_fail; | |
20480 | } | |
20481 | Py_INCREF(Py_None); resultobj = Py_None; | |
20482 | return resultobj; | |
20483 | fail: | |
20484 | return NULL; | |
20485 | } | |
20486 | ||
20487 | ||
20488 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20489 | PyObject *resultobj; | |
20490 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20491 | int *arg2 = (int *) 0 ; | |
20492 | int *arg3 = (int *) 0 ; | |
20493 | int temp2 ; | |
20494 | int temp3 ; | |
20495 | PyObject * obj0 = 0 ; | |
20496 | char *kwnames[] = { | |
20497 | (char *) "self", NULL | |
20498 | }; | |
20499 | ||
20500 | arg2 = &temp2; | |
20501 | arg3 = &temp3; | |
20502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
20503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20504 | { | |
20505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20506 | (arg1)->GetPPIPrinter(arg2,arg3); | |
20507 | ||
20508 | wxPyEndAllowThreads(__tstate); | |
20509 | if (PyErr_Occurred()) SWIG_fail; | |
20510 | } | |
20511 | Py_INCREF(Py_None); resultobj = Py_None; | |
20512 | { | |
20513 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20514 | resultobj = t_output_helper(resultobj,o); | |
20515 | } | |
20516 | { | |
20517 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20518 | resultobj = t_output_helper(resultobj,o); | |
20519 | } | |
20520 | return resultobj; | |
20521 | fail: | |
20522 | return NULL; | |
20523 | } | |
20524 | ||
20525 | ||
20526 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20527 | PyObject *resultobj; | |
20528 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20529 | bool result; | |
20530 | PyObject * obj0 = 0 ; | |
20531 | char *kwnames[] = { | |
20532 | (char *) "self", NULL | |
20533 | }; | |
20534 | ||
20535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
20536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20537 | { | |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20539 | result = (bool)(arg1)->IsPreview(); | |
20540 | ||
20541 | wxPyEndAllowThreads(__tstate); | |
20542 | if (PyErr_Occurred()) SWIG_fail; | |
20543 | } | |
8edf1c75 | 20544 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20545 | return resultobj; |
20546 | fail: | |
20547 | return NULL; | |
20548 | } | |
20549 | ||
20550 | ||
20551 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20552 | PyObject *resultobj; | |
20553 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20554 | bool arg2 ; | |
20555 | PyObject * obj0 = 0 ; | |
20556 | PyObject * obj1 = 0 ; | |
20557 | char *kwnames[] = { | |
20558 | (char *) "self",(char *) "p", NULL | |
20559 | }; | |
20560 | ||
20561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
20562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 20563 | { |
8edf1c75 | 20564 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
20565 | if (PyErr_Occurred()) SWIG_fail; |
20566 | } | |
d14a1e28 RD |
20567 | { |
20568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20569 | (arg1)->SetIsPreview(arg2); | |
20570 | ||
20571 | wxPyEndAllowThreads(__tstate); | |
20572 | if (PyErr_Occurred()) SWIG_fail; | |
20573 | } | |
20574 | Py_INCREF(Py_None); resultobj = Py_None; | |
20575 | return resultobj; | |
20576 | fail: | |
20577 | return NULL; | |
20578 | } | |
20579 | ||
20580 | ||
20581 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20582 | PyObject *resultobj; | |
20583 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20584 | int arg2 ; | |
20585 | int arg3 ; | |
20586 | bool result; | |
20587 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20588 | PyObject * obj1 = 0 ; |
20589 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20590 | char *kwnames[] = { |
20591 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
20592 | }; | |
20593 | ||
8edf1c75 | 20594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20595 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20596 | { |
20597 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20598 | if (PyErr_Occurred()) SWIG_fail; | |
20599 | } | |
20600 | { | |
20601 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20602 | if (PyErr_Occurred()) SWIG_fail; | |
20603 | } | |
d14a1e28 RD |
20604 | { |
20605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20606 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
20607 | ||
20608 | wxPyEndAllowThreads(__tstate); | |
20609 | if (PyErr_Occurred()) SWIG_fail; | |
20610 | } | |
8edf1c75 | 20611 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
20612 | return resultobj; |
20613 | fail: | |
20614 | return NULL; | |
20615 | } | |
20616 | ||
20617 | ||
20618 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20619 | PyObject *resultobj; | |
20620 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20621 | PyObject * obj0 = 0 ; | |
20622 | char *kwnames[] = { | |
20623 | (char *) "self", NULL | |
20624 | }; | |
20625 | ||
20626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
20627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20628 | { | |
20629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20630 | (arg1)->base_OnEndDocument(); | |
20631 | ||
20632 | wxPyEndAllowThreads(__tstate); | |
20633 | if (PyErr_Occurred()) SWIG_fail; | |
20634 | } | |
20635 | Py_INCREF(Py_None); resultobj = Py_None; | |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
20642 | static PyObject *_wrap_Printout_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20643 | PyObject *resultobj; | |
20644 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20645 | PyObject * obj0 = 0 ; | |
20646 | char *kwnames[] = { | |
20647 | (char *) "self", NULL | |
20648 | }; | |
20649 | ||
20650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
20651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20652 | { | |
20653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20654 | (arg1)->base_OnBeginPrinting(); | |
20655 | ||
20656 | wxPyEndAllowThreads(__tstate); | |
20657 | if (PyErr_Occurred()) SWIG_fail; | |
20658 | } | |
20659 | Py_INCREF(Py_None); resultobj = Py_None; | |
20660 | return resultobj; | |
20661 | fail: | |
20662 | return NULL; | |
20663 | } | |
20664 | ||
20665 | ||
20666 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20667 | PyObject *resultobj; | |
20668 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20669 | PyObject * obj0 = 0 ; | |
20670 | char *kwnames[] = { | |
20671 | (char *) "self", NULL | |
20672 | }; | |
20673 | ||
20674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
20675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20676 | { | |
20677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20678 | (arg1)->base_OnEndPrinting(); | |
20679 | ||
20680 | wxPyEndAllowThreads(__tstate); | |
20681 | if (PyErr_Occurred()) SWIG_fail; | |
20682 | } | |
20683 | Py_INCREF(Py_None); resultobj = Py_None; | |
20684 | return resultobj; | |
20685 | fail: | |
20686 | return NULL; | |
20687 | } | |
20688 | ||
20689 | ||
20690 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20691 | PyObject *resultobj; | |
20692 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20693 | PyObject * obj0 = 0 ; | |
20694 | char *kwnames[] = { | |
20695 | (char *) "self", NULL | |
20696 | }; | |
20697 | ||
20698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
20699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20700 | { | |
20701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20702 | (arg1)->base_OnPreparePrinting(); | |
20703 | ||
20704 | wxPyEndAllowThreads(__tstate); | |
20705 | if (PyErr_Occurred()) SWIG_fail; | |
20706 | } | |
20707 | Py_INCREF(Py_None); resultobj = Py_None; | |
20708 | return resultobj; | |
20709 | fail: | |
20710 | return NULL; | |
20711 | } | |
20712 | ||
20713 | ||
44127b65 RD |
20714 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
20715 | PyObject *resultobj; | |
20716 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20717 | int arg2 ; | |
20718 | bool result; | |
20719 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20720 | PyObject * obj1 = 0 ; |
44127b65 RD |
20721 | char *kwnames[] = { |
20722 | (char *) "self",(char *) "page", NULL | |
20723 | }; | |
20724 | ||
8edf1c75 | 20725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; |
44127b65 | 20726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
20727 | { |
20728 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20729 | if (PyErr_Occurred()) SWIG_fail; | |
20730 | } | |
44127b65 RD |
20731 | { |
20732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20733 | result = (bool)(arg1)->base_HasPage(arg2); | |
20734 | ||
20735 | wxPyEndAllowThreads(__tstate); | |
20736 | if (PyErr_Occurred()) SWIG_fail; | |
20737 | } | |
8edf1c75 | 20738 | resultobj = SWIG_PyObj_FromBool((bool)result); |
44127b65 RD |
20739 | return resultobj; |
20740 | fail: | |
20741 | return NULL; | |
20742 | } | |
20743 | ||
20744 | ||
d14a1e28 RD |
20745 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
20746 | PyObject *resultobj; | |
20747 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20748 | int *arg2 = (int *) 0 ; | |
20749 | int *arg3 = (int *) 0 ; | |
20750 | int *arg4 = (int *) 0 ; | |
20751 | int *arg5 = (int *) 0 ; | |
20752 | int temp2 ; | |
20753 | int temp3 ; | |
20754 | int temp4 ; | |
20755 | int temp5 ; | |
20756 | PyObject * obj0 = 0 ; | |
20757 | char *kwnames[] = { | |
20758 | (char *) "self", NULL | |
20759 | }; | |
20760 | ||
20761 | arg2 = &temp2; | |
20762 | arg3 = &temp3; | |
20763 | arg4 = &temp4; | |
20764 | arg5 = &temp5; | |
20765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
20766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20767 | { | |
20768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20769 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
20770 | ||
20771 | wxPyEndAllowThreads(__tstate); | |
20772 | if (PyErr_Occurred()) SWIG_fail; | |
20773 | } | |
20774 | Py_INCREF(Py_None); resultobj = Py_None; | |
20775 | { | |
20776 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20777 | resultobj = t_output_helper(resultobj,o); | |
20778 | } | |
20779 | { | |
20780 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20781 | resultobj = t_output_helper(resultobj,o); | |
20782 | } | |
20783 | { | |
20784 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
20785 | resultobj = t_output_helper(resultobj,o); | |
20786 | } | |
20787 | { | |
20788 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
20789 | resultobj = t_output_helper(resultobj,o); | |
20790 | } | |
20791 | return resultobj; | |
20792 | fail: | |
20793 | return NULL; | |
20794 | } | |
20795 | ||
20796 | ||
d14a1e28 RD |
20797 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { |
20798 | PyObject *obj; | |
20799 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20800 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
20801 | Py_INCREF(obj); | |
20802 | return Py_BuildValue((char *)""); | |
20803 | } | |
20804 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20805 | PyObject *resultobj; | |
20806 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20807 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20808 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20809 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20810 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20811 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20812 | long arg5 = (long) 0 ; | |
20813 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
20814 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20815 | wxPreviewCanvas *result; | |
20816 | wxPoint temp3 ; | |
20817 | wxSize temp4 ; | |
423f194a | 20818 | bool temp6 = False ; |
d14a1e28 RD |
20819 | PyObject * obj0 = 0 ; |
20820 | PyObject * obj1 = 0 ; | |
20821 | PyObject * obj2 = 0 ; | |
20822 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20823 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20824 | PyObject * obj5 = 0 ; |
20825 | char *kwnames[] = { | |
20826 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20827 | }; | |
20828 | ||
8edf1c75 | 20829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
20830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20831 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20832 | if (obj2) { | |
20833 | { | |
20834 | arg3 = &temp3; | |
20835 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20836 | } | |
20837 | } | |
20838 | if (obj3) { | |
20839 | { | |
20840 | arg4 = &temp4; | |
20841 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20842 | } | |
20843 | } | |
8edf1c75 RD |
20844 | if (obj4) { |
20845 | { | |
20846 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
20847 | if (PyErr_Occurred()) SWIG_fail; | |
20848 | } | |
20849 | } | |
d14a1e28 RD |
20850 | if (obj5) { |
20851 | { | |
20852 | arg6 = wxString_in_helper(obj5); | |
20853 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 20854 | temp6 = True; |
d14a1e28 RD |
20855 | } |
20856 | } | |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20860 | ||
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
20864 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewCanvas, 1); | |
20865 | { | |
20866 | if (temp6) | |
20867 | delete arg6; | |
20868 | } | |
20869 | return resultobj; | |
20870 | fail: | |
20871 | { | |
20872 | if (temp6) | |
20873 | delete arg6; | |
20874 | } | |
20875 | return NULL; | |
20876 | } | |
20877 | ||
20878 | ||
20879 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
20880 | PyObject *obj; | |
20881 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20882 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
20883 | Py_INCREF(obj); | |
20884 | return Py_BuildValue((char *)""); | |
20885 | } | |
20886 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20887 | PyObject *resultobj; | |
20888 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20889 | wxFrame *arg2 = (wxFrame *) 0 ; | |
20890 | wxString *arg3 = 0 ; | |
20891 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20892 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20893 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20894 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20895 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
20896 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20897 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20898 | wxPreviewFrame *result; | |
423f194a | 20899 | bool temp3 = False ; |
d14a1e28 RD |
20900 | wxPoint temp4 ; |
20901 | wxSize temp5 ; | |
423f194a | 20902 | bool temp7 = False ; |
d14a1e28 RD |
20903 | PyObject * obj0 = 0 ; |
20904 | PyObject * obj1 = 0 ; | |
20905 | PyObject * obj2 = 0 ; | |
20906 | PyObject * obj3 = 0 ; | |
20907 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20908 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20909 | PyObject * obj6 = 0 ; |
20910 | char *kwnames[] = { | |
20911 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20912 | }; | |
20913 | ||
8edf1c75 | 20914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
20915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20916 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20917 | { | |
20918 | arg3 = wxString_in_helper(obj2); | |
20919 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 20920 | temp3 = True; |
d14a1e28 RD |
20921 | } |
20922 | if (obj3) { | |
20923 | { | |
20924 | arg4 = &temp4; | |
20925 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20926 | } | |
20927 | } | |
20928 | if (obj4) { | |
20929 | { | |
20930 | arg5 = &temp5; | |
20931 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20932 | } | |
20933 | } | |
8edf1c75 RD |
20934 | if (obj5) { |
20935 | { | |
20936 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20937 | if (PyErr_Occurred()) SWIG_fail; | |
20938 | } | |
20939 | } | |
d14a1e28 RD |
20940 | if (obj6) { |
20941 | { | |
20942 | arg7 = wxString_in_helper(obj6); | |
20943 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20944 | temp7 = True; |
d14a1e28 RD |
20945 | } |
20946 | } | |
20947 | { | |
20948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20949 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20950 | ||
20951 | wxPyEndAllowThreads(__tstate); | |
20952 | if (PyErr_Occurred()) SWIG_fail; | |
20953 | } | |
20954 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewFrame, 1); | |
20955 | { | |
20956 | if (temp3) | |
20957 | delete arg3; | |
20958 | } | |
20959 | { | |
20960 | if (temp7) | |
20961 | delete arg7; | |
20962 | } | |
20963 | return resultobj; | |
20964 | fail: | |
20965 | { | |
20966 | if (temp3) | |
20967 | delete arg3; | |
20968 | } | |
20969 | { | |
20970 | if (temp7) | |
20971 | delete arg7; | |
20972 | } | |
20973 | return NULL; | |
20974 | } | |
20975 | ||
20976 | ||
20977 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20978 | PyObject *resultobj; | |
20979 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20980 | PyObject * obj0 = 0 ; | |
20981 | char *kwnames[] = { | |
20982 | (char *) "self", NULL | |
20983 | }; | |
20984 | ||
20985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
20986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20987 | { | |
20988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20989 | (arg1)->Initialize(); | |
20990 | ||
20991 | wxPyEndAllowThreads(__tstate); | |
20992 | if (PyErr_Occurred()) SWIG_fail; | |
20993 | } | |
20994 | Py_INCREF(Py_None); resultobj = Py_None; | |
20995 | return resultobj; | |
20996 | fail: | |
20997 | return NULL; | |
20998 | } | |
20999 | ||
21000 | ||
21001 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21002 | PyObject *resultobj; | |
21003 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
21004 | PyObject * obj0 = 0 ; | |
21005 | char *kwnames[] = { | |
21006 | (char *) "self", NULL | |
21007 | }; | |
21008 | ||
21009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
21010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21011 | { | |
21012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21013 | (arg1)->CreateControlBar(); | |
21014 | ||
21015 | wxPyEndAllowThreads(__tstate); | |
21016 | if (PyErr_Occurred()) SWIG_fail; | |
21017 | } | |
21018 | Py_INCREF(Py_None); resultobj = Py_None; | |
21019 | return resultobj; | |
21020 | fail: | |
21021 | return NULL; | |
21022 | } | |
21023 | ||
21024 | ||
21025 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21026 | PyObject *resultobj; | |
21027 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
21028 | PyObject * obj0 = 0 ; | |
21029 | char *kwnames[] = { | |
21030 | (char *) "self", NULL | |
21031 | }; | |
21032 | ||
21033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
21034 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21035 | { | |
21036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21037 | (arg1)->CreateCanvas(); | |
21038 | ||
21039 | wxPyEndAllowThreads(__tstate); | |
21040 | if (PyErr_Occurred()) SWIG_fail; | |
21041 | } | |
21042 | Py_INCREF(Py_None); resultobj = Py_None; | |
21043 | return resultobj; | |
21044 | fail: | |
21045 | return NULL; | |
21046 | } | |
21047 | ||
21048 | ||
21049 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21050 | PyObject *resultobj; | |
21051 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
21052 | wxPreviewControlBar *result; | |
21053 | PyObject * obj0 = 0 ; | |
21054 | char *kwnames[] = { | |
21055 | (char *) "self", NULL | |
21056 | }; | |
21057 | ||
21058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
21059 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21060 | { | |
21061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21062 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
21063 | ||
21064 | wxPyEndAllowThreads(__tstate); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
21067 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewControlBar, 0); | |
21068 | return resultobj; | |
21069 | fail: | |
21070 | return NULL; | |
21071 | } | |
21072 | ||
21073 | ||
21074 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
21075 | PyObject *obj; | |
21076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21077 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
21078 | Py_INCREF(obj); | |
21079 | return Py_BuildValue((char *)""); | |
21080 | } | |
21081 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj; | |
21083 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21084 | long arg2 ; | |
21085 | wxWindow *arg3 = (wxWindow *) 0 ; | |
21086 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21087 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21088 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21089 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21090 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
21091 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21092 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21093 | wxPreviewControlBar *result; | |
21094 | wxPoint temp4 ; | |
21095 | wxSize temp5 ; | |
423f194a | 21096 | bool temp7 = False ; |
d14a1e28 | 21097 | PyObject * obj0 = 0 ; |
8edf1c75 | 21098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21099 | PyObject * obj2 = 0 ; |
21100 | PyObject * obj3 = 0 ; | |
21101 | PyObject * obj4 = 0 ; | |
8edf1c75 | 21102 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21103 | PyObject * obj6 = 0 ; |
21104 | char *kwnames[] = { | |
21105 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21106 | }; | |
21107 | ||
8edf1c75 | 21108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 21109 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21110 | { |
21111 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
d14a1e28 RD |
21114 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
21115 | if (obj3) { | |
21116 | { | |
21117 | arg4 = &temp4; | |
21118 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21119 | } | |
21120 | } | |
21121 | if (obj4) { | |
21122 | { | |
21123 | arg5 = &temp5; | |
21124 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21125 | } | |
21126 | } | |
8edf1c75 RD |
21127 | if (obj5) { |
21128 | { | |
21129 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
21130 | if (PyErr_Occurred()) SWIG_fail; | |
21131 | } | |
21132 | } | |
d14a1e28 RD |
21133 | if (obj6) { |
21134 | { | |
21135 | arg7 = wxString_in_helper(obj6); | |
21136 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 21137 | temp7 = True; |
d14a1e28 RD |
21138 | } |
21139 | } | |
21140 | { | |
21141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21142 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21143 | ||
21144 | wxPyEndAllowThreads(__tstate); | |
21145 | if (PyErr_Occurred()) SWIG_fail; | |
21146 | } | |
21147 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewControlBar, 1); | |
21148 | { | |
21149 | if (temp7) | |
21150 | delete arg7; | |
21151 | } | |
21152 | return resultobj; | |
21153 | fail: | |
21154 | { | |
21155 | if (temp7) | |
21156 | delete arg7; | |
21157 | } | |
21158 | return NULL; | |
21159 | } | |
21160 | ||
21161 | ||
21162 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21163 | PyObject *resultobj; | |
21164 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21165 | int result; | |
21166 | PyObject * obj0 = 0 ; | |
21167 | char *kwnames[] = { | |
21168 | (char *) "self", NULL | |
21169 | }; | |
21170 | ||
21171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
21172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | result = (int)(arg1)->GetZoomControl(); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
8edf1c75 | 21180 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21181 | return resultobj; |
21182 | fail: | |
21183 | return NULL; | |
21184 | } | |
21185 | ||
21186 | ||
21187 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21188 | PyObject *resultobj; | |
21189 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21190 | int arg2 ; | |
21191 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21192 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21193 | char *kwnames[] = { |
21194 | (char *) "self",(char *) "zoom", NULL | |
21195 | }; | |
21196 | ||
8edf1c75 | 21197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21199 | { |
21200 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21201 | if (PyErr_Occurred()) SWIG_fail; | |
21202 | } | |
d14a1e28 RD |
21203 | { |
21204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21205 | (arg1)->SetZoomControl(arg2); | |
21206 | ||
21207 | wxPyEndAllowThreads(__tstate); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | } | |
21210 | Py_INCREF(Py_None); resultobj = Py_None; | |
21211 | return resultobj; | |
21212 | fail: | |
21213 | return NULL; | |
21214 | } | |
21215 | ||
21216 | ||
21217 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21218 | PyObject *resultobj; | |
21219 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21220 | wxPrintPreview *result; | |
21221 | PyObject * obj0 = 0 ; | |
21222 | char *kwnames[] = { | |
21223 | (char *) "self", NULL | |
21224 | }; | |
21225 | ||
21226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
21227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21228 | { | |
21229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21230 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
21231 | ||
21232 | wxPyEndAllowThreads(__tstate); | |
21233 | if (PyErr_Occurred()) SWIG_fail; | |
21234 | } | |
21235 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintPreview, 0); | |
21236 | return resultobj; | |
21237 | fail: | |
21238 | return NULL; | |
21239 | } | |
21240 | ||
21241 | ||
21242 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21243 | PyObject *resultobj; | |
21244 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21245 | PyObject * obj0 = 0 ; | |
21246 | char *kwnames[] = { | |
21247 | (char *) "self", NULL | |
21248 | }; | |
21249 | ||
21250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
21251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21252 | { | |
21253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21254 | (arg1)->OnNext(); | |
21255 | ||
21256 | wxPyEndAllowThreads(__tstate); | |
21257 | if (PyErr_Occurred()) SWIG_fail; | |
21258 | } | |
21259 | Py_INCREF(Py_None); resultobj = Py_None; | |
21260 | return resultobj; | |
21261 | fail: | |
21262 | return NULL; | |
21263 | } | |
21264 | ||
21265 | ||
21266 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21267 | PyObject *resultobj; | |
21268 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21269 | PyObject * obj0 = 0 ; | |
21270 | char *kwnames[] = { | |
21271 | (char *) "self", NULL | |
21272 | }; | |
21273 | ||
21274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
21275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21276 | { | |
21277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21278 | (arg1)->OnPrevious(); | |
21279 | ||
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | Py_INCREF(Py_None); resultobj = Py_None; | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21291 | PyObject *resultobj; | |
21292 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21293 | PyObject * obj0 = 0 ; | |
21294 | char *kwnames[] = { | |
21295 | (char *) "self", NULL | |
21296 | }; | |
21297 | ||
21298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
21299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21300 | { | |
21301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21302 | (arg1)->OnFirst(); | |
21303 | ||
21304 | wxPyEndAllowThreads(__tstate); | |
21305 | if (PyErr_Occurred()) SWIG_fail; | |
21306 | } | |
21307 | Py_INCREF(Py_None); resultobj = Py_None; | |
21308 | return resultobj; | |
21309 | fail: | |
21310 | return NULL; | |
21311 | } | |
21312 | ||
21313 | ||
21314 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21315 | PyObject *resultobj; | |
21316 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21317 | PyObject * obj0 = 0 ; | |
21318 | char *kwnames[] = { | |
21319 | (char *) "self", NULL | |
21320 | }; | |
21321 | ||
21322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
21323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21324 | { | |
21325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21326 | (arg1)->OnLast(); | |
21327 | ||
21328 | wxPyEndAllowThreads(__tstate); | |
21329 | if (PyErr_Occurred()) SWIG_fail; | |
21330 | } | |
21331 | Py_INCREF(Py_None); resultobj = Py_None; | |
21332 | return resultobj; | |
21333 | fail: | |
21334 | return NULL; | |
21335 | } | |
21336 | ||
21337 | ||
21338 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21339 | PyObject *resultobj; | |
21340 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21341 | PyObject * obj0 = 0 ; | |
21342 | char *kwnames[] = { | |
21343 | (char *) "self", NULL | |
21344 | }; | |
21345 | ||
21346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
21347 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21348 | { | |
21349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21350 | (arg1)->OnGoto(); | |
21351 | ||
21352 | wxPyEndAllowThreads(__tstate); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
21354 | } | |
21355 | Py_INCREF(Py_None); resultobj = Py_None; | |
21356 | return resultobj; | |
21357 | fail: | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
21362 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
21363 | PyObject *obj; | |
21364 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21365 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
21366 | Py_INCREF(obj); | |
21367 | return Py_BuildValue((char *)""); | |
21368 | } | |
21369 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21370 | PyObject *resultobj; | |
21371 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21372 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21373 | wxPrintData *arg3 = (wxPrintData *) NULL ; | |
21374 | wxPrintPreview *result; | |
21375 | PyObject * obj0 = 0 ; | |
21376 | PyObject * obj1 = 0 ; | |
21377 | PyObject * obj2 = 0 ; | |
21378 | char *kwnames[] = { | |
21379 | (char *) "printout",(char *) "printoutForPrinting",(char *) "data", NULL | |
21380 | }; | |
21381 | ||
21382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_PrintPreview",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21384 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21385 | if (obj2) { | |
21386 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21387 | } | |
21388 | { | |
21389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21390 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
21391 | ||
21392 | wxPyEndAllowThreads(__tstate); | |
21393 | if (PyErr_Occurred()) SWIG_fail; | |
21394 | } | |
21395 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintPreview, 1); | |
21396 | return resultobj; | |
21397 | fail: | |
21398 | return NULL; | |
21399 | } | |
21400 | ||
21401 | ||
21402 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21403 | PyObject *resultobj; | |
21404 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21405 | int arg2 ; | |
21406 | bool result; | |
21407 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21409 | char *kwnames[] = { |
21410 | (char *) "self",(char *) "pageNum", NULL | |
21411 | }; | |
21412 | ||
8edf1c75 | 21413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21414 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21415 | { |
21416 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21417 | if (PyErr_Occurred()) SWIG_fail; | |
21418 | } | |
d14a1e28 RD |
21419 | { |
21420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21421 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
21422 | ||
21423 | wxPyEndAllowThreads(__tstate); | |
21424 | if (PyErr_Occurred()) SWIG_fail; | |
21425 | } | |
8edf1c75 | 21426 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
21427 | return resultobj; |
21428 | fail: | |
21429 | return NULL; | |
21430 | } | |
21431 | ||
21432 | ||
21433 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21434 | PyObject *resultobj; | |
21435 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21436 | int result; | |
21437 | PyObject * obj0 = 0 ; | |
21438 | char *kwnames[] = { | |
21439 | (char *) "self", NULL | |
21440 | }; | |
21441 | ||
21442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
21443 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21444 | { | |
21445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21446 | result = (int)(arg1)->GetCurrentPage(); | |
21447 | ||
21448 | wxPyEndAllowThreads(__tstate); | |
21449 | if (PyErr_Occurred()) SWIG_fail; | |
21450 | } | |
8edf1c75 | 21451 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21452 | return resultobj; |
21453 | fail: | |
21454 | return NULL; | |
21455 | } | |
21456 | ||
21457 | ||
21458 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21459 | PyObject *resultobj; | |
21460 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21461 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21462 | PyObject * obj0 = 0 ; | |
21463 | PyObject * obj1 = 0 ; | |
21464 | char *kwnames[] = { | |
21465 | (char *) "self",(char *) "printout", NULL | |
21466 | }; | |
21467 | ||
21468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
21469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21470 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21471 | { | |
21472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21473 | (arg1)->SetPrintout(arg2); | |
21474 | ||
21475 | wxPyEndAllowThreads(__tstate); | |
21476 | if (PyErr_Occurred()) SWIG_fail; | |
21477 | } | |
21478 | Py_INCREF(Py_None); resultobj = Py_None; | |
21479 | return resultobj; | |
21480 | fail: | |
21481 | return NULL; | |
21482 | } | |
21483 | ||
21484 | ||
21485 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21486 | PyObject *resultobj; | |
21487 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21488 | wxPyPrintout *result; | |
21489 | PyObject * obj0 = 0 ; | |
21490 | char *kwnames[] = { | |
21491 | (char *) "self", NULL | |
21492 | }; | |
21493 | ||
21494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
21495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21496 | { | |
21497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21498 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
21499 | ||
21500 | wxPyEndAllowThreads(__tstate); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
21503 | { | |
21504 | resultobj = wxPyMake_wxObject(result); | |
21505 | } | |
21506 | return resultobj; | |
21507 | fail: | |
21508 | return NULL; | |
21509 | } | |
21510 | ||
21511 | ||
21512 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21513 | PyObject *resultobj; | |
21514 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21515 | wxPyPrintout *result; | |
21516 | PyObject * obj0 = 0 ; | |
21517 | char *kwnames[] = { | |
21518 | (char *) "self", NULL | |
21519 | }; | |
21520 | ||
21521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
21522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21523 | { | |
21524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21525 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
21526 | ||
21527 | wxPyEndAllowThreads(__tstate); | |
21528 | if (PyErr_Occurred()) SWIG_fail; | |
21529 | } | |
21530 | { | |
21531 | resultobj = wxPyMake_wxObject(result); | |
21532 | } | |
21533 | return resultobj; | |
21534 | fail: | |
21535 | return NULL; | |
21536 | } | |
21537 | ||
21538 | ||
21539 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21540 | PyObject *resultobj; | |
21541 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21542 | wxFrame *arg2 = (wxFrame *) 0 ; | |
21543 | PyObject * obj0 = 0 ; | |
21544 | PyObject * obj1 = 0 ; | |
21545 | char *kwnames[] = { | |
21546 | (char *) "self",(char *) "frame", NULL | |
21547 | }; | |
21548 | ||
21549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
21550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21551 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21552 | { | |
21553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21554 | (arg1)->SetFrame(arg2); | |
21555 | ||
21556 | wxPyEndAllowThreads(__tstate); | |
21557 | if (PyErr_Occurred()) SWIG_fail; | |
21558 | } | |
21559 | Py_INCREF(Py_None); resultobj = Py_None; | |
21560 | return resultobj; | |
21561 | fail: | |
21562 | return NULL; | |
21563 | } | |
21564 | ||
21565 | ||
21566 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21567 | PyObject *resultobj; | |
21568 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21569 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21570 | PyObject * obj0 = 0 ; | |
21571 | PyObject * obj1 = 0 ; | |
21572 | char *kwnames[] = { | |
21573 | (char *) "self",(char *) "canvas", NULL | |
21574 | }; | |
21575 | ||
21576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
21577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21579 | { | |
21580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21581 | (arg1)->SetCanvas(arg2); | |
21582 | ||
21583 | wxPyEndAllowThreads(__tstate); | |
21584 | if (PyErr_Occurred()) SWIG_fail; | |
21585 | } | |
21586 | Py_INCREF(Py_None); resultobj = Py_None; | |
21587 | return resultobj; | |
21588 | fail: | |
21589 | return NULL; | |
21590 | } | |
21591 | ||
21592 | ||
21593 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21594 | PyObject *resultobj; | |
21595 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21596 | wxFrame *result; | |
21597 | PyObject * obj0 = 0 ; | |
21598 | char *kwnames[] = { | |
21599 | (char *) "self", NULL | |
21600 | }; | |
21601 | ||
21602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
21603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21604 | { | |
21605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21606 | result = (wxFrame *)(arg1)->GetFrame(); | |
21607 | ||
21608 | wxPyEndAllowThreads(__tstate); | |
21609 | if (PyErr_Occurred()) SWIG_fail; | |
21610 | } | |
21611 | { | |
21612 | resultobj = wxPyMake_wxObject(result); | |
21613 | } | |
21614 | return resultobj; | |
21615 | fail: | |
21616 | return NULL; | |
21617 | } | |
21618 | ||
21619 | ||
21620 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21621 | PyObject *resultobj; | |
21622 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21623 | wxPreviewCanvas *result; | |
21624 | PyObject * obj0 = 0 ; | |
21625 | char *kwnames[] = { | |
21626 | (char *) "self", NULL | |
21627 | }; | |
21628 | ||
21629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
21630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21631 | { | |
21632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21633 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
21634 | ||
21635 | wxPyEndAllowThreads(__tstate); | |
21636 | if (PyErr_Occurred()) SWIG_fail; | |
21637 | } | |
21638 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewCanvas, 0); | |
21639 | return resultobj; | |
21640 | fail: | |
21641 | return NULL; | |
21642 | } | |
21643 | ||
21644 | ||
21645 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21646 | PyObject *resultobj; | |
21647 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21648 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21649 | wxDC *arg3 = 0 ; | |
21650 | bool result; | |
21651 | PyObject * obj0 = 0 ; | |
21652 | PyObject * obj1 = 0 ; | |
21653 | PyObject * obj2 = 0 ; | |
21654 | char *kwnames[] = { | |
21655 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
21656 | }; | |
21657 | ||
21658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21660 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21661 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21662 | if (arg3 == NULL) { | |
21663 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21664 | } | |
21665 | { | |
21666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21667 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
21668 | ||
21669 | wxPyEndAllowThreads(__tstate); | |
21670 | if (PyErr_Occurred()) SWIG_fail; | |
21671 | } | |
8edf1c75 | 21672 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
21673 | return resultobj; |
21674 | fail: | |
21675 | return NULL; | |
21676 | } | |
21677 | ||
21678 | ||
21679 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21680 | PyObject *resultobj; | |
21681 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21682 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21683 | wxDC *arg3 = 0 ; | |
21684 | bool result; | |
21685 | PyObject * obj0 = 0 ; | |
21686 | PyObject * obj1 = 0 ; | |
21687 | PyObject * obj2 = 0 ; | |
21688 | char *kwnames[] = { | |
21689 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
21690 | }; | |
21691 | ||
21692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21694 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21695 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21696 | if (arg3 == NULL) { | |
21697 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21698 | } | |
21699 | { | |
21700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21701 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
21702 | ||
21703 | wxPyEndAllowThreads(__tstate); | |
21704 | if (PyErr_Occurred()) SWIG_fail; | |
21705 | } | |
8edf1c75 | 21706 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
21707 | return resultobj; |
21708 | fail: | |
21709 | return NULL; | |
21710 | } | |
21711 | ||
21712 | ||
21713 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21714 | PyObject *resultobj; | |
21715 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21716 | int arg2 ; | |
21717 | bool result; | |
21718 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21720 | char *kwnames[] = { |
21721 | (char *) "self",(char *) "pageNum", NULL | |
21722 | }; | |
21723 | ||
8edf1c75 | 21724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21726 | { |
21727 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | } | |
d14a1e28 RD |
21730 | { |
21731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21732 | result = (bool)(arg1)->RenderPage(arg2); | |
21733 | ||
21734 | wxPyEndAllowThreads(__tstate); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | } | |
8edf1c75 | 21737 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
21738 | return resultobj; |
21739 | fail: | |
21740 | return NULL; | |
21741 | } | |
21742 | ||
21743 | ||
21744 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21745 | PyObject *resultobj; | |
21746 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21747 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21748 | PyObject * obj0 = 0 ; | |
21749 | PyObject * obj1 = 0 ; | |
21750 | char *kwnames[] = { | |
21751 | (char *) "self",(char *) "canvas", NULL | |
21752 | }; | |
21753 | ||
21754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
21755 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21756 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21757 | { | |
21758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21759 | (arg1)->AdjustScrollbars(arg2); | |
21760 | ||
21761 | wxPyEndAllowThreads(__tstate); | |
21762 | if (PyErr_Occurred()) SWIG_fail; | |
21763 | } | |
21764 | Py_INCREF(Py_None); resultobj = Py_None; | |
21765 | return resultobj; | |
21766 | fail: | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
21771 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21772 | PyObject *resultobj; | |
21773 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21774 | wxPrintDialogData *result; | |
21775 | PyObject * obj0 = 0 ; | |
21776 | char *kwnames[] = { | |
21777 | (char *) "self", NULL | |
21778 | }; | |
21779 | ||
21780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21782 | { | |
21783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21784 | { | |
21785 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21786 | result = (wxPrintDialogData *) &_result_ref; | |
21787 | } | |
21788 | ||
21789 | wxPyEndAllowThreads(__tstate); | |
21790 | if (PyErr_Occurred()) SWIG_fail; | |
21791 | } | |
21792 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 0); | |
21793 | return resultobj; | |
21794 | fail: | |
21795 | return NULL; | |
21796 | } | |
21797 | ||
21798 | ||
21799 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21800 | PyObject *resultobj; | |
21801 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21802 | int arg2 ; | |
21803 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21804 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21805 | char *kwnames[] = { |
21806 | (char *) "self",(char *) "percent", NULL | |
21807 | }; | |
21808 | ||
8edf1c75 | 21809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
21811 | { |
21812 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21813 | if (PyErr_Occurred()) SWIG_fail; | |
21814 | } | |
d14a1e28 RD |
21815 | { |
21816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21817 | (arg1)->SetZoom(arg2); | |
21818 | ||
21819 | wxPyEndAllowThreads(__tstate); | |
21820 | if (PyErr_Occurred()) SWIG_fail; | |
21821 | } | |
21822 | Py_INCREF(Py_None); resultobj = Py_None; | |
21823 | return resultobj; | |
21824 | fail: | |
21825 | return NULL; | |
21826 | } | |
21827 | ||
21828 | ||
21829 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21830 | PyObject *resultobj; | |
21831 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21832 | int result; | |
21833 | PyObject * obj0 = 0 ; | |
21834 | char *kwnames[] = { | |
21835 | (char *) "self", NULL | |
21836 | }; | |
21837 | ||
21838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
21839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21840 | { | |
21841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21842 | result = (int)(arg1)->GetZoom(); | |
21843 | ||
21844 | wxPyEndAllowThreads(__tstate); | |
21845 | if (PyErr_Occurred()) SWIG_fail; | |
21846 | } | |
8edf1c75 | 21847 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21848 | return resultobj; |
21849 | fail: | |
21850 | return NULL; | |
21851 | } | |
21852 | ||
21853 | ||
21854 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21855 | PyObject *resultobj; | |
21856 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21857 | int result; | |
21858 | PyObject * obj0 = 0 ; | |
21859 | char *kwnames[] = { | |
21860 | (char *) "self", NULL | |
21861 | }; | |
21862 | ||
21863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
21864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21865 | { | |
21866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21867 | result = (int)(arg1)->GetMaxPage(); | |
21868 | ||
21869 | wxPyEndAllowThreads(__tstate); | |
21870 | if (PyErr_Occurred()) SWIG_fail; | |
21871 | } | |
8edf1c75 | 21872 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21873 | return resultobj; |
21874 | fail: | |
21875 | return NULL; | |
21876 | } | |
21877 | ||
21878 | ||
21879 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21880 | PyObject *resultobj; | |
21881 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21882 | int result; | |
21883 | PyObject * obj0 = 0 ; | |
21884 | char *kwnames[] = { | |
21885 | (char *) "self", NULL | |
21886 | }; | |
21887 | ||
21888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
21889 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21890 | { | |
21891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21892 | result = (int)(arg1)->GetMinPage(); | |
21893 | ||
21894 | wxPyEndAllowThreads(__tstate); | |
21895 | if (PyErr_Occurred()) SWIG_fail; | |
21896 | } | |
8edf1c75 | 21897 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21898 | return resultobj; |
21899 | fail: | |
21900 | return NULL; | |
21901 | } | |
21902 | ||
21903 | ||
21904 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21905 | PyObject *resultobj; | |
21906 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21907 | bool result; | |
21908 | PyObject * obj0 = 0 ; | |
21909 | char *kwnames[] = { | |
21910 | (char *) "self", NULL | |
21911 | }; | |
21912 | ||
21913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
21914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21915 | { | |
21916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21917 | result = (bool)(arg1)->Ok(); | |
21918 | ||
21919 | wxPyEndAllowThreads(__tstate); | |
21920 | if (PyErr_Occurred()) SWIG_fail; | |
21921 | } | |
8edf1c75 | 21922 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
21923 | return resultobj; |
21924 | fail: | |
21925 | return NULL; | |
21926 | } | |
21927 | ||
21928 | ||
21929 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21930 | PyObject *resultobj; | |
21931 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21932 | bool arg2 ; | |
21933 | PyObject * obj0 = 0 ; | |
21934 | PyObject * obj1 = 0 ; | |
21935 | char *kwnames[] = { | |
21936 | (char *) "self",(char *) "ok", NULL | |
21937 | }; | |
21938 | ||
21939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
21940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 21941 | { |
8edf1c75 | 21942 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
21943 | if (PyErr_Occurred()) SWIG_fail; |
21944 | } | |
d14a1e28 RD |
21945 | { |
21946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21947 | (arg1)->SetOk(arg2); | |
21948 | ||
21949 | wxPyEndAllowThreads(__tstate); | |
21950 | if (PyErr_Occurred()) SWIG_fail; | |
21951 | } | |
21952 | Py_INCREF(Py_None); resultobj = Py_None; | |
21953 | return resultobj; | |
21954 | fail: | |
21955 | return NULL; | |
21956 | } | |
21957 | ||
21958 | ||
21959 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21960 | PyObject *resultobj; | |
21961 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21962 | bool arg2 ; | |
21963 | bool result; | |
21964 | PyObject * obj0 = 0 ; | |
21965 | PyObject * obj1 = 0 ; | |
21966 | char *kwnames[] = { | |
21967 | (char *) "self",(char *) "interactive", NULL | |
21968 | }; | |
21969 | ||
21970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
21971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 21972 | { |
8edf1c75 | 21973 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
21974 | if (PyErr_Occurred()) SWIG_fail; |
21975 | } | |
d14a1e28 RD |
21976 | { |
21977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21978 | result = (bool)(arg1)->Print(arg2); | |
21979 | ||
21980 | wxPyEndAllowThreads(__tstate); | |
21981 | if (PyErr_Occurred()) SWIG_fail; | |
21982 | } | |
8edf1c75 | 21983 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
21984 | return resultobj; |
21985 | fail: | |
21986 | return NULL; | |
21987 | } | |
21988 | ||
21989 | ||
21990 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21991 | PyObject *resultobj; | |
21992 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21993 | PyObject * obj0 = 0 ; | |
21994 | char *kwnames[] = { | |
21995 | (char *) "self", NULL | |
21996 | }; | |
21997 | ||
21998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
21999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22000 | { | |
22001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22002 | (arg1)->DetermineScaling(); | |
22003 | ||
22004 | wxPyEndAllowThreads(__tstate); | |
22005 | if (PyErr_Occurred()) SWIG_fail; | |
22006 | } | |
22007 | Py_INCREF(Py_None); resultobj = Py_None; | |
22008 | return resultobj; | |
22009 | fail: | |
22010 | return NULL; | |
22011 | } | |
22012 | ||
22013 | ||
22014 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
22015 | PyObject *obj; | |
22016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22017 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
22018 | Py_INCREF(obj); | |
22019 | return Py_BuildValue((char *)""); | |
22020 | } | |
22021 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22022 | PyObject *resultobj; | |
22023 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
22024 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
22025 | wxPrintData *arg3 = (wxPrintData *) NULL ; | |
22026 | wxPyPrintPreview *result; | |
22027 | PyObject * obj0 = 0 ; | |
22028 | PyObject * obj1 = 0 ; | |
22029 | PyObject * obj2 = 0 ; | |
22030 | char *kwnames[] = { | |
22031 | (char *) "printout",(char *) "printoutForPrinting",(char *) "data", NULL | |
22032 | }; | |
22033 | ||
22034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_PyPrintPreview",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22036 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22037 | if (obj2) { | |
22038 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22039 | } | |
22040 | { | |
22041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22042 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
22043 | ||
22044 | wxPyEndAllowThreads(__tstate); | |
22045 | if (PyErr_Occurred()) SWIG_fail; | |
22046 | } | |
22047 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPrintPreview, 1); | |
22048 | return resultobj; | |
22049 | fail: | |
22050 | return NULL; | |
22051 | } | |
22052 | ||
22053 | ||
22054 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22055 | PyObject *resultobj; | |
22056 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22057 | PyObject *arg2 = (PyObject *) 0 ; | |
22058 | PyObject *arg3 = (PyObject *) 0 ; | |
22059 | PyObject * obj0 = 0 ; | |
22060 | PyObject * obj1 = 0 ; | |
22061 | PyObject * obj2 = 0 ; | |
22062 | char *kwnames[] = { | |
22063 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22064 | }; | |
22065 | ||
22066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22068 | arg2 = obj1; | |
22069 | arg3 = obj2; | |
22070 | { | |
22071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22072 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22073 | ||
22074 | wxPyEndAllowThreads(__tstate); | |
22075 | if (PyErr_Occurred()) SWIG_fail; | |
22076 | } | |
22077 | Py_INCREF(Py_None); resultobj = Py_None; | |
22078 | return resultobj; | |
22079 | fail: | |
22080 | return NULL; | |
22081 | } | |
22082 | ||
22083 | ||
22084 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22085 | PyObject *resultobj; | |
22086 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22087 | int arg2 ; | |
22088 | bool result; | |
22089 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22090 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22091 | char *kwnames[] = { |
22092 | (char *) "self",(char *) "pageNum", NULL | |
22093 | }; | |
22094 | ||
8edf1c75 | 22095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22097 | { |
22098 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | } | |
d14a1e28 RD |
22101 | { |
22102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22103 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
22104 | ||
22105 | wxPyEndAllowThreads(__tstate); | |
22106 | if (PyErr_Occurred()) SWIG_fail; | |
22107 | } | |
8edf1c75 | 22108 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22109 | return resultobj; |
22110 | fail: | |
22111 | return NULL; | |
22112 | } | |
22113 | ||
22114 | ||
22115 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22116 | PyObject *resultobj; | |
22117 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22118 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22119 | wxDC *arg3 = 0 ; | |
22120 | bool result; | |
22121 | PyObject * obj0 = 0 ; | |
22122 | PyObject * obj1 = 0 ; | |
22123 | PyObject * obj2 = 0 ; | |
22124 | char *kwnames[] = { | |
22125 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
22126 | }; | |
22127 | ||
22128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22130 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22131 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22132 | if (arg3 == NULL) { | |
22133 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22134 | } | |
22135 | { | |
22136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22137 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
22138 | ||
22139 | wxPyEndAllowThreads(__tstate); | |
22140 | if (PyErr_Occurred()) SWIG_fail; | |
22141 | } | |
8edf1c75 | 22142 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22143 | return resultobj; |
22144 | fail: | |
22145 | return NULL; | |
22146 | } | |
22147 | ||
22148 | ||
22149 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22150 | PyObject *resultobj; | |
22151 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22152 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22153 | wxDC *arg3 = 0 ; | |
22154 | bool result; | |
22155 | PyObject * obj0 = 0 ; | |
22156 | PyObject * obj1 = 0 ; | |
22157 | PyObject * obj2 = 0 ; | |
22158 | char *kwnames[] = { | |
22159 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
22160 | }; | |
22161 | ||
22162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22164 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22165 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22166 | if (arg3 == NULL) { | |
22167 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22168 | } | |
22169 | { | |
22170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22171 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
22172 | ||
22173 | wxPyEndAllowThreads(__tstate); | |
22174 | if (PyErr_Occurred()) SWIG_fail; | |
22175 | } | |
8edf1c75 | 22176 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22177 | return resultobj; |
22178 | fail: | |
22179 | return NULL; | |
22180 | } | |
22181 | ||
22182 | ||
22183 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22184 | PyObject *resultobj; | |
22185 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22186 | int arg2 ; | |
22187 | bool result; | |
22188 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22189 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22190 | char *kwnames[] = { |
22191 | (char *) "self",(char *) "pageNum", NULL | |
22192 | }; | |
22193 | ||
8edf1c75 | 22194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22196 | { |
22197 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22198 | if (PyErr_Occurred()) SWIG_fail; | |
22199 | } | |
d14a1e28 RD |
22200 | { |
22201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22202 | result = (bool)(arg1)->base_RenderPage(arg2); | |
22203 | ||
22204 | wxPyEndAllowThreads(__tstate); | |
22205 | if (PyErr_Occurred()) SWIG_fail; | |
22206 | } | |
8edf1c75 | 22207 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22208 | return resultobj; |
22209 | fail: | |
22210 | return NULL; | |
22211 | } | |
22212 | ||
22213 | ||
22214 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22215 | PyObject *resultobj; | |
22216 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22217 | int arg2 ; | |
22218 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22220 | char *kwnames[] = { |
22221 | (char *) "self",(char *) "percent", NULL | |
22222 | }; | |
22223 | ||
8edf1c75 | 22224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22226 | { |
22227 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22228 | if (PyErr_Occurred()) SWIG_fail; | |
22229 | } | |
d14a1e28 RD |
22230 | { |
22231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22232 | (arg1)->base_SetZoom(arg2); | |
22233 | ||
22234 | wxPyEndAllowThreads(__tstate); | |
22235 | if (PyErr_Occurred()) SWIG_fail; | |
22236 | } | |
22237 | Py_INCREF(Py_None); resultobj = Py_None; | |
22238 | return resultobj; | |
22239 | fail: | |
22240 | return NULL; | |
22241 | } | |
22242 | ||
22243 | ||
22244 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22245 | PyObject *resultobj; | |
22246 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22247 | bool arg2 ; | |
22248 | bool result; | |
22249 | PyObject * obj0 = 0 ; | |
22250 | PyObject * obj1 = 0 ; | |
22251 | char *kwnames[] = { | |
22252 | (char *) "self",(char *) "interactive", NULL | |
22253 | }; | |
22254 | ||
22255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
22256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
83448d71 | 22257 | { |
8edf1c75 | 22258 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
83448d71 RD |
22259 | if (PyErr_Occurred()) SWIG_fail; |
22260 | } | |
d14a1e28 RD |
22261 | { |
22262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22263 | result = (bool)(arg1)->base_Print(arg2); | |
22264 | ||
22265 | wxPyEndAllowThreads(__tstate); | |
22266 | if (PyErr_Occurred()) SWIG_fail; | |
22267 | } | |
8edf1c75 | 22268 | resultobj = SWIG_PyObj_FromBool((bool)result); |
d14a1e28 RD |
22269 | return resultobj; |
22270 | fail: | |
22271 | return NULL; | |
22272 | } | |
22273 | ||
22274 | ||
22275 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22276 | PyObject *resultobj; | |
22277 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22278 | PyObject * obj0 = 0 ; | |
22279 | char *kwnames[] = { | |
22280 | (char *) "self", NULL | |
22281 | }; | |
22282 | ||
22283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
22284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22285 | { | |
22286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22287 | (arg1)->base_DetermineScaling(); | |
22288 | ||
22289 | wxPyEndAllowThreads(__tstate); | |
22290 | if (PyErr_Occurred()) SWIG_fail; | |
22291 | } | |
22292 | Py_INCREF(Py_None); resultobj = Py_None; | |
22293 | return resultobj; | |
22294 | fail: | |
22295 | return NULL; | |
22296 | } | |
22297 | ||
22298 | ||
22299 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
22300 | PyObject *obj; | |
22301 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22302 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
22303 | Py_INCREF(obj); | |
22304 | return Py_BuildValue((char *)""); | |
22305 | } | |
22306 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22307 | PyObject *resultobj; | |
22308 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22309 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22310 | wxString *arg3 = 0 ; | |
22311 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22312 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22313 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22314 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22315 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22316 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22317 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22318 | wxPyPreviewFrame *result; | |
423f194a | 22319 | bool temp3 = False ; |
d14a1e28 RD |
22320 | wxPoint temp4 ; |
22321 | wxSize temp5 ; | |
423f194a | 22322 | bool temp7 = False ; |
d14a1e28 RD |
22323 | PyObject * obj0 = 0 ; |
22324 | PyObject * obj1 = 0 ; | |
22325 | PyObject * obj2 = 0 ; | |
22326 | PyObject * obj3 = 0 ; | |
22327 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22328 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22329 | PyObject * obj6 = 0 ; |
22330 | char *kwnames[] = { | |
22331 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22332 | }; | |
22333 | ||
8edf1c75 | 22334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
22335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22336 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22337 | { | |
22338 | arg3 = wxString_in_helper(obj2); | |
22339 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22340 | temp3 = True; |
d14a1e28 RD |
22341 | } |
22342 | if (obj3) { | |
22343 | { | |
22344 | arg4 = &temp4; | |
22345 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22346 | } | |
22347 | } | |
22348 | if (obj4) { | |
22349 | { | |
22350 | arg5 = &temp5; | |
22351 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22352 | } | |
22353 | } | |
8edf1c75 RD |
22354 | if (obj5) { |
22355 | { | |
22356 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22357 | if (PyErr_Occurred()) SWIG_fail; | |
22358 | } | |
22359 | } | |
d14a1e28 RD |
22360 | if (obj6) { |
22361 | { | |
22362 | arg7 = wxString_in_helper(obj6); | |
22363 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22364 | temp7 = True; |
d14a1e28 RD |
22365 | } |
22366 | } | |
22367 | { | |
22368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22369 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22370 | ||
22371 | wxPyEndAllowThreads(__tstate); | |
22372 | if (PyErr_Occurred()) SWIG_fail; | |
22373 | } | |
22374 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPreviewFrame, 1); | |
22375 | { | |
22376 | if (temp3) | |
22377 | delete arg3; | |
22378 | } | |
22379 | { | |
22380 | if (temp7) | |
22381 | delete arg7; | |
22382 | } | |
22383 | return resultobj; | |
22384 | fail: | |
22385 | { | |
22386 | if (temp3) | |
22387 | delete arg3; | |
22388 | } | |
22389 | { | |
22390 | if (temp7) | |
22391 | delete arg7; | |
22392 | } | |
22393 | return NULL; | |
22394 | } | |
22395 | ||
22396 | ||
22397 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22398 | PyObject *resultobj; | |
22399 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22400 | PyObject *arg2 = (PyObject *) 0 ; | |
22401 | PyObject *arg3 = (PyObject *) 0 ; | |
22402 | PyObject * obj0 = 0 ; | |
22403 | PyObject * obj1 = 0 ; | |
22404 | PyObject * obj2 = 0 ; | |
22405 | char *kwnames[] = { | |
22406 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22407 | }; | |
22408 | ||
22409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22411 | arg2 = obj1; | |
22412 | arg3 = obj2; | |
22413 | { | |
22414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22415 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22416 | ||
22417 | wxPyEndAllowThreads(__tstate); | |
22418 | if (PyErr_Occurred()) SWIG_fail; | |
22419 | } | |
22420 | Py_INCREF(Py_None); resultobj = Py_None; | |
22421 | return resultobj; | |
22422 | fail: | |
22423 | return NULL; | |
22424 | } | |
22425 | ||
22426 | ||
22427 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22428 | PyObject *resultobj; | |
22429 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22430 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22431 | PyObject * obj0 = 0 ; | |
22432 | PyObject * obj1 = 0 ; | |
22433 | char *kwnames[] = { | |
22434 | (char *) "self",(char *) "canvas", NULL | |
22435 | }; | |
22436 | ||
22437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
22438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22439 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22440 | { | |
22441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22442 | (arg1)->SetPreviewCanvas(arg2); | |
22443 | ||
22444 | wxPyEndAllowThreads(__tstate); | |
22445 | if (PyErr_Occurred()) SWIG_fail; | |
22446 | } | |
22447 | Py_INCREF(Py_None); resultobj = Py_None; | |
22448 | return resultobj; | |
22449 | fail: | |
22450 | return NULL; | |
22451 | } | |
22452 | ||
22453 | ||
22454 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22455 | PyObject *resultobj; | |
22456 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22457 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
22458 | PyObject * obj0 = 0 ; | |
22459 | PyObject * obj1 = 0 ; | |
22460 | char *kwnames[] = { | |
22461 | (char *) "self",(char *) "bar", NULL | |
22462 | }; | |
22463 | ||
22464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
22465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22466 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22467 | { | |
22468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22469 | (arg1)->SetControlBar(arg2); | |
22470 | ||
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | Py_INCREF(Py_None); resultobj = Py_None; | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
22481 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22482 | PyObject *resultobj; | |
22483 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22484 | PyObject * obj0 = 0 ; | |
22485 | char *kwnames[] = { | |
22486 | (char *) "self", NULL | |
22487 | }; | |
22488 | ||
22489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
22490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22491 | { | |
22492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22493 | (arg1)->base_Initialize(); | |
22494 | ||
22495 | wxPyEndAllowThreads(__tstate); | |
22496 | if (PyErr_Occurred()) SWIG_fail; | |
22497 | } | |
22498 | Py_INCREF(Py_None); resultobj = Py_None; | |
22499 | return resultobj; | |
22500 | fail: | |
22501 | return NULL; | |
22502 | } | |
22503 | ||
22504 | ||
22505 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22506 | PyObject *resultobj; | |
22507 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22508 | PyObject * obj0 = 0 ; | |
22509 | char *kwnames[] = { | |
22510 | (char *) "self", NULL | |
22511 | }; | |
22512 | ||
22513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
22514 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22515 | { | |
22516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22517 | (arg1)->base_CreateCanvas(); | |
22518 | ||
22519 | wxPyEndAllowThreads(__tstate); | |
22520 | if (PyErr_Occurred()) SWIG_fail; | |
22521 | } | |
22522 | Py_INCREF(Py_None); resultobj = Py_None; | |
22523 | return resultobj; | |
22524 | fail: | |
22525 | return NULL; | |
22526 | } | |
22527 | ||
22528 | ||
22529 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22530 | PyObject *resultobj; | |
22531 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22532 | PyObject * obj0 = 0 ; | |
22533 | char *kwnames[] = { | |
22534 | (char *) "self", NULL | |
22535 | }; | |
22536 | ||
22537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
22538 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22539 | { | |
22540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22541 | (arg1)->base_CreateControlBar(); | |
22542 | ||
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | Py_INCREF(Py_None); resultobj = Py_None; | |
22547 | return resultobj; | |
22548 | fail: | |
22549 | return NULL; | |
22550 | } | |
22551 | ||
22552 | ||
22553 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
22554 | PyObject *obj; | |
22555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22556 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
22557 | Py_INCREF(obj); | |
22558 | return Py_BuildValue((char *)""); | |
22559 | } | |
22560 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22561 | PyObject *resultobj; | |
22562 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22563 | long arg2 ; | |
22564 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22565 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22566 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22567 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22568 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22569 | long arg6 = (long) 0 ; | |
22570 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22571 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22572 | wxPyPreviewControlBar *result; | |
22573 | wxPoint temp4 ; | |
22574 | wxSize temp5 ; | |
423f194a | 22575 | bool temp7 = False ; |
d14a1e28 | 22576 | PyObject * obj0 = 0 ; |
8edf1c75 | 22577 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22578 | PyObject * obj2 = 0 ; |
22579 | PyObject * obj3 = 0 ; | |
22580 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22581 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22582 | PyObject * obj6 = 0 ; |
22583 | char *kwnames[] = { | |
22584 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22585 | }; | |
22586 | ||
8edf1c75 | 22587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22588 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22589 | { |
22590 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22591 | if (PyErr_Occurred()) SWIG_fail; | |
22592 | } | |
d14a1e28 RD |
22593 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22594 | if (obj3) { | |
22595 | { | |
22596 | arg4 = &temp4; | |
22597 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22598 | } | |
22599 | } | |
22600 | if (obj4) { | |
22601 | { | |
22602 | arg5 = &temp5; | |
22603 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22604 | } | |
22605 | } | |
8edf1c75 RD |
22606 | if (obj5) { |
22607 | { | |
22608 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22609 | if (PyErr_Occurred()) SWIG_fail; | |
22610 | } | |
22611 | } | |
d14a1e28 RD |
22612 | if (obj6) { |
22613 | { | |
22614 | arg7 = wxString_in_helper(obj6); | |
22615 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22616 | temp7 = True; |
d14a1e28 RD |
22617 | } |
22618 | } | |
22619 | { | |
22620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22621 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22622 | ||
22623 | wxPyEndAllowThreads(__tstate); | |
22624 | if (PyErr_Occurred()) SWIG_fail; | |
22625 | } | |
22626 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
22627 | { | |
22628 | if (temp7) | |
22629 | delete arg7; | |
22630 | } | |
22631 | return resultobj; | |
22632 | fail: | |
22633 | { | |
22634 | if (temp7) | |
22635 | delete arg7; | |
22636 | } | |
22637 | return NULL; | |
22638 | } | |
22639 | ||
22640 | ||
22641 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22642 | PyObject *resultobj; | |
22643 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22644 | PyObject *arg2 = (PyObject *) 0 ; | |
22645 | PyObject *arg3 = (PyObject *) 0 ; | |
22646 | PyObject * obj0 = 0 ; | |
22647 | PyObject * obj1 = 0 ; | |
22648 | PyObject * obj2 = 0 ; | |
22649 | char *kwnames[] = { | |
22650 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22651 | }; | |
22652 | ||
22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22655 | arg2 = obj1; | |
22656 | arg3 = obj2; | |
22657 | { | |
22658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22659 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22660 | ||
22661 | wxPyEndAllowThreads(__tstate); | |
22662 | if (PyErr_Occurred()) SWIG_fail; | |
22663 | } | |
22664 | Py_INCREF(Py_None); resultobj = Py_None; | |
22665 | return resultobj; | |
22666 | fail: | |
22667 | return NULL; | |
22668 | } | |
22669 | ||
22670 | ||
22671 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22672 | PyObject *resultobj; | |
22673 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22674 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
22675 | PyObject * obj0 = 0 ; | |
22676 | PyObject * obj1 = 0 ; | |
22677 | char *kwnames[] = { | |
22678 | (char *) "self",(char *) "preview", NULL | |
22679 | }; | |
22680 | ||
22681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
22682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22683 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22684 | { | |
22685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22686 | (arg1)->SetPrintPreview(arg2); | |
22687 | ||
22688 | wxPyEndAllowThreads(__tstate); | |
22689 | if (PyErr_Occurred()) SWIG_fail; | |
22690 | } | |
22691 | Py_INCREF(Py_None); resultobj = Py_None; | |
22692 | return resultobj; | |
22693 | fail: | |
22694 | return NULL; | |
22695 | } | |
22696 | ||
22697 | ||
22698 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22699 | PyObject *resultobj; | |
22700 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22701 | PyObject * obj0 = 0 ; | |
22702 | char *kwnames[] = { | |
22703 | (char *) "self", NULL | |
22704 | }; | |
22705 | ||
22706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
22707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22708 | { | |
22709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22710 | (arg1)->base_CreateButtons(); | |
22711 | ||
22712 | wxPyEndAllowThreads(__tstate); | |
22713 | if (PyErr_Occurred()) SWIG_fail; | |
22714 | } | |
22715 | Py_INCREF(Py_None); resultobj = Py_None; | |
22716 | return resultobj; | |
22717 | fail: | |
22718 | return NULL; | |
22719 | } | |
22720 | ||
22721 | ||
22722 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22723 | PyObject *resultobj; | |
22724 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22725 | int arg2 ; | |
22726 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22727 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22728 | char *kwnames[] = { |
22729 | (char *) "self",(char *) "zoom", NULL | |
22730 | }; | |
22731 | ||
8edf1c75 | 22732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8edf1c75 RD |
22734 | { |
22735 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22736 | if (PyErr_Occurred()) SWIG_fail; | |
22737 | } | |
d14a1e28 RD |
22738 | { |
22739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22740 | (arg1)->base_SetZoomControl(arg2); | |
22741 | ||
22742 | wxPyEndAllowThreads(__tstate); | |
22743 | if (PyErr_Occurred()) SWIG_fail; | |
22744 | } | |
22745 | Py_INCREF(Py_None); resultobj = Py_None; | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | return NULL; | |
22749 | } | |
22750 | ||
22751 | ||
22752 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
22753 | PyObject *obj; | |
22754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22755 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
22756 | Py_INCREF(obj); | |
22757 | return Py_BuildValue((char *)""); | |
22758 | } | |
22759 | static PyMethodDef SwigMethods[] = { | |
22760 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
22761 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
22762 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
22763 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
22764 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, | |
22765 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22766 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22767 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22768 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
22769 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
22770 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
22771 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
22772 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
22773 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
22774 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
22775 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
22776 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
22777 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
22778 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
22779 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
22780 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
22781 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
22782 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
22783 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
22784 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
22785 | { (char *)"ScrolledWindow_SetTargetRect", (PyCFunction) _wrap_ScrolledWindow_SetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
22786 | { (char *)"ScrolledWindow_GetTargetRect", (PyCFunction) _wrap_ScrolledWindow_GetTargetRect, METH_VARARGS | METH_KEYWORDS }, | |
22787 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
22788 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, |
22789 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
22790 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
22791 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
22792 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
22793 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22794 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22795 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
22796 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
22797 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
22798 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
22799 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
22800 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
22801 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
22802 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
22803 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
22804 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
22805 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
22806 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
22807 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
22808 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
22809 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
22810 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22811 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22812 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22813 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22814 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
22815 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22816 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22817 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
22818 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
22819 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
22820 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
22821 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
22822 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
22823 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
22824 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, | |
22825 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
22826 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
22827 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
22828 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
22829 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
22830 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
22831 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
22832 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, |
22833 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22834 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
22835 | { (char *)"Dialog_IsModalShowing", (PyCFunction) _wrap_Dialog_IsModalShowing, METH_VARARGS | METH_KEYWORDS }, | |
22836 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, | |
22837 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
22838 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
22839 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
22840 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
22841 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
22842 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
22843 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
22844 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
22845 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
22846 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
22847 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
22848 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
22849 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
22850 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22851 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22852 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
22853 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
22854 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
22855 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22856 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22857 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22858 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22859 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
22860 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
22861 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
22862 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
22863 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
22864 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, | |
22865 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
22866 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
22867 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22868 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
22869 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
22870 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
22871 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
22872 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
22873 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
22874 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
22875 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
22876 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
22877 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
22878 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
22879 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22880 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
22881 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22882 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22883 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22884 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
22885 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
22886 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
22887 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
22888 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
22889 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
22890 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, | |
22891 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
22892 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22893 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22894 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
22895 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
22896 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
22897 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
22898 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
22899 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
22900 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22901 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
22902 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
22903 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
22904 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
22905 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
22906 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22907 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22908 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22909 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22910 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22911 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22912 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22913 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22914 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22915 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22916 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22917 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22918 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
22919 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
22920 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
22921 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
22922 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
22923 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
22924 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
22925 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
22926 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
22927 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
22928 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
22929 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
22930 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
22931 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
22932 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22933 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22934 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
22935 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
22936 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22937 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22938 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22939 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22940 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
22941 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
22942 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22943 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22944 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
22945 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
22946 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
22947 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
22948 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
22949 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22950 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22951 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22952 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22953 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22954 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22955 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
22956 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
22957 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
22958 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
22959 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
22960 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
22961 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
22962 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
22963 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
22964 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22965 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS }, | |
22966 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
22967 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
22968 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
22969 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
22970 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS }, | |
22971 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction) _wrap_PopupTransientWindow_Dismiss, METH_VARARGS | METH_KEYWORDS }, | |
22972 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
22973 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
22974 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
22975 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
22976 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
22977 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22978 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22979 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
22980 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22981 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
22982 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
22983 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
22984 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
22985 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
22986 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
22987 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
22988 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
22989 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
22990 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
22991 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
22992 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
22993 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
22994 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
22995 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
22996 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
22997 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
22998 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
22999 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
23000 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
23001 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23002 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
23003 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
23004 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
23005 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
23006 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
23007 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
23008 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
23009 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
23010 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
23011 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23012 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
23013 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
23014 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
23015 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
23016 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
23017 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
23018 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
23019 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
23020 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
23021 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
23022 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
23023 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23024 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
23025 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
23026 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
23027 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, | |
23028 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
23029 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
23030 | { (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
23031 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS }, | |
23032 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
23033 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction) _wrap_TaskBarIcon_RemoveIcon, METH_VARARGS | METH_KEYWORDS }, | |
23034 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
23035 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
23036 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
23037 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
23038 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
23039 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
23040 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
23041 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
23042 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
23043 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
23044 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
23045 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
23046 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
23047 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
23048 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
23049 | { (char *)"ColourDialog_ShowModal", (PyCFunction) _wrap_ColourDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23050 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
23051 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
23052 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
23053 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
23054 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
23055 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
23056 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
23057 | { (char *)"DirDialog_ShowModal", (PyCFunction) _wrap_DirDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23058 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
23059 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
23060 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
23061 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
23062 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
23063 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
23064 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
23065 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
23066 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
23067 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
23068 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
23069 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
23070 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
23071 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
23072 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
23073 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
23074 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
23075 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
23076 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
23077 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
23078 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
23079 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
23080 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
23081 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
23082 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23083 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
23084 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23085 | { (char *)"SingleChoiceDialog_ShowModal", (PyCFunction) _wrap_SingleChoiceDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23086 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
23087 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
23088 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
23089 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
23090 | { (char *)"TextEntryDialog_ShowModal", (PyCFunction) _wrap_TextEntryDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23091 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
23092 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
23093 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
23094 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
23095 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
23096 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
23097 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
23098 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
23099 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
23100 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
23101 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
23102 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
23103 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
23104 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
23105 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
23106 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
23107 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
23108 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
23109 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
23110 | { (char *)"FontDialog_ShowModal", (PyCFunction) _wrap_FontDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23111 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
23112 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
23113 | { (char *)"MessageDialog_ShowModal", (PyCFunction) _wrap_MessageDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23114 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
23115 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
23116 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
23117 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
23118 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
23119 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
23120 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
23121 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
23122 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
23123 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
23124 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
23125 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
23126 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
23127 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
23128 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
23129 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
23130 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
23131 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
23132 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
23133 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
23134 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
23135 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
23136 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
23137 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
23138 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
23139 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
23140 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
23141 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
23142 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
23143 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
23144 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
23145 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
23146 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
23147 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
23148 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
23149 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
23150 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
23151 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
23152 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
23153 | { (char *)"MDIParentFrame_GetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_GetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
23154 | { (char *)"MDIParentFrame_SetWindowMenu", (PyCFunction) _wrap_MDIParentFrame_SetWindowMenu, METH_VARARGS | METH_KEYWORDS }, | |
23155 | { (char *)"MDIParentFrame_SetToolBar", (PyCFunction) _wrap_MDIParentFrame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
23156 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
23157 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
23158 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
23159 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
23160 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
23161 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
23162 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
23163 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
23164 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
23165 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
23166 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
23167 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
23168 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
23169 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
23170 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23171 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
23172 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
23173 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23174 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23175 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
23176 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23177 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
23178 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23179 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
23180 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23181 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
23182 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
23183 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
23184 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
23185 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
23186 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
23187 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
23188 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
23189 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, | |
23190 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
23191 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23192 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
23193 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
23194 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23195 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23196 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
23197 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23198 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
23199 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23200 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
23201 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23202 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
23203 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
23204 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
23205 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
23206 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
23207 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
23208 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
23209 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
23210 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, | |
23211 | { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
23212 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
23213 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23214 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23215 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23216 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23217 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
23218 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
23219 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
23220 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23221 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23222 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
23223 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23224 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23225 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23226 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
23227 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
23228 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
23229 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23230 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23231 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
23232 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
23233 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
23234 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
23235 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
23236 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
23237 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
23238 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
23239 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
23240 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
23241 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
23242 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
23243 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
23244 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
23245 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
23246 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
23247 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
23248 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
23249 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
23250 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
23251 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
23252 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
23253 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
23254 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
23255 | { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23256 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23257 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23258 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
23259 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23260 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
23261 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
23262 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
23263 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
23264 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23265 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
23266 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
23267 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23268 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
23269 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23270 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23271 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23272 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23273 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23274 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23275 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23276 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23277 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
23278 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
23279 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23280 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23281 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23282 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23283 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23284 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23285 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23286 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
23287 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
23288 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
23289 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23290 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
23291 | { (char *)"new_PrintDialogData", (PyCFunction) _wrap_new_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23292 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23293 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
23294 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
23295 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
23296 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
23297 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23298 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
23299 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23300 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23301 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23302 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
23303 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
23304 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
23305 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
23306 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
23307 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23308 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
23309 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23310 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23311 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23312 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
23313 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23314 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
23315 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
23316 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23317 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23318 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
23319 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
23320 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23321 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23322 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23323 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23324 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
23325 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
23326 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23327 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
23328 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23329 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
23330 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
23331 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
23332 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
23333 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23334 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
23335 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
23336 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
23337 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
23338 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
23339 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
23340 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
23341 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
23342 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23343 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
23344 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
23345 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 23346 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 23347 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
23348 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, |
23349 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
23350 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
23351 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
23352 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
23353 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
23354 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
23355 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
23356 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
23357 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
23358 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
23359 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
23360 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 23361 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, |
44127b65 | 23362 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
23363 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, |
23364 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23365 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
23366 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
23367 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
23368 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23369 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23370 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23371 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
23372 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23373 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
23374 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
23375 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23376 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
23377 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
23378 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
23379 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
23380 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
23381 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
23382 | { (char *)"new_PrintPreview", (PyCFunction) _wrap_new_PrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23383 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
23384 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
23385 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
23386 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
23387 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
23388 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
23389 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23390 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
23391 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23392 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
23393 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
23394 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
23395 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
23396 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23397 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
23398 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
23399 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
23400 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
23401 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23402 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
23403 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
23404 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
23405 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
23406 | { (char *)"new_PyPrintPreview", (PyCFunction) _wrap_new_PyPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23407 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23408 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
23409 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
23410 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
23411 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
23412 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
23413 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
23414 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
23415 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
23416 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
23417 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23418 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23419 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23420 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
23421 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23422 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23423 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
23424 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23425 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23426 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23427 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
23428 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
23429 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
23430 | { NULL, NULL } | |
23431 | }; | |
23432 | ||
23433 | ||
23434 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
23435 | ||
23436 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
23437 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23438 | } | |
23439 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
23440 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
23441 | } | |
23442 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
23443 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
23444 | } | |
23445 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
23446 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
23447 | } | |
23448 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
23449 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
23450 | } | |
23451 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
23452 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
23453 | } | |
23454 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
23455 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
23456 | } | |
23457 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
23458 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23459 | } | |
23460 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
23461 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
23462 | } | |
23463 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
23464 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
23465 | } | |
23466 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
23467 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
23468 | } | |
23469 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
23470 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
23471 | } | |
23472 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
23473 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
23474 | } | |
23475 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
23476 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
23477 | } | |
23478 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
23479 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
23480 | } | |
23481 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
23482 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
23483 | } | |
23484 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
23485 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
23486 | } | |
23487 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
23488 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
23489 | } | |
23490 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
23491 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
23492 | } | |
23493 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
23494 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
23495 | } | |
23496 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
23497 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
23498 | } | |
23499 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
23500 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
23501 | } | |
23502 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
23503 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
23504 | } | |
23505 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
23506 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
23507 | } | |
23508 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
23509 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
23510 | } | |
23511 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
23512 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
23513 | } | |
23514 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
23515 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
23516 | } | |
23517 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
23518 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
23519 | } | |
23520 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
23521 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
23522 | } | |
23523 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
23524 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
23525 | } | |
23526 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
23527 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
23528 | } | |
23529 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
23530 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
23531 | } | |
23532 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
23533 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
23534 | } | |
23535 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
23536 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
23537 | } | |
23538 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
23539 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
23540 | } | |
23541 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
23542 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
23543 | } | |
23544 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
23545 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
23546 | } | |
23547 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
23548 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
23549 | } | |
23550 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
23551 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
23552 | } | |
23553 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
23554 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
23555 | } | |
23556 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
23557 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
23558 | } | |
23559 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
23560 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
23561 | } | |
23562 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
23563 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23564 | } | |
23565 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
23566 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
23567 | } | |
23568 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
23569 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
23570 | } | |
23571 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
23572 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
23573 | } | |
23574 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
23575 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
23576 | } | |
23577 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
23578 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
23579 | } | |
23580 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
23581 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
23582 | } | |
23583 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
23584 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
23585 | } | |
23586 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
23587 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
23588 | } | |
23589 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
23590 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
23591 | } | |
23592 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
23593 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
23594 | } | |
23595 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
23596 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
23597 | } | |
23598 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
23599 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
23600 | } | |
23601 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
23602 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
23603 | } | |
23604 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
23605 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
23606 | } | |
23607 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
23608 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
23609 | } | |
23610 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
23611 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
23612 | } | |
23613 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
23614 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
23615 | } | |
23616 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
23617 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
23618 | } | |
23619 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
23620 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
23621 | } | |
23622 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
23623 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
23624 | } | |
23625 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
23626 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
23627 | } | |
23628 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
23629 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
23630 | } | |
23631 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
23632 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
23633 | } | |
23634 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
23635 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
23636 | } | |
23637 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
23638 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
23639 | } | |
23640 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
23641 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
23642 | } | |
23643 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
23644 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
23645 | } | |
23646 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
23647 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
23648 | } | |
23649 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
23650 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
23651 | } | |
23652 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
23653 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
23654 | } | |
23655 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
23656 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23657 | } | |
23658 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
23659 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
23660 | } | |
23661 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
23662 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
23663 | } | |
23664 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
23665 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
23666 | } | |
23667 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
23668 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
23669 | } | |
23670 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
23671 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
23672 | } | |
23673 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
23674 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23675 | } | |
23676 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
23677 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
23678 | } | |
23679 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
23680 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
23681 | } | |
23682 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
23683 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
23684 | } | |
23685 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
23686 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
23687 | } | |
23688 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
23689 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
23690 | } | |
23691 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
23692 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
23693 | } | |
23694 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
23695 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
23696 | } | |
23697 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
23698 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
23699 | } | |
23700 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
23701 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
23702 | } | |
23703 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
23704 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
23705 | } | |
23706 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
23707 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
23708 | } | |
23709 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
23710 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
23711 | } | |
23712 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
23713 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23714 | } | |
23715 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
23716 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
23717 | } | |
23718 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
23719 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
23720 | } | |
23721 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
23722 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
23723 | } | |
23724 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
23725 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23726 | } | |
23727 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
23728 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
23729 | } | |
23730 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
23731 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
23732 | } | |
23733 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
23734 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
23735 | } | |
23736 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
23737 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
23738 | } | |
23739 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
23740 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
23741 | } | |
23742 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
23743 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
23744 | } | |
23745 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
23746 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23747 | } | |
23748 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
23749 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
23750 | } | |
23751 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
23752 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
23753 | } | |
23754 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
23755 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
23756 | } | |
23757 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
23758 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
23759 | } | |
23760 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
23761 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
23762 | } | |
23763 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
23764 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
23765 | } | |
23766 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
23767 | return (void *)((wxObject *) ((wxSizer *) x)); | |
23768 | } | |
23769 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
23770 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
23771 | } | |
23772 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
23773 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
23774 | } | |
23775 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
23776 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
23777 | } | |
23778 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
23779 | return (void *)((wxObject *) ((wxEvent *) x)); | |
23780 | } | |
23781 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
23782 | return (void *)((wxObject *) ((wxFontData *) x)); | |
23783 | } | |
23784 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
23785 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
23786 | } | |
23787 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
23788 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
23789 | } | |
23790 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
23791 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
23792 | } | |
23793 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
23794 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
23795 | } | |
23796 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
23797 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
23798 | } | |
23799 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
23800 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
23801 | } | |
23802 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
23803 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
23804 | } | |
23805 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
23806 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
23807 | } | |
23808 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
23809 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
23810 | } | |
23811 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
23812 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
23813 | } | |
23814 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
23815 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
23816 | } | |
23817 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
23818 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
23819 | } | |
23820 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
23821 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
23822 | } | |
23823 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
23824 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
23825 | } | |
23826 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
23827 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
23828 | } | |
23829 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
23830 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
23831 | } | |
23832 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
23833 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23834 | } | |
23835 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
23836 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
23837 | } | |
23838 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
23839 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
23840 | } | |
23841 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
23842 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
23843 | } | |
23844 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
23845 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
23846 | } | |
23847 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
23848 | return (void *)((wxObject *) ((wxColourData *) x)); | |
23849 | } | |
23850 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
23851 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
23852 | } | |
23853 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
23854 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
23855 | } | |
23856 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
23857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
23858 | } | |
23859 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
23860 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
23861 | } | |
23862 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
23863 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
23864 | } | |
23865 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
23866 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
23867 | } | |
23868 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
23869 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
23870 | } | |
23871 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
23872 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
23873 | } | |
23874 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
23875 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
23876 | } | |
23877 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
23878 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
23879 | } | |
23880 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
23881 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
23882 | } | |
23883 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
23884 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
23885 | } | |
23886 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
23887 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
23888 | } | |
23889 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
23890 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
23891 | } | |
23892 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
23893 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
23894 | } | |
23895 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
23896 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
23897 | } | |
23898 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
23899 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
23900 | } | |
23901 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
23902 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
23903 | } | |
23904 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
23905 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
23906 | } | |
23907 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
23908 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
23909 | } | |
23910 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
23911 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
23912 | } | |
23913 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
23914 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
23915 | } | |
23916 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
23917 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
23918 | } | |
23919 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
23920 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
23921 | } | |
23922 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
23923 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
23924 | } | |
23925 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
23926 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
23927 | } | |
23928 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
23929 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
23930 | } | |
23931 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
23932 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
23933 | } | |
23934 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
23935 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
23936 | } | |
23937 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
23938 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
23939 | } | |
23940 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
23941 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
23942 | } | |
23943 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
23944 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
23945 | } | |
23946 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
23947 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
23948 | } | |
23949 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
23950 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
23951 | } | |
23952 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
23953 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
23954 | } | |
23955 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
23956 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
23957 | } | |
23958 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
23959 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
23960 | } | |
23961 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
23962 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23963 | } | |
23964 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
23965 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
23966 | } | |
23967 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
23968 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
23969 | } | |
23970 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
23971 | return (void *)((wxObject *) ((wxImage *) x)); | |
23972 | } | |
23973 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
23974 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
23975 | } | |
23976 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
23977 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
23978 | } | |
23979 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
23980 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
23981 | } | |
23982 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
23983 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
23984 | } | |
23985 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
23986 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
23987 | } | |
23988 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
23989 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
23990 | } | |
23991 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
23992 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
23993 | } | |
23994 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
23995 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
23996 | } | |
23997 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
23998 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
23999 | } | |
d14a1e28 RD |
24000 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
24001 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
24002 | } | |
24003 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
24004 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
24005 | } | |
24006 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
24007 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
24008 | } | |
41f1cec7 RD |
24009 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
24010 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
24011 | } | |
d14a1e28 RD |
24012 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
24013 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
24014 | } | |
24015 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
24016 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
24017 | } | |
24018 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
24019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
24020 | } | |
24021 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
24022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
24023 | } | |
24024 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
24025 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
24026 | } | |
24027 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
24028 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
24029 | } | |
24030 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
24031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
24032 | } | |
24033 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
24034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
24035 | } | |
24036 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
24037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24038 | } | |
24039 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
24040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
24041 | } | |
24042 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
24043 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
24044 | } | |
24045 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
24046 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
24047 | } | |
24048 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
24049 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
24050 | } | |
24051 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
24052 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
24053 | } | |
24054 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
24055 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
24056 | } | |
24057 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
24058 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
24059 | } | |
24060 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
24061 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
24062 | } | |
24063 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
24064 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
24065 | } | |
24066 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
24067 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
24068 | } | |
24069 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
24070 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
24071 | } | |
24072 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
24073 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
24074 | } | |
24075 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
24076 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
24077 | } | |
24078 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
24079 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
24080 | } | |
24081 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
24082 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
24083 | } | |
24084 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
24085 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
24086 | } | |
24087 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
24088 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
24089 | } | |
24090 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
24091 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
24092 | } | |
24093 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
24094 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
24095 | } | |
24096 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
24097 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
24098 | } | |
24099 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
24100 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
24101 | } | |
24102 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
24103 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24104 | } | |
24105 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
24106 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
24107 | } | |
24108 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
24109 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
24110 | } | |
24111 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
24112 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
24113 | } | |
24114 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
24115 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
24116 | } | |
24117 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
24118 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
24119 | } | |
24120 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
24121 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
24122 | } | |
24123 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
24124 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
24125 | } | |
24126 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
24127 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
24128 | } | |
24129 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
24130 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24131 | } | |
24132 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
24133 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24134 | } | |
24135 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
24136 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
24137 | } | |
24138 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
24139 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
24140 | } | |
24141 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
24142 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
24143 | } | |
24144 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
24145 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
24146 | } | |
24147 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
24148 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
24149 | } | |
24150 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
24151 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
24152 | } | |
24153 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
24154 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
24155 | } | |
24156 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
24157 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
24158 | } | |
24159 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
24160 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
24161 | } | |
24162 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
24163 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
24164 | } | |
24165 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
24166 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
24167 | } | |
24168 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
24169 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
24170 | } | |
24171 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
24172 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
24173 | } | |
24174 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
24175 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
24176 | } | |
24177 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
24178 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
24179 | } | |
24180 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
24181 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
24182 | } | |
24183 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
24184 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
24185 | } | |
24186 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
24187 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
24188 | } | |
24189 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
24190 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
24191 | } | |
24192 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
24193 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24194 | } | |
24195 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
24196 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24197 | } | |
24198 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
24199 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
24200 | } | |
24201 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
24202 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
24203 | } | |
24204 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
24205 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
24206 | } | |
24207 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
24208 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
24209 | } | |
24210 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
24211 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
24212 | } | |
24213 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
24214 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
24215 | } | |
24216 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
24217 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
24218 | } | |
24219 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
24220 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
24221 | } | |
24222 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
24223 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
24224 | } | |
24225 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
24226 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
24227 | } | |
24228 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
24229 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
24230 | } | |
24231 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
24232 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24233 | } | |
24234 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
24235 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24236 | } | |
24237 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
24238 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
24239 | } | |
24240 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
24241 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
24242 | } | |
24243 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
24244 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
24245 | } | |
24246 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
24247 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
24248 | } | |
24249 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
24250 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24251 | } | |
24252 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
24253 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
24254 | } | |
24255 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
24256 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
24257 | } | |
24258 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
24259 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
24260 | } | |
24261 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
24262 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
24263 | } | |
24264 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
24265 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
24266 | } | |
24267 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
24268 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
24269 | } | |
24270 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
24271 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
24272 | } | |
24273 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
24274 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
24275 | } | |
24276 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
24277 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
24278 | } | |
24279 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
24280 | return (void *)((wxWindow *) ((wxControl *) x)); | |
24281 | } | |
24282 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
24283 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
24284 | } | |
24285 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
24286 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
24287 | } | |
24288 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
24289 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
24290 | } | |
24291 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
24292 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
24293 | } | |
24294 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
24295 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
24296 | } | |
24297 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
24298 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24299 | } | |
24300 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
24301 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24302 | } | |
24303 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
24304 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24305 | } | |
24306 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
24307 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
24308 | } | |
24309 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
24310 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24311 | } | |
24312 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
24313 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
24314 | } | |
24315 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
24316 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
24317 | } | |
24318 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
24319 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
24320 | } | |
24321 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
24322 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
24323 | } | |
24324 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
24325 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
24326 | } | |
24327 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
24328 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
24329 | } | |
24330 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
24331 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
24332 | } | |
24333 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
24334 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
24335 | } | |
24336 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
24337 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24338 | } | |
24339 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
24340 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
24341 | } | |
24342 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
24343 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
24344 | } | |
24345 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
24346 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
24347 | } | |
24348 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
24349 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
24350 | } | |
24351 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
24352 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
24353 | } | |
24354 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
24355 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
24356 | } | |
24357 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
24358 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
24359 | } | |
24360 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
24361 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24362 | } | |
24363 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
24364 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24365 | } | |
24366 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
24367 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
24368 | } | |
24369 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
24370 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
24371 | } | |
24372 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
24373 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
24374 | } | |
24375 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
24376 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
24377 | } | |
24378 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
24379 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24380 | } | |
24381 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
24382 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24383 | } | |
24384 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
24385 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24386 | } | |
24387 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
24388 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
24389 | } | |
24390 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
24391 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24392 | } | |
24393 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
24394 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
24395 | } | |
24396 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
24397 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24398 | } | |
24399 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
24400 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
24401 | } | |
24402 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
24403 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
24404 | } | |
24405 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
24406 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
24407 | } | |
24408 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
24409 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
24410 | } | |
24411 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
24412 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
24413 | } | |
24414 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
24415 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
24416 | } | |
24417 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
24418 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
24419 | } | |
24420 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
24421 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
24422 | } | |
24423 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
24424 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
24425 | } | |
24426 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
24427 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
24428 | } | |
24429 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
24430 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
24431 | } | |
24432 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
24433 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24434 | } | |
24435 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent[] = {{"_p_wxQueryLayoutInfoEvent", 0, "wxQueryLayoutInfoEvent *", 0},{"_p_wxQueryLayoutInfoEvent"},{0}}; | |
24436 | static swig_type_info _swigt__p_wxPreviewFrame[] = {{"_p_wxPreviewFrame", 0, "wxPreviewFrame *", 0},{"_p_wxPreviewFrame"},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxPreviewFrame},{0}}; | |
24437 | static swig_type_info _swigt__p_wxPyPreviewFrame[] = {{"_p_wxPyPreviewFrame", 0, "wxPyPreviewFrame *", 0},{"_p_wxPyPreviewFrame"},{0}}; | |
d14a1e28 RD |
24438 | static swig_type_info _swigt__p_wxPyPanel[] = {{"_p_wxPyPanel", 0, "wxPyPanel *", 0},{"_p_wxPyPanel"},{0}}; |
24439 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
24440 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
24441 | static swig_type_info _swigt__p_wxFontData[] = {{"_p_wxFontData", 0, "wxFontData *", 0},{"_p_wxFontData"},{0}}; | |
24442 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxEvent},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxEvent},{0}}; | |
24443 | static swig_type_info _swigt__p_wxTaskBarIcon[] = {{"_p_wxTaskBarIcon", 0, "wxTaskBarIcon *", 0},{"_p_wxTaskBarIcon"},{0}}; | |
24444 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
24445 | static swig_type_info _swigt__p_wxLayoutAlgorithm[] = {{"_p_wxLayoutAlgorithm", 0, "wxLayoutAlgorithm *", 0},{"_p_wxLayoutAlgorithm"},{0}}; | |
24446 | static swig_type_info _swigt__p_wxFindDialogEvent[] = {{"_p_wxFindDialogEvent", 0, "wxFindDialogEvent *", 0},{"_p_wxFindDialogEvent"},{0}}; | |
24447 | static swig_type_info _swigt__p_wxPreviewCanvas[] = {{"_p_wxPreviewCanvas", 0, "wxPreviewCanvas *", 0},{"_p_wxPreviewCanvas"},{0}}; | |
24448 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
24449 | static swig_type_info _swigt__p_wxSplitterEvent[] = {{"_p_wxSplitterEvent", 0, "wxSplitterEvent *", 0},{"_p_wxSplitterEvent"},{0}}; | |
24450 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
24451 | static swig_type_info _swigt__p_wxFindReplaceData[] = {{"_p_wxFindReplaceData", 0, "wxFindReplaceData *", 0},{"_p_wxFindReplaceData"},{0}}; | |
24452 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
24453 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
24454 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
24455 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
24456 | static swig_type_info _swigt__p_wxMDIChildFrame[] = {{"_p_wxMDIChildFrame", 0, "wxMDIChildFrame *", 0},{"_p_wxMDIChildFrame"},{0}}; | |
24457 | static swig_type_info _swigt__p_wxColourData[] = {{"_p_wxColourData", 0, "wxColourData *", 0},{"_p_wxColourData"},{0}}; | |
24458 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}}; | |
24459 | static swig_type_info _swigt__p_wxPyWindow[] = {{"_p_wxPyWindow", 0, "wxPyWindow *", 0},{"_p_wxPyWindow"},{0}}; | |
24460 | static swig_type_info _swigt__p_wxSplashScreen[] = {{"_p_wxSplashScreen", 0, "wxSplashScreen *", 0},{"_p_wxSplashScreen"},{0}}; | |
24461 | static swig_type_info _swigt__p_wxFindReplaceDialog[] = {{"_p_wxFindReplaceDialog", 0, "wxFindReplaceDialog *", 0},{"_p_wxFindReplaceDialog"},{0}}; | |
24462 | static swig_type_info _swigt__p_wxProgressDialog[] = {{"_p_wxProgressDialog", 0, "wxProgressDialog *", 0},{"_p_wxProgressDialog"},{0}}; | |
24463 | static swig_type_info _swigt__p_wxMessageDialog[] = {{"_p_wxMessageDialog", 0, "wxMessageDialog *", 0},{"_p_wxMessageDialog"},{0}}; | |
24464 | static swig_type_info _swigt__p_wxTextEntryDialog[] = {{"_p_wxTextEntryDialog", 0, "wxTextEntryDialog *", 0},{"_p_wxTextEntryDialog"},{0}}; | |
24465 | static swig_type_info _swigt__p_wxSingleChoiceDialog[] = {{"_p_wxSingleChoiceDialog", 0, "wxSingleChoiceDialog *", 0},{"_p_wxSingleChoiceDialog"},{0}}; | |
24466 | static swig_type_info _swigt__p_wxMultiChoiceDialog[] = {{"_p_wxMultiChoiceDialog", 0, "wxMultiChoiceDialog *", 0},{"_p_wxMultiChoiceDialog"},{0}}; | |
24467 | static swig_type_info _swigt__p_wxFileDialog[] = {{"_p_wxFileDialog", 0, "wxFileDialog *", 0},{"_p_wxFileDialog"},{0}}; | |
24468 | static swig_type_info _swigt__p_wxPrinter[] = {{"_p_wxPrinter", 0, "wxPrinter *", 0},{"_p_wxPrinter"},{0}}; | |
d14a1e28 RD |
24469 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; |
24470 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxEvtHandler},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxEvtHandler},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxEvtHandler},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxEvtHandler},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxEvtHandler},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxEvtHandler},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxEvtHandler},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxEvtHandler},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxEvtHandler},{"_p_wxPanel", _p_wxPanelTo_p_wxEvtHandler},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxEvtHandler},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxEvtHandler},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxEvtHandler},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxEvtHandler},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxEvtHandler},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxEvtHandler},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxEvtHandler},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxEvtHandler},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxEvtHandler},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxEvtHandler},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxEvtHandler},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxEvtHandler},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxEvtHandler},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxEvtHandler},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxEvtHandler},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxEvtHandler},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxEvtHandler},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxEvtHandler},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxEvtHandler},{"_p_wxFrame", _p_wxFrameTo_p_wxEvtHandler},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxEvtHandler},{"_p_wxDialog", _p_wxDialogTo_p_wxEvtHandler},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxEvtHandler},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxEvtHandler},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxEvtHandler},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxEvtHandler},{0}}; | |
24471 | static swig_type_info _swigt__p_wxCalculateLayoutEvent[] = {{"_p_wxCalculateLayoutEvent", 0, "wxCalculateLayoutEvent *", 0},{"_p_wxCalculateLayoutEvent"},{0}}; | |
24472 | static swig_type_info _swigt__p_wxPyHtmlListBox[] = {{"_p_wxPyHtmlListBox", 0, "wxPyHtmlListBox *", 0},{"_p_wxPyHtmlListBox"},{0}}; | |
24473 | static swig_type_info _swigt__p_wxPyVListBox[] = {{"_p_wxPyVListBox", 0, "wxPyVListBox *", 0},{"_p_wxPyVListBox"},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVListBox},{0}}; | |
24474 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
8edf1c75 | 24475 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
24476 | static swig_type_info _swigt__p_wxMiniFrame[] = {{"_p_wxMiniFrame", 0, "wxMiniFrame *", 0},{"_p_wxMiniFrame"},{0}}; |
24477 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxFrame},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxFrame},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxFrame},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxFrame},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxFrame},{"_p_wxFrame"},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxFrame},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxFrame},{0}}; | |
24478 | static swig_type_info _swigt__p_wxPyPrintout[] = {{"_p_wxPyPrintout", 0, "wxPyPrintout *", 0},{"_p_wxPyPrintout"},{0}}; | |
24479 | static swig_type_info _swigt__p_wxTaskBarIconEvent[] = {{"_p_wxTaskBarIconEvent", 0, "wxTaskBarIconEvent *", 0},{"_p_wxTaskBarIconEvent"},{0}}; | |
24480 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
24481 | static swig_type_info _swigt__p_wxStatusBar[] = {{"_p_wxStatusBar", 0, "wxStatusBar *", 0},{"_p_wxStatusBar"},{0}}; | |
24482 | static swig_type_info _swigt__p_wxMDIParentFrame[] = {{"_p_wxMDIParentFrame", 0, "wxMDIParentFrame *", 0},{"_p_wxMDIParentFrame"},{0}}; | |
24483 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
24484 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxQueryLayoutInfoEvent", _p_wxQueryLayoutInfoEventTo_p_wxObject},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxObject},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxFontData", _p_wxFontDataTo_p_wxObject},{"_p_wxPrintData", _p_wxPrintDataTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxTaskBarIcon", _p_wxTaskBarIconTo_p_wxObject},{"_p_wxLayoutAlgorithm", _p_wxLayoutAlgorithmTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxFindReplaceData", _p_wxFindReplaceDataTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxObject},{"_p_wxColourData", _p_wxColourDataTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxObject},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxObject},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxObject},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxObject},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxObject},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxObject},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxObject},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxObject},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxPrinter", _p_wxPrinterTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxCalculateLayoutEvent", _p_wxCalculateLayoutEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxObject},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxFrame", _p_wxFrameTo_p_wxObject},{"_p_wxPyPrintout", _p_wxPyPrintoutTo_p_wxObject},{"_p_wxTaskBarIconEvent", _p_wxTaskBarIconEventTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxObject},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxObject},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxObject},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxObject},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxObject},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxObject},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxObject},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxObject},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxObject},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxObject},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxObject},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxObject},{"_p_wxPrintPreview", _p_wxPrintPreviewTo_p_wxObject},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxObject},{"_p_wxPanel", _p_wxPanelTo_p_wxObject},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxObject},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxObject},{"_p_wxDialog", _p_wxDialogTo_p_wxObject},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxObject},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxObject},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxObject},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPageSetupDialogData", _p_wxPageSetupDialogDataTo_p_wxObject},{"_p_wxPrintDialogData", _p_wxPrintDialogDataTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}}; | |
24485 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}}; | |
24486 | static swig_type_info _swigt__p_wxMDIClientWindow[] = {{"_p_wxMDIClientWindow", 0, "wxMDIClientWindow *", 0},{"_p_wxMDIClientWindow"},{0}}; | |
24487 | static swig_type_info _swigt__p_wxTipWindow[] = {{"_p_wxTipWindow", 0, "wxTipWindow *", 0},{"_p_wxTipWindow"},{0}}; | |
24488 | static swig_type_info _swigt__p_wxSashLayoutWindow[] = {{"_p_wxSashLayoutWindow", 0, "wxSashLayoutWindow *", 0},{"_p_wxSashLayoutWindow"},{0}}; | |
24489 | static swig_type_info _swigt__p_wxSplitterWindow[] = {{"_p_wxSplitterWindow", 0, "wxSplitterWindow *", 0},{"_p_wxSplitterWindow"},{0}}; | |
8edf1c75 | 24490 | static swig_type_info _swigt__p_wxSplashScreenWindow[] = {{"_p_wxSplashScreenWindow", 0, "wxSplashScreenWindow *", 0},{"_p_wxSplashScreenWindow"},{0}}; |
d14a1e28 RD |
24491 | static swig_type_info _swigt__p_wxPyVScrolledWindow[] = {{"_p_wxPyVScrolledWindow", 0, "wxPyVScrolledWindow *", 0},{"_p_wxPyVScrolledWindow"},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPyVScrolledWindow},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow},{0}}; |
24492 | static swig_type_info _swigt__p_wxPyPopupTransientWindow[] = {{"_p_wxPyPopupTransientWindow", 0, "wxPyPopupTransientWindow *", 0},{"_p_wxPyPopupTransientWindow"},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxPyPopupTransientWindow},{0}}; | |
24493 | static swig_type_info _swigt__p_wxPopupWindow[] = {{"_p_wxPopupWindow", 0, "wxPopupWindow *", 0},{"_p_wxPopupWindow"},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxPopupWindow},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxPopupWindow},{0}}; | |
24494 | static swig_type_info _swigt__p_wxSashWindow[] = {{"_p_wxSashWindow", 0, "wxSashWindow *", 0},{"_p_wxSashWindow"},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxSashWindow},{0}}; | |
24495 | static swig_type_info _swigt__p_wxTopLevelWindow[] = {{"_p_wxTopLevelWindow", 0, "wxTopLevelWindow *", 0},{"_p_wxFrame", _p_wxFrameTo_p_wxTopLevelWindow},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxTopLevelWindow},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxTopLevelWindow},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxTopLevelWindow},{"_p_wxDialog", _p_wxDialogTo_p_wxTopLevelWindow},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxTopLevelWindow},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxTopLevelWindow},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxTopLevelWindow},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxTopLevelWindow},{"_p_wxTopLevelWindow"},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxTopLevelWindow},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxTopLevelWindow},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxTopLevelWindow},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxTopLevelWindow},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxTopLevelWindow},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxTopLevelWindow},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxTopLevelWindow},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxTopLevelWindow},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxTopLevelWindow},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxTopLevelWindow},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxTopLevelWindow},{0}}; | |
24496 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxSplashScreen", _p_wxSplashScreenTo_p_wxWindow},{"_p_wxMiniFrame", _p_wxMiniFrameTo_p_wxWindow},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxWindow},{"_p_wxProgressDialog", _p_wxProgressDialogTo_p_wxWindow},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxWindow},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxWindow},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxWindow},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxWindow},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxWindow},{"_p_wxPanel", _p_wxPanelTo_p_wxWindow},{"_p_wxStatusBar", _p_wxStatusBarTo_p_wxWindow},{"_p_wxTopLevelWindow", _p_wxTopLevelWindowTo_p_wxWindow},{"_p_wxSplashScreenWindow", _p_wxSplashScreenWindowTo_p_wxWindow},{"_p_wxSplitterWindow", _p_wxSplitterWindowTo_p_wxWindow},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxWindow},{"_p_wxSashWindow", _p_wxSashWindowTo_p_wxWindow},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxWindow},{"_p_wxPopupWindow", _p_wxPopupWindowTo_p_wxWindow},{"_p_wxPyPopupTransientWindow", _p_wxPyPopupTransientWindowTo_p_wxWindow},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxWindow},{"_p_wxMDIClientWindow", _p_wxMDIClientWindowTo_p_wxWindow},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxWindow},{"_p_wxPreviewFrame", _p_wxPreviewFrameTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxMDIChildFrame", _p_wxMDIChildFrameTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxWindow},{"_p_wxPyWindow", _p_wxPyWindowTo_p_wxWindow},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxWindow},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxWindow},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxWindow},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxWindow},{"_p_wxFrame", _p_wxFrameTo_p_wxWindow},{"_p_wxDialog", _p_wxDialogTo_p_wxWindow},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxWindow},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxWindow},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxWindow},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxWindow},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxWindow},{"_p_wxMDIParentFrame", _p_wxMDIParentFrameTo_p_wxWindow},{0}}; | |
24497 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0},{"_p_wxScrolledWindow"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow},{0}}; | |
24498 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; | |
24499 | static swig_type_info _swigt__p_wxPrintPreview[] = {{"_p_wxPrintPreview", 0, "wxPrintPreview *", 0},{"_p_wxPrintPreview"},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxPrintPreview},{0}}; | |
24500 | static swig_type_info _swigt__p_wxSashEvent[] = {{"_p_wxSashEvent", 0, "wxSashEvent *", 0},{"_p_wxSashEvent"},{0}}; | |
24501 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
24502 | static swig_type_info _swigt__p_wxPyPrintPreview[] = {{"_p_wxPyPrintPreview", 0, "wxPyPrintPreview *", 0},{"_p_wxPyPrintPreview"},{0}}; | |
41f1cec7 | 24503 | static swig_type_info _swigt__p_wxPageSetupDialog[] = {{"_p_wxPageSetupDialog", 0, "wxPageSetupDialog *", 0},{"_p_wxPageSetupDialog"},{0}}; |
d14a1e28 RD |
24504 | static swig_type_info _swigt__p_wxFontDialog[] = {{"_p_wxFontDialog", 0, "wxFontDialog *", 0},{"_p_wxFontDialog"},{0}}; |
24505 | static swig_type_info _swigt__p_wxDirDialog[] = {{"_p_wxDirDialog", 0, "wxDirDialog *", 0},{"_p_wxDirDialog"},{0}}; | |
24506 | static swig_type_info _swigt__p_wxColourDialog[] = {{"_p_wxColourDialog", 0, "wxColourDialog *", 0},{"_p_wxColourDialog"},{0}}; | |
24507 | static swig_type_info _swigt__p_wxDialog[] = {{"_p_wxDialog", 0, "wxDialog *", 0},{"_p_wxDialog"},{"_p_wxColourDialog", _p_wxColourDialogTo_p_wxDialog},{"_p_wxDirDialog", _p_wxDirDialogTo_p_wxDialog},{"_p_wxFontDialog", _p_wxFontDialogTo_p_wxDialog},{"_p_wxPageSetupDialog", _p_wxPageSetupDialogTo_p_wxDialog},{"_p_wxPrintDialog", _p_wxPrintDialogTo_p_wxDialog},{"_p_wxFileDialog", _p_wxFileDialogTo_p_wxDialog},{"_p_wxMultiChoiceDialog", _p_wxMultiChoiceDialogTo_p_wxDialog},{"_p_wxSingleChoiceDialog", _p_wxSingleChoiceDialogTo_p_wxDialog},{"_p_wxTextEntryDialog", _p_wxTextEntryDialogTo_p_wxDialog},{"_p_wxMessageDialog", _p_wxMessageDialogTo_p_wxDialog},{"_p_wxFindReplaceDialog", _p_wxFindReplaceDialogTo_p_wxDialog},{0}}; | |
24508 | static swig_type_info _swigt__p_wxPanel[] = {{"_p_wxPanel", 0, "wxPanel *", 0},{"_p_wxPanel"},{"_p_wxScrolledWindow", _p_wxScrolledWindowTo_p_wxPanel},{"_p_wxPyVScrolledWindow", _p_wxPyVScrolledWindowTo_p_wxPanel},{"_p_wxPyVListBox", _p_wxPyVListBoxTo_p_wxPanel},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPanel},{"_p_wxPyPanel", _p_wxPyPanelTo_p_wxPanel},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxPanel},{"_p_wxPreviewControlBar", _p_wxPreviewControlBarTo_p_wxPanel},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPanel},{0}}; | |
d14a1e28 RD |
24509 | static swig_type_info _swigt__p_wxPrintDialog[] = {{"_p_wxPrintDialog", 0, "wxPrintDialog *", 0},{"_p_wxPrintDialog"},{0}}; |
24510 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
24511 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxFindDialogEvent", _p_wxFindDialogEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{"_p_wxSashEvent", _p_wxSashEventTo_p_wxCommandEvent},{0}}; | |
d14a1e28 RD |
24512 | static swig_type_info _swigt__p_wxPreviewControlBar[] = {{"_p_wxPreviewControlBar", 0, "wxPreviewControlBar *", 0},{"_p_wxPreviewControlBar"},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPreviewControlBar},{0}}; |
24513 | static swig_type_info _swigt__p_wxPyPreviewControlBar[] = {{"_p_wxPyPreviewControlBar", 0, "wxPyPreviewControlBar *", 0},{"_p_wxPyPreviewControlBar"},{0}}; | |
24514 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
24515 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
d03fd34d | 24516 | static swig_type_info _swigt__p_wxPageSetupDialogData[] = {{"_p_wxPageSetupDialogData", 0, "wxPageSetupDialogData *", 0},{"_p_wxPageSetupDialogData"},{0}}; |
8edf1c75 | 24517 | static swig_type_info _swigt__p_wxPrintDialogData[] = {{"_p_wxPrintDialogData", 0, "wxPrintDialogData *", 0},{"_p_wxPrintDialogData"},{0}}; |
d14a1e28 RD |
24518 | |
24519 | static swig_type_info *swig_types_initial[] = { | |
24520 | _swigt__p_wxQueryLayoutInfoEvent, | |
24521 | _swigt__p_wxPreviewFrame, | |
24522 | _swigt__p_wxPyPreviewFrame, | |
d14a1e28 RD |
24523 | _swigt__p_wxPyPanel, |
24524 | _swigt__p_wxMenu, | |
24525 | _swigt__p_wxPrintData, | |
24526 | _swigt__p_wxFontData, | |
24527 | _swigt__p_wxEvent, | |
24528 | _swigt__p_wxTaskBarIcon, | |
24529 | _swigt__p_wxIconBundle, | |
24530 | _swigt__p_wxLayoutAlgorithm, | |
24531 | _swigt__p_wxFindDialogEvent, | |
24532 | _swigt__p_wxPreviewCanvas, | |
24533 | _swigt__p_wxFont, | |
24534 | _swigt__p_wxSplitterEvent, | |
24535 | _swigt__p_wxRegion, | |
24536 | _swigt__p_wxFindReplaceData, | |
24537 | _swigt__p_int, | |
24538 | _swigt__p_wxSize, | |
24539 | _swigt__p_wxDC, | |
24540 | _swigt__p_wxIcon, | |
24541 | _swigt__p_wxMDIChildFrame, | |
24542 | _swigt__p_wxColourData, | |
24543 | _swigt__p_wxNotifyEvent, | |
24544 | _swigt__p_wxPyWindow, | |
24545 | _swigt__p_wxSplashScreen, | |
24546 | _swigt__p_wxFindReplaceDialog, | |
24547 | _swigt__p_wxProgressDialog, | |
24548 | _swigt__p_wxMessageDialog, | |
24549 | _swigt__p_wxTextEntryDialog, | |
24550 | _swigt__p_wxSingleChoiceDialog, | |
24551 | _swigt__p_wxMultiChoiceDialog, | |
24552 | _swigt__p_wxFileDialog, | |
24553 | _swigt__p_wxPrinter, | |
d14a1e28 RD |
24554 | _swigt__p_wxArrayInt, |
24555 | _swigt__p_wxEvtHandler, | |
24556 | _swigt__p_wxCalculateLayoutEvent, | |
24557 | _swigt__p_wxPyHtmlListBox, | |
24558 | _swigt__p_wxPyVListBox, | |
24559 | _swigt__p_wxRect, | |
8edf1c75 | 24560 | _swigt__p_char, |
d14a1e28 RD |
24561 | _swigt__p_wxMiniFrame, |
24562 | _swigt__p_wxFrame, | |
24563 | _swigt__p_wxPyPrintout, | |
24564 | _swigt__p_wxTaskBarIconEvent, | |
24565 | _swigt__p_wxScrollWinEvent, | |
24566 | _swigt__p_wxStatusBar, | |
24567 | _swigt__p_wxMDIParentFrame, | |
24568 | _swigt__p_wxPoint, | |
24569 | _swigt__p_wxObject, | |
24570 | _swigt__p_unsigned_long, | |
24571 | _swigt__p_wxMDIClientWindow, | |
24572 | _swigt__p_wxTipWindow, | |
24573 | _swigt__p_wxSashLayoutWindow, | |
24574 | _swigt__p_wxSplitterWindow, | |
8edf1c75 | 24575 | _swigt__p_wxSplashScreenWindow, |
d14a1e28 RD |
24576 | _swigt__p_wxPyVScrolledWindow, |
24577 | _swigt__p_wxPyPopupTransientWindow, | |
24578 | _swigt__p_wxPopupWindow, | |
24579 | _swigt__p_wxSashWindow, | |
24580 | _swigt__p_wxTopLevelWindow, | |
24581 | _swigt__p_wxWindow, | |
24582 | _swigt__p_wxScrolledWindow, | |
24583 | _swigt__p_wxMenuBar, | |
24584 | _swigt__p_wxPrintPreview, | |
24585 | _swigt__p_wxSashEvent, | |
24586 | _swigt__p_wxString, | |
24587 | _swigt__p_wxPyPrintPreview, | |
41f1cec7 | 24588 | _swigt__p_wxPageSetupDialog, |
d14a1e28 RD |
24589 | _swigt__p_wxFontDialog, |
24590 | _swigt__p_wxDirDialog, | |
24591 | _swigt__p_wxColourDialog, | |
24592 | _swigt__p_wxDialog, | |
24593 | _swigt__p_wxPanel, | |
d14a1e28 RD |
24594 | _swigt__p_wxPrintDialog, |
24595 | _swigt__p_wxBitmap, | |
24596 | _swigt__p_wxCommandEvent, | |
d14a1e28 RD |
24597 | _swigt__p_wxPreviewControlBar, |
24598 | _swigt__p_wxPyPreviewControlBar, | |
24599 | _swigt__p_wxColour, | |
24600 | _swigt__p_wxToolBar, | |
d03fd34d | 24601 | _swigt__p_wxPageSetupDialogData, |
8edf1c75 | 24602 | _swigt__p_wxPrintDialogData, |
d14a1e28 RD |
24603 | 0 |
24604 | }; | |
24605 | ||
24606 | ||
24607 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
24608 | ||
24609 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
24610 | {0}}; |
24611 | ||
24612 | #ifdef __cplusplus | |
24613 | } | |
24614 | #endif | |
24615 | ||
24616 | #ifdef __cplusplus | |
24617 | extern "C" | |
24618 | #endif | |
24619 | SWIGEXPORT(void) SWIG_init(void) { | |
24620 | static PyObject *SWIG_globals = 0; | |
24621 | static int typeinit = 0; | |
24622 | PyObject *m, *d; | |
24623 | int i; | |
24624 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
24625 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
24626 | d = PyModule_GetDict(m); | |
24627 | ||
24628 | if (!typeinit) { | |
24629 | for (i = 0; swig_types_initial[i]; i++) { | |
24630 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
24631 | } | |
24632 | typeinit = 1; | |
24633 | } | |
24634 | SWIG_InstallConstants(d,swig_const_table); | |
24635 | ||
d03fd34d RD |
24636 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
24637 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
24638 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
24639 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
24640 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
8edf1c75 RD |
24641 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOMENUBAR)); |
24642 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
24643 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
24644 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
24645 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
24646 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_PyObj_FromInt((int)wxFULLSCREEN_ALL)); | |
24647 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_PyObj_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
24648 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_PyObj_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
24649 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_PyObj_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
24650 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_PyObj_FromInt((int)wxSPLASH_NO_CENTRE)); | |
24651 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_PyObj_FromInt((int)wxSPLASH_TIMEOUT)); | |
24652 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_PyObj_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
d03fd34d | 24653 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); |
8edf1c75 RD |
24654 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_PyObj_FromInt((int)wxSP_NOBORDER)); |
24655 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_PyObj_FromInt((int)wxSP_NOSASH)); | |
24656 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_PyObj_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
24657 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_PyObj_FromInt((int)wxSP_LIVE_UPDATE)); | |
24658 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_PyObj_FromInt((int)wxSP_3DSASH)); | |
24659 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_PyObj_FromInt((int)wxSP_3DBORDER)); | |
24660 | PyDict_SetItemString(d,"SP_BORDER", SWIG_PyObj_FromInt((int)wxSP_BORDER)); | |
24661 | PyDict_SetItemString(d,"SP_3D", SWIG_PyObj_FromInt((int)wxSP_3D)); | |
24662 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSPLIT_HORIZONTAL)); | |
24663 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_PyObj_FromInt((int)wxSPLIT_VERTICAL)); | |
24664 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_PyObj_FromInt((int)wxSPLIT_DRAG_NONE)); | |
24665 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_PyObj_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
24666 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_PyObj_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
d14a1e28 RD |
24667 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); |
24668 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
24669 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
24670 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
d03fd34d RD |
24671 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); |
24672 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
8edf1c75 RD |
24673 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_PyObj_FromInt((int)wxSASH_DRAG_NONE)); |
24674 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_PyObj_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
24675 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_PyObj_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
24676 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_PyObj_FromInt((int)wxSW_NOBORDER)); | |
24677 | PyDict_SetItemString(d,"SW_BORDER", SWIG_PyObj_FromInt((int)wxSW_BORDER)); | |
24678 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_PyObj_FromInt((int)wxSW_3DSASH)); | |
24679 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_PyObj_FromInt((int)wxSW_3DBORDER)); | |
24680 | PyDict_SetItemString(d,"SW_3D", SWIG_PyObj_FromInt((int)wxSW_3D)); | |
24681 | PyDict_SetItemString(d,"SASH_TOP", SWIG_PyObj_FromInt((int)wxSASH_TOP)); | |
24682 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_PyObj_FromInt((int)wxSASH_RIGHT)); | |
24683 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_PyObj_FromInt((int)wxSASH_BOTTOM)); | |
24684 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_PyObj_FromInt((int)wxSASH_LEFT)); | |
24685 | PyDict_SetItemString(d,"SASH_NONE", SWIG_PyObj_FromInt((int)wxSASH_NONE)); | |
24686 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_PyObj_FromInt((int)wxSASH_STATUS_OK)); | |
24687 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_PyObj_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
d14a1e28 | 24688 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); |
8edf1c75 RD |
24689 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_PyObj_FromInt((int)wxLAYOUT_HORIZONTAL)); |
24690 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_PyObj_FromInt((int)wxLAYOUT_VERTICAL)); | |
24691 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_PyObj_FromInt((int)wxLAYOUT_NONE)); | |
24692 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_PyObj_FromInt((int)wxLAYOUT_TOP)); | |
24693 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_PyObj_FromInt((int)wxLAYOUT_LEFT)); | |
24694 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_PyObj_FromInt((int)wxLAYOUT_RIGHT)); | |
24695 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_PyObj_FromInt((int)wxLAYOUT_BOTTOM)); | |
24696 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_PyObj_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
24697 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_PyObj_FromInt((int)wxLAYOUT_LENGTH_X)); | |
24698 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_PyObj_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
24699 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_PyObj_FromInt((int)wxLAYOUT_QUERY)); | |
d14a1e28 RD |
24700 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); |
24701 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
d03fd34d | 24702 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); |
d14a1e28 RD |
24703 | |
24704 | // Map renamed classes back to their common name for OOR | |
24705 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
24706 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
24707 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
24708 | ||
24709 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
24710 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
24711 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
24712 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
24713 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
24714 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
24715 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
d03fd34d RD |
24716 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
24717 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
24718 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
24719 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
24720 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
24721 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
8edf1c75 RD |
24722 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_PyObj_FromInt((int)wxCHOICEDLG_STYLE)); |
24723 | PyDict_SetItemString(d,"FR_DOWN", SWIG_PyObj_FromInt((int)wxFR_DOWN)); | |
24724 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_PyObj_FromInt((int)wxFR_WHOLEWORD)); | |
24725 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_PyObj_FromInt((int)wxFR_MATCHCASE)); | |
24726 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_PyObj_FromInt((int)wxFR_REPLACEDIALOG)); | |
24727 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_PyObj_FromInt((int)wxFR_NOUPDOWN)); | |
24728 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_PyObj_FromInt((int)wxFR_NOMATCHCASE)); | |
24729 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_PyObj_FromInt((int)wxFR_NOWHOLEWORD)); | |
d14a1e28 RD |
24730 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); |
24731 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
24732 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
24733 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
24734 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
8edf1c75 RD |
24735 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_PyObj_FromInt((int)4001)); |
24736 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_PyObj_FromInt((int)4001)); | |
24737 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_PyObj_FromInt((int)4002)); | |
24738 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_PyObj_FromInt((int)4003)); | |
24739 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_PyObj_FromInt((int)4004)); | |
24740 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_PyObj_FromInt((int)4005)); | |
24741 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_PyObj_FromInt((int)4100)); | |
24742 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_PyObj_FromInt((int)4600)); | |
d03fd34d RD |
24743 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); |
24744 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
8edf1c75 RD |
24745 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_PyObj_FromInt((int)wxPRINT_MODE_NONE)); |
24746 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_PyObj_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
24747 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_PyObj_FromInt((int)wxPRINT_MODE_FILE)); | |
24748 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_PyObj_FromInt((int)wxPRINT_MODE_PRINTER)); | |
24749 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_PyObj_FromInt((int)wxPRINTER_NO_ERROR)); | |
24750 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_PyObj_FromInt((int)wxPRINTER_CANCELLED)); | |
24751 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_PyObj_FromInt((int)wxPRINTER_ERROR)); | |
24752 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_PyObj_FromInt((int)wxPREVIEW_PRINT)); | |
24753 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_PyObj_FromInt((int)wxPREVIEW_PREVIOUS)); | |
24754 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_PyObj_FromInt((int)wxPREVIEW_NEXT)); | |
24755 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_PyObj_FromInt((int)wxPREVIEW_ZOOM)); | |
24756 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_PyObj_FromInt((int)wxPREVIEW_FIRST)); | |
24757 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_PyObj_FromInt((int)wxPREVIEW_LAST)); | |
24758 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_PyObj_FromInt((int)wxPREVIEW_GOTO)); | |
24759 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_PyObj_FromInt((int)wxPREVIEW_DEFAULT)); | |
24760 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_PyObj_FromInt((int)wxID_PREVIEW_CLOSE)); | |
24761 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_PyObj_FromInt((int)wxID_PREVIEW_NEXT)); | |
24762 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_PyObj_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
24763 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_PyObj_FromInt((int)wxID_PREVIEW_PRINT)); | |
24764 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_PyObj_FromInt((int)wxID_PREVIEW_ZOOM)); | |
24765 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_PyObj_FromInt((int)wxID_PREVIEW_FIRST)); | |
24766 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_PyObj_FromInt((int)wxID_PREVIEW_LAST)); | |
24767 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_PyObj_FromInt((int)wxID_PREVIEW_GOTO)); | |
d14a1e28 RD |
24768 | |
24769 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
24770 | ||
24771 | } | |
24772 |