]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 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 | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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 | ||
cc6dd355 | 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) | |
a41e16b6 | 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 | ||
994141e6 | 187 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 188 | |
cc6dd355 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 | |
994141e6 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 | ||
9d1d5697 | 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] | |
1e0c8722 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] | |
994141e6 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_wxPyVScrolledWindow swig_types[55] | |
289 | #define SWIGTYPE_p_wxPyPopupTransientWindow swig_types[56] | |
290 | #define SWIGTYPE_p_wxPopupWindow swig_types[57] | |
291 | #define SWIGTYPE_p_wxSashWindow swig_types[58] | |
292 | #define SWIGTYPE_p_wxTopLevelWindow swig_types[59] | |
293 | #define SWIGTYPE_p_wxWindow swig_types[60] | |
294 | #define SWIGTYPE_p_wxScrolledWindow swig_types[61] | |
295 | #define SWIGTYPE_p_wxSplashScreenWindow 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] | |
1e0c8722 | 314 | #define SWIGTYPE_p_wxPageSetupDialogData swig_types[81] |
994141e6 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 | ||
994141e6 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 | |
b2dc1044 RD |
370 | static const wxString wxPyEmptyString(wxEmptyString); |
371 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
d14a1e28 RD |
372 | |
373 | ||
374 | ||
994141e6 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 | ||
994141e6 RD |
390 | SWIGSTATIC(bool) |
391 | SWIG_PyObj_AsBool(PyObject *obj) | |
392 | { | |
393 | return PyObject_IsTrue(obj) ? true : false; | |
394 | } | |
395 | ||
396 | ||
d14a1e28 RD |
397 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
398 | PyObject* o2; | |
399 | PyObject* o3; | |
400 | ||
401 | if (!target) { | |
402 | target = o; | |
403 | } else if (target == Py_None) { | |
404 | Py_DECREF(Py_None); | |
405 | target = o; | |
406 | } else { | |
407 | if (!PyTuple_Check(target)) { | |
408 | o2 = target; | |
409 | target = PyTuple_New(1); | |
410 | PyTuple_SetItem(target, 0, o2); | |
411 | } | |
412 | o3 = PyTuple_New(1); | |
413 | PyTuple_SetItem(o3, 0, o); | |
414 | ||
415 | o2 = target; | |
416 | target = PySequence_Concat(o2, o3); | |
417 | Py_DECREF(o2); | |
418 | Py_DECREF(o3); | |
419 | } | |
420 | return target; | |
421 | } | |
422 | ||
994141e6 RD |
423 | |
424 | SWIGSTATIC(double) | |
425 | SWIG_PyObj_AsDouble(PyObject *obj) | |
426 | { | |
427 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
428 | #if HAVE_LONG_LONG | |
429 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
430 | #else | |
431 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj)); | |
432 | #endif | |
433 | if (PyErr_Occurred()) { | |
434 | PyErr_Clear(); | |
435 | PyErr_SetString(PyExc_TypeError, "a double is expected"); | |
436 | } | |
437 | } | |
438 | ||
b2dc1044 RD |
439 | static const wxString wxPyFrameNameStr(wxFrameNameStr); |
440 | static const wxString wxPyDialogNameStr(wxDialogNameStr); | |
441 | static const wxString wxPyStatusLineNameStr(wxStatusLineNameStr); | |
442 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
d14a1e28 RD |
443 | bool wxDialog_IsModalShowing(wxDialog *self){ |
444 | ||
445 | return self->m_modalShowing; | |
446 | ||
447 | ||
448 | ||
449 | } | |
450 | ||
451 | ||
7722248d RD |
452 | wxRect wxStatusBar_GetFieldRect(wxStatusBar *self,int i){ |
453 | wxRect r; | |
454 | self->GetFieldRect(i, r); | |
455 | return r; | |
456 | } | |
33b885b9 RD |
457 | static const wxString wxPySplitterNameStr(wxT("splitter")); |
458 | static const wxString wxPySashNameStr(wxT("sashWindow")); | |
459 | static const wxString wxPySashLayoutNameStr(wxT("layoutWindow")); | |
d14a1e28 RD |
460 | |
461 | #include <wx/popupwin.h> | |
462 | ||
463 | ||
464 | class wxPyPopupTransientWindow : public wxPopupTransientWindow | |
465 | { | |
466 | public: | |
467 | wxPyPopupTransientWindow() : wxPopupTransientWindow() {} | |
468 | wxPyPopupTransientWindow(wxWindow* parent, int style = wxBORDER_NONE) | |
469 | : wxPopupTransientWindow(parent, style) {} | |
470 | ||
471 | DEC_PYCALLBACK_BOOL_ME(ProcessLeftDown); | |
472 | DEC_PYCALLBACK__(OnDismiss); | |
473 | DEC_PYCALLBACK_BOOL_(CanDismiss); | |
474 | PYPRIVATE; | |
475 | }; | |
476 | ||
477 | ||
478 | IMP_PYCALLBACK_BOOL_ME(wxPyPopupTransientWindow, wxPopupTransientWindow, ProcessLeftDown); | |
479 | IMP_PYCALLBACK__(wxPyPopupTransientWindow, wxPopupTransientWindow, OnDismiss); | |
480 | IMP_PYCALLBACK_BOOL_(wxPyPopupTransientWindow, wxPopupTransientWindow, CanDismiss); | |
481 | ||
482 | ||
483 | #include <wx/tipwin.h> | |
484 | ||
fd3f2efe RD |
485 | wxTipWindow *new_wxTipWindow(wxWindow *parent,wxString const &text,int maxLength,wxRect *rectBound){ |
486 | return new wxTipWindow(parent, text, maxLength, NULL, rectBound); | |
d14a1e28 RD |
487 | } |
488 | ||
489 | #include <wx/tipwin.h> | |
490 | ||
491 | ||
492 | #include <wx/vscroll.h> | |
493 | ||
494 | ||
495 | class wxPyVScrolledWindow : public wxVScrolledWindow | |
496 | { | |
497 | DECLARE_ABSTRACT_CLASS(wxPyVScrolledWindow); | |
498 | public: | |
499 | wxPyVScrolledWindow() : wxVScrolledWindow() {} | |
500 | ||
501 | wxPyVScrolledWindow(wxWindow *parent, | |
502 | wxWindowID id = wxID_ANY, | |
503 | const wxPoint& pos = wxDefaultPosition, | |
504 | const wxSize& size = wxDefaultSize, | |
505 | long style = 0, | |
506 | const wxString& name = wxPyPanelNameStr) | |
507 | : wxVScrolledWindow(parent, id, pos, size, style, name) | |
508 | {} | |
509 | ||
510 | // Overridable virtuals | |
511 | ||
512 | // this function must be overridden in the derived class and it should | |
513 | // return the height of the given line in pixels | |
514 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnGetLineHeight); | |
515 | ||
516 | ||
517 | // this function doesn't have to be overridden but it may be useful to do | |
518 | // it if calculating the lines heights is a relatively expensive operation | |
519 | // as it gives the user code a possibility to calculate several of them at | |
520 | // once | |
521 | // | |
522 | // OnGetLinesHint() is normally called just before OnGetLineHeight() but you | |
523 | // shouldn't rely on the latter being called for all lines in the interval | |
524 | // specified here. It is also possible that OnGetLineHeight() will be | |
525 | // called for the lines outside of this interval, so this is really just a | |
526 | // hint, not a promise. | |
527 | // | |
528 | // finally note that lineMin is inclusive, while lineMax is exclusive, as | |
529 | // usual | |
530 | DEC_PYCALLBACK_VOID_SIZETSIZET_const(OnGetLinesHint); | |
531 | ||
532 | ||
533 | // when the number of lines changes, we try to estimate the total height | |
534 | // of all lines which is a rather expensive operation in terms of lines | |
535 | // access, so if the user code may estimate the average height | |
536 | // better/faster than we do, it should override this function to implement | |
537 | // its own logic | |
538 | // | |
539 | // this function should return the best guess for the total height it may | |
540 | // make | |
541 | DEC_PYCALLBACK_COORD_const(EstimateTotalHeight); | |
542 | ||
543 | ||
544 | // Also expose some other interesting protected methods | |
545 | ||
546 | ||
547 | // find the index of the line we need to show at the top of the window such | |
548 | // that the last (fully or partially) visible line is the given one | |
e811c8ce | 549 | size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = False) |
d14a1e28 RD |
550 | { return wxVScrolledWindow::FindFirstFromBottom(lineLast, fullyVisible); } |
551 | ||
552 | // get the total height of the lines between lineMin (inclusive) and | |
553 | // lineMax (exclusive) | |
554 | wxCoord GetLinesHeight(size_t lineMin, size_t lineMax) const | |
555 | { return wxVScrolledWindow::GetLinesHeight(lineMin, lineMax); } | |
556 | ||
557 | ||
558 | PYPRIVATE; | |
559 | }; | |
560 | ||
561 | IMPLEMENT_ABSTRACT_CLASS(wxPyVScrolledWindow, wxVScrolledWindow); | |
562 | ||
563 | IMP_PYCALLBACK_COORD_SIZET_constpure(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLineHeight); | |
564 | IMP_PYCALLBACK_VOID_SIZETSIZET_const(wxPyVScrolledWindow, wxVScrolledWindow, OnGetLinesHint); | |
565 | IMP_PYCALLBACK_COORD_const (wxPyVScrolledWindow, wxVScrolledWindow, EstimateTotalHeight); | |
566 | ||
567 | ||
994141e6 RD |
568 | SWIGSTATIC(PyObject* ) |
569 | SWIG_PyObj_FromUnsignedLong(unsigned long value) | |
570 | { | |
571 | return (value > (unsigned long)(LONG_MAX)) ? | |
572 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
573 | } | |
574 | ||
575 | ||
d14a1e28 | 576 | #include <wx/vlbox.h> |
d14a1e28 | 577 | |
b2dc1044 | 578 | static const wxString wxPyVListBoxNameStr(wxVListBoxNameStr); |
d14a1e28 RD |
579 | |
580 | class wxPyVListBox : public wxVListBox | |
581 | { | |
582 | DECLARE_ABSTRACT_CLASS(wxPyVListBox); | |
583 | public: | |
584 | wxPyVListBox() : wxVListBox() {} | |
585 | ||
586 | wxPyVListBox(wxWindow *parent, | |
587 | wxWindowID id = wxID_ANY, | |
588 | const wxPoint& pos = wxDefaultPosition, | |
589 | const wxSize& size = wxDefaultSize, | |
590 | long style = 0, | |
591 | const wxString& name = wxPyVListBoxNameStr) | |
592 | : wxVListBox(parent, id, pos, size, style, name) | |
593 | {} | |
594 | ||
595 | // Overridable virtuals | |
596 | ||
597 | // the derived class must implement this function to actually draw the item | |
598 | // with the given index on the provided DC | |
599 | // virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const = 0; | |
600 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawItem); | |
601 | ||
602 | ||
603 | // the derived class must implement this method to return the height of the | |
604 | // specified item | |
605 | // virtual wxCoord OnMeasureItem(size_t n) const = 0; | |
606 | DEC_PYCALLBACK_COORD_SIZET_constpure(OnMeasureItem); | |
607 | ||
608 | ||
609 | // this method may be used to draw separators between the lines; note that | |
610 | // the rectangle may be modified, typically to deflate it a bit before | |
611 | // passing to OnDrawItem() | |
612 | // | |
613 | // the base class version doesn't do anything | |
614 | // virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const; | |
615 | DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator); | |
616 | ||
617 | ||
618 | // this method is used to draw the items background and, maybe, a border | |
619 | // around it | |
620 | // | |
621 | // the base class version implements a reasonable default behaviour which | |
622 | // consists in drawing the selected item with the standard background | |
623 | // colour and drawing a border around the item if it is either selected or | |
624 | // current | |
625 | // virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; | |
626 | DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground); | |
627 | ||
628 | ||
629 | PYPRIVATE; | |
630 | }; | |
631 | ||
632 | IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox); | |
633 | ||
634 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem); | |
635 | IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem); | |
636 | IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator); | |
637 | IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground); | |
638 | ||
639 | ||
640 | ||
641 | #include <wx/htmllbox.h> | |
642 | ||
643 | ||
644 | class wxPyHtmlListBox : public wxHtmlListBox | |
645 | { | |
646 | DECLARE_ABSTRACT_CLASS(wxPyHtmlListBox); | |
647 | public: | |
648 | wxPyHtmlListBox() : wxHtmlListBox() {} | |
649 | ||
650 | wxPyHtmlListBox(wxWindow *parent, | |
651 | wxWindowID id = wxID_ANY, | |
652 | const wxPoint& pos = wxDefaultPosition, | |
653 | const wxSize& size = wxDefaultSize, | |
654 | long style = 0, | |
655 | const wxString& name = wxPyVListBoxNameStr) | |
656 | : wxHtmlListBox(parent, id, pos, size, style, name) | |
657 | {} | |
658 | ||
659 | // Overridable virtuals | |
660 | ||
661 | // this method must be implemented in the derived class and should return | |
662 | // the body (i.e. without <html>) of the HTML for the given item | |
663 | DEC_PYCALLBACK_STRING_SIZET_pure(OnGetItem); | |
664 | ||
665 | // this function may be overridden to decorate HTML returned by OnGetItem() | |
666 | DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup); | |
667 | ||
668 | // TODO: | |
669 | // // this method allows to customize the selection appearance: it may be used | |
670 | // // to specify the colour of the text which normally has the given colour | |
671 | // // colFg when it is inside the selection | |
672 | // // | |
673 | // // by default, the original colour is not used at all and all text has the | |
674 | // // same (default for this system) colour inside selection | |
675 | // virtual wxColour GetSelectedTextColour(const wxColour& colFg) const; | |
676 | ||
677 | // // this is the same as GetSelectedTextColour() but allows to customize the | |
678 | // // background colour -- this is even more rarely used as you can change it | |
679 | // // globally using SetSelectionBackground() | |
680 | // virtual wxColour GetSelectedTextBgColour(const wxColour& colBg) const; | |
681 | ||
682 | ||
683 | PYPRIVATE; | |
684 | }; | |
685 | ||
686 | ||
687 | IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox) | |
688 | ||
689 | IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem); | |
690 | IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup); | |
691 | ||
692 | ||
693 | ||
694 | ||
695 | ||
696 | #ifdef __WXMAC__ | |
697 | // implement dummy classes and such for wxMac | |
698 | ||
699 | class wxTaskBarIcon : public wxEvtHandler | |
700 | { | |
701 | public: | |
39f61e25 | 702 | wxTaskBarIcon() { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
703 | }; |
704 | ||
705 | ||
706 | class wxTaskBarIconEvent : public wxEvent | |
707 | { | |
708 | public: | |
709 | wxTaskBarIconEvent(wxEventType, wxTaskBarIcon *) | |
39f61e25 | 710 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
711 | virtual wxEvent* Clone() const { return NULL; } |
712 | }; | |
713 | ||
714 | enum { | |
715 | wxEVT_TASKBAR_MOVE = 0, | |
716 | wxEVT_TASKBAR_LEFT_DOWN = 0, | |
717 | wxEVT_TASKBAR_LEFT_UP = 0, | |
718 | wxEVT_TASKBAR_RIGHT_DOWN = 0, | |
719 | wxEVT_TASKBAR_RIGHT_UP = 0, | |
720 | wxEVT_TASKBAR_LEFT_DCLICK = 0, | |
721 | wxEVT_TASKBAR_RIGHT_DCLICK = 0, | |
722 | }; | |
723 | #endif | |
724 | ||
b2dc1044 RD |
725 | static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr); |
726 | static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr); | |
727 | static const wxString wxPyDirDialogNameStr(wxDirDialogNameStr); | |
728 | static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr); | |
729 | static const wxString wxPyGetTextFromUserPromptStr(wxGetTextFromUserPromptStr); | |
730 | static const wxString wxPyMessageBoxCaptionStr(wxMessageBoxCaptionStr); | |
d14a1e28 RD |
731 | PyObject *wxFileDialog_GetFilenames(wxFileDialog *self){ |
732 | wxArrayString arr; | |
733 | self->GetFilenames(arr); | |
734 | return wxArrayString2PyList_helper(arr); | |
735 | } | |
736 | PyObject *wxFileDialog_GetPaths(wxFileDialog *self){ | |
737 | wxArrayString arr; | |
738 | self->GetPaths(arr); | |
739 | return wxArrayString2PyList_helper(arr); | |
740 | } | |
741 | PyObject *wxMultiChoiceDialog_GetSelections(wxMultiChoiceDialog *self){ | |
742 | return wxArrayInt2PyList_helper(self->GetSelections()); | |
743 | } | |
744 | wxSingleChoiceDialog *new_wxSingleChoiceDialog(wxWindow *parent,wxString const &message,wxString const &caption,int choices,wxString *choices_array,long style,wxPoint const &pos){ | |
745 | return new wxSingleChoiceDialog(parent, message, caption, | |
746 | choices, choices_array, NULL, style, pos); | |
747 | } | |
748 | ||
749 | #include <wx/mdi.h> | |
750 | ||
751 | // C++ version of Python aware wxWindow | |
752 | class wxPyWindow : public wxWindow | |
753 | { | |
754 | DECLARE_DYNAMIC_CLASS(wxPyWindow) | |
755 | public: | |
756 | wxPyWindow() : wxWindow() {} | |
757 | wxPyWindow(wxWindow* parent, const wxWindowID id, | |
758 | const wxPoint& pos = wxDefaultPosition, | |
759 | const wxSize& size = wxDefaultSize, | |
760 | long style = 0, | |
761 | const wxString& name = wxPyPanelNameStr) | |
762 | : wxWindow(parent, id, pos, size, style, name) {} | |
763 | ||
764 | ||
765 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
766 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
767 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
768 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
769 | ||
770 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
771 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
772 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
773 | ||
774 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
775 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
776 | ||
777 | DEC_PYCALLBACK__(InitDialog); | |
778 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
779 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
780 | DEC_PYCALLBACK_BOOL_(Validate); | |
781 | ||
782 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
783 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
784 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
785 | ||
786 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
787 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
788 | ||
789 | PYPRIVATE; | |
790 | }; | |
791 | ||
792 | IMPLEMENT_DYNAMIC_CLASS(wxPyWindow, wxWindow); | |
793 | ||
794 | IMP_PYCALLBACK_VOID_INT4(wxPyWindow, wxWindow, DoMoveWindow); | |
795 | IMP_PYCALLBACK_VOID_INT5(wxPyWindow, wxWindow, DoSetSize); | |
796 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetClientSize); | |
797 | IMP_PYCALLBACK_VOID_INTINT(wxPyWindow, wxWindow, DoSetVirtualSize); | |
798 | ||
799 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetSize); | |
800 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetClientSize); | |
801 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyWindow, wxWindow, DoGetPosition); | |
802 | ||
803 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetVirtualSize); | |
804 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, DoGetBestSize); | |
805 | ||
806 | IMP_PYCALLBACK__(wxPyWindow, wxWindow, InitDialog); | |
807 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataFromWindow); | |
808 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, TransferDataToWindow); | |
809 | IMP_PYCALLBACK_BOOL_(wxPyWindow, wxWindow, Validate); | |
810 | ||
811 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocus); | |
812 | IMP_PYCALLBACK_BOOL_const(wxPyWindow, wxWindow, AcceptsFocusFromKeyboard); | |
813 | IMP_PYCALLBACK_SIZE_const(wxPyWindow, wxWindow, GetMaxSize); | |
814 | ||
815 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, AddChild); | |
816 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyWindow, wxWindow, RemoveChild); | |
817 | ||
818 | ||
819 | // C++ version of Python aware wxPanel | |
820 | class wxPyPanel : public wxPanel | |
821 | { | |
822 | DECLARE_DYNAMIC_CLASS(wxPyPanel) | |
823 | public: | |
824 | wxPyPanel() : wxPanel() {} | |
825 | wxPyPanel(wxWindow* parent, const wxWindowID id, | |
826 | const wxPoint& pos = wxDefaultPosition, | |
827 | const wxSize& size = wxDefaultSize, | |
828 | long style = 0, | |
829 | const wxString& name = wxPyPanelNameStr) | |
830 | : wxPanel(parent, id, pos, size, style, name) {} | |
831 | ||
832 | ||
833 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
834 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
835 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
836 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
837 | ||
838 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
839 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
840 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
841 | ||
842 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
843 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
844 | ||
845 | DEC_PYCALLBACK__(InitDialog); | |
846 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
847 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
848 | DEC_PYCALLBACK_BOOL_(Validate); | |
849 | ||
850 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
851 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
852 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
853 | ||
854 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
855 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
856 | ||
857 | PYPRIVATE; | |
858 | }; | |
859 | ||
860 | IMPLEMENT_DYNAMIC_CLASS(wxPyPanel, wxPanel); | |
861 | ||
862 | IMP_PYCALLBACK_VOID_INT4(wxPyPanel, wxPanel, DoMoveWindow); | |
863 | IMP_PYCALLBACK_VOID_INT5(wxPyPanel, wxPanel, DoSetSize); | |
864 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetClientSize); | |
865 | IMP_PYCALLBACK_VOID_INTINT(wxPyPanel, wxPanel, DoSetVirtualSize); | |
866 | ||
867 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetSize); | |
868 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetClientSize); | |
869 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyPanel, wxPanel, DoGetPosition); | |
870 | ||
871 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetVirtualSize); | |
872 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, DoGetBestSize); | |
873 | ||
874 | IMP_PYCALLBACK__(wxPyPanel, wxPanel, InitDialog); | |
875 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataFromWindow); | |
876 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, TransferDataToWindow); | |
877 | IMP_PYCALLBACK_BOOL_(wxPyPanel, wxPanel, Validate); | |
878 | ||
879 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocus); | |
880 | IMP_PYCALLBACK_BOOL_const(wxPyPanel, wxPanel, AcceptsFocusFromKeyboard); | |
881 | IMP_PYCALLBACK_SIZE_const(wxPyPanel, wxPanel, GetMaxSize); | |
882 | ||
883 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, AddChild); | |
884 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyPanel, wxPanel, RemoveChild); | |
885 | ||
886 | ||
887 | ||
888 | #include "wx/wxPython/printfw.h" | |
889 | ||
d14a1e28 | 890 | |
33b885b9 RD |
891 | static const wxString wxPyPrintoutTitleStr(wxT("Printout")); |
892 | static const wxString wxPyPreviewCanvasNameStr(wxT("previewcanvas")); | |
d14a1e28 RD |
893 | |
894 | ||
895 | ||
896 | // Since this one would be tough and ugly to do with the Macros... | |
897 | void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
e811c8ce | 898 | bool hadErr = False; |
d14a1e28 RD |
899 | bool found; |
900 | ||
901 | wxPyBeginBlockThreads(); | |
902 | if ((found = wxPyCBH_findCallback(m_myInst, "GetPageInfo"))) { | |
903 | PyObject* result = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()")); | |
904 | if (result && PyTuple_Check(result) && PyTuple_Size(result) == 4) { | |
905 | PyObject* val; | |
906 | ||
907 | val = PyTuple_GetItem(result, 0); | |
908 | if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); | |
e811c8ce | 909 | else hadErr = True; |
d14a1e28 RD |
910 | |
911 | val = PyTuple_GetItem(result, 1); | |
912 | if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); | |
e811c8ce | 913 | else hadErr = True; |
d14a1e28 RD |
914 | |
915 | val = PyTuple_GetItem(result, 2); | |
916 | if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); | |
e811c8ce | 917 | else hadErr = True; |
d14a1e28 RD |
918 | |
919 | val = PyTuple_GetItem(result, 3); | |
920 | if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); | |
e811c8ce | 921 | else hadErr = True; |
d14a1e28 RD |
922 | } |
923 | else | |
e811c8ce | 924 | hadErr = True; |
d14a1e28 RD |
925 | |
926 | if (hadErr) { | |
927 | PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); | |
928 | PyErr_Print(); | |
929 | } | |
930 | Py_DECREF(result); | |
931 | } | |
932 | wxPyEndBlockThreads(); | |
933 | if (! found) | |
934 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
935 | } | |
936 | ||
937 | void wxPyPrintout::base_GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { | |
938 | wxPrintout::GetPageInfo(minPage, maxPage, pageFrom, pageTo); | |
939 | } | |
940 | ||
941 | ||
942 | IMP_PYCALLBACK_BOOL_INTINT(wxPyPrintout, wxPrintout, OnBeginDocument); | |
943 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndDocument); | |
944 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnBeginPrinting); | |
945 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnEndPrinting); | |
946 | IMP_PYCALLBACK__(wxPyPrintout, wxPrintout, OnPreparePrinting); | |
947 | IMP_PYCALLBACK_BOOL_INT_pure(wxPyPrintout, wxPrintout, OnPrintPage); | |
948 | IMP_PYCALLBACK_BOOL_INT(wxPyPrintout, wxPrintout, HasPage); | |
949 | ||
950 | ||
951 | ||
952 | ||
953 | ||
954 | #define DEC_PYCALLBACK_BOOL_PREWINDC(CBNAME) \ | |
955 | bool CBNAME(wxPreviewCanvas* a, wxDC& b); \ | |
956 | bool base_##CBNAME(wxPreviewCanvas* a, wxDC& b) | |
957 | ||
958 | ||
959 | #define IMP_PYCALLBACK_BOOL_PREWINDC(CLASS, PCLASS, CBNAME) \ | |
960 | bool CLASS::CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
e811c8ce | 961 | bool rval=False; \ |
d14a1e28 RD |
962 | bool found; \ |
963 | wxPyBeginBlockThreads(); \ | |
964 | if ((found = wxPyCBH_findCallback(m_myInst, #CBNAME))) { \ | |
965 | PyObject* win = wxPyMake_wxObject(a); \ | |
966 | PyObject* dc = wxPyMake_wxObject(&b); \ | |
967 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)", win, dc));\ | |
968 | Py_DECREF(win); \ | |
969 | Py_DECREF(dc); \ | |
970 | } \ | |
971 | wxPyEndBlockThreads(); \ | |
972 | if (! found) \ | |
973 | rval = PCLASS::CBNAME(a, b); \ | |
974 | return rval; \ | |
975 | } \ | |
976 | bool CLASS::base_##CBNAME(wxPreviewCanvas* a, wxDC& b) { \ | |
977 | return PCLASS::CBNAME(a, b); \ | |
978 | } | |
979 | ||
980 | ||
981 | ||
982 | ||
983 | class wxPyPrintPreview : public wxPrintPreview | |
984 | { | |
985 | DECLARE_CLASS(wxPyPrintPreview) | |
986 | public: | |
987 | wxPyPrintPreview(wxPyPrintout* printout, | |
988 | wxPyPrintout* printoutForPrinting, | |
989 | wxPrintData* data=NULL) | |
990 | : wxPrintPreview(printout, printoutForPrinting, data) | |
991 | {} | |
992 | ||
993 | DEC_PYCALLBACK_BOOL_INT(SetCurrentPage); | |
994 | DEC_PYCALLBACK_BOOL_PREWINDC(PaintPage); | |
995 | DEC_PYCALLBACK_BOOL_PREWINDC(DrawBlankPage); | |
996 | DEC_PYCALLBACK_BOOL_INT(RenderPage); | |
997 | DEC_PYCALLBACK_VOID_INT(SetZoom); | |
998 | DEC_PYCALLBACK_BOOL_BOOL(Print); | |
999 | DEC_PYCALLBACK_VOID_(DetermineScaling); | |
1000 | ||
1001 | PYPRIVATE; | |
1002 | }; | |
1003 | ||
1004 | // Stupid renamed classes... Fix this in 2.5... | |
1005 | #if defined(__WXMSW__) | |
1006 | IMPLEMENT_CLASS( wxPyPrintPreview, wxWindowsPrintPreview ); | |
1007 | #elif defined(__WXMAC__) | |
1008 | IMPLEMENT_CLASS( wxPyPrintPreview, wxMacPrintPreview ); | |
1009 | #else | |
1010 | IMPLEMENT_CLASS( wxPyPrintPreview, wxPostScriptPrintPreview ); | |
1011 | #endif | |
1012 | ||
1013 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, SetCurrentPage); | |
1014 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, PaintPage); | |
1015 | IMP_PYCALLBACK_BOOL_PREWINDC(wxPyPrintPreview, wxPrintPreview, DrawBlankPage); | |
1016 | IMP_PYCALLBACK_BOOL_INT (wxPyPrintPreview, wxPrintPreview, RenderPage); | |
1017 | IMP_PYCALLBACK_VOID_INT (wxPyPrintPreview, wxPrintPreview, SetZoom); | |
1018 | IMP_PYCALLBACK_BOOL_BOOL (wxPyPrintPreview, wxPrintPreview, Print); | |
1019 | IMP_PYCALLBACK_VOID_ (wxPyPrintPreview, wxPrintPreview, DetermineScaling); | |
1020 | ||
1021 | ||
1022 | class wxPyPreviewFrame : public wxPreviewFrame | |
1023 | { | |
1024 | DECLARE_CLASS(wxPyPreviewFrame); | |
1025 | public: | |
1026 | wxPyPreviewFrame(wxPrintPreview* preview, wxFrame* parent, | |
1027 | const wxString& title, | |
1028 | const wxPoint& pos = wxDefaultPosition, | |
1029 | const wxSize& size = wxDefaultSize, | |
1030 | long style = wxDEFAULT_FRAME_STYLE, | |
1031 | const wxString& name = wxPyFrameNameStr) | |
1032 | : wxPreviewFrame(preview, parent, title, pos, size, style, name) | |
1033 | {} | |
1034 | ||
1035 | void SetPreviewCanvas(wxPreviewCanvas* canvas) { m_previewCanvas = canvas; } | |
1036 | void SetControlBar(wxPreviewControlBar* bar) { m_controlBar = bar; } | |
1037 | ||
1038 | DEC_PYCALLBACK_VOID_(Initialize); | |
1039 | DEC_PYCALLBACK_VOID_(CreateCanvas); | |
1040 | DEC_PYCALLBACK_VOID_(CreateControlBar); | |
1041 | ||
1042 | PYPRIVATE; | |
1043 | }; | |
1044 | ||
1045 | IMPLEMENT_CLASS(wxPyPreviewFrame, wxPreviewFrame); | |
1046 | ||
1047 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, Initialize); | |
1048 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateCanvas); | |
1049 | IMP_PYCALLBACK_VOID_(wxPyPreviewFrame, wxPreviewFrame, CreateControlBar); | |
1050 | ||
1051 | ||
1052 | class wxPyPreviewControlBar : public wxPreviewControlBar | |
1053 | { | |
1054 | DECLARE_CLASS(wxPyPreviewControlBar); | |
1055 | public: | |
1056 | wxPyPreviewControlBar(wxPrintPreview *preview, | |
1057 | long buttons, | |
1058 | wxWindow *parent, | |
1059 | const wxPoint& pos = wxDefaultPosition, | |
1060 | const wxSize& size = wxDefaultSize, | |
1061 | long style = 0, | |
1062 | const wxString& name = wxPyPanelNameStr) | |
1063 | : wxPreviewControlBar(preview, buttons, parent, pos, size, style, name) | |
1064 | {} | |
1065 | ||
1066 | void SetPrintPreview(wxPrintPreview* preview) { m_printPreview = preview; } | |
1067 | ||
1068 | DEC_PYCALLBACK_VOID_(CreateButtons); | |
1069 | DEC_PYCALLBACK_VOID_INT(SetZoomControl); | |
1070 | ||
1071 | PYPRIVATE; | |
1072 | }; | |
1073 | ||
1074 | IMPLEMENT_CLASS(wxPyPreviewControlBar, wxPreviewControlBar); | |
1075 | IMP_PYCALLBACK_VOID_(wxPyPreviewControlBar, wxPreviewControlBar, CreateButtons); | |
1076 | IMP_PYCALLBACK_VOID_INT(wxPyPreviewControlBar, wxPreviewControlBar, SetZoomControl); | |
1077 | ||
1078 | #ifdef __cplusplus | |
1079 | extern "C" { | |
1080 | #endif | |
1081 | static PyObject *_wrap_new_Panel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1082 | PyObject *resultobj; | |
1083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1084 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
1085 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
1086 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1087 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1088 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1089 | long arg5 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1090 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1091 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1092 | wxPanel *result; | |
1093 | wxPoint temp3 ; | |
1094 | wxSize temp4 ; | |
e811c8ce | 1095 | bool temp6 = False ; |
d14a1e28 | 1096 | PyObject * obj0 = 0 ; |
994141e6 | 1097 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1098 | PyObject * obj2 = 0 ; |
1099 | PyObject * obj3 = 0 ; | |
994141e6 | 1100 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
1101 | PyObject * obj5 = 0 ; |
1102 | char *kwnames[] = { | |
1103 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1104 | }; | |
1105 | ||
994141e6 | 1106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Panel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 1107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1108 | if (obj1) { |
1109 | { | |
1110 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
1111 | if (PyErr_Occurred()) SWIG_fail; | |
1112 | } | |
1113 | } | |
d14a1e28 RD |
1114 | if (obj2) { |
1115 | { | |
1116 | arg3 = &temp3; | |
1117 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1118 | } | |
1119 | } | |
1120 | if (obj3) { | |
1121 | { | |
1122 | arg4 = &temp4; | |
1123 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1124 | } | |
1125 | } | |
994141e6 RD |
1126 | if (obj4) { |
1127 | { | |
1128 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
1129 | if (PyErr_Occurred()) SWIG_fail; | |
1130 | } | |
1131 | } | |
d14a1e28 RD |
1132 | if (obj5) { |
1133 | { | |
1134 | arg6 = wxString_in_helper(obj5); | |
1135 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 1136 | temp6 = True; |
d14a1e28 RD |
1137 | } |
1138 | } | |
1139 | { | |
1140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1141 | result = (wxPanel *)new wxPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1142 | ||
1143 | wxPyEndAllowThreads(__tstate); | |
1144 | if (PyErr_Occurred()) SWIG_fail; | |
1145 | } | |
1146 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPanel, 1); | |
1147 | { | |
1148 | if (temp6) | |
1149 | delete arg6; | |
1150 | } | |
1151 | return resultobj; | |
1152 | fail: | |
1153 | { | |
1154 | if (temp6) | |
1155 | delete arg6; | |
1156 | } | |
1157 | return NULL; | |
1158 | } | |
1159 | ||
1160 | ||
1161 | static PyObject *_wrap_new_PrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1162 | PyObject *resultobj; | |
1163 | wxPanel *result; | |
1164 | char *kwnames[] = { | |
1165 | NULL | |
1166 | }; | |
1167 | ||
1168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePanel",kwnames)) goto fail; | |
1169 | { | |
1170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1171 | result = (wxPanel *)new wxPanel(); | |
1172 | ||
1173 | wxPyEndAllowThreads(__tstate); | |
1174 | if (PyErr_Occurred()) SWIG_fail; | |
1175 | } | |
1176 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPanel, 1); | |
1177 | return resultobj; | |
1178 | fail: | |
1179 | return NULL; | |
1180 | } | |
1181 | ||
1182 | ||
1183 | static PyObject *_wrap_Panel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1184 | PyObject *resultobj; | |
1185 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1186 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1187 | int arg3 ; |
d14a1e28 RD |
1188 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1189 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1190 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1191 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1192 | long arg6 = (long) wxTAB_TRAVERSAL|wxNO_BORDER ; | |
1193 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1194 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1195 | bool result; | |
1196 | wxPoint temp4 ; | |
1197 | wxSize temp5 ; | |
e811c8ce | 1198 | bool temp7 = False ; |
d14a1e28 RD |
1199 | PyObject * obj0 = 0 ; |
1200 | PyObject * obj1 = 0 ; | |
994141e6 | 1201 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1202 | PyObject * obj3 = 0 ; |
1203 | PyObject * obj4 = 0 ; | |
994141e6 | 1204 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1205 | PyObject * obj6 = 0 ; |
1206 | char *kwnames[] = { | |
1207 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1208 | }; | |
1209 | ||
994141e6 | 1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Panel_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
1211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1212 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
1213 | { |
1214 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
1215 | if (PyErr_Occurred()) SWIG_fail; | |
1216 | } | |
d14a1e28 RD |
1217 | if (obj3) { |
1218 | { | |
1219 | arg4 = &temp4; | |
1220 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1221 | } | |
1222 | } | |
1223 | if (obj4) { | |
1224 | { | |
1225 | arg5 = &temp5; | |
1226 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1227 | } | |
1228 | } | |
994141e6 RD |
1229 | if (obj5) { |
1230 | { | |
1231 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1232 | if (PyErr_Occurred()) SWIG_fail; | |
1233 | } | |
1234 | } | |
d14a1e28 RD |
1235 | if (obj6) { |
1236 | { | |
1237 | arg7 = wxString_in_helper(obj6); | |
1238 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 1239 | temp7 = True; |
d14a1e28 RD |
1240 | } |
1241 | } | |
1242 | { | |
1243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1244 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1245 | ||
1246 | wxPyEndAllowThreads(__tstate); | |
1247 | if (PyErr_Occurred()) SWIG_fail; | |
1248 | } | |
4d5c3d91 | 1249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1250 | { |
1251 | if (temp7) | |
1252 | delete arg7; | |
1253 | } | |
1254 | return resultobj; | |
1255 | fail: | |
1256 | { | |
1257 | if (temp7) | |
1258 | delete arg7; | |
1259 | } | |
1260 | return NULL; | |
1261 | } | |
1262 | ||
1263 | ||
1264 | static PyObject *_wrap_Panel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1265 | PyObject *resultobj; | |
1266 | wxPanel *arg1 = (wxPanel *) 0 ; | |
1267 | PyObject * obj0 = 0 ; | |
1268 | char *kwnames[] = { | |
1269 | (char *) "self", NULL | |
1270 | }; | |
1271 | ||
1272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Panel_InitDialog",kwnames,&obj0)) goto fail; | |
1273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1274 | { | |
1275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1276 | (arg1)->InitDialog(); | |
1277 | ||
1278 | wxPyEndAllowThreads(__tstate); | |
1279 | if (PyErr_Occurred()) SWIG_fail; | |
1280 | } | |
1281 | Py_INCREF(Py_None); resultobj = Py_None; | |
1282 | return resultobj; | |
1283 | fail: | |
1284 | return NULL; | |
1285 | } | |
1286 | ||
1287 | ||
1288 | static PyObject * Panel_swigregister(PyObject *self, PyObject *args) { | |
1289 | PyObject *obj; | |
1290 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1291 | SWIG_TypeClientData(SWIGTYPE_p_wxPanel, obj); | |
1292 | Py_INCREF(obj); | |
1293 | return Py_BuildValue((char *)""); | |
1294 | } | |
1295 | static PyObject *_wrap_new_ScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1296 | PyObject *resultobj; | |
1297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1298 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
1299 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
1300 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
1301 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
1302 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
1303 | long arg5 = (long) wxHSCROLL|wxVSCROLL ; | |
1304 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
1305 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
1306 | wxScrolledWindow *result; | |
1307 | wxPoint temp3 ; | |
1308 | wxSize temp4 ; | |
e811c8ce | 1309 | bool temp6 = False ; |
d14a1e28 | 1310 | PyObject * obj0 = 0 ; |
994141e6 | 1311 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1312 | PyObject * obj2 = 0 ; |
1313 | PyObject * obj3 = 0 ; | |
994141e6 | 1314 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
1315 | PyObject * obj5 = 0 ; |
1316 | char *kwnames[] = { | |
1317 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1318 | }; | |
1319 | ||
994141e6 | 1320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 1321 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1322 | if (obj1) { |
1323 | { | |
1324 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
1325 | if (PyErr_Occurred()) SWIG_fail; | |
1326 | } | |
1327 | } | |
d14a1e28 RD |
1328 | if (obj2) { |
1329 | { | |
1330 | arg3 = &temp3; | |
1331 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
1332 | } | |
1333 | } | |
1334 | if (obj3) { | |
1335 | { | |
1336 | arg4 = &temp4; | |
1337 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
1338 | } | |
1339 | } | |
994141e6 RD |
1340 | if (obj4) { |
1341 | { | |
1342 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
1343 | if (PyErr_Occurred()) SWIG_fail; | |
1344 | } | |
1345 | } | |
d14a1e28 RD |
1346 | if (obj5) { |
1347 | { | |
1348 | arg6 = wxString_in_helper(obj5); | |
1349 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 1350 | temp6 = True; |
d14a1e28 RD |
1351 | } |
1352 | } | |
1353 | { | |
1354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1355 | result = (wxScrolledWindow *)new wxScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
1356 | ||
1357 | wxPyEndAllowThreads(__tstate); | |
1358 | if (PyErr_Occurred()) SWIG_fail; | |
1359 | } | |
1360 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrolledWindow, 1); | |
1361 | { | |
1362 | if (temp6) | |
1363 | delete arg6; | |
1364 | } | |
1365 | return resultobj; | |
1366 | fail: | |
1367 | { | |
1368 | if (temp6) | |
1369 | delete arg6; | |
1370 | } | |
1371 | return NULL; | |
1372 | } | |
1373 | ||
1374 | ||
1375 | static PyObject *_wrap_new_PreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1376 | PyObject *resultobj; | |
1377 | wxScrolledWindow *result; | |
1378 | char *kwnames[] = { | |
1379 | NULL | |
1380 | }; | |
1381 | ||
1382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrolledWindow",kwnames)) goto fail; | |
1383 | { | |
1384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1385 | result = (wxScrolledWindow *)new wxScrolledWindow(); | |
1386 | ||
1387 | wxPyEndAllowThreads(__tstate); | |
1388 | if (PyErr_Occurred()) SWIG_fail; | |
1389 | } | |
1390 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrolledWindow, 1); | |
1391 | return resultobj; | |
1392 | fail: | |
1393 | return NULL; | |
1394 | } | |
1395 | ||
1396 | ||
1397 | static PyObject *_wrap_ScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1398 | PyObject *resultobj; | |
1399 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1400 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1401 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
1402 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1403 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1404 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1405 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1406 | long arg6 = (long) wxHSCROLL|wxVSCROLL ; | |
1407 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
1408 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
1409 | bool result; | |
1410 | wxPoint temp4 ; | |
1411 | wxSize temp5 ; | |
e811c8ce | 1412 | bool temp7 = False ; |
d14a1e28 RD |
1413 | PyObject * obj0 = 0 ; |
1414 | PyObject * obj1 = 0 ; | |
994141e6 | 1415 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1416 | PyObject * obj3 = 0 ; |
1417 | PyObject * obj4 = 0 ; | |
994141e6 | 1418 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1419 | PyObject * obj6 = 0 ; |
1420 | char *kwnames[] = { | |
1421 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
1422 | }; | |
1423 | ||
994141e6 | 1424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
1425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
1426 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
1427 | if (obj2) { |
1428 | { | |
1429 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
1430 | if (PyErr_Occurred()) SWIG_fail; | |
1431 | } | |
1432 | } | |
d14a1e28 RD |
1433 | if (obj3) { |
1434 | { | |
1435 | arg4 = &temp4; | |
1436 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1437 | } | |
1438 | } | |
1439 | if (obj4) { | |
1440 | { | |
1441 | arg5 = &temp5; | |
1442 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1443 | } | |
1444 | } | |
994141e6 RD |
1445 | if (obj5) { |
1446 | { | |
1447 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
1448 | if (PyErr_Occurred()) SWIG_fail; | |
1449 | } | |
1450 | } | |
d14a1e28 RD |
1451 | if (obj6) { |
1452 | { | |
1453 | arg7 = wxString_in_helper(obj6); | |
1454 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 1455 | temp7 = True; |
d14a1e28 RD |
1456 | } |
1457 | } | |
1458 | { | |
1459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1460 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
1461 | ||
1462 | wxPyEndAllowThreads(__tstate); | |
1463 | if (PyErr_Occurred()) SWIG_fail; | |
1464 | } | |
4d5c3d91 | 1465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
1466 | { |
1467 | if (temp7) | |
1468 | delete arg7; | |
1469 | } | |
1470 | return resultobj; | |
1471 | fail: | |
1472 | { | |
1473 | if (temp7) | |
1474 | delete arg7; | |
1475 | } | |
1476 | return NULL; | |
1477 | } | |
1478 | ||
1479 | ||
1480 | static PyObject *_wrap_ScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1481 | PyObject *resultobj; | |
1482 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1483 | int arg2 ; | |
1484 | int arg3 ; | |
1485 | int arg4 ; | |
1486 | int arg5 ; | |
1487 | int arg6 = (int) 0 ; | |
1488 | int arg7 = (int) 0 ; | |
e811c8ce | 1489 | bool arg8 = (bool) False ; |
d14a1e28 | 1490 | PyObject * obj0 = 0 ; |
994141e6 RD |
1491 | PyObject * obj1 = 0 ; |
1492 | PyObject * obj2 = 0 ; | |
1493 | PyObject * obj3 = 0 ; | |
1494 | PyObject * obj4 = 0 ; | |
1495 | PyObject * obj5 = 0 ; | |
1496 | PyObject * obj6 = 0 ; | |
d14a1e28 RD |
1497 | PyObject * obj7 = 0 ; |
1498 | char *kwnames[] = { | |
1499 | (char *) "self",(char *) "pixelsPerUnitX",(char *) "pixelsPerUnitY",(char *) "noUnitsX",(char *) "noUnitsY",(char *) "xPos",(char *) "yPos",(char *) "noRefresh", NULL | |
1500 | }; | |
1501 | ||
994141e6 | 1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:ScrolledWindow_SetScrollbars",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 | 1503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1504 | { |
1505 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1506 | if (PyErr_Occurred()) SWIG_fail; | |
1507 | } | |
1508 | { | |
1509 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1510 | if (PyErr_Occurred()) SWIG_fail; | |
1511 | } | |
1512 | { | |
1513 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
1514 | if (PyErr_Occurred()) SWIG_fail; | |
1515 | } | |
1516 | { | |
1517 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
1518 | if (PyErr_Occurred()) SWIG_fail; | |
1519 | } | |
1520 | if (obj5) { | |
1521 | { | |
1522 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
1523 | if (PyErr_Occurred()) SWIG_fail; | |
1524 | } | |
1525 | } | |
1526 | if (obj6) { | |
1527 | { | |
1528 | arg7 = (int) SWIG_PyObj_AsInt(obj6); | |
1529 | if (PyErr_Occurred()) SWIG_fail; | |
1530 | } | |
1531 | } | |
d14a1e28 | 1532 | if (obj7) { |
a41e16b6 | 1533 | { |
994141e6 | 1534 | arg8 = (bool) SWIG_PyObj_AsBool(obj7); |
a41e16b6 RD |
1535 | if (PyErr_Occurred()) SWIG_fail; |
1536 | } | |
d14a1e28 RD |
1537 | } |
1538 | { | |
1539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1540 | (arg1)->SetScrollbars(arg2,arg3,arg4,arg5,arg6,arg7,arg8); | |
1541 | ||
1542 | wxPyEndAllowThreads(__tstate); | |
1543 | if (PyErr_Occurred()) SWIG_fail; | |
1544 | } | |
1545 | Py_INCREF(Py_None); resultobj = Py_None; | |
1546 | return resultobj; | |
1547 | fail: | |
1548 | return NULL; | |
1549 | } | |
1550 | ||
1551 | ||
1552 | static PyObject *_wrap_ScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1553 | PyObject *resultobj; | |
1554 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1555 | int arg2 ; | |
1556 | int arg3 ; | |
1557 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1558 | PyObject * obj1 = 0 ; |
1559 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1560 | char *kwnames[] = { |
1561 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1562 | }; | |
1563 | ||
994141e6 | 1564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_Scroll",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1566 | { |
1567 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1568 | if (PyErr_Occurred()) SWIG_fail; | |
1569 | } | |
1570 | { | |
1571 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1572 | if (PyErr_Occurred()) SWIG_fail; | |
1573 | } | |
d14a1e28 RD |
1574 | { |
1575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1576 | (arg1)->Scroll(arg2,arg3); | |
1577 | ||
1578 | wxPyEndAllowThreads(__tstate); | |
1579 | if (PyErr_Occurred()) SWIG_fail; | |
1580 | } | |
1581 | Py_INCREF(Py_None); resultobj = Py_None; | |
1582 | return resultobj; | |
1583 | fail: | |
1584 | return NULL; | |
1585 | } | |
1586 | ||
1587 | ||
1588 | static PyObject *_wrap_ScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1589 | PyObject *resultobj; | |
1590 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1591 | int arg2 ; | |
1592 | int result; | |
1593 | PyObject * obj0 = 0 ; | |
994141e6 | 1594 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1595 | char *kwnames[] = { |
1596 | (char *) "self",(char *) "orient", NULL | |
1597 | }; | |
1598 | ||
994141e6 | 1599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_GetScrollPageSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 1600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1601 | { |
1602 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1603 | if (PyErr_Occurred()) SWIG_fail; | |
1604 | } | |
d14a1e28 RD |
1605 | { |
1606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1607 | result = (int)((wxScrolledWindow const *)arg1)->GetScrollPageSize(arg2); | |
1608 | ||
1609 | wxPyEndAllowThreads(__tstate); | |
1610 | if (PyErr_Occurred()) SWIG_fail; | |
1611 | } | |
994141e6 | 1612 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
1613 | return resultobj; |
1614 | fail: | |
1615 | return NULL; | |
1616 | } | |
1617 | ||
1618 | ||
1619 | static PyObject *_wrap_ScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1620 | PyObject *resultobj; | |
1621 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1622 | int arg2 ; | |
1623 | int arg3 ; | |
1624 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1625 | PyObject * obj1 = 0 ; |
1626 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1627 | char *kwnames[] = { |
1628 | (char *) "self",(char *) "orient",(char *) "pageSize", NULL | |
1629 | }; | |
1630 | ||
994141e6 | 1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollPageSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1633 | { |
1634 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1635 | if (PyErr_Occurred()) SWIG_fail; | |
1636 | } | |
1637 | { | |
1638 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1639 | if (PyErr_Occurred()) SWIG_fail; | |
1640 | } | |
d14a1e28 RD |
1641 | { |
1642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1643 | (arg1)->SetScrollPageSize(arg2,arg3); | |
1644 | ||
1645 | wxPyEndAllowThreads(__tstate); | |
1646 | if (PyErr_Occurred()) SWIG_fail; | |
1647 | } | |
1648 | Py_INCREF(Py_None); resultobj = Py_None; | |
1649 | return resultobj; | |
1650 | fail: | |
1651 | return NULL; | |
1652 | } | |
1653 | ||
1654 | ||
1655 | static PyObject *_wrap_ScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject *resultobj; | |
1657 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1658 | int arg2 ; | |
1659 | int arg3 ; | |
1660 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1661 | PyObject * obj1 = 0 ; |
1662 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1663 | char *kwnames[] = { |
1664 | (char *) "self",(char *) "xstep",(char *) "ystep", NULL | |
1665 | }; | |
1666 | ||
994141e6 | 1667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScrollRate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1669 | { |
1670 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1671 | if (PyErr_Occurred()) SWIG_fail; | |
1672 | } | |
1673 | { | |
1674 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1675 | if (PyErr_Occurred()) SWIG_fail; | |
1676 | } | |
d14a1e28 RD |
1677 | { |
1678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1679 | (arg1)->SetScrollRate(arg2,arg3); | |
1680 | ||
1681 | wxPyEndAllowThreads(__tstate); | |
1682 | if (PyErr_Occurred()) SWIG_fail; | |
1683 | } | |
1684 | Py_INCREF(Py_None); resultobj = Py_None; | |
1685 | return resultobj; | |
1686 | fail: | |
1687 | return NULL; | |
1688 | } | |
1689 | ||
1690 | ||
1691 | static PyObject *_wrap_ScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1692 | PyObject *resultobj; | |
1693 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1694 | int *arg2 = (int *) 0 ; | |
1695 | int *arg3 = (int *) 0 ; | |
1696 | int temp2 ; | |
1697 | int temp3 ; | |
1698 | PyObject * obj0 = 0 ; | |
1699 | char *kwnames[] = { | |
1700 | (char *) "self", NULL | |
1701 | }; | |
1702 | ||
1703 | arg2 = &temp2; | |
1704 | arg3 = &temp3; | |
1705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScrollPixelsPerUnit",kwnames,&obj0)) goto fail; | |
1706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1707 | { | |
1708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1709 | ((wxScrolledWindow const *)arg1)->GetScrollPixelsPerUnit(arg2,arg3); | |
1710 | ||
1711 | wxPyEndAllowThreads(__tstate); | |
1712 | if (PyErr_Occurred()) SWIG_fail; | |
1713 | } | |
1714 | Py_INCREF(Py_None); resultobj = Py_None; | |
1715 | { | |
1716 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1717 | resultobj = t_output_helper(resultobj,o); | |
1718 | } | |
1719 | { | |
1720 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1721 | resultobj = t_output_helper(resultobj,o); | |
1722 | } | |
1723 | return resultobj; | |
1724 | fail: | |
1725 | return NULL; | |
1726 | } | |
1727 | ||
1728 | ||
1729 | static PyObject *_wrap_ScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1730 | PyObject *resultobj; | |
1731 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1732 | bool arg2 ; | |
1733 | bool arg3 ; | |
1734 | PyObject * obj0 = 0 ; | |
1735 | PyObject * obj1 = 0 ; | |
1736 | PyObject * obj2 = 0 ; | |
1737 | char *kwnames[] = { | |
1738 | (char *) "self",(char *) "x_scrolling",(char *) "y_scrolling", NULL | |
1739 | }; | |
1740 | ||
1741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_EnableScrolling",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 1743 | { |
994141e6 | 1744 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
1745 | if (PyErr_Occurred()) SWIG_fail; |
1746 | } | |
1747 | { | |
994141e6 | 1748 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
1749 | if (PyErr_Occurred()) SWIG_fail; |
1750 | } | |
d14a1e28 RD |
1751 | { |
1752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1753 | (arg1)->EnableScrolling(arg2,arg3); | |
1754 | ||
1755 | wxPyEndAllowThreads(__tstate); | |
1756 | if (PyErr_Occurred()) SWIG_fail; | |
1757 | } | |
1758 | Py_INCREF(Py_None); resultobj = Py_None; | |
1759 | return resultobj; | |
1760 | fail: | |
1761 | return NULL; | |
1762 | } | |
1763 | ||
1764 | ||
1765 | static PyObject *_wrap_ScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject *resultobj; | |
1767 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1768 | int *arg2 = (int *) 0 ; | |
1769 | int *arg3 = (int *) 0 ; | |
1770 | int temp2 ; | |
1771 | int temp3 ; | |
1772 | PyObject * obj0 = 0 ; | |
1773 | char *kwnames[] = { | |
1774 | (char *) "self", NULL | |
1775 | }; | |
1776 | ||
1777 | arg2 = &temp2; | |
1778 | arg3 = &temp3; | |
1779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetViewStart",kwnames,&obj0)) goto fail; | |
1780 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1781 | { | |
1782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1783 | ((wxScrolledWindow const *)arg1)->GetViewStart(arg2,arg3); | |
1784 | ||
1785 | wxPyEndAllowThreads(__tstate); | |
1786 | if (PyErr_Occurred()) SWIG_fail; | |
1787 | } | |
1788 | Py_INCREF(Py_None); resultobj = Py_None; | |
1789 | { | |
1790 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
1791 | resultobj = t_output_helper(resultobj,o); | |
1792 | } | |
1793 | { | |
1794 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
1795 | resultobj = t_output_helper(resultobj,o); | |
1796 | } | |
1797 | return resultobj; | |
1798 | fail: | |
1799 | return NULL; | |
1800 | } | |
1801 | ||
1802 | ||
1803 | static PyObject *_wrap_ScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1804 | PyObject *resultobj; | |
1805 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1806 | double arg2 ; | |
1807 | double arg3 ; | |
1808 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1809 | PyObject * obj1 = 0 ; |
1810 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1811 | char *kwnames[] = { |
1812 | (char *) "self",(char *) "xs",(char *) "ys", NULL | |
1813 | }; | |
1814 | ||
994141e6 | 1815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ScrolledWindow_SetScale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1817 | { |
1818 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
1819 | if (PyErr_Occurred()) SWIG_fail; | |
1820 | } | |
1821 | { | |
1822 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
1823 | if (PyErr_Occurred()) SWIG_fail; | |
1824 | } | |
d14a1e28 RD |
1825 | { |
1826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1827 | (arg1)->SetScale(arg2,arg3); | |
1828 | ||
1829 | wxPyEndAllowThreads(__tstate); | |
1830 | if (PyErr_Occurred()) SWIG_fail; | |
1831 | } | |
1832 | Py_INCREF(Py_None); resultobj = Py_None; | |
1833 | return resultobj; | |
1834 | fail: | |
1835 | return NULL; | |
1836 | } | |
1837 | ||
1838 | ||
1839 | static PyObject *_wrap_ScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject *resultobj; | |
1841 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1842 | double result; | |
1843 | PyObject * obj0 = 0 ; | |
1844 | char *kwnames[] = { | |
1845 | (char *) "self", NULL | |
1846 | }; | |
1847 | ||
1848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleX",kwnames,&obj0)) goto fail; | |
1849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1850 | { | |
1851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1852 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleX(); | |
1853 | ||
1854 | wxPyEndAllowThreads(__tstate); | |
1855 | if (PyErr_Occurred()) SWIG_fail; | |
1856 | } | |
994141e6 | 1857 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
1858 | return resultobj; |
1859 | fail: | |
1860 | return NULL; | |
1861 | } | |
1862 | ||
1863 | ||
1864 | static PyObject *_wrap_ScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1865 | PyObject *resultobj; | |
1866 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
1867 | double result; | |
1868 | PyObject * obj0 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "self", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetScaleY",kwnames,&obj0)) goto fail; | |
1874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1875 | { | |
1876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1877 | result = (double)((wxScrolledWindow const *)arg1)->GetScaleY(); | |
1878 | ||
1879 | wxPyEndAllowThreads(__tstate); | |
1880 | if (PyErr_Occurred()) SWIG_fail; | |
1881 | } | |
994141e6 | 1882 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
1883 | return resultobj; |
1884 | fail: | |
1885 | return NULL; | |
1886 | } | |
1887 | ||
1888 | ||
1889 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
1890 | PyObject *resultobj; | |
1891 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
322913ce RD |
1892 | wxPoint *arg2 = 0 ; |
1893 | wxPoint result; | |
1894 | wxPoint temp2 ; | |
d14a1e28 | 1895 | PyObject * obj0 = 0 ; |
322913ce | 1896 | PyObject * obj1 = 0 ; |
d14a1e28 | 1897 | |
322913ce | 1898 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1)) goto fail; |
d14a1e28 | 1899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
322913ce RD |
1900 | { |
1901 | arg2 = &temp2; | |
1902 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
1903 | } | |
d14a1e28 RD |
1904 | { |
1905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 1906 | result = ((wxScrolledWindow const *)arg1)->CalcScrolledPosition((wxPoint const &)*arg2); |
d14a1e28 RD |
1907 | |
1908 | wxPyEndAllowThreads(__tstate); | |
1909 | if (PyErr_Occurred()) SWIG_fail; | |
1910 | } | |
d14a1e28 | 1911 | { |
322913ce RD |
1912 | wxPoint * resultptr; |
1913 | resultptr = new wxPoint((wxPoint &) result); | |
1914 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
1915 | } |
1916 | return resultobj; | |
1917 | fail: | |
1918 | return NULL; | |
1919 | } | |
1920 | ||
1921 | ||
1922 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
1923 | PyObject *resultobj; | |
1924 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
322913ce RD |
1925 | int arg2 ; |
1926 | int arg3 ; | |
1927 | int *arg4 = (int *) 0 ; | |
1928 | int *arg5 = (int *) 0 ; | |
1929 | int temp4 ; | |
1930 | int temp5 ; | |
d14a1e28 | 1931 | PyObject * obj0 = 0 ; |
994141e6 RD |
1932 | PyObject * obj1 = 0 ; |
1933 | PyObject * obj2 = 0 ; | |
d14a1e28 | 1934 | |
322913ce RD |
1935 | arg4 = &temp4; |
1936 | arg5 = &temp5; | |
994141e6 | 1937 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcScrolledPosition",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 1938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
1939 | { |
1940 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
1941 | if (PyErr_Occurred()) SWIG_fail; | |
1942 | } | |
1943 | { | |
1944 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
1945 | if (PyErr_Occurred()) SWIG_fail; | |
1946 | } | |
d14a1e28 RD |
1947 | { |
1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 1949 | ((wxScrolledWindow const *)arg1)->CalcScrolledPosition(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
1950 | |
1951 | wxPyEndAllowThreads(__tstate); | |
1952 | if (PyErr_Occurred()) SWIG_fail; | |
1953 | } | |
322913ce | 1954 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 1955 | { |
322913ce RD |
1956 | PyObject *o = PyInt_FromLong((long) (*arg4)); |
1957 | resultobj = t_output_helper(resultobj,o); | |
1958 | } | |
1959 | { | |
1960 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
1961 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
1962 | } |
1963 | return resultobj; | |
1964 | fail: | |
1965 | return NULL; | |
1966 | } | |
1967 | ||
1968 | ||
1969 | static PyObject *_wrap_ScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args) { | |
1970 | int argc; | |
1971 | PyObject *argv[4]; | |
1972 | int ii; | |
1973 | ||
1974 | argc = PyObject_Length(args); | |
1975 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
1976 | argv[ii] = PyTuple_GetItem(args,ii); | |
1977 | } | |
1978 | if (argc == 2) { | |
1979 | int _v; | |
1980 | { | |
1981 | void *ptr; | |
1982 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
1983 | _v = 0; | |
1984 | PyErr_Clear(); | |
1985 | } else { | |
1986 | _v = 1; | |
1987 | } | |
1988 | } | |
1989 | if (_v) { | |
1990 | { | |
1991 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
1992 | } | |
1993 | if (_v) { | |
322913ce | 1994 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_0(self,args); |
d14a1e28 RD |
1995 | } |
1996 | } | |
1997 | } | |
1998 | if (argc == 3) { | |
1999 | int _v; | |
2000 | { | |
2001 | void *ptr; | |
2002 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2003 | _v = 0; | |
2004 | PyErr_Clear(); | |
2005 | } else { | |
2006 | _v = 1; | |
2007 | } | |
2008 | } | |
2009 | if (_v) { | |
2010 | { | |
994141e6 | 2011 | SWIG_PyObj_AsInt(argv[1]); |
a41e16b6 RD |
2012 | if (PyErr_Occurred()) { |
2013 | _v = 0; | |
2014 | PyErr_Clear(); | |
2015 | } else { | |
2016 | _v = 1; | |
2017 | } | |
d14a1e28 RD |
2018 | } |
2019 | if (_v) { | |
2020 | { | |
994141e6 | 2021 | SWIG_PyObj_AsInt(argv[2]); |
a41e16b6 RD |
2022 | if (PyErr_Occurred()) { |
2023 | _v = 0; | |
2024 | PyErr_Clear(); | |
2025 | } else { | |
2026 | _v = 1; | |
2027 | } | |
d14a1e28 RD |
2028 | } |
2029 | if (_v) { | |
322913ce | 2030 | return _wrap_ScrolledWindow_CalcScrolledPosition__SWIG_1(self,args); |
d14a1e28 RD |
2031 | } |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | ||
2036 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcScrolledPosition'"); | |
2037 | return NULL; | |
2038 | } | |
2039 | ||
2040 | ||
2041 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(PyObject *self, PyObject *args) { | |
2042 | PyObject *resultobj; | |
2043 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
322913ce RD |
2044 | wxPoint *arg2 = 0 ; |
2045 | wxPoint result; | |
2046 | wxPoint temp2 ; | |
d14a1e28 | 2047 | PyObject * obj0 = 0 ; |
322913ce | 2048 | PyObject * obj1 = 0 ; |
d14a1e28 | 2049 | |
322913ce | 2050 | if(!PyArg_ParseTuple(args,(char *)"OO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1)) goto fail; |
d14a1e28 | 2051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
322913ce RD |
2052 | { |
2053 | arg2 = &temp2; | |
2054 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2055 | } | |
d14a1e28 RD |
2056 | { |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 2058 | result = ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition((wxPoint const &)*arg2); |
d14a1e28 RD |
2059 | |
2060 | wxPyEndAllowThreads(__tstate); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
2062 | } | |
d14a1e28 | 2063 | { |
322913ce RD |
2064 | wxPoint * resultptr; |
2065 | resultptr = new wxPoint((wxPoint &) result); | |
2066 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
d14a1e28 RD |
2067 | } |
2068 | return resultobj; | |
2069 | fail: | |
2070 | return NULL; | |
2071 | } | |
2072 | ||
2073 | ||
2074 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(PyObject *self, PyObject *args) { | |
2075 | PyObject *resultobj; | |
2076 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
322913ce RD |
2077 | int arg2 ; |
2078 | int arg3 ; | |
2079 | int *arg4 = (int *) 0 ; | |
2080 | int *arg5 = (int *) 0 ; | |
2081 | int temp4 ; | |
2082 | int temp5 ; | |
d14a1e28 | 2083 | PyObject * obj0 = 0 ; |
994141e6 RD |
2084 | PyObject * obj1 = 0 ; |
2085 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2086 | |
322913ce RD |
2087 | arg4 = &temp4; |
2088 | arg5 = &temp5; | |
994141e6 | 2089 | if(!PyArg_ParseTuple(args,(char *)"OOO:ScrolledWindow_CalcUnscrolledPosition",&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2091 | { |
2092 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
2093 | if (PyErr_Occurred()) SWIG_fail; | |
2094 | } | |
2095 | { | |
2096 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
2097 | if (PyErr_Occurred()) SWIG_fail; | |
2098 | } | |
d14a1e28 RD |
2099 | { |
2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 2101 | ((wxScrolledWindow const *)arg1)->CalcUnscrolledPosition(arg2,arg3,arg4,arg5); |
d14a1e28 RD |
2102 | |
2103 | wxPyEndAllowThreads(__tstate); | |
2104 | if (PyErr_Occurred()) SWIG_fail; | |
2105 | } | |
322913ce | 2106 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 | 2107 | { |
322913ce RD |
2108 | PyObject *o = PyInt_FromLong((long) (*arg4)); |
2109 | resultobj = t_output_helper(resultobj,o); | |
2110 | } | |
2111 | { | |
2112 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
2113 | resultobj = t_output_helper(resultobj,o); | |
d14a1e28 RD |
2114 | } |
2115 | return resultobj; | |
2116 | fail: | |
2117 | return NULL; | |
2118 | } | |
2119 | ||
2120 | ||
2121 | static PyObject *_wrap_ScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args) { | |
2122 | int argc; | |
2123 | PyObject *argv[4]; | |
2124 | int ii; | |
2125 | ||
2126 | argc = PyObject_Length(args); | |
2127 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
2128 | argv[ii] = PyTuple_GetItem(args,ii); | |
2129 | } | |
2130 | if (argc == 2) { | |
2131 | int _v; | |
2132 | { | |
2133 | void *ptr; | |
2134 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2135 | _v = 0; | |
2136 | PyErr_Clear(); | |
2137 | } else { | |
2138 | _v = 1; | |
2139 | } | |
2140 | } | |
2141 | if (_v) { | |
2142 | { | |
2143 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint"), 2); | |
2144 | } | |
2145 | if (_v) { | |
322913ce | 2146 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_0(self,args); |
d14a1e28 RD |
2147 | } |
2148 | } | |
2149 | } | |
2150 | if (argc == 3) { | |
2151 | int _v; | |
2152 | { | |
2153 | void *ptr; | |
2154 | if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxScrolledWindow, 0) == -1) { | |
2155 | _v = 0; | |
2156 | PyErr_Clear(); | |
2157 | } else { | |
2158 | _v = 1; | |
2159 | } | |
2160 | } | |
2161 | if (_v) { | |
2162 | { | |
994141e6 | 2163 | SWIG_PyObj_AsInt(argv[1]); |
a41e16b6 RD |
2164 | if (PyErr_Occurred()) { |
2165 | _v = 0; | |
2166 | PyErr_Clear(); | |
2167 | } else { | |
2168 | _v = 1; | |
2169 | } | |
d14a1e28 RD |
2170 | } |
2171 | if (_v) { | |
2172 | { | |
994141e6 | 2173 | SWIG_PyObj_AsInt(argv[2]); |
a41e16b6 RD |
2174 | if (PyErr_Occurred()) { |
2175 | _v = 0; | |
2176 | PyErr_Clear(); | |
2177 | } else { | |
2178 | _v = 1; | |
2179 | } | |
d14a1e28 RD |
2180 | } |
2181 | if (_v) { | |
322913ce | 2182 | return _wrap_ScrolledWindow_CalcUnscrolledPosition__SWIG_1(self,args); |
d14a1e28 RD |
2183 | } |
2184 | } | |
2185 | } | |
2186 | } | |
2187 | ||
2188 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'ScrolledWindow_CalcUnscrolledPosition'"); | |
2189 | return NULL; | |
2190 | } | |
2191 | ||
2192 | ||
2193 | static PyObject *_wrap_ScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2194 | PyObject *resultobj; | |
2195 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2196 | PyObject * obj0 = 0 ; | |
2197 | char *kwnames[] = { | |
2198 | (char *) "self", NULL | |
2199 | }; | |
2200 | ||
2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_AdjustScrollbars",kwnames,&obj0)) goto fail; | |
2202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2203 | { | |
2204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2205 | (arg1)->AdjustScrollbars(); | |
2206 | ||
2207 | wxPyEndAllowThreads(__tstate); | |
2208 | if (PyErr_Occurred()) SWIG_fail; | |
2209 | } | |
2210 | Py_INCREF(Py_None); resultobj = Py_None; | |
2211 | return resultobj; | |
2212 | fail: | |
2213 | return NULL; | |
2214 | } | |
2215 | ||
2216 | ||
2217 | static PyObject *_wrap_ScrolledWindow_CalcScrollInc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2218 | PyObject *resultobj; | |
2219 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2220 | wxScrollWinEvent *arg2 = 0 ; | |
2221 | int result; | |
2222 | PyObject * obj0 = 0 ; | |
2223 | PyObject * obj1 = 0 ; | |
2224 | char *kwnames[] = { | |
2225 | (char *) "self",(char *) "event", NULL | |
2226 | }; | |
2227 | ||
2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_CalcScrollInc",kwnames,&obj0,&obj1)) goto fail; | |
2229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2231 | if (arg2 == NULL) { | |
2232 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2233 | } | |
2234 | { | |
2235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2236 | result = (int)(arg1)->CalcScrollInc(*arg2); | |
2237 | ||
2238 | wxPyEndAllowThreads(__tstate); | |
2239 | if (PyErr_Occurred()) SWIG_fail; | |
2240 | } | |
994141e6 | 2241 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
2242 | return resultobj; |
2243 | fail: | |
2244 | return NULL; | |
2245 | } | |
2246 | ||
2247 | ||
2248 | static PyObject *_wrap_ScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2249 | PyObject *resultobj; | |
2250 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2251 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2252 | PyObject * obj0 = 0 ; | |
2253 | PyObject * obj1 = 0 ; | |
2254 | char *kwnames[] = { | |
2255 | (char *) "self",(char *) "target", NULL | |
2256 | }; | |
2257 | ||
2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrolledWindow_SetTargetWindow",kwnames,&obj0,&obj1)) goto fail; | |
2259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2260 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2261 | { | |
2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2263 | (arg1)->SetTargetWindow(arg2); | |
2264 | ||
2265 | wxPyEndAllowThreads(__tstate); | |
2266 | if (PyErr_Occurred()) SWIG_fail; | |
2267 | } | |
2268 | Py_INCREF(Py_None); resultobj = Py_None; | |
2269 | return resultobj; | |
2270 | fail: | |
2271 | return NULL; | |
2272 | } | |
2273 | ||
2274 | ||
2275 | static PyObject *_wrap_ScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2276 | PyObject *resultobj; | |
2277 | wxScrolledWindow *arg1 = (wxScrolledWindow *) 0 ; | |
2278 | wxWindow *result; | |
2279 | PyObject * obj0 = 0 ; | |
2280 | char *kwnames[] = { | |
2281 | (char *) "self", NULL | |
2282 | }; | |
2283 | ||
2284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrolledWindow_GetTargetWindow",kwnames,&obj0)) goto fail; | |
2285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2286 | { | |
2287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2288 | result = (wxWindow *)((wxScrolledWindow const *)arg1)->GetTargetWindow(); | |
2289 | ||
2290 | wxPyEndAllowThreads(__tstate); | |
2291 | if (PyErr_Occurred()) SWIG_fail; | |
2292 | } | |
2293 | { | |
2294 | resultobj = wxPyMake_wxObject(result); | |
2295 | } | |
2296 | return resultobj; | |
2297 | fail: | |
2298 | return NULL; | |
2299 | } | |
2300 | ||
2301 | ||
2302 | static PyObject * ScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
2303 | PyObject *obj; | |
2304 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2305 | SWIG_TypeClientData(SWIGTYPE_p_wxScrolledWindow, obj); | |
2306 | Py_INCREF(obj); | |
2307 | return Py_BuildValue((char *)""); | |
2308 | } | |
b2dc1044 RD |
2309 | static int _wrap_FrameNameStr_set(PyObject *_val) { |
2310 | PyErr_SetString(PyExc_TypeError,"Variable FrameNameStr is read-only."); | |
2311 | return 1; | |
2312 | } | |
2313 | ||
2314 | ||
2315 | static PyObject *_wrap_FrameNameStr_get() { | |
2316 | PyObject *pyobj; | |
2317 | ||
2318 | { | |
2319 | #if wxUSE_UNICODE | |
2320 | pyobj = PyUnicode_FromWideChar((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2321 | #else | |
2322 | pyobj = PyString_FromStringAndSize((&wxPyFrameNameStr)->c_str(), (&wxPyFrameNameStr)->Len()); | |
2323 | #endif | |
2324 | } | |
2325 | return pyobj; | |
2326 | } | |
2327 | ||
2328 | ||
2329 | static int _wrap_DialogNameStr_set(PyObject *_val) { | |
2330 | PyErr_SetString(PyExc_TypeError,"Variable DialogNameStr is read-only."); | |
2331 | return 1; | |
2332 | } | |
2333 | ||
2334 | ||
2335 | static PyObject *_wrap_DialogNameStr_get() { | |
2336 | PyObject *pyobj; | |
2337 | ||
2338 | { | |
2339 | #if wxUSE_UNICODE | |
2340 | pyobj = PyUnicode_FromWideChar((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2341 | #else | |
2342 | pyobj = PyString_FromStringAndSize((&wxPyDialogNameStr)->c_str(), (&wxPyDialogNameStr)->Len()); | |
2343 | #endif | |
2344 | } | |
2345 | return pyobj; | |
2346 | } | |
2347 | ||
2348 | ||
2349 | static int _wrap_StatusLineNameStr_set(PyObject *_val) { | |
2350 | PyErr_SetString(PyExc_TypeError,"Variable StatusLineNameStr is read-only."); | |
2351 | return 1; | |
2352 | } | |
2353 | ||
2354 | ||
2355 | static PyObject *_wrap_StatusLineNameStr_get() { | |
2356 | PyObject *pyobj; | |
2357 | ||
2358 | { | |
2359 | #if wxUSE_UNICODE | |
2360 | pyobj = PyUnicode_FromWideChar((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2361 | #else | |
2362 | pyobj = PyString_FromStringAndSize((&wxPyStatusLineNameStr)->c_str(), (&wxPyStatusLineNameStr)->Len()); | |
2363 | #endif | |
2364 | } | |
2365 | return pyobj; | |
2366 | } | |
2367 | ||
2368 | ||
2369 | static int _wrap_ToolBarNameStr_set(PyObject *_val) { | |
2370 | PyErr_SetString(PyExc_TypeError,"Variable ToolBarNameStr is read-only."); | |
2371 | return 1; | |
2372 | } | |
2373 | ||
2374 | ||
2375 | static PyObject *_wrap_ToolBarNameStr_get() { | |
2376 | PyObject *pyobj; | |
2377 | ||
2378 | { | |
2379 | #if wxUSE_UNICODE | |
2380 | pyobj = PyUnicode_FromWideChar((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2381 | #else | |
2382 | pyobj = PyString_FromStringAndSize((&wxPyToolBarNameStr)->c_str(), (&wxPyToolBarNameStr)->Len()); | |
2383 | #endif | |
2384 | } | |
2385 | return pyobj; | |
2386 | } | |
2387 | ||
2388 | ||
d14a1e28 RD |
2389 | static PyObject *_wrap_TopLevelWindow_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { |
2390 | PyObject *resultobj; | |
2391 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
e811c8ce | 2392 | bool arg2 = (bool) True ; |
d14a1e28 RD |
2393 | PyObject * obj0 = 0 ; |
2394 | PyObject * obj1 = 0 ; | |
2395 | char *kwnames[] = { | |
2396 | (char *) "self",(char *) "maximize", NULL | |
2397 | }; | |
2398 | ||
2399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
2400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2401 | if (obj1) { | |
a41e16b6 | 2402 | { |
994141e6 | 2403 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
2404 | if (PyErr_Occurred()) SWIG_fail; |
2405 | } | |
d14a1e28 RD |
2406 | } |
2407 | { | |
2408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2409 | (arg1)->Maximize(arg2); | |
2410 | ||
2411 | wxPyEndAllowThreads(__tstate); | |
2412 | if (PyErr_Occurred()) SWIG_fail; | |
2413 | } | |
2414 | Py_INCREF(Py_None); resultobj = Py_None; | |
2415 | return resultobj; | |
2416 | fail: | |
2417 | return NULL; | |
2418 | } | |
2419 | ||
2420 | ||
2421 | static PyObject *_wrap_TopLevelWindow_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2422 | PyObject *resultobj; | |
2423 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2424 | PyObject * obj0 = 0 ; | |
2425 | char *kwnames[] = { | |
2426 | (char *) "self", NULL | |
2427 | }; | |
2428 | ||
2429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_Restore",kwnames,&obj0)) goto fail; | |
2430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2431 | { | |
2432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2433 | (arg1)->Restore(); | |
2434 | ||
2435 | wxPyEndAllowThreads(__tstate); | |
2436 | if (PyErr_Occurred()) SWIG_fail; | |
2437 | } | |
2438 | Py_INCREF(Py_None); resultobj = Py_None; | |
2439 | return resultobj; | |
2440 | fail: | |
2441 | return NULL; | |
2442 | } | |
2443 | ||
2444 | ||
2445 | static PyObject *_wrap_TopLevelWindow_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2446 | PyObject *resultobj; | |
2447 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
e811c8ce | 2448 | bool arg2 = (bool) True ; |
d14a1e28 RD |
2449 | PyObject * obj0 = 0 ; |
2450 | PyObject * obj1 = 0 ; | |
2451 | char *kwnames[] = { | |
2452 | (char *) "self",(char *) "iconize", NULL | |
2453 | }; | |
2454 | ||
2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TopLevelWindow_Iconize",kwnames,&obj0,&obj1)) goto fail; | |
2456 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2457 | if (obj1) { | |
a41e16b6 | 2458 | { |
994141e6 | 2459 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
2460 | if (PyErr_Occurred()) SWIG_fail; |
2461 | } | |
d14a1e28 RD |
2462 | } |
2463 | { | |
2464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2465 | (arg1)->Iconize(arg2); | |
2466 | ||
2467 | wxPyEndAllowThreads(__tstate); | |
2468 | if (PyErr_Occurred()) SWIG_fail; | |
2469 | } | |
2470 | Py_INCREF(Py_None); resultobj = Py_None; | |
2471 | return resultobj; | |
2472 | fail: | |
2473 | return NULL; | |
2474 | } | |
2475 | ||
2476 | ||
2477 | static PyObject *_wrap_TopLevelWindow_IsMaximized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2478 | PyObject *resultobj; | |
2479 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2480 | bool result; | |
2481 | PyObject * obj0 = 0 ; | |
2482 | char *kwnames[] = { | |
2483 | (char *) "self", NULL | |
2484 | }; | |
2485 | ||
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsMaximized",kwnames,&obj0)) goto fail; | |
2487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2488 | { | |
2489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2490 | result = (bool)((wxTopLevelWindow const *)arg1)->IsMaximized(); | |
2491 | ||
2492 | wxPyEndAllowThreads(__tstate); | |
2493 | if (PyErr_Occurred()) SWIG_fail; | |
2494 | } | |
4d5c3d91 | 2495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2496 | return resultobj; |
2497 | fail: | |
2498 | return NULL; | |
2499 | } | |
2500 | ||
2501 | ||
2502 | static PyObject *_wrap_TopLevelWindow_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject *resultobj; | |
2504 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2505 | bool result; | |
2506 | PyObject * obj0 = 0 ; | |
2507 | char *kwnames[] = { | |
2508 | (char *) "self", NULL | |
2509 | }; | |
2510 | ||
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsIconized",kwnames,&obj0)) goto fail; | |
2512 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2513 | { | |
2514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2515 | result = (bool)((wxTopLevelWindow const *)arg1)->IsIconized(); | |
2516 | ||
2517 | wxPyEndAllowThreads(__tstate); | |
2518 | if (PyErr_Occurred()) SWIG_fail; | |
2519 | } | |
4d5c3d91 | 2520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2521 | return resultobj; |
2522 | fail: | |
2523 | return NULL; | |
2524 | } | |
2525 | ||
2526 | ||
2527 | static PyObject *_wrap_TopLevelWindow_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2528 | PyObject *resultobj; | |
2529 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2530 | wxIcon result; | |
2531 | PyObject * obj0 = 0 ; | |
2532 | char *kwnames[] = { | |
2533 | (char *) "self", NULL | |
2534 | }; | |
2535 | ||
2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetIcon",kwnames,&obj0)) goto fail; | |
2537 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2538 | { | |
2539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2540 | result = ((wxTopLevelWindow const *)arg1)->GetIcon(); | |
2541 | ||
2542 | wxPyEndAllowThreads(__tstate); | |
2543 | if (PyErr_Occurred()) SWIG_fail; | |
2544 | } | |
2545 | { | |
2546 | wxIcon * resultptr; | |
2547 | resultptr = new wxIcon((wxIcon &) result); | |
2548 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxIcon, 1); | |
2549 | } | |
2550 | return resultobj; | |
2551 | fail: | |
2552 | return NULL; | |
2553 | } | |
2554 | ||
2555 | ||
2556 | static PyObject *_wrap_TopLevelWindow_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2557 | PyObject *resultobj; | |
2558 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2559 | wxIcon *arg2 = 0 ; | |
2560 | PyObject * obj0 = 0 ; | |
2561 | PyObject * obj1 = 0 ; | |
2562 | char *kwnames[] = { | |
2563 | (char *) "self",(char *) "icon", NULL | |
2564 | }; | |
2565 | ||
2566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2568 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2569 | if (arg2 == NULL) { | |
2570 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2571 | } | |
2572 | { | |
2573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2574 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
2575 | ||
2576 | wxPyEndAllowThreads(__tstate); | |
2577 | if (PyErr_Occurred()) SWIG_fail; | |
2578 | } | |
2579 | Py_INCREF(Py_None); resultobj = Py_None; | |
2580 | return resultobj; | |
2581 | fail: | |
2582 | return NULL; | |
2583 | } | |
2584 | ||
2585 | ||
2586 | static PyObject *_wrap_TopLevelWindow_SetIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2587 | PyObject *resultobj; | |
2588 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2589 | wxIconBundle *arg2 = 0 ; | |
2590 | PyObject * obj0 = 0 ; | |
2591 | PyObject * obj1 = 0 ; | |
2592 | char *kwnames[] = { | |
2593 | (char *) "self",(char *) "icons", NULL | |
2594 | }; | |
2595 | ||
2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetIcons",kwnames,&obj0,&obj1)) goto fail; | |
2597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2598 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2599 | if (arg2 == NULL) { | |
2600 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2601 | } | |
2602 | { | |
2603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2604 | (arg1)->SetIcons((wxIconBundle const &)*arg2); | |
2605 | ||
2606 | wxPyEndAllowThreads(__tstate); | |
2607 | if (PyErr_Occurred()) SWIG_fail; | |
2608 | } | |
2609 | Py_INCREF(Py_None); resultobj = Py_None; | |
2610 | return resultobj; | |
2611 | fail: | |
2612 | return NULL; | |
2613 | } | |
2614 | ||
2615 | ||
2616 | static PyObject *_wrap_TopLevelWindow_ShowFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2617 | PyObject *resultobj; | |
2618 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2619 | bool arg2 ; | |
2620 | long arg3 = (long) wxFULLSCREEN_ALL ; | |
2621 | bool result; | |
2622 | PyObject * obj0 = 0 ; | |
2623 | PyObject * obj1 = 0 ; | |
994141e6 | 2624 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2625 | char *kwnames[] = { |
2626 | (char *) "self",(char *) "show",(char *) "style", NULL | |
2627 | }; | |
2628 | ||
994141e6 | 2629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TopLevelWindow_ShowFullScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 2630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 2631 | { |
994141e6 | 2632 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
2633 | if (PyErr_Occurred()) SWIG_fail; |
2634 | } | |
994141e6 RD |
2635 | if (obj2) { |
2636 | { | |
2637 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
2638 | if (PyErr_Occurred()) SWIG_fail; | |
2639 | } | |
2640 | } | |
d14a1e28 RD |
2641 | { |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | result = (bool)(arg1)->ShowFullScreen(arg2,arg3); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
4d5c3d91 | 2648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2649 | return resultobj; |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
2655 | static PyObject *_wrap_TopLevelWindow_IsFullScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2656 | PyObject *resultobj; | |
2657 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2658 | bool result; | |
2659 | PyObject * obj0 = 0 ; | |
2660 | char *kwnames[] = { | |
2661 | (char *) "self", NULL | |
2662 | }; | |
2663 | ||
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_IsFullScreen",kwnames,&obj0)) goto fail; | |
2665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2666 | { | |
2667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2668 | result = (bool)((wxTopLevelWindow const *)arg1)->IsFullScreen(); | |
2669 | ||
2670 | wxPyEndAllowThreads(__tstate); | |
2671 | if (PyErr_Occurred()) SWIG_fail; | |
2672 | } | |
4d5c3d91 | 2673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2674 | return resultobj; |
2675 | fail: | |
2676 | return NULL; | |
2677 | } | |
2678 | ||
2679 | ||
2680 | static PyObject *_wrap_TopLevelWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2681 | PyObject *resultobj; | |
2682 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2683 | wxString *arg2 = 0 ; | |
e811c8ce | 2684 | bool temp2 = False ; |
d14a1e28 RD |
2685 | PyObject * obj0 = 0 ; |
2686 | PyObject * obj1 = 0 ; | |
2687 | char *kwnames[] = { | |
2688 | (char *) "self",(char *) "title", NULL | |
2689 | }; | |
2690 | ||
2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
2692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2693 | { | |
2694 | arg2 = wxString_in_helper(obj1); | |
2695 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2696 | temp2 = True; |
d14a1e28 RD |
2697 | } |
2698 | { | |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2700 | (arg1)->SetTitle((wxString const &)*arg2); | |
2701 | ||
2702 | wxPyEndAllowThreads(__tstate); | |
2703 | if (PyErr_Occurred()) SWIG_fail; | |
2704 | } | |
2705 | Py_INCREF(Py_None); resultobj = Py_None; | |
2706 | { | |
2707 | if (temp2) | |
2708 | delete arg2; | |
2709 | } | |
2710 | return resultobj; | |
2711 | fail: | |
2712 | { | |
2713 | if (temp2) | |
2714 | delete arg2; | |
2715 | } | |
2716 | return NULL; | |
2717 | } | |
2718 | ||
2719 | ||
2720 | static PyObject *_wrap_TopLevelWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2721 | PyObject *resultobj; | |
2722 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2723 | wxString result; | |
2724 | PyObject * obj0 = 0 ; | |
2725 | char *kwnames[] = { | |
2726 | (char *) "self", NULL | |
2727 | }; | |
2728 | ||
2729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TopLevelWindow_GetTitle",kwnames,&obj0)) goto fail; | |
2730 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2731 | { | |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2733 | result = ((wxTopLevelWindow const *)arg1)->GetTitle(); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | { | |
2739 | #if wxUSE_UNICODE | |
2740 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2741 | #else | |
2742 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2743 | #endif | |
2744 | } | |
2745 | return resultobj; | |
2746 | fail: | |
2747 | return NULL; | |
2748 | } | |
2749 | ||
2750 | ||
2751 | static PyObject *_wrap_TopLevelWindow_SetShape(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2752 | PyObject *resultobj; | |
2753 | wxTopLevelWindow *arg1 = (wxTopLevelWindow *) 0 ; | |
2754 | wxRegion *arg2 = 0 ; | |
2755 | bool result; | |
2756 | PyObject * obj0 = 0 ; | |
2757 | PyObject * obj1 = 0 ; | |
2758 | char *kwnames[] = { | |
2759 | (char *) "self",(char *) "region", NULL | |
2760 | }; | |
2761 | ||
2762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TopLevelWindow_SetShape",kwnames,&obj0,&obj1)) goto fail; | |
2763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTopLevelWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2764 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2765 | if (arg2 == NULL) { | |
2766 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2767 | } | |
2768 | { | |
2769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2770 | result = (bool)(arg1)->SetShape((wxRegion const &)*arg2); | |
2771 | ||
2772 | wxPyEndAllowThreads(__tstate); | |
2773 | if (PyErr_Occurred()) SWIG_fail; | |
2774 | } | |
4d5c3d91 | 2775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2776 | return resultobj; |
2777 | fail: | |
2778 | return NULL; | |
2779 | } | |
2780 | ||
2781 | ||
2782 | static PyObject * TopLevelWindow_swigregister(PyObject *self, PyObject *args) { | |
2783 | PyObject *obj; | |
2784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2785 | SWIG_TypeClientData(SWIGTYPE_p_wxTopLevelWindow, obj); | |
2786 | Py_INCREF(obj); | |
2787 | return Py_BuildValue((char *)""); | |
2788 | } | |
2789 | static PyObject *_wrap_new_Frame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2790 | PyObject *resultobj; | |
2791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2792 | int arg2 ; |
d14a1e28 RD |
2793 | wxString *arg3 = 0 ; |
2794 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2795 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2796 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2797 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2798 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
2799 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
2800 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
2801 | wxFrame *result; | |
e811c8ce | 2802 | bool temp3 = False ; |
d14a1e28 RD |
2803 | wxPoint temp4 ; |
2804 | wxSize temp5 ; | |
e811c8ce | 2805 | bool temp7 = False ; |
d14a1e28 | 2806 | PyObject * obj0 = 0 ; |
994141e6 | 2807 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2808 | PyObject * obj2 = 0 ; |
2809 | PyObject * obj3 = 0 ; | |
2810 | PyObject * obj4 = 0 ; | |
994141e6 | 2811 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2812 | PyObject * obj6 = 0 ; |
2813 | char *kwnames[] = { | |
2814 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
2815 | }; | |
2816 | ||
994141e6 | 2817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Frame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 2818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
2819 | { |
2820 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
2821 | if (PyErr_Occurred()) SWIG_fail; | |
2822 | } | |
d14a1e28 RD |
2823 | { |
2824 | arg3 = wxString_in_helper(obj2); | |
2825 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2826 | temp3 = True; |
d14a1e28 RD |
2827 | } |
2828 | if (obj3) { | |
2829 | { | |
2830 | arg4 = &temp4; | |
2831 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2832 | } | |
2833 | } | |
2834 | if (obj4) { | |
2835 | { | |
2836 | arg5 = &temp5; | |
2837 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2838 | } | |
2839 | } | |
994141e6 RD |
2840 | if (obj5) { |
2841 | { | |
2842 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
2843 | if (PyErr_Occurred()) SWIG_fail; | |
2844 | } | |
2845 | } | |
d14a1e28 RD |
2846 | if (obj6) { |
2847 | { | |
2848 | arg7 = wxString_in_helper(obj6); | |
2849 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 2850 | temp7 = True; |
d14a1e28 RD |
2851 | } |
2852 | } | |
2853 | { | |
2854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2855 | result = (wxFrame *)new wxFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
2856 | ||
2857 | wxPyEndAllowThreads(__tstate); | |
2858 | if (PyErr_Occurred()) SWIG_fail; | |
2859 | } | |
2860 | { | |
2861 | resultobj = wxPyMake_wxObject(result); | |
2862 | } | |
2863 | { | |
2864 | if (temp3) | |
2865 | delete arg3; | |
2866 | } | |
2867 | { | |
2868 | if (temp7) | |
2869 | delete arg7; | |
2870 | } | |
2871 | return resultobj; | |
2872 | fail: | |
2873 | { | |
2874 | if (temp3) | |
2875 | delete arg3; | |
2876 | } | |
2877 | { | |
2878 | if (temp7) | |
2879 | delete arg7; | |
2880 | } | |
2881 | return NULL; | |
2882 | } | |
2883 | ||
2884 | ||
2885 | static PyObject *_wrap_new_PreFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2886 | PyObject *resultobj; | |
2887 | wxFrame *result; | |
2888 | char *kwnames[] = { | |
2889 | NULL | |
2890 | }; | |
2891 | ||
2892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFrame",kwnames)) goto fail; | |
2893 | { | |
2894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2895 | result = (wxFrame *)new wxFrame(); | |
2896 | ||
2897 | wxPyEndAllowThreads(__tstate); | |
2898 | if (PyErr_Occurred()) SWIG_fail; | |
2899 | } | |
2900 | { | |
2901 | resultobj = wxPyMake_wxObject(result); | |
2902 | } | |
2903 | return resultobj; | |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
2909 | static PyObject *_wrap_Frame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2910 | PyObject *resultobj; | |
2911 | wxFrame *arg1 = (wxFrame *) 0 ; | |
2912 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2913 | int arg3 ; |
d14a1e28 RD |
2914 | wxString *arg4 = 0 ; |
2915 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2916 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2917 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2918 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2919 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
2920 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
2921 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2922 | bool result; | |
e811c8ce | 2923 | bool temp4 = False ; |
d14a1e28 RD |
2924 | wxPoint temp5 ; |
2925 | wxSize temp6 ; | |
e811c8ce | 2926 | bool temp8 = False ; |
d14a1e28 RD |
2927 | PyObject * obj0 = 0 ; |
2928 | PyObject * obj1 = 0 ; | |
994141e6 | 2929 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2930 | PyObject * obj3 = 0 ; |
2931 | PyObject * obj4 = 0 ; | |
2932 | PyObject * obj5 = 0 ; | |
994141e6 | 2933 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2934 | PyObject * obj7 = 0 ; |
2935 | char *kwnames[] = { | |
2936 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
2937 | }; | |
2938 | ||
994141e6 | 2939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Frame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
2940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
2941 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
2942 | { |
2943 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
d14a1e28 RD |
2946 | { |
2947 | arg4 = wxString_in_helper(obj3); | |
2948 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2949 | temp4 = True; |
d14a1e28 RD |
2950 | } |
2951 | if (obj4) { | |
2952 | { | |
2953 | arg5 = &temp5; | |
2954 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2955 | } | |
2956 | } | |
2957 | if (obj5) { | |
2958 | { | |
2959 | arg6 = &temp6; | |
2960 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2961 | } | |
2962 | } | |
994141e6 RD |
2963 | if (obj6) { |
2964 | { | |
2965 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
2966 | if (PyErr_Occurred()) SWIG_fail; | |
2967 | } | |
2968 | } | |
d14a1e28 RD |
2969 | if (obj7) { |
2970 | { | |
2971 | arg8 = wxString_in_helper(obj7); | |
2972 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2973 | temp8 = True; |
d14a1e28 RD |
2974 | } |
2975 | } | |
2976 | { | |
2977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2978 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
2979 | ||
2980 | wxPyEndAllowThreads(__tstate); | |
2981 | if (PyErr_Occurred()) SWIG_fail; | |
2982 | } | |
4d5c3d91 | 2983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
2984 | { |
2985 | if (temp4) | |
2986 | delete arg4; | |
2987 | } | |
2988 | { | |
2989 | if (temp8) | |
2990 | delete arg8; | |
2991 | } | |
2992 | return resultobj; | |
2993 | fail: | |
2994 | { | |
2995 | if (temp4) | |
2996 | delete arg4; | |
2997 | } | |
2998 | { | |
2999 | if (temp8) | |
3000 | delete arg8; | |
3001 | } | |
3002 | return NULL; | |
3003 | } | |
3004 | ||
3005 | ||
3006 | static PyObject *_wrap_Frame_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3007 | PyObject *resultobj; | |
3008 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3009 | wxPoint result; | |
3010 | PyObject * obj0 = 0 ; | |
3011 | char *kwnames[] = { | |
3012 | (char *) "self", NULL | |
3013 | }; | |
3014 | ||
3015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
3016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3017 | { | |
3018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3019 | result = ((wxFrame const *)arg1)->GetClientAreaOrigin(); | |
3020 | ||
3021 | wxPyEndAllowThreads(__tstate); | |
3022 | if (PyErr_Occurred()) SWIG_fail; | |
3023 | } | |
3024 | { | |
3025 | wxPoint * resultptr; | |
3026 | resultptr = new wxPoint((wxPoint &) result); | |
3027 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
3028 | } | |
3029 | return resultobj; | |
3030 | fail: | |
3031 | return NULL; | |
3032 | } | |
3033 | ||
3034 | ||
3035 | static PyObject *_wrap_Frame_SendSizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3036 | PyObject *resultobj; | |
3037 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3038 | PyObject * obj0 = 0 ; | |
3039 | char *kwnames[] = { | |
3040 | (char *) "self", NULL | |
3041 | }; | |
3042 | ||
3043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_SendSizeEvent",kwnames,&obj0)) goto fail; | |
3044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3045 | { | |
3046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3047 | (arg1)->SendSizeEvent(); | |
3048 | ||
3049 | wxPyEndAllowThreads(__tstate); | |
3050 | if (PyErr_Occurred()) SWIG_fail; | |
3051 | } | |
3052 | Py_INCREF(Py_None); resultobj = Py_None; | |
3053 | return resultobj; | |
3054 | fail: | |
3055 | return NULL; | |
3056 | } | |
3057 | ||
3058 | ||
3059 | static PyObject *_wrap_Frame_SetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3060 | PyObject *resultobj; | |
3061 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3062 | wxMenuBar *arg2 = (wxMenuBar *) 0 ; | |
3063 | PyObject * obj0 = 0 ; | |
3064 | PyObject * obj1 = 0 ; | |
3065 | char *kwnames[] = { | |
3066 | (char *) "self",(char *) "menubar", NULL | |
3067 | }; | |
3068 | ||
3069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetMenuBar",kwnames,&obj0,&obj1)) goto fail; | |
3070 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3071 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3072 | { | |
3073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3074 | (arg1)->SetMenuBar(arg2); | |
3075 | ||
3076 | wxPyEndAllowThreads(__tstate); | |
3077 | if (PyErr_Occurred()) SWIG_fail; | |
3078 | } | |
3079 | Py_INCREF(Py_None); resultobj = Py_None; | |
3080 | return resultobj; | |
3081 | fail: | |
3082 | return NULL; | |
3083 | } | |
3084 | ||
3085 | ||
3086 | static PyObject *_wrap_Frame_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3087 | PyObject *resultobj; | |
3088 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3089 | wxMenuBar *result; | |
3090 | PyObject * obj0 = 0 ; | |
3091 | char *kwnames[] = { | |
3092 | (char *) "self", NULL | |
3093 | }; | |
3094 | ||
3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetMenuBar",kwnames,&obj0)) goto fail; | |
3096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3097 | { | |
3098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3099 | result = (wxMenuBar *)((wxFrame const *)arg1)->GetMenuBar(); | |
3100 | ||
3101 | wxPyEndAllowThreads(__tstate); | |
3102 | if (PyErr_Occurred()) SWIG_fail; | |
3103 | } | |
3104 | { | |
3105 | resultobj = wxPyMake_wxObject(result); | |
3106 | } | |
3107 | return resultobj; | |
3108 | fail: | |
3109 | return NULL; | |
3110 | } | |
3111 | ||
3112 | ||
3113 | static PyObject *_wrap_Frame_ProcessCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3114 | PyObject *resultobj; | |
3115 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3116 | int arg2 ; | |
3117 | bool result; | |
3118 | PyObject * obj0 = 0 ; | |
994141e6 | 3119 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3120 | char *kwnames[] = { |
3121 | (char *) "self",(char *) "winid", NULL | |
3122 | }; | |
3123 | ||
994141e6 | 3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_ProcessCommand",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3125 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3126 | { |
3127 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3128 | if (PyErr_Occurred()) SWIG_fail; | |
3129 | } | |
d14a1e28 RD |
3130 | { |
3131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3132 | result = (bool)(arg1)->ProcessCommand(arg2); | |
3133 | ||
3134 | wxPyEndAllowThreads(__tstate); | |
3135 | if (PyErr_Occurred()) SWIG_fail; | |
3136 | } | |
4d5c3d91 | 3137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3138 | return resultobj; |
3139 | fail: | |
3140 | return NULL; | |
3141 | } | |
3142 | ||
3143 | ||
3144 | static PyObject *_wrap_Frame_CreateStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3145 | PyObject *resultobj; | |
3146 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3147 | int arg2 = (int) 1 ; | |
3148 | long arg3 = (long) wxST_SIZEGRIP ; | |
e811c8ce | 3149 | int arg4 = (int) 0 ; |
d14a1e28 RD |
3150 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; |
3151 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
3152 | wxStatusBar *result; | |
e811c8ce | 3153 | bool temp5 = False ; |
d14a1e28 | 3154 | PyObject * obj0 = 0 ; |
994141e6 RD |
3155 | PyObject * obj1 = 0 ; |
3156 | PyObject * obj2 = 0 ; | |
3157 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3158 | PyObject * obj4 = 0 ; |
3159 | char *kwnames[] = { | |
3160 | (char *) "self",(char *) "number",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3161 | }; | |
3162 | ||
994141e6 | 3163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Frame_CreateStatusBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 3164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3165 | if (obj1) { |
3166 | { | |
3167 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3168 | if (PyErr_Occurred()) SWIG_fail; | |
3169 | } | |
3170 | } | |
3171 | if (obj2) { | |
3172 | { | |
3173 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
3174 | if (PyErr_Occurred()) SWIG_fail; | |
3175 | } | |
3176 | } | |
3177 | if (obj3) { | |
3178 | { | |
3179 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
3180 | if (PyErr_Occurred()) SWIG_fail; | |
3181 | } | |
3182 | } | |
d14a1e28 RD |
3183 | if (obj4) { |
3184 | { | |
3185 | arg5 = wxString_in_helper(obj4); | |
3186 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 3187 | temp5 = True; |
d14a1e28 RD |
3188 | } |
3189 | } | |
3190 | { | |
3191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3192 | result = (wxStatusBar *)(arg1)->CreateStatusBar(arg2,arg3,arg4,(wxString const &)*arg5); | |
3193 | ||
3194 | wxPyEndAllowThreads(__tstate); | |
3195 | if (PyErr_Occurred()) SWIG_fail; | |
3196 | } | |
3197 | { | |
3198 | resultobj = wxPyMake_wxObject(result); | |
3199 | } | |
3200 | { | |
3201 | if (temp5) | |
3202 | delete arg5; | |
3203 | } | |
3204 | return resultobj; | |
3205 | fail: | |
3206 | { | |
3207 | if (temp5) | |
3208 | delete arg5; | |
3209 | } | |
3210 | return NULL; | |
3211 | } | |
3212 | ||
3213 | ||
3214 | static PyObject *_wrap_Frame_GetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3215 | PyObject *resultobj; | |
3216 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3217 | wxStatusBar *result; | |
3218 | PyObject * obj0 = 0 ; | |
3219 | char *kwnames[] = { | |
3220 | (char *) "self", NULL | |
3221 | }; | |
3222 | ||
3223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBar",kwnames,&obj0)) goto fail; | |
3224 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3225 | { | |
3226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3227 | result = (wxStatusBar *)((wxFrame const *)arg1)->GetStatusBar(); | |
3228 | ||
3229 | wxPyEndAllowThreads(__tstate); | |
3230 | if (PyErr_Occurred()) SWIG_fail; | |
3231 | } | |
3232 | { | |
3233 | resultobj = wxPyMake_wxObject(result); | |
3234 | } | |
3235 | return resultobj; | |
3236 | fail: | |
3237 | return NULL; | |
3238 | } | |
3239 | ||
3240 | ||
3241 | static PyObject *_wrap_Frame_SetStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3242 | PyObject *resultobj; | |
3243 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3244 | wxStatusBar *arg2 = (wxStatusBar *) 0 ; | |
3245 | PyObject * obj0 = 0 ; | |
3246 | PyObject * obj1 = 0 ; | |
3247 | char *kwnames[] = { | |
3248 | (char *) "self",(char *) "statBar", NULL | |
3249 | }; | |
3250 | ||
3251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBar",kwnames,&obj0,&obj1)) goto fail; | |
3252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3253 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3254 | { | |
3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3256 | (arg1)->SetStatusBar(arg2); | |
3257 | ||
3258 | wxPyEndAllowThreads(__tstate); | |
3259 | if (PyErr_Occurred()) SWIG_fail; | |
3260 | } | |
3261 | Py_INCREF(Py_None); resultobj = Py_None; | |
3262 | return resultobj; | |
3263 | fail: | |
3264 | return NULL; | |
3265 | } | |
3266 | ||
3267 | ||
3268 | static PyObject *_wrap_Frame_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3269 | PyObject *resultobj; | |
3270 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3271 | wxString *arg2 = 0 ; | |
3272 | int arg3 = (int) 0 ; | |
e811c8ce | 3273 | bool temp2 = False ; |
d14a1e28 RD |
3274 | PyObject * obj0 = 0 ; |
3275 | PyObject * obj1 = 0 ; | |
994141e6 | 3276 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3277 | char *kwnames[] = { |
3278 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3279 | }; | |
3280 | ||
994141e6 | 3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3283 | { | |
3284 | arg2 = wxString_in_helper(obj1); | |
3285 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3286 | temp2 = True; |
d14a1e28 | 3287 | } |
994141e6 RD |
3288 | if (obj2) { |
3289 | { | |
3290 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3291 | if (PyErr_Occurred()) SWIG_fail; | |
3292 | } | |
3293 | } | |
d14a1e28 RD |
3294 | { |
3295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3296 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
3297 | ||
3298 | wxPyEndAllowThreads(__tstate); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
3300 | } | |
3301 | Py_INCREF(Py_None); resultobj = Py_None; | |
3302 | { | |
3303 | if (temp2) | |
3304 | delete arg2; | |
3305 | } | |
3306 | return resultobj; | |
3307 | fail: | |
3308 | { | |
3309 | if (temp2) | |
3310 | delete arg2; | |
3311 | } | |
3312 | return NULL; | |
3313 | } | |
3314 | ||
3315 | ||
3316 | static PyObject *_wrap_Frame_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject *resultobj; | |
3318 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3319 | int arg2 ; | |
3320 | int *arg3 = (int *) 0 ; | |
3321 | PyObject * obj0 = 0 ; | |
3322 | PyObject * obj1 = 0 ; | |
3323 | char *kwnames[] = { | |
3324 | (char *) "self",(char *) "widths", NULL | |
3325 | }; | |
3326 | ||
3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
3328 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3329 | { | |
3330 | arg2 = PyList_Size(obj1); | |
3331 | arg3 = int_LIST_helper(obj1); | |
3332 | if (arg3 == NULL) SWIG_fail; | |
3333 | } | |
3334 | { | |
3335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3336 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
3337 | ||
3338 | wxPyEndAllowThreads(__tstate); | |
3339 | if (PyErr_Occurred()) SWIG_fail; | |
3340 | } | |
3341 | Py_INCREF(Py_None); resultobj = Py_None; | |
3342 | { | |
3343 | if (arg3) delete [] arg3; | |
3344 | } | |
3345 | return resultobj; | |
3346 | fail: | |
3347 | { | |
3348 | if (arg3) delete [] arg3; | |
3349 | } | |
3350 | return NULL; | |
3351 | } | |
3352 | ||
3353 | ||
3354 | static PyObject *_wrap_Frame_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3355 | PyObject *resultobj; | |
3356 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3357 | wxString *arg2 = 0 ; | |
3358 | int arg3 = (int) 0 ; | |
e811c8ce | 3359 | bool temp2 = False ; |
d14a1e28 RD |
3360 | PyObject * obj0 = 0 ; |
3361 | PyObject * obj1 = 0 ; | |
994141e6 | 3362 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3363 | char *kwnames[] = { |
3364 | (char *) "self",(char *) "text",(char *) "number", NULL | |
3365 | }; | |
3366 | ||
994141e6 | 3367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Frame_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
3368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3369 | { | |
3370 | arg2 = wxString_in_helper(obj1); | |
3371 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3372 | temp2 = True; |
d14a1e28 | 3373 | } |
994141e6 RD |
3374 | if (obj2) { |
3375 | { | |
3376 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3377 | if (PyErr_Occurred()) SWIG_fail; | |
3378 | } | |
3379 | } | |
d14a1e28 RD |
3380 | { |
3381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3382 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
3383 | ||
3384 | wxPyEndAllowThreads(__tstate); | |
3385 | if (PyErr_Occurred()) SWIG_fail; | |
3386 | } | |
3387 | Py_INCREF(Py_None); resultobj = Py_None; | |
3388 | { | |
3389 | if (temp2) | |
3390 | delete arg2; | |
3391 | } | |
3392 | return resultobj; | |
3393 | fail: | |
3394 | { | |
3395 | if (temp2) | |
3396 | delete arg2; | |
3397 | } | |
3398 | return NULL; | |
3399 | } | |
3400 | ||
3401 | ||
3402 | static PyObject *_wrap_Frame_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3403 | PyObject *resultobj; | |
3404 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3405 | int arg2 = (int) 0 ; | |
3406 | PyObject * obj0 = 0 ; | |
994141e6 | 3407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3408 | char *kwnames[] = { |
3409 | (char *) "self",(char *) "number", NULL | |
3410 | }; | |
3411 | ||
994141e6 | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_PopStatusText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3414 | if (obj1) { |
3415 | { | |
3416 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3417 | if (PyErr_Occurred()) SWIG_fail; | |
3418 | } | |
3419 | } | |
d14a1e28 RD |
3420 | { |
3421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3422 | (arg1)->PopStatusText(arg2); | |
3423 | ||
3424 | wxPyEndAllowThreads(__tstate); | |
3425 | if (PyErr_Occurred()) SWIG_fail; | |
3426 | } | |
3427 | Py_INCREF(Py_None); resultobj = Py_None; | |
3428 | return resultobj; | |
3429 | fail: | |
3430 | return NULL; | |
3431 | } | |
3432 | ||
3433 | ||
3434 | static PyObject *_wrap_Frame_SetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3435 | PyObject *resultobj; | |
3436 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3437 | int arg2 ; | |
3438 | PyObject * obj0 = 0 ; | |
994141e6 | 3439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3440 | char *kwnames[] = { |
3441 | (char *) "self",(char *) "n", NULL | |
3442 | }; | |
3443 | ||
994141e6 | 3444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetStatusBarPane",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3446 | { |
3447 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3448 | if (PyErr_Occurred()) SWIG_fail; | |
3449 | } | |
d14a1e28 RD |
3450 | { |
3451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3452 | (arg1)->SetStatusBarPane(arg2); | |
3453 | ||
3454 | wxPyEndAllowThreads(__tstate); | |
3455 | if (PyErr_Occurred()) SWIG_fail; | |
3456 | } | |
3457 | Py_INCREF(Py_None); resultobj = Py_None; | |
3458 | return resultobj; | |
3459 | fail: | |
3460 | return NULL; | |
3461 | } | |
3462 | ||
3463 | ||
3464 | static PyObject *_wrap_Frame_GetStatusBarPane(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3465 | PyObject *resultobj; | |
3466 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3467 | int result; | |
3468 | PyObject * obj0 = 0 ; | |
3469 | char *kwnames[] = { | |
3470 | (char *) "self", NULL | |
3471 | }; | |
3472 | ||
3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetStatusBarPane",kwnames,&obj0)) goto fail; | |
3474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3475 | { | |
3476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3477 | result = (int)((wxFrame const *)arg1)->GetStatusBarPane(); | |
3478 | ||
3479 | wxPyEndAllowThreads(__tstate); | |
3480 | if (PyErr_Occurred()) SWIG_fail; | |
3481 | } | |
994141e6 | 3482 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3483 | return resultobj; |
3484 | fail: | |
3485 | return NULL; | |
3486 | } | |
3487 | ||
3488 | ||
3489 | static PyObject *_wrap_Frame_CreateToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3490 | PyObject *resultobj; | |
3491 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3492 | long arg2 = (long) -1 ; | |
e811c8ce | 3493 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3494 | wxString const &arg4_defvalue = wxPyToolBarNameStr ; |
3495 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3496 | wxToolBar *result; | |
e811c8ce | 3497 | bool temp4 = False ; |
d14a1e28 | 3498 | PyObject * obj0 = 0 ; |
994141e6 RD |
3499 | PyObject * obj1 = 0 ; |
3500 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3501 | PyObject * obj3 = 0 ; |
3502 | char *kwnames[] = { | |
3503 | (char *) "self",(char *) "style",(char *) "winid",(char *) "name", NULL | |
3504 | }; | |
3505 | ||
994141e6 | 3506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Frame_CreateToolBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 3507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3508 | if (obj1) { |
3509 | { | |
3510 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | } | |
3514 | if (obj2) { | |
3515 | { | |
3516 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
3517 | if (PyErr_Occurred()) SWIG_fail; | |
3518 | } | |
3519 | } | |
d14a1e28 RD |
3520 | if (obj3) { |
3521 | { | |
3522 | arg4 = wxString_in_helper(obj3); | |
3523 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3524 | temp4 = True; |
d14a1e28 RD |
3525 | } |
3526 | } | |
3527 | { | |
3528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3529 | result = (wxToolBar *)(arg1)->CreateToolBar(arg2,arg3,(wxString const &)*arg4); | |
3530 | ||
3531 | wxPyEndAllowThreads(__tstate); | |
3532 | if (PyErr_Occurred()) SWIG_fail; | |
3533 | } | |
3534 | { | |
3535 | resultobj = wxPyMake_wxObject(result); | |
3536 | } | |
3537 | { | |
3538 | if (temp4) | |
3539 | delete arg4; | |
3540 | } | |
3541 | return resultobj; | |
3542 | fail: | |
3543 | { | |
3544 | if (temp4) | |
3545 | delete arg4; | |
3546 | } | |
3547 | return NULL; | |
3548 | } | |
3549 | ||
3550 | ||
3551 | static PyObject *_wrap_Frame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3552 | PyObject *resultobj; | |
3553 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3554 | wxToolBar *result; | |
3555 | PyObject * obj0 = 0 ; | |
3556 | char *kwnames[] = { | |
3557 | (char *) "self", NULL | |
3558 | }; | |
3559 | ||
3560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Frame_GetToolBar",kwnames,&obj0)) goto fail; | |
3561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3562 | { | |
3563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3564 | result = (wxToolBar *)((wxFrame const *)arg1)->GetToolBar(); | |
3565 | ||
3566 | wxPyEndAllowThreads(__tstate); | |
3567 | if (PyErr_Occurred()) SWIG_fail; | |
3568 | } | |
3569 | { | |
3570 | resultobj = wxPyMake_wxObject(result); | |
3571 | } | |
3572 | return resultobj; | |
3573 | fail: | |
3574 | return NULL; | |
3575 | } | |
3576 | ||
3577 | ||
3578 | static PyObject *_wrap_Frame_SetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3579 | PyObject *resultobj; | |
3580 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3581 | wxToolBar *arg2 = (wxToolBar *) 0 ; | |
3582 | PyObject * obj0 = 0 ; | |
3583 | PyObject * obj1 = 0 ; | |
3584 | char *kwnames[] = { | |
3585 | (char *) "self",(char *) "toolbar", NULL | |
3586 | }; | |
3587 | ||
3588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Frame_SetToolBar",kwnames,&obj0,&obj1)) goto fail; | |
3589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3590 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3591 | { | |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3593 | (arg1)->SetToolBar(arg2); | |
3594 | ||
3595 | wxPyEndAllowThreads(__tstate); | |
3596 | if (PyErr_Occurred()) SWIG_fail; | |
3597 | } | |
3598 | Py_INCREF(Py_None); resultobj = Py_None; | |
3599 | return resultobj; | |
3600 | fail: | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | static PyObject *_wrap_Frame_DoGiveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj; | |
3607 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3608 | wxString *arg2 = 0 ; | |
3609 | bool arg3 ; | |
e811c8ce | 3610 | bool temp2 = False ; |
d14a1e28 RD |
3611 | PyObject * obj0 = 0 ; |
3612 | PyObject * obj1 = 0 ; | |
3613 | PyObject * obj2 = 0 ; | |
3614 | char *kwnames[] = { | |
3615 | (char *) "self",(char *) "text",(char *) "show", NULL | |
3616 | }; | |
3617 | ||
3618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Frame_DoGiveHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3620 | { | |
3621 | arg2 = wxString_in_helper(obj1); | |
3622 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3623 | temp2 = True; |
d14a1e28 | 3624 | } |
a41e16b6 | 3625 | { |
994141e6 | 3626 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
3627 | if (PyErr_Occurred()) SWIG_fail; |
3628 | } | |
d14a1e28 RD |
3629 | { |
3630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3631 | (arg1)->DoGiveHelp((wxString const &)*arg2,arg3); | |
3632 | ||
3633 | wxPyEndAllowThreads(__tstate); | |
3634 | if (PyErr_Occurred()) SWIG_fail; | |
3635 | } | |
3636 | Py_INCREF(Py_None); resultobj = Py_None; | |
3637 | { | |
3638 | if (temp2) | |
3639 | delete arg2; | |
3640 | } | |
3641 | return resultobj; | |
3642 | fail: | |
3643 | { | |
3644 | if (temp2) | |
3645 | delete arg2; | |
3646 | } | |
3647 | return NULL; | |
3648 | } | |
3649 | ||
3650 | ||
3651 | static PyObject *_wrap_Frame_DoMenuUpdates(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3652 | PyObject *resultobj; | |
3653 | wxFrame *arg1 = (wxFrame *) 0 ; | |
3654 | wxMenu *arg2 = (wxMenu *) NULL ; | |
3655 | PyObject * obj0 = 0 ; | |
3656 | PyObject * obj1 = 0 ; | |
3657 | char *kwnames[] = { | |
3658 | (char *) "self",(char *) "menu", NULL | |
3659 | }; | |
3660 | ||
3661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Frame_DoMenuUpdates",kwnames,&obj0,&obj1)) goto fail; | |
3662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3663 | if (obj1) { | |
3664 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3665 | } | |
3666 | { | |
3667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3668 | (arg1)->DoMenuUpdates(arg2); | |
3669 | ||
3670 | wxPyEndAllowThreads(__tstate); | |
3671 | if (PyErr_Occurred()) SWIG_fail; | |
3672 | } | |
3673 | Py_INCREF(Py_None); resultobj = Py_None; | |
3674 | return resultobj; | |
3675 | fail: | |
3676 | return NULL; | |
3677 | } | |
3678 | ||
3679 | ||
3680 | static PyObject * Frame_swigregister(PyObject *self, PyObject *args) { | |
3681 | PyObject *obj; | |
3682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3683 | SWIG_TypeClientData(SWIGTYPE_p_wxFrame, obj); | |
3684 | Py_INCREF(obj); | |
3685 | return Py_BuildValue((char *)""); | |
3686 | } | |
3687 | static PyObject *_wrap_new_Dialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3688 | PyObject *resultobj; | |
3689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3690 | int arg2 ; |
d14a1e28 RD |
3691 | wxString *arg3 = 0 ; |
3692 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3693 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3694 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3695 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3696 | long arg6 = (long) wxDEFAULT_DIALOG_STYLE ; | |
3697 | wxString const &arg7_defvalue = wxPyDialogNameStr ; | |
3698 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3699 | wxDialog *result; | |
e811c8ce | 3700 | bool temp3 = False ; |
d14a1e28 RD |
3701 | wxPoint temp4 ; |
3702 | wxSize temp5 ; | |
e811c8ce | 3703 | bool temp7 = False ; |
d14a1e28 | 3704 | PyObject * obj0 = 0 ; |
994141e6 | 3705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3706 | PyObject * obj2 = 0 ; |
3707 | PyObject * obj3 = 0 ; | |
3708 | PyObject * obj4 = 0 ; | |
994141e6 | 3709 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3710 | PyObject * obj6 = 0 ; |
3711 | char *kwnames[] = { | |
3712 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3713 | }; | |
3714 | ||
994141e6 | 3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_Dialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 3716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3717 | { |
3718 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
3719 | if (PyErr_Occurred()) SWIG_fail; | |
3720 | } | |
d14a1e28 RD |
3721 | { |
3722 | arg3 = wxString_in_helper(obj2); | |
3723 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3724 | temp3 = True; |
d14a1e28 RD |
3725 | } |
3726 | if (obj3) { | |
3727 | { | |
3728 | arg4 = &temp4; | |
3729 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3730 | } | |
3731 | } | |
3732 | if (obj4) { | |
3733 | { | |
3734 | arg5 = &temp5; | |
3735 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3736 | } | |
3737 | } | |
994141e6 RD |
3738 | if (obj5) { |
3739 | { | |
3740 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
3741 | if (PyErr_Occurred()) SWIG_fail; | |
3742 | } | |
3743 | } | |
d14a1e28 RD |
3744 | if (obj6) { |
3745 | { | |
3746 | arg7 = wxString_in_helper(obj6); | |
3747 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3748 | temp7 = True; |
d14a1e28 RD |
3749 | } |
3750 | } | |
3751 | { | |
3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3753 | result = (wxDialog *)new wxDialog(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3754 | ||
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) SWIG_fail; | |
3757 | } | |
3758 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDialog, 1); | |
3759 | { | |
3760 | if (temp3) | |
3761 | delete arg3; | |
3762 | } | |
3763 | { | |
3764 | if (temp7) | |
3765 | delete arg7; | |
3766 | } | |
3767 | return resultobj; | |
3768 | fail: | |
3769 | { | |
3770 | if (temp3) | |
3771 | delete arg3; | |
3772 | } | |
3773 | { | |
3774 | if (temp7) | |
3775 | delete arg7; | |
3776 | } | |
3777 | return NULL; | |
3778 | } | |
3779 | ||
3780 | ||
3781 | static PyObject *_wrap_new_PreDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3782 | PyObject *resultobj; | |
3783 | wxDialog *result; | |
3784 | char *kwnames[] = { | |
3785 | NULL | |
3786 | }; | |
3787 | ||
3788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDialog",kwnames)) goto fail; | |
3789 | { | |
3790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3791 | result = (wxDialog *)new wxDialog(); | |
3792 | ||
3793 | wxPyEndAllowThreads(__tstate); | |
3794 | if (PyErr_Occurred()) SWIG_fail; | |
3795 | } | |
3796 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDialog, 1); | |
3797 | return resultobj; | |
3798 | fail: | |
3799 | return NULL; | |
3800 | } | |
3801 | ||
3802 | ||
3803 | static PyObject *_wrap_Dialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3804 | PyObject *resultobj; | |
3805 | wxDialog *arg1 = (wxDialog *) 0 ; | |
3806 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3807 | int arg3 ; |
d14a1e28 RD |
3808 | wxString *arg4 = 0 ; |
3809 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3810 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3811 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3812 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3813 | long arg7 = (long) wxDEFAULT_DIALOG_STYLE ; | |
3814 | wxString const &arg8_defvalue = wxPyDialogNameStr ; | |
3815 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3816 | bool result; | |
e811c8ce | 3817 | bool temp4 = False ; |
d14a1e28 RD |
3818 | wxPoint temp5 ; |
3819 | wxSize temp6 ; | |
e811c8ce | 3820 | bool temp8 = False ; |
d14a1e28 RD |
3821 | PyObject * obj0 = 0 ; |
3822 | PyObject * obj1 = 0 ; | |
994141e6 | 3823 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3824 | PyObject * obj3 = 0 ; |
3825 | PyObject * obj4 = 0 ; | |
3826 | PyObject * obj5 = 0 ; | |
994141e6 | 3827 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3828 | PyObject * obj7 = 0 ; |
3829 | char *kwnames[] = { | |
3830 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3831 | }; | |
3832 | ||
994141e6 | 3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:Dialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
3834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
3835 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
3836 | { |
3837 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
3838 | if (PyErr_Occurred()) SWIG_fail; | |
3839 | } | |
d14a1e28 RD |
3840 | { |
3841 | arg4 = wxString_in_helper(obj3); | |
3842 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3843 | temp4 = True; |
d14a1e28 RD |
3844 | } |
3845 | if (obj4) { | |
3846 | { | |
3847 | arg5 = &temp5; | |
3848 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3849 | } | |
3850 | } | |
3851 | if (obj5) { | |
3852 | { | |
3853 | arg6 = &temp6; | |
3854 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3855 | } | |
3856 | } | |
994141e6 RD |
3857 | if (obj6) { |
3858 | { | |
3859 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
3860 | if (PyErr_Occurred()) SWIG_fail; | |
3861 | } | |
3862 | } | |
d14a1e28 RD |
3863 | if (obj7) { |
3864 | { | |
3865 | arg8 = wxString_in_helper(obj7); | |
3866 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3867 | temp8 = True; |
d14a1e28 RD |
3868 | } |
3869 | } | |
3870 | { | |
3871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3872 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3873 | ||
3874 | wxPyEndAllowThreads(__tstate); | |
3875 | if (PyErr_Occurred()) SWIG_fail; | |
3876 | } | |
4d5c3d91 | 3877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
3878 | { |
3879 | if (temp4) | |
3880 | delete arg4; | |
3881 | } | |
3882 | { | |
3883 | if (temp8) | |
3884 | delete arg8; | |
3885 | } | |
3886 | return resultobj; | |
3887 | fail: | |
3888 | { | |
3889 | if (temp4) | |
3890 | delete arg4; | |
3891 | } | |
3892 | { | |
3893 | if (temp8) | |
3894 | delete arg8; | |
3895 | } | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
3900 | static PyObject *_wrap_Dialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject *resultobj; | |
3902 | wxDialog *arg1 = (wxDialog *) 0 ; | |
3903 | int arg2 ; | |
3904 | PyObject * obj0 = 0 ; | |
994141e6 | 3905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3906 | char *kwnames[] = { |
3907 | (char *) "self",(char *) "returnCode", NULL | |
3908 | }; | |
3909 | ||
994141e6 | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_SetReturnCode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 3911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
3912 | { |
3913 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
3915 | } | |
d14a1e28 RD |
3916 | { |
3917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3918 | (arg1)->SetReturnCode(arg2); | |
3919 | ||
3920 | wxPyEndAllowThreads(__tstate); | |
3921 | if (PyErr_Occurred()) SWIG_fail; | |
3922 | } | |
3923 | Py_INCREF(Py_None); resultobj = Py_None; | |
3924 | return resultobj; | |
3925 | fail: | |
3926 | return NULL; | |
3927 | } | |
3928 | ||
3929 | ||
3930 | static PyObject *_wrap_Dialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3931 | PyObject *resultobj; | |
3932 | wxDialog *arg1 = (wxDialog *) 0 ; | |
3933 | int result; | |
3934 | PyObject * obj0 = 0 ; | |
3935 | char *kwnames[] = { | |
3936 | (char *) "self", NULL | |
3937 | }; | |
3938 | ||
3939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_GetReturnCode",kwnames,&obj0)) goto fail; | |
3940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3941 | { | |
3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3943 | result = (int)((wxDialog const *)arg1)->GetReturnCode(); | |
3944 | ||
3945 | wxPyEndAllowThreads(__tstate); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
994141e6 | 3948 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
3949 | return resultobj; |
3950 | fail: | |
3951 | return NULL; | |
3952 | } | |
3953 | ||
3954 | ||
3955 | static PyObject *_wrap_Dialog_CreateTextSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3956 | PyObject *resultobj; | |
3957 | wxDialog *arg1 = (wxDialog *) 0 ; | |
3958 | wxString *arg2 = 0 ; | |
3959 | wxSizer *result; | |
e811c8ce | 3960 | bool temp2 = False ; |
d14a1e28 RD |
3961 | PyObject * obj0 = 0 ; |
3962 | PyObject * obj1 = 0 ; | |
3963 | char *kwnames[] = { | |
3964 | (char *) "self",(char *) "message", NULL | |
3965 | }; | |
3966 | ||
3967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateTextSizer",kwnames,&obj0,&obj1)) goto fail; | |
3968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3969 | { | |
3970 | arg2 = wxString_in_helper(obj1); | |
3971 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3972 | temp2 = True; |
d14a1e28 RD |
3973 | } |
3974 | { | |
3975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3976 | result = (wxSizer *)(arg1)->CreateTextSizer((wxString const &)*arg2); | |
3977 | ||
3978 | wxPyEndAllowThreads(__tstate); | |
3979 | if (PyErr_Occurred()) SWIG_fail; | |
3980 | } | |
3981 | { | |
3982 | resultobj = wxPyMake_wxSizer(result); | |
3983 | } | |
3984 | { | |
3985 | if (temp2) | |
3986 | delete arg2; | |
3987 | } | |
3988 | return resultobj; | |
3989 | fail: | |
3990 | { | |
3991 | if (temp2) | |
3992 | delete arg2; | |
3993 | } | |
3994 | return NULL; | |
3995 | } | |
3996 | ||
3997 | ||
3998 | static PyObject *_wrap_Dialog_CreateButtonSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3999 | PyObject *resultobj; | |
4000 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4001 | long arg2 ; | |
4002 | wxSizer *result; | |
4003 | PyObject * obj0 = 0 ; | |
994141e6 | 4004 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4005 | char *kwnames[] = { |
4006 | (char *) "self",(char *) "flags", NULL | |
4007 | }; | |
4008 | ||
994141e6 | 4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_CreateButtonSizer",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4011 | { |
4012 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4013 | if (PyErr_Occurred()) SWIG_fail; | |
4014 | } | |
d14a1e28 RD |
4015 | { |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | result = (wxSizer *)(arg1)->CreateButtonSizer(arg2); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | { | |
4023 | resultobj = wxPyMake_wxSizer(result); | |
4024 | } | |
4025 | return resultobj; | |
4026 | fail: | |
4027 | return NULL; | |
4028 | } | |
4029 | ||
4030 | ||
d14a1e28 RD |
4031 | static PyObject *_wrap_Dialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
4032 | PyObject *resultobj; | |
4033 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4034 | bool result; | |
4035 | PyObject * obj0 = 0 ; | |
4036 | char *kwnames[] = { | |
4037 | (char *) "self", NULL | |
4038 | }; | |
4039 | ||
4040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModal",kwnames,&obj0)) goto fail; | |
4041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4042 | { | |
4043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4044 | result = (bool)((wxDialog const *)arg1)->IsModal(); | |
4045 | ||
4046 | wxPyEndAllowThreads(__tstate); | |
4047 | if (PyErr_Occurred()) SWIG_fail; | |
4048 | } | |
4d5c3d91 | 4049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4050 | return resultobj; |
4051 | fail: | |
4052 | return NULL; | |
4053 | } | |
4054 | ||
4055 | ||
4056 | static PyObject *_wrap_Dialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4057 | PyObject *resultobj; | |
4058 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4059 | int result; | |
4060 | PyObject * obj0 = 0 ; | |
4061 | char *kwnames[] = { | |
4062 | (char *) "self", NULL | |
4063 | }; | |
4064 | ||
4065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_ShowModal",kwnames,&obj0)) goto fail; | |
4066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4067 | { | |
4068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4069 | result = (int)(arg1)->ShowModal(); | |
4070 | ||
4071 | wxPyEndAllowThreads(__tstate); | |
4072 | if (PyErr_Occurred()) SWIG_fail; | |
4073 | } | |
994141e6 | 4074 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4075 | return resultobj; |
4076 | fail: | |
4077 | return NULL; | |
4078 | } | |
4079 | ||
4080 | ||
4081 | static PyObject *_wrap_Dialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4082 | PyObject *resultobj; | |
4083 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4084 | int arg2 ; | |
4085 | PyObject * obj0 = 0 ; | |
994141e6 | 4086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4087 | char *kwnames[] = { |
4088 | (char *) "self",(char *) "retCode", NULL | |
4089 | }; | |
4090 | ||
994141e6 | 4091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Dialog_EndModal",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4093 | { |
4094 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4095 | if (PyErr_Occurred()) SWIG_fail; | |
4096 | } | |
d14a1e28 RD |
4097 | { |
4098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4099 | (arg1)->EndModal(arg2); | |
4100 | ||
4101 | wxPyEndAllowThreads(__tstate); | |
4102 | if (PyErr_Occurred()) SWIG_fail; | |
4103 | } | |
4104 | Py_INCREF(Py_None); resultobj = Py_None; | |
4105 | return resultobj; | |
4106 | fail: | |
4107 | return NULL; | |
4108 | } | |
4109 | ||
4110 | ||
4111 | static PyObject *_wrap_Dialog_IsModalShowing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4112 | PyObject *resultobj; | |
4113 | wxDialog *arg1 = (wxDialog *) 0 ; | |
4114 | bool result; | |
4115 | PyObject * obj0 = 0 ; | |
4116 | char *kwnames[] = { | |
4117 | (char *) "self", NULL | |
4118 | }; | |
4119 | ||
4120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Dialog_IsModalShowing",kwnames,&obj0)) goto fail; | |
4121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4122 | { | |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | result = (bool)wxDialog_IsModalShowing(arg1); | |
4125 | ||
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4d5c3d91 | 4129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4130 | return resultobj; |
4131 | fail: | |
4132 | return NULL; | |
4133 | } | |
4134 | ||
4135 | ||
4136 | static PyObject * Dialog_swigregister(PyObject *self, PyObject *args) { | |
4137 | PyObject *obj; | |
4138 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4139 | SWIG_TypeClientData(SWIGTYPE_p_wxDialog, obj); | |
4140 | Py_INCREF(obj); | |
4141 | return Py_BuildValue((char *)""); | |
4142 | } | |
4143 | static PyObject *_wrap_new_MiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4144 | PyObject *resultobj; | |
4145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4146 | int arg2 ; |
d14a1e28 RD |
4147 | wxString *arg3 = 0 ; |
4148 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4149 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4150 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4151 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4152 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
4153 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
4154 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4155 | wxMiniFrame *result; | |
e811c8ce | 4156 | bool temp3 = False ; |
d14a1e28 RD |
4157 | wxPoint temp4 ; |
4158 | wxSize temp5 ; | |
e811c8ce | 4159 | bool temp7 = False ; |
d14a1e28 | 4160 | PyObject * obj0 = 0 ; |
994141e6 | 4161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4162 | PyObject * obj2 = 0 ; |
4163 | PyObject * obj3 = 0 ; | |
4164 | PyObject * obj4 = 0 ; | |
994141e6 | 4165 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4166 | PyObject * obj6 = 0 ; |
4167 | char *kwnames[] = { | |
4168 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4169 | }; | |
4170 | ||
994141e6 | 4171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MiniFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 4172 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4173 | { |
4174 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
d14a1e28 RD |
4177 | { |
4178 | arg3 = wxString_in_helper(obj2); | |
4179 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 4180 | temp3 = True; |
d14a1e28 RD |
4181 | } |
4182 | if (obj3) { | |
4183 | { | |
4184 | arg4 = &temp4; | |
4185 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4186 | } | |
4187 | } | |
4188 | if (obj4) { | |
4189 | { | |
4190 | arg5 = &temp5; | |
4191 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4192 | } | |
4193 | } | |
994141e6 RD |
4194 | if (obj5) { |
4195 | { | |
4196 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
4199 | } | |
d14a1e28 RD |
4200 | if (obj6) { |
4201 | { | |
4202 | arg7 = wxString_in_helper(obj6); | |
4203 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4204 | temp7 = True; |
d14a1e28 RD |
4205 | } |
4206 | } | |
4207 | { | |
4208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4209 | result = (wxMiniFrame *)new wxMiniFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4210 | ||
4211 | wxPyEndAllowThreads(__tstate); | |
4212 | if (PyErr_Occurred()) SWIG_fail; | |
4213 | } | |
4214 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMiniFrame, 1); | |
4215 | { | |
4216 | if (temp3) | |
4217 | delete arg3; | |
4218 | } | |
4219 | { | |
4220 | if (temp7) | |
4221 | delete arg7; | |
4222 | } | |
4223 | return resultobj; | |
4224 | fail: | |
4225 | { | |
4226 | if (temp3) | |
4227 | delete arg3; | |
4228 | } | |
4229 | { | |
4230 | if (temp7) | |
4231 | delete arg7; | |
4232 | } | |
4233 | return NULL; | |
4234 | } | |
4235 | ||
4236 | ||
4237 | static PyObject *_wrap_new_PreMiniFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4238 | PyObject *resultobj; | |
4239 | wxMiniFrame *result; | |
4240 | char *kwnames[] = { | |
4241 | NULL | |
4242 | }; | |
4243 | ||
4244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMiniFrame",kwnames)) goto fail; | |
4245 | { | |
4246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4247 | result = (wxMiniFrame *)new wxMiniFrame(); | |
4248 | ||
4249 | wxPyEndAllowThreads(__tstate); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | } | |
4252 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMiniFrame, 1); | |
4253 | return resultobj; | |
4254 | fail: | |
4255 | return NULL; | |
4256 | } | |
4257 | ||
4258 | ||
4259 | static PyObject *_wrap_MiniFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4260 | PyObject *resultobj; | |
4261 | wxMiniFrame *arg1 = (wxMiniFrame *) 0 ; | |
4262 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4263 | int arg3 ; |
d14a1e28 RD |
4264 | wxString *arg4 = 0 ; |
4265 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4266 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4267 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4268 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4269 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
4270 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
4271 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4272 | bool result; | |
e811c8ce | 4273 | bool temp4 = False ; |
d14a1e28 RD |
4274 | wxPoint temp5 ; |
4275 | wxSize temp6 ; | |
e811c8ce | 4276 | bool temp8 = False ; |
d14a1e28 RD |
4277 | PyObject * obj0 = 0 ; |
4278 | PyObject * obj1 = 0 ; | |
994141e6 | 4279 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4280 | PyObject * obj3 = 0 ; |
4281 | PyObject * obj4 = 0 ; | |
4282 | PyObject * obj5 = 0 ; | |
994141e6 | 4283 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4284 | PyObject * obj7 = 0 ; |
4285 | char *kwnames[] = { | |
4286 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4287 | }; | |
4288 | ||
994141e6 | 4289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MiniFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMiniFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4291 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
4292 | { |
4293 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
4294 | if (PyErr_Occurred()) SWIG_fail; | |
4295 | } | |
d14a1e28 RD |
4296 | { |
4297 | arg4 = wxString_in_helper(obj3); | |
4298 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 4299 | temp4 = True; |
d14a1e28 RD |
4300 | } |
4301 | if (obj4) { | |
4302 | { | |
4303 | arg5 = &temp5; | |
4304 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4305 | } | |
4306 | } | |
4307 | if (obj5) { | |
4308 | { | |
4309 | arg6 = &temp6; | |
4310 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4311 | } | |
4312 | } | |
994141e6 RD |
4313 | if (obj6) { |
4314 | { | |
4315 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
4316 | if (PyErr_Occurred()) SWIG_fail; | |
4317 | } | |
4318 | } | |
d14a1e28 RD |
4319 | if (obj7) { |
4320 | { | |
4321 | arg8 = wxString_in_helper(obj7); | |
4322 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4323 | temp8 = True; |
d14a1e28 RD |
4324 | } |
4325 | } | |
4326 | { | |
4327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4328 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4329 | ||
4330 | wxPyEndAllowThreads(__tstate); | |
4331 | if (PyErr_Occurred()) SWIG_fail; | |
4332 | } | |
4d5c3d91 | 4333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4334 | { |
4335 | if (temp4) | |
4336 | delete arg4; | |
4337 | } | |
4338 | { | |
4339 | if (temp8) | |
4340 | delete arg8; | |
4341 | } | |
4342 | return resultobj; | |
4343 | fail: | |
4344 | { | |
4345 | if (temp4) | |
4346 | delete arg4; | |
4347 | } | |
4348 | { | |
4349 | if (temp8) | |
4350 | delete arg8; | |
4351 | } | |
4352 | return NULL; | |
4353 | } | |
4354 | ||
4355 | ||
4356 | static PyObject * MiniFrame_swigregister(PyObject *self, PyObject *args) { | |
4357 | PyObject *obj; | |
4358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4359 | SWIG_TypeClientData(SWIGTYPE_p_wxMiniFrame, obj); | |
4360 | Py_INCREF(obj); | |
4361 | return Py_BuildValue((char *)""); | |
4362 | } | |
4363 | static PyObject *_wrap_new_SplashScreenWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4364 | PyObject *resultobj; | |
4365 | wxBitmap *arg1 = 0 ; | |
4366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4367 | int arg3 ; |
d14a1e28 RD |
4368 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4369 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4370 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4371 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4372 | long arg6 = (long) wxNO_BORDER ; | |
4373 | wxSplashScreenWindow *result; | |
4374 | wxPoint temp4 ; | |
4375 | wxSize temp5 ; | |
4376 | PyObject * obj0 = 0 ; | |
4377 | PyObject * obj1 = 0 ; | |
994141e6 | 4378 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4379 | PyObject * obj3 = 0 ; |
4380 | PyObject * obj4 = 0 ; | |
994141e6 | 4381 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4382 | char *kwnames[] = { |
4383 | (char *) "bitmap",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4384 | }; | |
4385 | ||
994141e6 | 4386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_SplashScreenWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
4387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4388 | if (arg1 == NULL) { | |
4389 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4390 | } | |
4391 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
4392 | { |
4393 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4394 | if (PyErr_Occurred()) SWIG_fail; | |
4395 | } | |
d14a1e28 RD |
4396 | if (obj3) { |
4397 | { | |
4398 | arg4 = &temp4; | |
4399 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4400 | } | |
4401 | } | |
4402 | if (obj4) { | |
4403 | { | |
4404 | arg5 = &temp5; | |
4405 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4406 | } | |
4407 | } | |
994141e6 RD |
4408 | if (obj5) { |
4409 | { | |
4410 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
4411 | if (PyErr_Occurred()) SWIG_fail; | |
4412 | } | |
4413 | } | |
d14a1e28 RD |
4414 | { |
4415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4416 | result = (wxSplashScreenWindow *)new wxSplashScreenWindow((wxBitmap const &)*arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
4417 | ||
4418 | wxPyEndAllowThreads(__tstate); | |
4419 | if (PyErr_Occurred()) SWIG_fail; | |
4420 | } | |
4421 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplashScreenWindow, 1); | |
4422 | return resultobj; | |
4423 | fail: | |
4424 | return NULL; | |
4425 | } | |
4426 | ||
4427 | ||
4428 | static PyObject *_wrap_SplashScreenWindow_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4429 | PyObject *resultobj; | |
4430 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4431 | wxBitmap *arg2 = 0 ; | |
4432 | PyObject * obj0 = 0 ; | |
4433 | PyObject * obj1 = 0 ; | |
4434 | char *kwnames[] = { | |
4435 | (char *) "self",(char *) "bitmap", NULL | |
4436 | }; | |
4437 | ||
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplashScreenWindow_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreenWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4440 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4441 | if (arg2 == NULL) { | |
4442 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4443 | } | |
4444 | { | |
4445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4446 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4447 | ||
4448 | wxPyEndAllowThreads(__tstate); | |
4449 | if (PyErr_Occurred()) SWIG_fail; | |
4450 | } | |
4451 | Py_INCREF(Py_None); resultobj = Py_None; | |
4452 | return resultobj; | |
4453 | fail: | |
4454 | return NULL; | |
4455 | } | |
4456 | ||
4457 | ||
4458 | static PyObject *_wrap_SplashScreenWindow_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4459 | PyObject *resultobj; | |
4460 | wxSplashScreenWindow *arg1 = (wxSplashScreenWindow *) 0 ; | |
4461 | wxBitmap *result; | |
4462 | PyObject * obj0 = 0 ; | |
4463 | char *kwnames[] = { | |
4464 | (char *) "self", NULL | |
4465 | }; | |
4466 | ||
4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreenWindow_GetBitmap",kwnames,&obj0)) goto fail; | |
4468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreenWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4469 | { | |
4470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4471 | { | |
4472 | wxBitmap &_result_ref = (arg1)->GetBitmap(); | |
4473 | result = (wxBitmap *) &_result_ref; | |
4474 | } | |
4475 | ||
4476 | wxPyEndAllowThreads(__tstate); | |
4477 | if (PyErr_Occurred()) SWIG_fail; | |
4478 | } | |
4479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
4480 | return resultobj; | |
4481 | fail: | |
4482 | return NULL; | |
4483 | } | |
4484 | ||
4485 | ||
4486 | static PyObject * SplashScreenWindow_swigregister(PyObject *self, PyObject *args) { | |
4487 | PyObject *obj; | |
4488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4489 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreenWindow, obj); | |
4490 | Py_INCREF(obj); | |
4491 | return Py_BuildValue((char *)""); | |
4492 | } | |
4493 | static PyObject *_wrap_new_SplashScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4494 | PyObject *resultobj; | |
4495 | wxBitmap *arg1 = 0 ; | |
4496 | long arg2 ; | |
4497 | int arg3 ; | |
4498 | wxWindow *arg4 = (wxWindow *) 0 ; | |
e811c8ce | 4499 | int arg5 ; |
d14a1e28 RD |
4500 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
4501 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
4502 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
4503 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
4504 | long arg8 = (long) wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP ; | |
4505 | wxSplashScreen *result; | |
4506 | wxPoint temp6 ; | |
4507 | wxSize temp7 ; | |
4508 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4509 | PyObject * obj1 = 0 ; |
4510 | PyObject * obj2 = 0 ; | |
d14a1e28 | 4511 | PyObject * obj3 = 0 ; |
994141e6 | 4512 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4513 | PyObject * obj5 = 0 ; |
4514 | PyObject * obj6 = 0 ; | |
994141e6 | 4515 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
4516 | char *kwnames[] = { |
4517 | (char *) "bitmap",(char *) "splashStyle",(char *) "milliseconds",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
4518 | }; | |
4519 | ||
994141e6 | 4520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:new_SplashScreen",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
4521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4522 | if (arg1 == NULL) { | |
4523 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4524 | } | |
994141e6 RD |
4525 | { |
4526 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
4527 | if (PyErr_Occurred()) SWIG_fail; | |
4528 | } | |
4529 | { | |
4530 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4531 | if (PyErr_Occurred()) SWIG_fail; | |
4532 | } | |
d14a1e28 | 4533 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4534 | { |
4535 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
4536 | if (PyErr_Occurred()) SWIG_fail; | |
4537 | } | |
d14a1e28 RD |
4538 | if (obj5) { |
4539 | { | |
4540 | arg6 = &temp6; | |
4541 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
4542 | } | |
4543 | } | |
4544 | if (obj6) { | |
4545 | { | |
4546 | arg7 = &temp7; | |
4547 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
4548 | } | |
4549 | } | |
994141e6 RD |
4550 | if (obj7) { |
4551 | { | |
4552 | arg8 = (long) SWIG_PyObj_AsLong(obj7); | |
4553 | if (PyErr_Occurred()) SWIG_fail; | |
4554 | } | |
4555 | } | |
d14a1e28 RD |
4556 | { |
4557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4558 | result = (wxSplashScreen *)new wxSplashScreen((wxBitmap const &)*arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8); | |
4559 | ||
4560 | wxPyEndAllowThreads(__tstate); | |
4561 | if (PyErr_Occurred()) SWIG_fail; | |
4562 | } | |
4563 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplashScreen, 1); | |
4564 | return resultobj; | |
4565 | fail: | |
4566 | return NULL; | |
4567 | } | |
4568 | ||
4569 | ||
4570 | static PyObject *_wrap_SplashScreen_GetSplashStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4571 | PyObject *resultobj; | |
4572 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4573 | long result; | |
4574 | PyObject * obj0 = 0 ; | |
4575 | char *kwnames[] = { | |
4576 | (char *) "self", NULL | |
4577 | }; | |
4578 | ||
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashStyle",kwnames,&obj0)) goto fail; | |
4580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4581 | { | |
4582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4583 | result = (long)((wxSplashScreen const *)arg1)->GetSplashStyle(); | |
4584 | ||
4585 | wxPyEndAllowThreads(__tstate); | |
4586 | if (PyErr_Occurred()) SWIG_fail; | |
4587 | } | |
994141e6 | 4588 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
4589 | return resultobj; |
4590 | fail: | |
4591 | return NULL; | |
4592 | } | |
4593 | ||
4594 | ||
4595 | static PyObject *_wrap_SplashScreen_GetSplashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4596 | PyObject *resultobj; | |
4597 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4598 | wxSplashScreenWindow *result; | |
4599 | PyObject * obj0 = 0 ; | |
4600 | char *kwnames[] = { | |
4601 | (char *) "self", NULL | |
4602 | }; | |
4603 | ||
4604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetSplashWindow",kwnames,&obj0)) goto fail; | |
4605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4606 | { | |
4607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4608 | result = (wxSplashScreenWindow *)((wxSplashScreen const *)arg1)->GetSplashWindow(); | |
4609 | ||
4610 | wxPyEndAllowThreads(__tstate); | |
4611 | if (PyErr_Occurred()) SWIG_fail; | |
4612 | } | |
4613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplashScreenWindow, 0); | |
4614 | return resultobj; | |
4615 | fail: | |
4616 | return NULL; | |
4617 | } | |
4618 | ||
4619 | ||
4620 | static PyObject *_wrap_SplashScreen_GetTimeout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4621 | PyObject *resultobj; | |
4622 | wxSplashScreen *arg1 = (wxSplashScreen *) 0 ; | |
4623 | int result; | |
4624 | PyObject * obj0 = 0 ; | |
4625 | char *kwnames[] = { | |
4626 | (char *) "self", NULL | |
4627 | }; | |
4628 | ||
4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplashScreen_GetTimeout",kwnames,&obj0)) goto fail; | |
4630 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplashScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4631 | { | |
4632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4633 | result = (int)((wxSplashScreen const *)arg1)->GetTimeout(); | |
4634 | ||
4635 | wxPyEndAllowThreads(__tstate); | |
4636 | if (PyErr_Occurred()) SWIG_fail; | |
4637 | } | |
994141e6 | 4638 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4639 | return resultobj; |
4640 | fail: | |
4641 | return NULL; | |
4642 | } | |
4643 | ||
4644 | ||
4645 | static PyObject * SplashScreen_swigregister(PyObject *self, PyObject *args) { | |
4646 | PyObject *obj; | |
4647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4648 | SWIG_TypeClientData(SWIGTYPE_p_wxSplashScreen, obj); | |
4649 | Py_INCREF(obj); | |
4650 | return Py_BuildValue((char *)""); | |
4651 | } | |
4652 | static PyObject *_wrap_new_StatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4653 | PyObject *resultobj; | |
4654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4655 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4656 | long arg3 = (long) wxST_SIZEGRIP ; |
4657 | wxString const &arg4_defvalue = wxPyStatusLineNameStr ; | |
4658 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
4659 | wxStatusBar *result; | |
e811c8ce | 4660 | bool temp4 = False ; |
d14a1e28 | 4661 | PyObject * obj0 = 0 ; |
994141e6 RD |
4662 | PyObject * obj1 = 0 ; |
4663 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4664 | PyObject * obj3 = 0 ; |
4665 | char *kwnames[] = { | |
4666 | (char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
4667 | }; | |
4668 | ||
994141e6 | 4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_StatusBar",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 4670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4671 | if (obj1) { |
4672 | { | |
4673 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4674 | if (PyErr_Occurred()) SWIG_fail; | |
4675 | } | |
4676 | } | |
4677 | if (obj2) { | |
4678 | { | |
4679 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
4680 | if (PyErr_Occurred()) SWIG_fail; | |
4681 | } | |
4682 | } | |
d14a1e28 RD |
4683 | if (obj3) { |
4684 | { | |
4685 | arg4 = wxString_in_helper(obj3); | |
4686 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 4687 | temp4 = True; |
d14a1e28 RD |
4688 | } |
4689 | } | |
4690 | { | |
4691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4692 | result = (wxStatusBar *)new wxStatusBar(arg1,arg2,arg3,(wxString const &)*arg4); | |
4693 | ||
4694 | wxPyEndAllowThreads(__tstate); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | } | |
4697 | { | |
4698 | resultobj = wxPyMake_wxObject(result); | |
4699 | } | |
4700 | { | |
4701 | if (temp4) | |
4702 | delete arg4; | |
4703 | } | |
4704 | return resultobj; | |
4705 | fail: | |
4706 | { | |
4707 | if (temp4) | |
4708 | delete arg4; | |
4709 | } | |
4710 | return NULL; | |
4711 | } | |
4712 | ||
4713 | ||
4714 | static PyObject *_wrap_new_PreStatusBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4715 | PyObject *resultobj; | |
4716 | wxStatusBar *result; | |
4717 | char *kwnames[] = { | |
4718 | NULL | |
4719 | }; | |
4720 | ||
4721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStatusBar",kwnames)) goto fail; | |
4722 | { | |
4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4724 | result = (wxStatusBar *)new wxStatusBar(); | |
4725 | ||
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
4729 | { | |
4730 | resultobj = wxPyMake_wxObject(result); | |
4731 | } | |
4732 | return resultobj; | |
4733 | fail: | |
4734 | return NULL; | |
4735 | } | |
4736 | ||
4737 | ||
4738 | static PyObject *_wrap_StatusBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4739 | PyObject *resultobj; | |
4740 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4741 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4742 | int arg3 ; |
d14a1e28 RD |
4743 | long arg4 = (long) wxST_SIZEGRIP ; |
4744 | wxString const &arg5_defvalue = wxPyStatusLineNameStr ; | |
4745 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
4746 | bool result; | |
e811c8ce | 4747 | bool temp5 = False ; |
d14a1e28 RD |
4748 | PyObject * obj0 = 0 ; |
4749 | PyObject * obj1 = 0 ; | |
994141e6 RD |
4750 | PyObject * obj2 = 0 ; |
4751 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
4752 | PyObject * obj4 = 0 ; |
4753 | char *kwnames[] = { | |
4754 | (char *) "self",(char *) "parent",(char *) "id",(char *) "style",(char *) "name", NULL | |
4755 | }; | |
4756 | ||
994141e6 | 4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:StatusBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
4758 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4759 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
4760 | { |
4761 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4762 | if (PyErr_Occurred()) SWIG_fail; | |
4763 | } | |
4764 | if (obj3) { | |
4765 | { | |
4766 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
4767 | if (PyErr_Occurred()) SWIG_fail; | |
4768 | } | |
4769 | } | |
d14a1e28 RD |
4770 | if (obj4) { |
4771 | { | |
4772 | arg5 = wxString_in_helper(obj4); | |
4773 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 4774 | temp5 = True; |
d14a1e28 RD |
4775 | } |
4776 | } | |
4777 | { | |
4778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4779 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxString const &)*arg5); | |
4780 | ||
4781 | wxPyEndAllowThreads(__tstate); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | } | |
4d5c3d91 | 4784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
4785 | { |
4786 | if (temp5) | |
4787 | delete arg5; | |
4788 | } | |
4789 | return resultobj; | |
4790 | fail: | |
4791 | { | |
4792 | if (temp5) | |
4793 | delete arg5; | |
4794 | } | |
4795 | return NULL; | |
4796 | } | |
4797 | ||
4798 | ||
4799 | static PyObject *_wrap_StatusBar_SetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4800 | PyObject *resultobj; | |
4801 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4802 | int arg2 = (int) 1 ; | |
4803 | PyObject * obj0 = 0 ; | |
994141e6 | 4804 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4805 | char *kwnames[] = { |
4806 | (char *) "self",(char *) "number", NULL | |
4807 | }; | |
4808 | ||
994141e6 | 4809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_SetFieldsCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4810 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4811 | if (obj1) { |
4812 | { | |
4813 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4814 | if (PyErr_Occurred()) SWIG_fail; | |
4815 | } | |
4816 | } | |
d14a1e28 RD |
4817 | { |
4818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4819 | (arg1)->SetFieldsCount(arg2); | |
4820 | ||
4821 | wxPyEndAllowThreads(__tstate); | |
4822 | if (PyErr_Occurred()) SWIG_fail; | |
4823 | } | |
4824 | Py_INCREF(Py_None); resultobj = Py_None; | |
4825 | return resultobj; | |
4826 | fail: | |
4827 | return NULL; | |
4828 | } | |
4829 | ||
4830 | ||
4831 | static PyObject *_wrap_StatusBar_GetFieldsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4832 | PyObject *resultobj; | |
4833 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4834 | int result; | |
4835 | PyObject * obj0 = 0 ; | |
4836 | char *kwnames[] = { | |
4837 | (char *) "self", NULL | |
4838 | }; | |
4839 | ||
4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetFieldsCount",kwnames,&obj0)) goto fail; | |
4841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4842 | { | |
4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4844 | result = (int)((wxStatusBar const *)arg1)->GetFieldsCount(); | |
4845 | ||
4846 | wxPyEndAllowThreads(__tstate); | |
4847 | if (PyErr_Occurred()) SWIG_fail; | |
4848 | } | |
994141e6 | 4849 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
4850 | return resultobj; |
4851 | fail: | |
4852 | return NULL; | |
4853 | } | |
4854 | ||
4855 | ||
4856 | static PyObject *_wrap_StatusBar_SetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4857 | PyObject *resultobj; | |
4858 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4859 | wxString *arg2 = 0 ; | |
4860 | int arg3 = (int) 0 ; | |
e811c8ce | 4861 | bool temp2 = False ; |
d14a1e28 RD |
4862 | PyObject * obj0 = 0 ; |
4863 | PyObject * obj1 = 0 ; | |
994141e6 | 4864 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4865 | char *kwnames[] = { |
4866 | (char *) "self",(char *) "text",(char *) "number", NULL | |
4867 | }; | |
4868 | ||
994141e6 | 4869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_SetStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4871 | { | |
4872 | arg2 = wxString_in_helper(obj1); | |
4873 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4874 | temp2 = True; |
d14a1e28 | 4875 | } |
994141e6 RD |
4876 | if (obj2) { |
4877 | { | |
4878 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4879 | if (PyErr_Occurred()) SWIG_fail; | |
4880 | } | |
4881 | } | |
d14a1e28 RD |
4882 | { |
4883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4884 | (arg1)->SetStatusText((wxString const &)*arg2,arg3); | |
4885 | ||
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) SWIG_fail; | |
4888 | } | |
4889 | Py_INCREF(Py_None); resultobj = Py_None; | |
4890 | { | |
4891 | if (temp2) | |
4892 | delete arg2; | |
4893 | } | |
4894 | return resultobj; | |
4895 | fail: | |
4896 | { | |
4897 | if (temp2) | |
4898 | delete arg2; | |
4899 | } | |
4900 | return NULL; | |
4901 | } | |
4902 | ||
4903 | ||
4904 | static PyObject *_wrap_StatusBar_GetStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4905 | PyObject *resultobj; | |
4906 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4907 | int arg2 = (int) 0 ; | |
4908 | wxString result; | |
4909 | PyObject * obj0 = 0 ; | |
994141e6 | 4910 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4911 | char *kwnames[] = { |
4912 | (char *) "self",(char *) "number", NULL | |
4913 | }; | |
4914 | ||
994141e6 | 4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_GetStatusText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 4916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
4917 | if (obj1) { |
4918 | { | |
4919 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
4920 | if (PyErr_Occurred()) SWIG_fail; | |
4921 | } | |
4922 | } | |
d14a1e28 RD |
4923 | { |
4924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4925 | result = ((wxStatusBar const *)arg1)->GetStatusText(arg2); | |
4926 | ||
4927 | wxPyEndAllowThreads(__tstate); | |
4928 | if (PyErr_Occurred()) SWIG_fail; | |
4929 | } | |
4930 | { | |
4931 | #if wxUSE_UNICODE | |
4932 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4933 | #else | |
4934 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4935 | #endif | |
4936 | } | |
4937 | return resultobj; | |
4938 | fail: | |
4939 | return NULL; | |
4940 | } | |
4941 | ||
4942 | ||
4943 | static PyObject *_wrap_StatusBar_PushStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4944 | PyObject *resultobj; | |
4945 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4946 | wxString *arg2 = 0 ; | |
4947 | int arg3 = (int) 0 ; | |
e811c8ce | 4948 | bool temp2 = False ; |
d14a1e28 RD |
4949 | PyObject * obj0 = 0 ; |
4950 | PyObject * obj1 = 0 ; | |
994141e6 | 4951 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4952 | char *kwnames[] = { |
4953 | (char *) "self",(char *) "text",(char *) "number", NULL | |
4954 | }; | |
4955 | ||
994141e6 | 4956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:StatusBar_PushStatusText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
4957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
4958 | { | |
4959 | arg2 = wxString_in_helper(obj1); | |
4960 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4961 | temp2 = True; |
d14a1e28 | 4962 | } |
994141e6 RD |
4963 | if (obj2) { |
4964 | { | |
4965 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
4966 | if (PyErr_Occurred()) SWIG_fail; | |
4967 | } | |
4968 | } | |
d14a1e28 RD |
4969 | { |
4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4971 | (arg1)->PushStatusText((wxString const &)*arg2,arg3); | |
4972 | ||
4973 | wxPyEndAllowThreads(__tstate); | |
4974 | if (PyErr_Occurred()) SWIG_fail; | |
4975 | } | |
4976 | Py_INCREF(Py_None); resultobj = Py_None; | |
4977 | { | |
4978 | if (temp2) | |
4979 | delete arg2; | |
4980 | } | |
4981 | return resultobj; | |
4982 | fail: | |
4983 | { | |
4984 | if (temp2) | |
4985 | delete arg2; | |
4986 | } | |
4987 | return NULL; | |
4988 | } | |
4989 | ||
4990 | ||
4991 | static PyObject *_wrap_StatusBar_PopStatusText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4992 | PyObject *resultobj; | |
4993 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
4994 | int arg2 = (int) 0 ; | |
4995 | PyObject * obj0 = 0 ; | |
994141e6 | 4996 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4997 | char *kwnames[] = { |
4998 | (char *) "self",(char *) "number", NULL | |
4999 | }; | |
5000 | ||
994141e6 | 5001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StatusBar_PopStatusText",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5003 | if (obj1) { |
5004 | { | |
5005 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
5008 | } | |
d14a1e28 RD |
5009 | { |
5010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5011 | (arg1)->PopStatusText(arg2); | |
5012 | ||
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
5016 | Py_INCREF(Py_None); resultobj = Py_None; | |
5017 | return resultobj; | |
5018 | fail: | |
5019 | return NULL; | |
5020 | } | |
5021 | ||
5022 | ||
5023 | static PyObject *_wrap_StatusBar_SetStatusWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5024 | PyObject *resultobj; | |
5025 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5026 | int arg2 ; | |
5027 | int *arg3 = (int *) 0 ; | |
5028 | PyObject * obj0 = 0 ; | |
5029 | PyObject * obj1 = 0 ; | |
5030 | char *kwnames[] = { | |
5031 | (char *) "self",(char *) "widths", NULL | |
5032 | }; | |
5033 | ||
5034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetStatusWidths",kwnames,&obj0,&obj1)) goto fail; | |
5035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5036 | { | |
5037 | arg2 = PyList_Size(obj1); | |
5038 | arg3 = int_LIST_helper(obj1); | |
5039 | if (arg3 == NULL) SWIG_fail; | |
5040 | } | |
5041 | { | |
5042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5043 | (arg1)->SetStatusWidths(arg2,(int const *)arg3); | |
5044 | ||
5045 | wxPyEndAllowThreads(__tstate); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
5047 | } | |
5048 | Py_INCREF(Py_None); resultobj = Py_None; | |
5049 | { | |
5050 | if (arg3) delete [] arg3; | |
5051 | } | |
5052 | return resultobj; | |
5053 | fail: | |
5054 | { | |
5055 | if (arg3) delete [] arg3; | |
5056 | } | |
5057 | return NULL; | |
5058 | } | |
5059 | ||
5060 | ||
5061 | static PyObject *_wrap_StatusBar_GetFieldRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5062 | PyObject *resultobj; | |
5063 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5064 | int arg2 ; | |
7722248d | 5065 | wxRect result; |
d14a1e28 | 5066 | PyObject * obj0 = 0 ; |
994141e6 | 5067 | PyObject * obj1 = 0 ; |
d14a1e28 | 5068 | char *kwnames[] = { |
7722248d | 5069 | (char *) "self",(char *) "i", NULL |
d14a1e28 RD |
5070 | }; |
5071 | ||
994141e6 | 5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_GetFieldRect",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5074 | { |
5075 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5076 | if (PyErr_Occurred()) SWIG_fail; | |
5077 | } | |
d14a1e28 RD |
5078 | { |
5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 5080 | result = wxStatusBar_GetFieldRect(arg1,arg2); |
d14a1e28 RD |
5081 | |
5082 | wxPyEndAllowThreads(__tstate); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
7722248d RD |
5085 | { |
5086 | wxRect * resultptr; | |
5087 | resultptr = new wxRect((wxRect &) result); | |
5088 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
5089 | } | |
d14a1e28 RD |
5090 | return resultobj; |
5091 | fail: | |
5092 | return NULL; | |
5093 | } | |
5094 | ||
5095 | ||
5096 | static PyObject *_wrap_StatusBar_SetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5097 | PyObject *resultobj; | |
5098 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5099 | int arg2 ; | |
5100 | PyObject * obj0 = 0 ; | |
994141e6 | 5101 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5102 | char *kwnames[] = { |
5103 | (char *) "self",(char *) "height", NULL | |
5104 | }; | |
5105 | ||
994141e6 | 5106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StatusBar_SetMinHeight",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5108 | { |
5109 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5110 | if (PyErr_Occurred()) SWIG_fail; | |
5111 | } | |
d14a1e28 RD |
5112 | { |
5113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5114 | (arg1)->SetMinHeight(arg2); | |
5115 | ||
5116 | wxPyEndAllowThreads(__tstate); | |
5117 | if (PyErr_Occurred()) SWIG_fail; | |
5118 | } | |
5119 | Py_INCREF(Py_None); resultobj = Py_None; | |
5120 | return resultobj; | |
5121 | fail: | |
5122 | return NULL; | |
5123 | } | |
5124 | ||
5125 | ||
5126 | static PyObject *_wrap_StatusBar_GetBorderX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5127 | PyObject *resultobj; | |
5128 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5129 | int result; | |
5130 | PyObject * obj0 = 0 ; | |
5131 | char *kwnames[] = { | |
5132 | (char *) "self", NULL | |
5133 | }; | |
5134 | ||
5135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderX",kwnames,&obj0)) goto fail; | |
5136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5137 | { | |
5138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5139 | result = (int)((wxStatusBar const *)arg1)->GetBorderX(); | |
5140 | ||
5141 | wxPyEndAllowThreads(__tstate); | |
5142 | if (PyErr_Occurred()) SWIG_fail; | |
5143 | } | |
994141e6 | 5144 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5145 | return resultobj; |
5146 | fail: | |
5147 | return NULL; | |
5148 | } | |
5149 | ||
5150 | ||
5151 | static PyObject *_wrap_StatusBar_GetBorderY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5152 | PyObject *resultobj; | |
5153 | wxStatusBar *arg1 = (wxStatusBar *) 0 ; | |
5154 | int result; | |
5155 | PyObject * obj0 = 0 ; | |
5156 | char *kwnames[] = { | |
5157 | (char *) "self", NULL | |
5158 | }; | |
5159 | ||
5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StatusBar_GetBorderY",kwnames,&obj0)) goto fail; | |
5161 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStatusBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5162 | { | |
5163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5164 | result = (int)((wxStatusBar const *)arg1)->GetBorderY(); | |
5165 | ||
5166 | wxPyEndAllowThreads(__tstate); | |
5167 | if (PyErr_Occurred()) SWIG_fail; | |
5168 | } | |
994141e6 | 5169 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5170 | return resultobj; |
5171 | fail: | |
5172 | return NULL; | |
5173 | } | |
5174 | ||
5175 | ||
5176 | static PyObject * StatusBar_swigregister(PyObject *self, PyObject *args) { | |
5177 | PyObject *obj; | |
5178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5179 | SWIG_TypeClientData(SWIGTYPE_p_wxStatusBar, obj); | |
5180 | Py_INCREF(obj); | |
5181 | return Py_BuildValue((char *)""); | |
5182 | } | |
b2dc1044 RD |
5183 | static int _wrap_SplitterNameStr_set(PyObject *_val) { |
5184 | PyErr_SetString(PyExc_TypeError,"Variable SplitterNameStr is read-only."); | |
5185 | return 1; | |
5186 | } | |
5187 | ||
5188 | ||
5189 | static PyObject *_wrap_SplitterNameStr_get() { | |
5190 | PyObject *pyobj; | |
5191 | ||
5192 | { | |
5193 | #if wxUSE_UNICODE | |
5194 | pyobj = PyUnicode_FromWideChar((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5195 | #else | |
5196 | pyobj = PyString_FromStringAndSize((&wxPySplitterNameStr)->c_str(), (&wxPySplitterNameStr)->Len()); | |
5197 | #endif | |
5198 | } | |
5199 | return pyobj; | |
5200 | } | |
5201 | ||
5202 | ||
d14a1e28 RD |
5203 | static PyObject *_wrap_new_SplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
5204 | PyObject *resultobj; | |
5205 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5206 | int arg2 ; |
d14a1e28 RD |
5207 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5208 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5209 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5210 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5211 | long arg5 = (long) wxSP_3D ; | |
5212 | wxString const &arg6_defvalue = wxPySplitterNameStr ; | |
5213 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
5214 | wxSplitterWindow *result; | |
5215 | wxPoint temp3 ; | |
5216 | wxSize temp4 ; | |
e811c8ce | 5217 | bool temp6 = False ; |
d14a1e28 | 5218 | PyObject * obj0 = 0 ; |
994141e6 | 5219 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5220 | PyObject * obj2 = 0 ; |
5221 | PyObject * obj3 = 0 ; | |
994141e6 | 5222 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
5223 | PyObject * obj5 = 0 ; |
5224 | char *kwnames[] = { | |
994141e6 | 5225 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL |
d14a1e28 RD |
5226 | }; |
5227 | ||
994141e6 | 5228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SplitterWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 5229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5230 | { |
5231 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5232 | if (PyErr_Occurred()) SWIG_fail; | |
5233 | } | |
d14a1e28 RD |
5234 | if (obj2) { |
5235 | { | |
5236 | arg3 = &temp3; | |
5237 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5238 | } | |
5239 | } | |
5240 | if (obj3) { | |
5241 | { | |
5242 | arg4 = &temp4; | |
5243 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5244 | } | |
5245 | } | |
994141e6 RD |
5246 | if (obj4) { |
5247 | { | |
5248 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
5249 | if (PyErr_Occurred()) SWIG_fail; | |
5250 | } | |
5251 | } | |
d14a1e28 RD |
5252 | if (obj5) { |
5253 | { | |
5254 | arg6 = wxString_in_helper(obj5); | |
5255 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 5256 | temp6 = True; |
d14a1e28 RD |
5257 | } |
5258 | } | |
5259 | { | |
5260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5261 | result = (wxSplitterWindow *)new wxSplitterWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
5262 | ||
5263 | wxPyEndAllowThreads(__tstate); | |
5264 | if (PyErr_Occurred()) SWIG_fail; | |
5265 | } | |
5266 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplitterWindow, 1); | |
5267 | { | |
5268 | if (temp6) | |
5269 | delete arg6; | |
5270 | } | |
5271 | return resultobj; | |
5272 | fail: | |
5273 | { | |
5274 | if (temp6) | |
5275 | delete arg6; | |
5276 | } | |
5277 | return NULL; | |
5278 | } | |
5279 | ||
5280 | ||
5281 | static PyObject *_wrap_new_PreSplitterWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5282 | PyObject *resultobj; | |
5283 | wxSplitterWindow *result; | |
5284 | char *kwnames[] = { | |
5285 | NULL | |
5286 | }; | |
5287 | ||
5288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSplitterWindow",kwnames)) goto fail; | |
5289 | { | |
5290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5291 | result = (wxSplitterWindow *)new wxSplitterWindow(); | |
5292 | ||
5293 | wxPyEndAllowThreads(__tstate); | |
5294 | if (PyErr_Occurred()) SWIG_fail; | |
5295 | } | |
5296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplitterWindow, 1); | |
5297 | return resultobj; | |
5298 | fail: | |
5299 | return NULL; | |
5300 | } | |
5301 | ||
5302 | ||
5303 | static PyObject *_wrap_SplitterWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5304 | PyObject *resultobj; | |
5305 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5306 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5307 | int arg3 ; |
d14a1e28 RD |
5308 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5309 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5310 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5311 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5312 | long arg6 = (long) wxSP_3D ; | |
5313 | wxString const &arg7_defvalue = wxPySplitterNameStr ; | |
5314 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5315 | bool result; | |
5316 | wxPoint temp4 ; | |
5317 | wxSize temp5 ; | |
e811c8ce | 5318 | bool temp7 = False ; |
d14a1e28 RD |
5319 | PyObject * obj0 = 0 ; |
5320 | PyObject * obj1 = 0 ; | |
994141e6 | 5321 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5322 | PyObject * obj3 = 0 ; |
5323 | PyObject * obj4 = 0 ; | |
994141e6 | 5324 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5325 | PyObject * obj6 = 0 ; |
5326 | char *kwnames[] = { | |
994141e6 | 5327 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL |
d14a1e28 RD |
5328 | }; |
5329 | ||
994141e6 | 5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SplitterWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
5331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5332 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
5333 | { |
5334 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5335 | if (PyErr_Occurred()) SWIG_fail; | |
5336 | } | |
d14a1e28 RD |
5337 | if (obj3) { |
5338 | { | |
5339 | arg4 = &temp4; | |
5340 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5341 | } | |
5342 | } | |
5343 | if (obj4) { | |
5344 | { | |
5345 | arg5 = &temp5; | |
5346 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5347 | } | |
5348 | } | |
994141e6 RD |
5349 | if (obj5) { |
5350 | { | |
5351 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
5352 | if (PyErr_Occurred()) SWIG_fail; | |
5353 | } | |
5354 | } | |
d14a1e28 RD |
5355 | if (obj6) { |
5356 | { | |
5357 | arg7 = wxString_in_helper(obj6); | |
5358 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5359 | temp7 = True; |
d14a1e28 RD |
5360 | } |
5361 | } | |
5362 | { | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5365 | ||
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
4d5c3d91 | 5369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5370 | { |
5371 | if (temp7) | |
5372 | delete arg7; | |
5373 | } | |
5374 | return resultobj; | |
5375 | fail: | |
5376 | { | |
5377 | if (temp7) | |
5378 | delete arg7; | |
5379 | } | |
5380 | return NULL; | |
5381 | } | |
5382 | ||
5383 | ||
5384 | static PyObject *_wrap_SplitterWindow_GetWindow1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5385 | PyObject *resultobj; | |
5386 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5387 | wxWindow *result; | |
5388 | PyObject * obj0 = 0 ; | |
5389 | char *kwnames[] = { | |
5390 | (char *) "self", NULL | |
5391 | }; | |
5392 | ||
5393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow1",kwnames,&obj0)) goto fail; | |
5394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5395 | { | |
5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5397 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow1(); | |
5398 | ||
5399 | wxPyEndAllowThreads(__tstate); | |
5400 | if (PyErr_Occurred()) SWIG_fail; | |
5401 | } | |
5402 | { | |
5403 | resultobj = wxPyMake_wxObject(result); | |
5404 | } | |
5405 | return resultobj; | |
5406 | fail: | |
5407 | return NULL; | |
5408 | } | |
5409 | ||
5410 | ||
5411 | static PyObject *_wrap_SplitterWindow_GetWindow2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5412 | PyObject *resultobj; | |
5413 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5414 | wxWindow *result; | |
5415 | PyObject * obj0 = 0 ; | |
5416 | char *kwnames[] = { | |
5417 | (char *) "self", NULL | |
5418 | }; | |
5419 | ||
5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetWindow2",kwnames,&obj0)) goto fail; | |
5421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5422 | { | |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | result = (wxWindow *)((wxSplitterWindow const *)arg1)->GetWindow2(); | |
5425 | ||
5426 | wxPyEndAllowThreads(__tstate); | |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
5428 | } | |
5429 | { | |
5430 | resultobj = wxPyMake_wxObject(result); | |
5431 | } | |
5432 | return resultobj; | |
5433 | fail: | |
5434 | return NULL; | |
5435 | } | |
5436 | ||
5437 | ||
5438 | static PyObject *_wrap_SplitterWindow_SetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5439 | PyObject *resultobj; | |
5440 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5441 | int arg2 ; | |
5442 | PyObject * obj0 = 0 ; | |
994141e6 | 5443 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5444 | char *kwnames[] = { |
5445 | (char *) "self",(char *) "mode", NULL | |
5446 | }; | |
5447 | ||
994141e6 | 5448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSplitMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5450 | { |
5451 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
d14a1e28 RD |
5454 | { |
5455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5456 | (arg1)->SetSplitMode(arg2); | |
5457 | ||
5458 | wxPyEndAllowThreads(__tstate); | |
5459 | if (PyErr_Occurred()) SWIG_fail; | |
5460 | } | |
5461 | Py_INCREF(Py_None); resultobj = Py_None; | |
5462 | return resultobj; | |
5463 | fail: | |
5464 | return NULL; | |
5465 | } | |
5466 | ||
5467 | ||
5468 | static PyObject *_wrap_SplitterWindow_GetSplitMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5469 | PyObject *resultobj; | |
5470 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5471 | int result; | |
5472 | PyObject * obj0 = 0 ; | |
5473 | char *kwnames[] = { | |
5474 | (char *) "self", NULL | |
5475 | }; | |
5476 | ||
5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSplitMode",kwnames,&obj0)) goto fail; | |
5478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5479 | { | |
5480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5481 | result = (int)((wxSplitterWindow const *)arg1)->GetSplitMode(); | |
5482 | ||
5483 | wxPyEndAllowThreads(__tstate); | |
5484 | if (PyErr_Occurred()) SWIG_fail; | |
5485 | } | |
994141e6 | 5486 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5487 | return resultobj; |
5488 | fail: | |
5489 | return NULL; | |
5490 | } | |
5491 | ||
5492 | ||
5493 | static PyObject *_wrap_SplitterWindow_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5494 | PyObject *resultobj; | |
5495 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5496 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5497 | PyObject * obj0 = 0 ; | |
5498 | PyObject * obj1 = 0 ; | |
5499 | char *kwnames[] = { | |
5500 | (char *) "self",(char *) "window", NULL | |
5501 | }; | |
5502 | ||
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_Initialize",kwnames,&obj0,&obj1)) goto fail; | |
5504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5505 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5506 | { | |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5508 | (arg1)->Initialize(arg2); | |
5509 | ||
5510 | wxPyEndAllowThreads(__tstate); | |
5511 | if (PyErr_Occurred()) SWIG_fail; | |
5512 | } | |
5513 | Py_INCREF(Py_None); resultobj = Py_None; | |
5514 | return resultobj; | |
5515 | fail: | |
5516 | return NULL; | |
5517 | } | |
5518 | ||
5519 | ||
5520 | static PyObject *_wrap_SplitterWindow_SplitVertically(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5521 | PyObject *resultobj; | |
5522 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5523 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5524 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5525 | int arg4 = (int) 0 ; | |
5526 | bool result; | |
5527 | PyObject * obj0 = 0 ; | |
5528 | PyObject * obj1 = 0 ; | |
5529 | PyObject * obj2 = 0 ; | |
994141e6 | 5530 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5531 | char *kwnames[] = { |
5532 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5533 | }; | |
5534 | ||
994141e6 | 5535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitVertically",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5537 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5538 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
5539 | if (obj3) { |
5540 | { | |
5541 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5542 | if (PyErr_Occurred()) SWIG_fail; | |
5543 | } | |
5544 | } | |
d14a1e28 RD |
5545 | { |
5546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5547 | result = (bool)(arg1)->SplitVertically(arg2,arg3,arg4); | |
5548 | ||
5549 | wxPyEndAllowThreads(__tstate); | |
5550 | if (PyErr_Occurred()) SWIG_fail; | |
5551 | } | |
4d5c3d91 | 5552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5553 | return resultobj; |
5554 | fail: | |
5555 | return NULL; | |
5556 | } | |
5557 | ||
5558 | ||
5559 | static PyObject *_wrap_SplitterWindow_SplitHorizontally(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5560 | PyObject *resultobj; | |
5561 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5562 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5563 | wxWindow *arg3 = (wxWindow *) 0 ; | |
5564 | int arg4 = (int) 0 ; | |
5565 | bool result; | |
5566 | PyObject * obj0 = 0 ; | |
5567 | PyObject * obj1 = 0 ; | |
5568 | PyObject * obj2 = 0 ; | |
994141e6 | 5569 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
5570 | char *kwnames[] = { |
5571 | (char *) "self",(char *) "window1",(char *) "window2",(char *) "sashPosition", NULL | |
5572 | }; | |
5573 | ||
994141e6 | 5574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SplitHorizontally",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
5575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
5576 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5577 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
5578 | if (obj3) { |
5579 | { | |
5580 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5581 | if (PyErr_Occurred()) SWIG_fail; | |
5582 | } | |
5583 | } | |
d14a1e28 RD |
5584 | { |
5585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5586 | result = (bool)(arg1)->SplitHorizontally(arg2,arg3,arg4); | |
5587 | ||
5588 | wxPyEndAllowThreads(__tstate); | |
5589 | if (PyErr_Occurred()) SWIG_fail; | |
5590 | } | |
4d5c3d91 | 5591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5592 | return resultobj; |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
5598 | static PyObject *_wrap_SplitterWindow_Unsplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject *resultobj; | |
5600 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5601 | wxWindow *arg2 = (wxWindow *) NULL ; | |
5602 | bool result; | |
5603 | PyObject * obj0 = 0 ; | |
5604 | PyObject * obj1 = 0 ; | |
5605 | char *kwnames[] = { | |
5606 | (char *) "self",(char *) "toRemove", NULL | |
5607 | }; | |
5608 | ||
5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SplitterWindow_Unsplit",kwnames,&obj0,&obj1)) goto fail; | |
5610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5611 | if (obj1) { | |
5612 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5613 | } | |
5614 | { | |
5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5616 | result = (bool)(arg1)->Unsplit(arg2); | |
5617 | ||
5618 | wxPyEndAllowThreads(__tstate); | |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
5620 | } | |
4d5c3d91 | 5621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5622 | return resultobj; |
5623 | fail: | |
5624 | return NULL; | |
5625 | } | |
5626 | ||
5627 | ||
5628 | static PyObject *_wrap_SplitterWindow_ReplaceWindow(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 | bool result; | |
5634 | PyObject * obj0 = 0 ; | |
5635 | PyObject * obj1 = 0 ; | |
5636 | PyObject * obj2 = 0 ; | |
5637 | char *kwnames[] = { | |
5638 | (char *) "self",(char *) "winOld",(char *) "winNew", NULL | |
5639 | }; | |
5640 | ||
5641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SplitterWindow_ReplaceWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5643 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5644 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5645 | { | |
5646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5647 | result = (bool)(arg1)->ReplaceWindow(arg2,arg3); | |
5648 | ||
5649 | wxPyEndAllowThreads(__tstate); | |
5650 | if (PyErr_Occurred()) SWIG_fail; | |
5651 | } | |
4d5c3d91 | 5652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5653 | return resultobj; |
5654 | fail: | |
5655 | return NULL; | |
5656 | } | |
5657 | ||
5658 | ||
5659 | static PyObject *_wrap_SplitterWindow_IsSplit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5660 | PyObject *resultobj; | |
5661 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5662 | bool result; | |
5663 | PyObject * obj0 = 0 ; | |
5664 | char *kwnames[] = { | |
5665 | (char *) "self", NULL | |
5666 | }; | |
5667 | ||
5668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_IsSplit",kwnames,&obj0)) goto fail; | |
5669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5670 | { | |
5671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5672 | result = (bool)((wxSplitterWindow const *)arg1)->IsSplit(); | |
5673 | ||
5674 | wxPyEndAllowThreads(__tstate); | |
5675 | if (PyErr_Occurred()) SWIG_fail; | |
5676 | } | |
4d5c3d91 | 5677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5678 | return resultobj; |
5679 | fail: | |
5680 | return NULL; | |
5681 | } | |
5682 | ||
5683 | ||
5684 | static PyObject *_wrap_SplitterWindow_SetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5685 | PyObject *resultobj; | |
5686 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5687 | int arg2 ; | |
5688 | PyObject * obj0 = 0 ; | |
994141e6 | 5689 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5690 | char *kwnames[] = { |
5691 | (char *) "self",(char *) "width", NULL | |
5692 | }; | |
5693 | ||
994141e6 | 5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetSashSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5696 | { |
5697 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5698 | if (PyErr_Occurred()) SWIG_fail; | |
5699 | } | |
d14a1e28 RD |
5700 | { |
5701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5702 | (arg1)->SetSashSize(arg2); | |
5703 | ||
5704 | wxPyEndAllowThreads(__tstate); | |
5705 | if (PyErr_Occurred()) SWIG_fail; | |
5706 | } | |
5707 | Py_INCREF(Py_None); resultobj = Py_None; | |
5708 | return resultobj; | |
5709 | fail: | |
5710 | return NULL; | |
5711 | } | |
5712 | ||
5713 | ||
5714 | static PyObject *_wrap_SplitterWindow_SetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5715 | PyObject *resultobj; | |
5716 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5717 | int arg2 ; | |
5718 | PyObject * obj0 = 0 ; | |
994141e6 | 5719 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5720 | char *kwnames[] = { |
5721 | (char *) "self",(char *) "width", NULL | |
5722 | }; | |
5723 | ||
994141e6 | 5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetBorderSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5726 | { |
5727 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5728 | if (PyErr_Occurred()) SWIG_fail; | |
5729 | } | |
d14a1e28 RD |
5730 | { |
5731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5732 | (arg1)->SetBorderSize(arg2); | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
5737 | Py_INCREF(Py_None); resultobj = Py_None; | |
5738 | return resultobj; | |
5739 | fail: | |
5740 | return NULL; | |
5741 | } | |
5742 | ||
5743 | ||
5744 | static PyObject *_wrap_SplitterWindow_GetSashSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5745 | PyObject *resultobj; | |
5746 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5747 | int result; | |
5748 | PyObject * obj0 = 0 ; | |
5749 | char *kwnames[] = { | |
5750 | (char *) "self", NULL | |
5751 | }; | |
5752 | ||
5753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashSize",kwnames,&obj0)) goto fail; | |
5754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5755 | { | |
5756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5757 | result = (int)((wxSplitterWindow const *)arg1)->GetSashSize(); | |
5758 | ||
5759 | wxPyEndAllowThreads(__tstate); | |
5760 | if (PyErr_Occurred()) SWIG_fail; | |
5761 | } | |
994141e6 | 5762 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5763 | return resultobj; |
5764 | fail: | |
5765 | return NULL; | |
5766 | } | |
5767 | ||
5768 | ||
5769 | static PyObject *_wrap_SplitterWindow_GetBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5770 | PyObject *resultobj; | |
5771 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5772 | int result; | |
5773 | PyObject * obj0 = 0 ; | |
5774 | char *kwnames[] = { | |
5775 | (char *) "self", NULL | |
5776 | }; | |
5777 | ||
5778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetBorderSize",kwnames,&obj0)) goto fail; | |
5779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5780 | { | |
5781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5782 | result = (int)((wxSplitterWindow const *)arg1)->GetBorderSize(); | |
5783 | ||
5784 | wxPyEndAllowThreads(__tstate); | |
5785 | if (PyErr_Occurred()) SWIG_fail; | |
5786 | } | |
994141e6 | 5787 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5788 | return resultobj; |
5789 | fail: | |
5790 | return NULL; | |
5791 | } | |
5792 | ||
5793 | ||
5794 | static PyObject *_wrap_SplitterWindow_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5795 | PyObject *resultobj; | |
5796 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5797 | int arg2 ; | |
e811c8ce | 5798 | bool arg3 = (bool) True ; |
d14a1e28 | 5799 | PyObject * obj0 = 0 ; |
994141e6 | 5800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5801 | PyObject * obj2 = 0 ; |
5802 | char *kwnames[] = { | |
5803 | (char *) "self",(char *) "position",(char *) "redraw", NULL | |
5804 | }; | |
5805 | ||
994141e6 | 5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SplitterWindow_SetSashPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 5807 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5808 | { |
5809 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5810 | if (PyErr_Occurred()) SWIG_fail; | |
5811 | } | |
d14a1e28 | 5812 | if (obj2) { |
a41e16b6 | 5813 | { |
994141e6 | 5814 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
5815 | if (PyErr_Occurred()) SWIG_fail; |
5816 | } | |
d14a1e28 RD |
5817 | } |
5818 | { | |
5819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5820 | (arg1)->SetSashPosition(arg2,arg3); | |
5821 | ||
5822 | wxPyEndAllowThreads(__tstate); | |
5823 | if (PyErr_Occurred()) SWIG_fail; | |
5824 | } | |
5825 | Py_INCREF(Py_None); resultobj = Py_None; | |
5826 | return resultobj; | |
5827 | fail: | |
5828 | return NULL; | |
5829 | } | |
5830 | ||
5831 | ||
5832 | static PyObject *_wrap_SplitterWindow_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject *resultobj; | |
5834 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5835 | int result; | |
5836 | PyObject * obj0 = 0 ; | |
5837 | char *kwnames[] = { | |
5838 | (char *) "self", NULL | |
5839 | }; | |
5840 | ||
5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetSashPosition",kwnames,&obj0)) goto fail; | |
5842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | result = (int)((wxSplitterWindow const *)arg1)->GetSashPosition(); | |
5846 | ||
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
994141e6 | 5850 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5851 | return resultobj; |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | static PyObject *_wrap_SplitterWindow_SetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject *resultobj; | |
5859 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5860 | int arg2 ; | |
5861 | PyObject * obj0 = 0 ; | |
994141e6 | 5862 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5863 | char *kwnames[] = { |
5864 | (char *) "self",(char *) "min", NULL | |
5865 | }; | |
5866 | ||
994141e6 | 5867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetMinimumPaneSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 5868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5869 | { |
5870 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5871 | if (PyErr_Occurred()) SWIG_fail; | |
5872 | } | |
d14a1e28 RD |
5873 | { |
5874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5875 | (arg1)->SetMinimumPaneSize(arg2); | |
5876 | ||
5877 | wxPyEndAllowThreads(__tstate); | |
5878 | if (PyErr_Occurred()) SWIG_fail; | |
5879 | } | |
5880 | Py_INCREF(Py_None); resultobj = Py_None; | |
5881 | return resultobj; | |
5882 | fail: | |
5883 | return NULL; | |
5884 | } | |
5885 | ||
5886 | ||
5887 | static PyObject *_wrap_SplitterWindow_GetMinimumPaneSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5888 | PyObject *resultobj; | |
5889 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5890 | int result; | |
5891 | PyObject * obj0 = 0 ; | |
5892 | char *kwnames[] = { | |
5893 | (char *) "self", NULL | |
5894 | }; | |
5895 | ||
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetMinimumPaneSize",kwnames,&obj0)) goto fail; | |
5897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5898 | { | |
5899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5900 | result = (int)((wxSplitterWindow const *)arg1)->GetMinimumPaneSize(); | |
5901 | ||
5902 | wxPyEndAllowThreads(__tstate); | |
5903 | if (PyErr_Occurred()) SWIG_fail; | |
5904 | } | |
994141e6 | 5905 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
5906 | return resultobj; |
5907 | fail: | |
5908 | return NULL; | |
5909 | } | |
5910 | ||
5911 | ||
5912 | static PyObject *_wrap_SplitterWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5913 | PyObject *resultobj; | |
5914 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5915 | int arg2 ; | |
5916 | int arg3 ; | |
5917 | int arg4 = (int) 5 ; | |
5918 | bool result; | |
5919 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5920 | PyObject * obj1 = 0 ; |
5921 | PyObject * obj2 = 0 ; | |
5922 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
5923 | char *kwnames[] = { |
5924 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
5925 | }; | |
5926 | ||
994141e6 | 5927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SplitterWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 5928 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
5929 | { |
5930 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
5931 | if (PyErr_Occurred()) SWIG_fail; | |
5932 | } | |
5933 | { | |
5934 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
5937 | if (obj3) { | |
5938 | { | |
5939 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
5940 | if (PyErr_Occurred()) SWIG_fail; | |
5941 | } | |
5942 | } | |
d14a1e28 RD |
5943 | { |
5944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5945 | result = (bool)(arg1)->SashHitTest(arg2,arg3,arg4); | |
5946 | ||
5947 | wxPyEndAllowThreads(__tstate); | |
5948 | if (PyErr_Occurred()) SWIG_fail; | |
5949 | } | |
4d5c3d91 | 5950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
5951 | return resultobj; |
5952 | fail: | |
5953 | return NULL; | |
5954 | } | |
5955 | ||
5956 | ||
5957 | static PyObject *_wrap_SplitterWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5958 | PyObject *resultobj; | |
5959 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5960 | PyObject * obj0 = 0 ; | |
5961 | char *kwnames[] = { | |
5962 | (char *) "self", NULL | |
5963 | }; | |
5964 | ||
5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_SizeWindows",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 | (arg1)->SizeWindows(); | |
5970 | ||
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
5974 | Py_INCREF(Py_None); resultobj = Py_None; | |
5975 | return resultobj; | |
5976 | fail: | |
5977 | return NULL; | |
5978 | } | |
5979 | ||
5980 | ||
5981 | static PyObject *_wrap_SplitterWindow_SetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5982 | PyObject *resultobj; | |
5983 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
5984 | bool arg2 ; | |
5985 | PyObject * obj0 = 0 ; | |
5986 | PyObject * obj1 = 0 ; | |
5987 | char *kwnames[] = { | |
5988 | (char *) "self",(char *) "needUpdating", NULL | |
5989 | }; | |
5990 | ||
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterWindow_SetNeedUpdating",kwnames,&obj0,&obj1)) goto fail; | |
5992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 5993 | { |
994141e6 | 5994 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
5995 | if (PyErr_Occurred()) SWIG_fail; |
5996 | } | |
d14a1e28 RD |
5997 | { |
5998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5999 | (arg1)->SetNeedUpdating(arg2); | |
6000 | ||
6001 | wxPyEndAllowThreads(__tstate); | |
6002 | if (PyErr_Occurred()) SWIG_fail; | |
6003 | } | |
6004 | Py_INCREF(Py_None); resultobj = Py_None; | |
6005 | return resultobj; | |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | static PyObject *_wrap_SplitterWindow_GetNeedUpdating(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj; | |
6013 | wxSplitterWindow *arg1 = (wxSplitterWindow *) 0 ; | |
6014 | bool result; | |
6015 | PyObject * obj0 = 0 ; | |
6016 | char *kwnames[] = { | |
6017 | (char *) "self", NULL | |
6018 | }; | |
6019 | ||
6020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterWindow_GetNeedUpdating",kwnames,&obj0)) goto fail; | |
6021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6022 | { | |
6023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6024 | result = (bool)((wxSplitterWindow const *)arg1)->GetNeedUpdating(); | |
6025 | ||
6026 | wxPyEndAllowThreads(__tstate); | |
6027 | if (PyErr_Occurred()) SWIG_fail; | |
6028 | } | |
4d5c3d91 | 6029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6030 | return resultobj; |
6031 | fail: | |
6032 | return NULL; | |
6033 | } | |
6034 | ||
6035 | ||
6036 | static PyObject * SplitterWindow_swigregister(PyObject *self, PyObject *args) { | |
6037 | PyObject *obj; | |
6038 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6039 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterWindow, obj); | |
6040 | Py_INCREF(obj); | |
6041 | return Py_BuildValue((char *)""); | |
6042 | } | |
6043 | static PyObject *_wrap_new_SplitterEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6044 | PyObject *resultobj; | |
6045 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
6046 | wxSplitterWindow *arg2 = (wxSplitterWindow *) (wxSplitterWindow *) NULL ; | |
6047 | wxSplitterEvent *result; | |
994141e6 | 6048 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
6049 | PyObject * obj1 = 0 ; |
6050 | char *kwnames[] = { | |
6051 | (char *) "type",(char *) "splitter", NULL | |
6052 | }; | |
6053 | ||
994141e6 RD |
6054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SplitterEvent",kwnames,&obj0,&obj1)) goto fail; |
6055 | if (obj0) { | |
6056 | { | |
6057 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
6058 | if (PyErr_Occurred()) SWIG_fail; | |
6059 | } | |
6060 | } | |
d14a1e28 RD |
6061 | if (obj1) { |
6062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSplitterWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6063 | } | |
6064 | { | |
6065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6066 | result = (wxSplitterEvent *)new wxSplitterEvent(arg1,arg2); | |
6067 | ||
6068 | wxPyEndAllowThreads(__tstate); | |
6069 | if (PyErr_Occurred()) SWIG_fail; | |
6070 | } | |
6071 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSplitterEvent, 1); | |
6072 | return resultobj; | |
6073 | fail: | |
6074 | return NULL; | |
6075 | } | |
6076 | ||
6077 | ||
6078 | static PyObject *_wrap_SplitterEvent_SetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6079 | PyObject *resultobj; | |
6080 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6081 | int arg2 ; | |
6082 | PyObject * obj0 = 0 ; | |
994141e6 | 6083 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6084 | char *kwnames[] = { |
6085 | (char *) "self",(char *) "pos", NULL | |
6086 | }; | |
6087 | ||
994141e6 | 6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SplitterEvent_SetSashPosition",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6090 | { |
6091 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6092 | if (PyErr_Occurred()) SWIG_fail; | |
6093 | } | |
d14a1e28 RD |
6094 | { |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6096 | (arg1)->SetSashPosition(arg2); | |
6097 | ||
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | } | |
6101 | Py_INCREF(Py_None); resultobj = Py_None; | |
6102 | return resultobj; | |
6103 | fail: | |
6104 | return NULL; | |
6105 | } | |
6106 | ||
6107 | ||
6108 | static PyObject *_wrap_SplitterEvent_GetSashPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6109 | PyObject *resultobj; | |
6110 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6111 | int result; | |
6112 | PyObject * obj0 = 0 ; | |
6113 | char *kwnames[] = { | |
6114 | (char *) "self", NULL | |
6115 | }; | |
6116 | ||
6117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetSashPosition",kwnames,&obj0)) goto fail; | |
6118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6119 | { | |
6120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6121 | result = (int)((wxSplitterEvent const *)arg1)->GetSashPosition(); | |
6122 | ||
6123 | wxPyEndAllowThreads(__tstate); | |
6124 | if (PyErr_Occurred()) SWIG_fail; | |
6125 | } | |
994141e6 | 6126 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6127 | return resultobj; |
6128 | fail: | |
6129 | return NULL; | |
6130 | } | |
6131 | ||
6132 | ||
6133 | static PyObject *_wrap_SplitterEvent_GetWindowBeingRemoved(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6134 | PyObject *resultobj; | |
6135 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6136 | wxWindow *result; | |
6137 | PyObject * obj0 = 0 ; | |
6138 | char *kwnames[] = { | |
6139 | (char *) "self", NULL | |
6140 | }; | |
6141 | ||
6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetWindowBeingRemoved",kwnames,&obj0)) goto fail; | |
6143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6144 | { | |
6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6146 | result = (wxWindow *)((wxSplitterEvent const *)arg1)->GetWindowBeingRemoved(); | |
6147 | ||
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
6151 | { | |
6152 | resultobj = wxPyMake_wxObject(result); | |
6153 | } | |
6154 | return resultobj; | |
6155 | fail: | |
6156 | return NULL; | |
6157 | } | |
6158 | ||
6159 | ||
6160 | static PyObject *_wrap_SplitterEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject *resultobj; | |
6162 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6163 | int result; | |
6164 | PyObject * obj0 = 0 ; | |
6165 | char *kwnames[] = { | |
6166 | (char *) "self", NULL | |
6167 | }; | |
6168 | ||
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetX",kwnames,&obj0)) goto fail; | |
6170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6171 | { | |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6173 | result = (int)((wxSplitterEvent const *)arg1)->GetX(); | |
6174 | ||
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
994141e6 | 6178 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6179 | return resultobj; |
6180 | fail: | |
6181 | return NULL; | |
6182 | } | |
6183 | ||
6184 | ||
6185 | static PyObject *_wrap_SplitterEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6186 | PyObject *resultobj; | |
6187 | wxSplitterEvent *arg1 = (wxSplitterEvent *) 0 ; | |
6188 | int result; | |
6189 | PyObject * obj0 = 0 ; | |
6190 | char *kwnames[] = { | |
6191 | (char *) "self", NULL | |
6192 | }; | |
6193 | ||
6194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SplitterEvent_GetY",kwnames,&obj0)) goto fail; | |
6195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSplitterEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6196 | { | |
6197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6198 | result = (int)((wxSplitterEvent const *)arg1)->GetY(); | |
6199 | ||
6200 | wxPyEndAllowThreads(__tstate); | |
6201 | if (PyErr_Occurred()) SWIG_fail; | |
6202 | } | |
994141e6 | 6203 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6204 | return resultobj; |
6205 | fail: | |
6206 | return NULL; | |
6207 | } | |
6208 | ||
6209 | ||
6210 | static PyObject * SplitterEvent_swigregister(PyObject *self, PyObject *args) { | |
6211 | PyObject *obj; | |
6212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6213 | SWIG_TypeClientData(SWIGTYPE_p_wxSplitterEvent, obj); | |
6214 | Py_INCREF(obj); | |
6215 | return Py_BuildValue((char *)""); | |
6216 | } | |
b2dc1044 RD |
6217 | static int _wrap_SashNameStr_set(PyObject *_val) { |
6218 | PyErr_SetString(PyExc_TypeError,"Variable SashNameStr is read-only."); | |
6219 | return 1; | |
6220 | } | |
6221 | ||
6222 | ||
6223 | static PyObject *_wrap_SashNameStr_get() { | |
6224 | PyObject *pyobj; | |
6225 | ||
6226 | { | |
6227 | #if wxUSE_UNICODE | |
6228 | pyobj = PyUnicode_FromWideChar((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6229 | #else | |
6230 | pyobj = PyString_FromStringAndSize((&wxPySashNameStr)->c_str(), (&wxPySashNameStr)->Len()); | |
6231 | #endif | |
6232 | } | |
6233 | return pyobj; | |
6234 | } | |
6235 | ||
6236 | ||
6237 | static int _wrap_SashLayoutNameStr_set(PyObject *_val) { | |
6238 | PyErr_SetString(PyExc_TypeError,"Variable SashLayoutNameStr is read-only."); | |
6239 | return 1; | |
6240 | } | |
6241 | ||
6242 | ||
6243 | static PyObject *_wrap_SashLayoutNameStr_get() { | |
6244 | PyObject *pyobj; | |
6245 | ||
6246 | { | |
6247 | #if wxUSE_UNICODE | |
6248 | pyobj = PyUnicode_FromWideChar((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6249 | #else | |
6250 | pyobj = PyString_FromStringAndSize((&wxPySashLayoutNameStr)->c_str(), (&wxPySashLayoutNameStr)->Len()); | |
6251 | #endif | |
6252 | } | |
6253 | return pyobj; | |
6254 | } | |
6255 | ||
6256 | ||
d14a1e28 RD |
6257 | static PyObject *_wrap_new_SashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
6258 | PyObject *resultobj; | |
6259 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 6260 | int arg2 ; |
d14a1e28 RD |
6261 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6262 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6263 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6264 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6265 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6266 | wxString const &arg6_defvalue = wxPySashNameStr ; | |
6267 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
6268 | wxSashWindow *result; | |
6269 | wxPoint temp3 ; | |
6270 | wxSize temp4 ; | |
e811c8ce | 6271 | bool temp6 = False ; |
d14a1e28 | 6272 | PyObject * obj0 = 0 ; |
994141e6 | 6273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6274 | PyObject * obj2 = 0 ; |
6275 | PyObject * obj3 = 0 ; | |
994141e6 | 6276 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
6277 | PyObject * obj5 = 0 ; |
6278 | char *kwnames[] = { | |
6279 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6280 | }; | |
6281 | ||
994141e6 | 6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 6283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6284 | { |
6285 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6286 | if (PyErr_Occurred()) SWIG_fail; | |
6287 | } | |
d14a1e28 RD |
6288 | if (obj2) { |
6289 | { | |
6290 | arg3 = &temp3; | |
6291 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6292 | } | |
6293 | } | |
6294 | if (obj3) { | |
6295 | { | |
6296 | arg4 = &temp4; | |
6297 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6298 | } | |
6299 | } | |
994141e6 RD |
6300 | if (obj4) { |
6301 | { | |
6302 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
6303 | if (PyErr_Occurred()) SWIG_fail; | |
6304 | } | |
6305 | } | |
d14a1e28 RD |
6306 | if (obj5) { |
6307 | { | |
6308 | arg6 = wxString_in_helper(obj5); | |
6309 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 6310 | temp6 = True; |
d14a1e28 RD |
6311 | } |
6312 | } | |
6313 | { | |
6314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6315 | result = (wxSashWindow *)new wxSashWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
6316 | ||
6317 | wxPyEndAllowThreads(__tstate); | |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
6319 | } | |
6320 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashWindow, 1); | |
6321 | { | |
6322 | if (temp6) | |
6323 | delete arg6; | |
6324 | } | |
6325 | return resultobj; | |
6326 | fail: | |
6327 | { | |
6328 | if (temp6) | |
6329 | delete arg6; | |
6330 | } | |
6331 | return NULL; | |
6332 | } | |
6333 | ||
6334 | ||
6335 | static PyObject *_wrap_new_PreSashWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6336 | PyObject *resultobj; | |
6337 | wxSashWindow *result; | |
6338 | char *kwnames[] = { | |
6339 | NULL | |
6340 | }; | |
6341 | ||
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashWindow",kwnames)) goto fail; | |
6343 | { | |
6344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6345 | result = (wxSashWindow *)new wxSashWindow(); | |
6346 | ||
6347 | wxPyEndAllowThreads(__tstate); | |
6348 | if (PyErr_Occurred()) SWIG_fail; | |
6349 | } | |
6350 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashWindow, 1); | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | return NULL; | |
6354 | } | |
6355 | ||
6356 | ||
6357 | static PyObject *_wrap_SashWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6360 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 6361 | int arg3 ; |
d14a1e28 RD |
6362 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6363 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6364 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6365 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6366 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
6367 | wxString const &arg7_defvalue = wxPySashNameStr ; | |
6368 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
6369 | bool result; | |
6370 | wxPoint temp4 ; | |
6371 | wxSize temp5 ; | |
e811c8ce | 6372 | bool temp7 = False ; |
d14a1e28 RD |
6373 | PyObject * obj0 = 0 ; |
6374 | PyObject * obj1 = 0 ; | |
994141e6 | 6375 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6376 | PyObject * obj3 = 0 ; |
6377 | PyObject * obj4 = 0 ; | |
994141e6 | 6378 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6379 | PyObject * obj6 = 0 ; |
6380 | char *kwnames[] = { | |
6381 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
6382 | }; | |
6383 | ||
994141e6 | 6384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
6385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
6386 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
6387 | { |
6388 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6389 | if (PyErr_Occurred()) SWIG_fail; | |
6390 | } | |
d14a1e28 RD |
6391 | if (obj3) { |
6392 | { | |
6393 | arg4 = &temp4; | |
6394 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6395 | } | |
6396 | } | |
6397 | if (obj4) { | |
6398 | { | |
6399 | arg5 = &temp5; | |
6400 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6401 | } | |
6402 | } | |
994141e6 RD |
6403 | if (obj5) { |
6404 | { | |
6405 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
6407 | } | |
6408 | } | |
d14a1e28 RD |
6409 | if (obj6) { |
6410 | { | |
6411 | arg7 = wxString_in_helper(obj6); | |
6412 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 6413 | temp7 = True; |
d14a1e28 RD |
6414 | } |
6415 | } | |
6416 | { | |
6417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6418 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
6419 | ||
6420 | wxPyEndAllowThreads(__tstate); | |
6421 | if (PyErr_Occurred()) SWIG_fail; | |
6422 | } | |
4d5c3d91 | 6423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6424 | { |
6425 | if (temp7) | |
6426 | delete arg7; | |
6427 | } | |
6428 | return resultobj; | |
6429 | fail: | |
6430 | { | |
6431 | if (temp7) | |
6432 | delete arg7; | |
6433 | } | |
6434 | return NULL; | |
6435 | } | |
6436 | ||
6437 | ||
6438 | static PyObject *_wrap_SashWindow_SetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6439 | PyObject *resultobj; | |
6440 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6441 | int arg2 ; | |
6442 | bool arg3 ; | |
6443 | PyObject * obj0 = 0 ; | |
994141e6 | 6444 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6445 | PyObject * obj2 = 0 ; |
6446 | char *kwnames[] = { | |
6447 | (char *) "self",(char *) "edge",(char *) "sash", NULL | |
6448 | }; | |
6449 | ||
994141e6 | 6450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashVisible",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 6452 | { |
994141e6 RD |
6453 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
6456 | { | |
6457 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
6458 | if (PyErr_Occurred()) SWIG_fail; |
6459 | } | |
d14a1e28 RD |
6460 | { |
6461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6462 | (arg1)->SetSashVisible((wxSashEdgePosition )arg2,arg3); | |
6463 | ||
6464 | wxPyEndAllowThreads(__tstate); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
6466 | } | |
6467 | Py_INCREF(Py_None); resultobj = Py_None; | |
6468 | return resultobj; | |
6469 | fail: | |
6470 | return NULL; | |
6471 | } | |
6472 | ||
6473 | ||
6474 | static PyObject *_wrap_SashWindow_GetSashVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6475 | PyObject *resultobj; | |
6476 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6477 | int arg2 ; | |
6478 | bool result; | |
6479 | PyObject * obj0 = 0 ; | |
994141e6 | 6480 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6481 | char *kwnames[] = { |
6482 | (char *) "self",(char *) "edge", NULL | |
6483 | }; | |
6484 | ||
994141e6 | 6485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetSashVisible",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6487 | { |
6488 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
6489 | if (PyErr_Occurred()) SWIG_fail; | |
6490 | } | |
d14a1e28 RD |
6491 | { |
6492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6493 | result = (bool)((wxSashWindow const *)arg1)->GetSashVisible((wxSashEdgePosition )arg2); | |
6494 | ||
6495 | wxPyEndAllowThreads(__tstate); | |
6496 | if (PyErr_Occurred()) SWIG_fail; | |
6497 | } | |
4d5c3d91 | 6498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6499 | return resultobj; |
6500 | fail: | |
6501 | return NULL; | |
6502 | } | |
6503 | ||
6504 | ||
6505 | static PyObject *_wrap_SashWindow_SetSashBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6506 | PyObject *resultobj; | |
6507 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6508 | int arg2 ; | |
6509 | bool arg3 ; | |
6510 | PyObject * obj0 = 0 ; | |
994141e6 | 6511 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6512 | PyObject * obj2 = 0 ; |
6513 | char *kwnames[] = { | |
6514 | (char *) "self",(char *) "edge",(char *) "border", NULL | |
6515 | }; | |
6516 | ||
994141e6 | 6517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SashWindow_SetSashBorder",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 6518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
a41e16b6 | 6519 | { |
994141e6 RD |
6520 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); |
6521 | if (PyErr_Occurred()) SWIG_fail; | |
6522 | } | |
6523 | { | |
6524 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); | |
a41e16b6 RD |
6525 | if (PyErr_Occurred()) SWIG_fail; |
6526 | } | |
d14a1e28 RD |
6527 | { |
6528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6529 | (arg1)->SetSashBorder((wxSashEdgePosition )arg2,arg3); | |
6530 | ||
6531 | wxPyEndAllowThreads(__tstate); | |
6532 | if (PyErr_Occurred()) SWIG_fail; | |
6533 | } | |
6534 | Py_INCREF(Py_None); resultobj = Py_None; | |
6535 | return resultobj; | |
6536 | fail: | |
6537 | return NULL; | |
6538 | } | |
6539 | ||
6540 | ||
6541 | static PyObject *_wrap_SashWindow_HasBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6542 | PyObject *resultobj; | |
6543 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6544 | int arg2 ; | |
6545 | bool result; | |
6546 | PyObject * obj0 = 0 ; | |
994141e6 | 6547 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6548 | char *kwnames[] = { |
6549 | (char *) "self",(char *) "edge", NULL | |
6550 | }; | |
6551 | ||
994141e6 | 6552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_HasBorder",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6554 | { |
6555 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
d14a1e28 RD |
6558 | { |
6559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6560 | result = (bool)((wxSashWindow const *)arg1)->HasBorder((wxSashEdgePosition )arg2); | |
6561 | ||
6562 | wxPyEndAllowThreads(__tstate); | |
6563 | if (PyErr_Occurred()) SWIG_fail; | |
6564 | } | |
4d5c3d91 | 6565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
6566 | return resultobj; |
6567 | fail: | |
6568 | return NULL; | |
6569 | } | |
6570 | ||
6571 | ||
6572 | static PyObject *_wrap_SashWindow_GetEdgeMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6573 | PyObject *resultobj; | |
6574 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6575 | int arg2 ; | |
6576 | int result; | |
6577 | PyObject * obj0 = 0 ; | |
994141e6 | 6578 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6579 | char *kwnames[] = { |
6580 | (char *) "self",(char *) "edge", NULL | |
6581 | }; | |
6582 | ||
994141e6 | 6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_GetEdgeMargin",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6585 | { |
6586 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
6587 | if (PyErr_Occurred()) SWIG_fail; | |
6588 | } | |
d14a1e28 RD |
6589 | { |
6590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6591 | result = (int)((wxSashWindow const *)arg1)->GetEdgeMargin((wxSashEdgePosition )arg2); | |
6592 | ||
6593 | wxPyEndAllowThreads(__tstate); | |
6594 | if (PyErr_Occurred()) SWIG_fail; | |
6595 | } | |
994141e6 | 6596 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6597 | return resultobj; |
6598 | fail: | |
6599 | return NULL; | |
6600 | } | |
6601 | ||
6602 | ||
6603 | static PyObject *_wrap_SashWindow_SetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6604 | PyObject *resultobj; | |
6605 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6606 | int arg2 ; | |
6607 | PyObject * obj0 = 0 ; | |
994141e6 | 6608 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6609 | char *kwnames[] = { |
6610 | (char *) "self",(char *) "width", NULL | |
6611 | }; | |
6612 | ||
994141e6 | 6613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetDefaultBorderSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6615 | { |
6616 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6617 | if (PyErr_Occurred()) SWIG_fail; | |
6618 | } | |
d14a1e28 RD |
6619 | { |
6620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6621 | (arg1)->SetDefaultBorderSize(arg2); | |
6622 | ||
6623 | wxPyEndAllowThreads(__tstate); | |
6624 | if (PyErr_Occurred()) SWIG_fail; | |
6625 | } | |
6626 | Py_INCREF(Py_None); resultobj = Py_None; | |
6627 | return resultobj; | |
6628 | fail: | |
6629 | return NULL; | |
6630 | } | |
6631 | ||
6632 | ||
6633 | static PyObject *_wrap_SashWindow_GetDefaultBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6634 | PyObject *resultobj; | |
6635 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6636 | int result; | |
6637 | PyObject * obj0 = 0 ; | |
6638 | char *kwnames[] = { | |
6639 | (char *) "self", NULL | |
6640 | }; | |
6641 | ||
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetDefaultBorderSize",kwnames,&obj0)) goto fail; | |
6643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6644 | { | |
6645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6646 | result = (int)((wxSashWindow const *)arg1)->GetDefaultBorderSize(); | |
6647 | ||
6648 | wxPyEndAllowThreads(__tstate); | |
6649 | if (PyErr_Occurred()) SWIG_fail; | |
6650 | } | |
994141e6 | 6651 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6652 | return resultobj; |
6653 | fail: | |
6654 | return NULL; | |
6655 | } | |
6656 | ||
6657 | ||
6658 | static PyObject *_wrap_SashWindow_SetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6659 | PyObject *resultobj; | |
6660 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6661 | int arg2 ; | |
6662 | PyObject * obj0 = 0 ; | |
994141e6 | 6663 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6664 | char *kwnames[] = { |
6665 | (char *) "self",(char *) "width", NULL | |
6666 | }; | |
6667 | ||
994141e6 | 6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetExtraBorderSize",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6670 | { |
6671 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6672 | if (PyErr_Occurred()) SWIG_fail; | |
6673 | } | |
d14a1e28 RD |
6674 | { |
6675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6676 | (arg1)->SetExtraBorderSize(arg2); | |
6677 | ||
6678 | wxPyEndAllowThreads(__tstate); | |
6679 | if (PyErr_Occurred()) SWIG_fail; | |
6680 | } | |
6681 | Py_INCREF(Py_None); resultobj = Py_None; | |
6682 | return resultobj; | |
6683 | fail: | |
6684 | return NULL; | |
6685 | } | |
6686 | ||
6687 | ||
6688 | static PyObject *_wrap_SashWindow_GetExtraBorderSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6689 | PyObject *resultobj; | |
6690 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6691 | int result; | |
6692 | PyObject * obj0 = 0 ; | |
6693 | char *kwnames[] = { | |
6694 | (char *) "self", NULL | |
6695 | }; | |
6696 | ||
6697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetExtraBorderSize",kwnames,&obj0)) goto fail; | |
6698 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6699 | { | |
6700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6701 | result = (int)((wxSashWindow const *)arg1)->GetExtraBorderSize(); | |
6702 | ||
6703 | wxPyEndAllowThreads(__tstate); | |
6704 | if (PyErr_Occurred()) SWIG_fail; | |
6705 | } | |
994141e6 | 6706 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6707 | return resultobj; |
6708 | fail: | |
6709 | return NULL; | |
6710 | } | |
6711 | ||
6712 | ||
6713 | static PyObject *_wrap_SashWindow_SetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6714 | PyObject *resultobj; | |
6715 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6716 | int arg2 ; | |
6717 | PyObject * obj0 = 0 ; | |
994141e6 | 6718 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6719 | char *kwnames[] = { |
6720 | (char *) "self",(char *) "min", NULL | |
6721 | }; | |
6722 | ||
994141e6 | 6723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6725 | { |
6726 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6727 | if (PyErr_Occurred()) SWIG_fail; | |
6728 | } | |
d14a1e28 RD |
6729 | { |
6730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6731 | (arg1)->SetMinimumSizeX(arg2); | |
6732 | ||
6733 | wxPyEndAllowThreads(__tstate); | |
6734 | if (PyErr_Occurred()) SWIG_fail; | |
6735 | } | |
6736 | Py_INCREF(Py_None); resultobj = Py_None; | |
6737 | return resultobj; | |
6738 | fail: | |
6739 | return NULL; | |
6740 | } | |
6741 | ||
6742 | ||
6743 | static PyObject *_wrap_SashWindow_SetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6744 | PyObject *resultobj; | |
6745 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6746 | int arg2 ; | |
6747 | PyObject * obj0 = 0 ; | |
994141e6 | 6748 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6749 | char *kwnames[] = { |
6750 | (char *) "self",(char *) "min", NULL | |
6751 | }; | |
6752 | ||
994141e6 | 6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMinimumSizeY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6755 | { |
6756 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6757 | if (PyErr_Occurred()) SWIG_fail; | |
6758 | } | |
d14a1e28 RD |
6759 | { |
6760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6761 | (arg1)->SetMinimumSizeY(arg2); | |
6762 | ||
6763 | wxPyEndAllowThreads(__tstate); | |
6764 | if (PyErr_Occurred()) SWIG_fail; | |
6765 | } | |
6766 | Py_INCREF(Py_None); resultobj = Py_None; | |
6767 | return resultobj; | |
6768 | fail: | |
6769 | return NULL; | |
6770 | } | |
6771 | ||
6772 | ||
6773 | static PyObject *_wrap_SashWindow_GetMinimumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6774 | PyObject *resultobj; | |
6775 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6776 | int result; | |
6777 | PyObject * obj0 = 0 ; | |
6778 | char *kwnames[] = { | |
6779 | (char *) "self", NULL | |
6780 | }; | |
6781 | ||
6782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeX",kwnames,&obj0)) goto fail; | |
6783 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6784 | { | |
6785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6786 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeX(); | |
6787 | ||
6788 | wxPyEndAllowThreads(__tstate); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
994141e6 | 6791 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6792 | return resultobj; |
6793 | fail: | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
6798 | static PyObject *_wrap_SashWindow_GetMinimumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6799 | PyObject *resultobj; | |
6800 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6801 | int result; | |
6802 | PyObject * obj0 = 0 ; | |
6803 | char *kwnames[] = { | |
6804 | (char *) "self", NULL | |
6805 | }; | |
6806 | ||
6807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMinimumSizeY",kwnames,&obj0)) goto fail; | |
6808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6809 | { | |
6810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6811 | result = (int)((wxSashWindow const *)arg1)->GetMinimumSizeY(); | |
6812 | ||
6813 | wxPyEndAllowThreads(__tstate); | |
6814 | if (PyErr_Occurred()) SWIG_fail; | |
6815 | } | |
994141e6 | 6816 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6817 | return resultobj; |
6818 | fail: | |
6819 | return NULL; | |
6820 | } | |
6821 | ||
6822 | ||
6823 | static PyObject *_wrap_SashWindow_SetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6824 | PyObject *resultobj; | |
6825 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6826 | int arg2 ; | |
6827 | PyObject * obj0 = 0 ; | |
994141e6 | 6828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6829 | char *kwnames[] = { |
6830 | (char *) "self",(char *) "max", NULL | |
6831 | }; | |
6832 | ||
994141e6 | 6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6835 | { |
6836 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
d14a1e28 RD |
6839 | { |
6840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6841 | (arg1)->SetMaximumSizeX(arg2); | |
6842 | ||
6843 | wxPyEndAllowThreads(__tstate); | |
6844 | if (PyErr_Occurred()) SWIG_fail; | |
6845 | } | |
6846 | Py_INCREF(Py_None); resultobj = Py_None; | |
6847 | return resultobj; | |
6848 | fail: | |
6849 | return NULL; | |
6850 | } | |
6851 | ||
6852 | ||
6853 | static PyObject *_wrap_SashWindow_SetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6854 | PyObject *resultobj; | |
6855 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6856 | int arg2 ; | |
6857 | PyObject * obj0 = 0 ; | |
994141e6 | 6858 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6859 | char *kwnames[] = { |
6860 | (char *) "self",(char *) "max", NULL | |
6861 | }; | |
6862 | ||
994141e6 | 6863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashWindow_SetMaximumSizeY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 6864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6865 | { |
6866 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
6868 | } | |
d14a1e28 RD |
6869 | { |
6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6871 | (arg1)->SetMaximumSizeY(arg2); | |
6872 | ||
6873 | wxPyEndAllowThreads(__tstate); | |
6874 | if (PyErr_Occurred()) SWIG_fail; | |
6875 | } | |
6876 | Py_INCREF(Py_None); resultobj = Py_None; | |
6877 | return resultobj; | |
6878 | fail: | |
6879 | return NULL; | |
6880 | } | |
6881 | ||
6882 | ||
6883 | static PyObject *_wrap_SashWindow_GetMaximumSizeX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject *resultobj; | |
6885 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6886 | int result; | |
6887 | PyObject * obj0 = 0 ; | |
6888 | char *kwnames[] = { | |
6889 | (char *) "self", NULL | |
6890 | }; | |
6891 | ||
6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeX",kwnames,&obj0)) goto fail; | |
6893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6894 | { | |
6895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6896 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeX(); | |
6897 | ||
6898 | wxPyEndAllowThreads(__tstate); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
994141e6 | 6901 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6902 | return resultobj; |
6903 | fail: | |
6904 | return NULL; | |
6905 | } | |
6906 | ||
6907 | ||
6908 | static PyObject *_wrap_SashWindow_GetMaximumSizeY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject *resultobj; | |
6910 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6911 | int result; | |
6912 | PyObject * obj0 = 0 ; | |
6913 | char *kwnames[] = { | |
6914 | (char *) "self", NULL | |
6915 | }; | |
6916 | ||
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_GetMaximumSizeY",kwnames,&obj0)) goto fail; | |
6918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6919 | { | |
6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6921 | result = (int)((wxSashWindow const *)arg1)->GetMaximumSizeY(); | |
6922 | ||
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) SWIG_fail; | |
6925 | } | |
994141e6 | 6926 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6927 | return resultobj; |
6928 | fail: | |
6929 | return NULL; | |
6930 | } | |
6931 | ||
6932 | ||
6933 | static PyObject *_wrap_SashWindow_SashHitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6934 | PyObject *resultobj; | |
6935 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6936 | int arg2 ; | |
6937 | int arg3 ; | |
6938 | int arg4 = (int) 2 ; | |
6939 | int result; | |
6940 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6941 | PyObject * obj1 = 0 ; |
6942 | PyObject * obj2 = 0 ; | |
6943 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
6944 | char *kwnames[] = { |
6945 | (char *) "self",(char *) "x",(char *) "y",(char *) "tolerance", NULL | |
6946 | }; | |
6947 | ||
994141e6 | 6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:SashWindow_SashHitTest",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 6949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
6950 | { |
6951 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
6952 | if (PyErr_Occurred()) SWIG_fail; | |
6953 | } | |
6954 | { | |
6955 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
6956 | if (PyErr_Occurred()) SWIG_fail; | |
6957 | } | |
6958 | if (obj3) { | |
6959 | { | |
6960 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
6961 | if (PyErr_Occurred()) SWIG_fail; | |
6962 | } | |
6963 | } | |
d14a1e28 RD |
6964 | { |
6965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6966 | result = (int)(arg1)->SashHitTest(arg2,arg3,arg4); | |
6967 | ||
6968 | wxPyEndAllowThreads(__tstate); | |
6969 | if (PyErr_Occurred()) SWIG_fail; | |
6970 | } | |
994141e6 | 6971 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
6972 | return resultobj; |
6973 | fail: | |
6974 | return NULL; | |
6975 | } | |
6976 | ||
6977 | ||
6978 | static PyObject *_wrap_SashWindow_SizeWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6979 | PyObject *resultobj; | |
6980 | wxSashWindow *arg1 = (wxSashWindow *) 0 ; | |
6981 | PyObject * obj0 = 0 ; | |
6982 | char *kwnames[] = { | |
6983 | (char *) "self", NULL | |
6984 | }; | |
6985 | ||
6986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashWindow_SizeWindows",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 | (arg1)->SizeWindows(); | |
6991 | ||
6992 | wxPyEndAllowThreads(__tstate); | |
6993 | if (PyErr_Occurred()) SWIG_fail; | |
6994 | } | |
6995 | Py_INCREF(Py_None); resultobj = Py_None; | |
6996 | return resultobj; | |
6997 | fail: | |
6998 | return NULL; | |
6999 | } | |
7000 | ||
7001 | ||
7002 | static PyObject * SashWindow_swigregister(PyObject *self, PyObject *args) { | |
7003 | PyObject *obj; | |
7004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7005 | SWIG_TypeClientData(SWIGTYPE_p_wxSashWindow, obj); | |
7006 | Py_INCREF(obj); | |
7007 | return Py_BuildValue((char *)""); | |
7008 | } | |
7009 | static PyObject *_wrap_new_SashEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7010 | PyObject *resultobj; | |
7011 | int arg1 = (int) 0 ; | |
7012 | int arg2 = (int) wxSASH_NONE ; | |
7013 | wxSashEvent *result; | |
994141e6 RD |
7014 | PyObject * obj0 = 0 ; |
7015 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
7016 | char *kwnames[] = { |
7017 | (char *) "id",(char *) "edge", NULL | |
7018 | }; | |
7019 | ||
994141e6 RD |
7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SashEvent",kwnames,&obj0,&obj1)) goto fail; |
7021 | if (obj0) { | |
7022 | { | |
7023 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7024 | if (PyErr_Occurred()) SWIG_fail; | |
7025 | } | |
7026 | } | |
7027 | if (obj1) { | |
7028 | { | |
7029 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
7030 | if (PyErr_Occurred()) SWIG_fail; | |
7031 | } | |
7032 | } | |
d14a1e28 RD |
7033 | { |
7034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7035 | result = (wxSashEvent *)new wxSashEvent(arg1,(wxSashEdgePosition )arg2); | |
7036 | ||
7037 | wxPyEndAllowThreads(__tstate); | |
7038 | if (PyErr_Occurred()) SWIG_fail; | |
7039 | } | |
7040 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashEvent, 1); | |
7041 | return resultobj; | |
7042 | fail: | |
7043 | return NULL; | |
7044 | } | |
7045 | ||
7046 | ||
7047 | static PyObject *_wrap_SashEvent_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7048 | PyObject *resultobj; | |
7049 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7050 | int arg2 ; | |
7051 | PyObject * obj0 = 0 ; | |
994141e6 | 7052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7053 | char *kwnames[] = { |
7054 | (char *) "self",(char *) "edge", NULL | |
7055 | }; | |
7056 | ||
994141e6 | 7057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7059 | { |
7060 | arg2 = (wxSashEdgePosition) SWIG_PyObj_AsInt(obj1); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
d14a1e28 RD |
7063 | { |
7064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7065 | (arg1)->SetEdge((wxSashEdgePosition )arg2); | |
7066 | ||
7067 | wxPyEndAllowThreads(__tstate); | |
7068 | if (PyErr_Occurred()) SWIG_fail; | |
7069 | } | |
7070 | Py_INCREF(Py_None); resultobj = Py_None; | |
7071 | return resultobj; | |
7072 | fail: | |
7073 | return NULL; | |
7074 | } | |
7075 | ||
7076 | ||
7077 | static PyObject *_wrap_SashEvent_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7078 | PyObject *resultobj; | |
7079 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7080 | int result; | |
7081 | PyObject * obj0 = 0 ; | |
7082 | char *kwnames[] = { | |
7083 | (char *) "self", NULL | |
7084 | }; | |
7085 | ||
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetEdge",kwnames,&obj0)) goto fail; | |
7087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7088 | { | |
7089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7090 | result = (int)((wxSashEvent const *)arg1)->GetEdge(); | |
7091 | ||
7092 | wxPyEndAllowThreads(__tstate); | |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
7094 | } | |
994141e6 | 7095 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7096 | return resultobj; |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
7102 | static PyObject *_wrap_SashEvent_SetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7103 | PyObject *resultobj; | |
7104 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7105 | wxRect *arg2 = 0 ; | |
7106 | wxRect temp2 ; | |
7107 | PyObject * obj0 = 0 ; | |
7108 | PyObject * obj1 = 0 ; | |
7109 | char *kwnames[] = { | |
7110 | (char *) "self",(char *) "rect", NULL | |
7111 | }; | |
7112 | ||
7113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragRect",kwnames,&obj0,&obj1)) goto fail; | |
7114 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7115 | { | |
7116 | arg2 = &temp2; | |
7117 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7118 | } | |
7119 | { | |
7120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7121 | (arg1)->SetDragRect((wxRect const &)*arg2); | |
7122 | ||
7123 | wxPyEndAllowThreads(__tstate); | |
7124 | if (PyErr_Occurred()) SWIG_fail; | |
7125 | } | |
7126 | Py_INCREF(Py_None); resultobj = Py_None; | |
7127 | return resultobj; | |
7128 | fail: | |
7129 | return NULL; | |
7130 | } | |
7131 | ||
7132 | ||
7133 | static PyObject *_wrap_SashEvent_GetDragRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7134 | PyObject *resultobj; | |
7135 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7136 | wxRect result; | |
7137 | PyObject * obj0 = 0 ; | |
7138 | char *kwnames[] = { | |
7139 | (char *) "self", NULL | |
7140 | }; | |
7141 | ||
7142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragRect",kwnames,&obj0)) goto fail; | |
7143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7144 | { | |
7145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7146 | result = ((wxSashEvent const *)arg1)->GetDragRect(); | |
7147 | ||
7148 | wxPyEndAllowThreads(__tstate); | |
7149 | if (PyErr_Occurred()) SWIG_fail; | |
7150 | } | |
7151 | { | |
7152 | wxRect * resultptr; | |
7153 | resultptr = new wxRect((wxRect &) result); | |
7154 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
7155 | } | |
7156 | return resultobj; | |
7157 | fail: | |
7158 | return NULL; | |
7159 | } | |
7160 | ||
7161 | ||
7162 | static PyObject *_wrap_SashEvent_SetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7163 | PyObject *resultobj; | |
7164 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7165 | int arg2 ; | |
7166 | PyObject * obj0 = 0 ; | |
994141e6 | 7167 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7168 | char *kwnames[] = { |
7169 | (char *) "self",(char *) "status", NULL | |
7170 | }; | |
7171 | ||
994141e6 | 7172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashEvent_SetDragStatus",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7173 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7174 | { |
7175 | arg2 = (wxSashDragStatus) SWIG_PyObj_AsInt(obj1); | |
7176 | if (PyErr_Occurred()) SWIG_fail; | |
7177 | } | |
d14a1e28 RD |
7178 | { |
7179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7180 | (arg1)->SetDragStatus((wxSashDragStatus )arg2); | |
7181 | ||
7182 | wxPyEndAllowThreads(__tstate); | |
7183 | if (PyErr_Occurred()) SWIG_fail; | |
7184 | } | |
7185 | Py_INCREF(Py_None); resultobj = Py_None; | |
7186 | return resultobj; | |
7187 | fail: | |
7188 | return NULL; | |
7189 | } | |
7190 | ||
7191 | ||
7192 | static PyObject *_wrap_SashEvent_GetDragStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject *resultobj; | |
7194 | wxSashEvent *arg1 = (wxSashEvent *) 0 ; | |
7195 | int result; | |
7196 | PyObject * obj0 = 0 ; | |
7197 | char *kwnames[] = { | |
7198 | (char *) "self", NULL | |
7199 | }; | |
7200 | ||
7201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashEvent_GetDragStatus",kwnames,&obj0)) goto fail; | |
7202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7203 | { | |
7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7205 | result = (int)((wxSashEvent const *)arg1)->GetDragStatus(); | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | } | |
994141e6 | 7210 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7211 | return resultobj; |
7212 | fail: | |
7213 | return NULL; | |
7214 | } | |
7215 | ||
7216 | ||
7217 | static PyObject * SashEvent_swigregister(PyObject *self, PyObject *args) { | |
7218 | PyObject *obj; | |
7219 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7220 | SWIG_TypeClientData(SWIGTYPE_p_wxSashEvent, obj); | |
7221 | Py_INCREF(obj); | |
7222 | return Py_BuildValue((char *)""); | |
7223 | } | |
7224 | static PyObject *_wrap_new_QueryLayoutInfoEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj; | |
e811c8ce | 7226 | int arg1 = (int) 0 ; |
d14a1e28 | 7227 | wxQueryLayoutInfoEvent *result; |
994141e6 | 7228 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7229 | char *kwnames[] = { |
7230 | (char *) "id", NULL | |
7231 | }; | |
7232 | ||
994141e6 RD |
7233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryLayoutInfoEvent",kwnames,&obj0)) goto fail; |
7234 | if (obj0) { | |
7235 | { | |
7236 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | } | |
7239 | } | |
d14a1e28 RD |
7240 | { |
7241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7242 | result = (wxQueryLayoutInfoEvent *)new wxQueryLayoutInfoEvent(arg1); | |
7243 | ||
7244 | wxPyEndAllowThreads(__tstate); | |
7245 | if (PyErr_Occurred()) SWIG_fail; | |
7246 | } | |
7247 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryLayoutInfoEvent, 1); | |
7248 | return resultobj; | |
7249 | fail: | |
7250 | return NULL; | |
7251 | } | |
7252 | ||
7253 | ||
7254 | static PyObject *_wrap_QueryLayoutInfoEvent_SetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7255 | PyObject *resultobj; | |
7256 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7257 | int arg2 ; | |
7258 | PyObject * obj0 = 0 ; | |
994141e6 | 7259 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7260 | char *kwnames[] = { |
7261 | (char *) "self",(char *) "length", NULL | |
7262 | }; | |
7263 | ||
994141e6 | 7264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetRequestedLength",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7266 | { |
7267 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7268 | if (PyErr_Occurred()) SWIG_fail; | |
7269 | } | |
d14a1e28 RD |
7270 | { |
7271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7272 | (arg1)->SetRequestedLength(arg2); | |
7273 | ||
7274 | wxPyEndAllowThreads(__tstate); | |
7275 | if (PyErr_Occurred()) SWIG_fail; | |
7276 | } | |
7277 | Py_INCREF(Py_None); resultobj = Py_None; | |
7278 | return resultobj; | |
7279 | fail: | |
7280 | return NULL; | |
7281 | } | |
7282 | ||
7283 | ||
7284 | static PyObject *_wrap_QueryLayoutInfoEvent_GetRequestedLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7285 | PyObject *resultobj; | |
7286 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7287 | int result; | |
7288 | PyObject * obj0 = 0 ; | |
7289 | char *kwnames[] = { | |
7290 | (char *) "self", NULL | |
7291 | }; | |
7292 | ||
7293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetRequestedLength",kwnames,&obj0)) goto fail; | |
7294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7295 | { | |
7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7297 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetRequestedLength(); | |
7298 | ||
7299 | wxPyEndAllowThreads(__tstate); | |
7300 | if (PyErr_Occurred()) SWIG_fail; | |
7301 | } | |
994141e6 | 7302 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7303 | return resultobj; |
7304 | fail: | |
7305 | return NULL; | |
7306 | } | |
7307 | ||
7308 | ||
7309 | static PyObject *_wrap_QueryLayoutInfoEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7310 | PyObject *resultobj; | |
7311 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7312 | int arg2 ; | |
7313 | PyObject * obj0 = 0 ; | |
994141e6 | 7314 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7315 | char *kwnames[] = { |
7316 | (char *) "self",(char *) "flags", NULL | |
7317 | }; | |
7318 | ||
994141e6 | 7319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7321 | { |
7322 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7323 | if (PyErr_Occurred()) SWIG_fail; | |
7324 | } | |
d14a1e28 RD |
7325 | { |
7326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7327 | (arg1)->SetFlags(arg2); | |
7328 | ||
7329 | wxPyEndAllowThreads(__tstate); | |
7330 | if (PyErr_Occurred()) SWIG_fail; | |
7331 | } | |
7332 | Py_INCREF(Py_None); resultobj = Py_None; | |
7333 | return resultobj; | |
7334 | fail: | |
7335 | return NULL; | |
7336 | } | |
7337 | ||
7338 | ||
7339 | static PyObject *_wrap_QueryLayoutInfoEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7340 | PyObject *resultobj; | |
7341 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7342 | int result; | |
7343 | PyObject * obj0 = 0 ; | |
7344 | char *kwnames[] = { | |
7345 | (char *) "self", NULL | |
7346 | }; | |
7347 | ||
7348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7350 | { | |
7351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7352 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetFlags(); | |
7353 | ||
7354 | wxPyEndAllowThreads(__tstate); | |
7355 | if (PyErr_Occurred()) SWIG_fail; | |
7356 | } | |
994141e6 | 7357 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7358 | return resultobj; |
7359 | fail: | |
7360 | return NULL; | |
7361 | } | |
7362 | ||
7363 | ||
7364 | static PyObject *_wrap_QueryLayoutInfoEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7365 | PyObject *resultobj; | |
7366 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7367 | wxSize *arg2 = 0 ; | |
7368 | wxSize temp2 ; | |
7369 | PyObject * obj0 = 0 ; | |
7370 | PyObject * obj1 = 0 ; | |
7371 | char *kwnames[] = { | |
7372 | (char *) "self",(char *) "size", NULL | |
7373 | }; | |
7374 | ||
7375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
7376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7377 | { | |
7378 | arg2 = &temp2; | |
7379 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7380 | } | |
7381 | { | |
7382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7383 | (arg1)->SetSize((wxSize const &)*arg2); | |
7384 | ||
7385 | wxPyEndAllowThreads(__tstate); | |
7386 | if (PyErr_Occurred()) SWIG_fail; | |
7387 | } | |
7388 | Py_INCREF(Py_None); resultobj = Py_None; | |
7389 | return resultobj; | |
7390 | fail: | |
7391 | return NULL; | |
7392 | } | |
7393 | ||
7394 | ||
7395 | static PyObject *_wrap_QueryLayoutInfoEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7396 | PyObject *resultobj; | |
7397 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7398 | wxSize result; | |
7399 | PyObject * obj0 = 0 ; | |
7400 | char *kwnames[] = { | |
7401 | (char *) "self", NULL | |
7402 | }; | |
7403 | ||
7404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetSize",kwnames,&obj0)) goto fail; | |
7405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7406 | { | |
7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7408 | result = ((wxQueryLayoutInfoEvent const *)arg1)->GetSize(); | |
7409 | ||
7410 | wxPyEndAllowThreads(__tstate); | |
7411 | if (PyErr_Occurred()) SWIG_fail; | |
7412 | } | |
7413 | { | |
7414 | wxSize * resultptr; | |
7415 | resultptr = new wxSize((wxSize &) result); | |
7416 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
7417 | } | |
7418 | return resultobj; | |
7419 | fail: | |
7420 | return NULL; | |
7421 | } | |
7422 | ||
7423 | ||
7424 | static PyObject *_wrap_QueryLayoutInfoEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7425 | PyObject *resultobj; | |
7426 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7427 | int arg2 ; | |
7428 | PyObject * obj0 = 0 ; | |
994141e6 | 7429 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7430 | char *kwnames[] = { |
7431 | (char *) "self",(char *) "orient", NULL | |
7432 | }; | |
7433 | ||
994141e6 | 7434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7436 | { |
7437 | arg2 = (wxLayoutOrientation) SWIG_PyObj_AsInt(obj1); | |
7438 | if (PyErr_Occurred()) SWIG_fail; | |
7439 | } | |
d14a1e28 RD |
7440 | { |
7441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7442 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
7443 | ||
7444 | wxPyEndAllowThreads(__tstate); | |
7445 | if (PyErr_Occurred()) SWIG_fail; | |
7446 | } | |
7447 | Py_INCREF(Py_None); resultobj = Py_None; | |
7448 | return resultobj; | |
7449 | fail: | |
7450 | return NULL; | |
7451 | } | |
7452 | ||
7453 | ||
7454 | static PyObject *_wrap_QueryLayoutInfoEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7455 | PyObject *resultobj; | |
7456 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7457 | int result; | |
7458 | PyObject * obj0 = 0 ; | |
7459 | char *kwnames[] = { | |
7460 | (char *) "self", NULL | |
7461 | }; | |
7462 | ||
7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
7464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7465 | { | |
7466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7467 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetOrientation(); | |
7468 | ||
7469 | wxPyEndAllowThreads(__tstate); | |
7470 | if (PyErr_Occurred()) SWIG_fail; | |
7471 | } | |
994141e6 | 7472 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7473 | return resultobj; |
7474 | fail: | |
7475 | return NULL; | |
7476 | } | |
7477 | ||
7478 | ||
7479 | static PyObject *_wrap_QueryLayoutInfoEvent_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7480 | PyObject *resultobj; | |
7481 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7482 | int arg2 ; | |
7483 | PyObject * obj0 = 0 ; | |
994141e6 | 7484 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7485 | char *kwnames[] = { |
7486 | (char *) "self",(char *) "align", NULL | |
7487 | }; | |
7488 | ||
994141e6 | 7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryLayoutInfoEvent_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7491 | { |
7492 | arg2 = (wxLayoutAlignment) SWIG_PyObj_AsInt(obj1); | |
7493 | if (PyErr_Occurred()) SWIG_fail; | |
7494 | } | |
d14a1e28 RD |
7495 | { |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
7502 | Py_INCREF(Py_None); resultobj = Py_None; | |
7503 | return resultobj; | |
7504 | fail: | |
7505 | return NULL; | |
7506 | } | |
7507 | ||
7508 | ||
7509 | static PyObject *_wrap_QueryLayoutInfoEvent_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject *resultobj; | |
7511 | wxQueryLayoutInfoEvent *arg1 = (wxQueryLayoutInfoEvent *) 0 ; | |
7512 | int result; | |
7513 | PyObject * obj0 = 0 ; | |
7514 | char *kwnames[] = { | |
7515 | (char *) "self", NULL | |
7516 | }; | |
7517 | ||
7518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryLayoutInfoEvent_GetAlignment",kwnames,&obj0)) goto fail; | |
7519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryLayoutInfoEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7520 | { | |
7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7522 | result = (int)((wxQueryLayoutInfoEvent const *)arg1)->GetAlignment(); | |
7523 | ||
7524 | wxPyEndAllowThreads(__tstate); | |
7525 | if (PyErr_Occurred()) SWIG_fail; | |
7526 | } | |
994141e6 | 7527 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7528 | return resultobj; |
7529 | fail: | |
7530 | return NULL; | |
7531 | } | |
7532 | ||
7533 | ||
7534 | static PyObject * QueryLayoutInfoEvent_swigregister(PyObject *self, PyObject *args) { | |
7535 | PyObject *obj; | |
7536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7537 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryLayoutInfoEvent, obj); | |
7538 | Py_INCREF(obj); | |
7539 | return Py_BuildValue((char *)""); | |
7540 | } | |
7541 | static PyObject *_wrap_new_CalculateLayoutEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7542 | PyObject *resultobj; | |
e811c8ce | 7543 | int arg1 = (int) 0 ; |
d14a1e28 | 7544 | wxCalculateLayoutEvent *result; |
994141e6 | 7545 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
7546 | char *kwnames[] = { |
7547 | (char *) "id", NULL | |
7548 | }; | |
7549 | ||
994141e6 RD |
7550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CalculateLayoutEvent",kwnames,&obj0)) goto fail; |
7551 | if (obj0) { | |
7552 | { | |
7553 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
7554 | if (PyErr_Occurred()) SWIG_fail; | |
7555 | } | |
7556 | } | |
d14a1e28 RD |
7557 | { |
7558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7559 | result = (wxCalculateLayoutEvent *)new wxCalculateLayoutEvent(arg1); | |
7560 | ||
7561 | wxPyEndAllowThreads(__tstate); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCalculateLayoutEvent, 1); | |
7565 | return resultobj; | |
7566 | fail: | |
7567 | return NULL; | |
7568 | } | |
7569 | ||
7570 | ||
7571 | static PyObject *_wrap_CalculateLayoutEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7572 | PyObject *resultobj; | |
7573 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7574 | int arg2 ; | |
7575 | PyObject * obj0 = 0 ; | |
994141e6 | 7576 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7577 | char *kwnames[] = { |
7578 | (char *) "self",(char *) "flags", NULL | |
7579 | }; | |
7580 | ||
994141e6 | 7581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7582 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7583 | { |
7584 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7585 | if (PyErr_Occurred()) SWIG_fail; | |
7586 | } | |
d14a1e28 RD |
7587 | { |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | (arg1)->SetFlags(arg2); | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | Py_INCREF(Py_None); resultobj = Py_None; | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
7601 | static PyObject *_wrap_CalculateLayoutEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7602 | PyObject *resultobj; | |
7603 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7604 | int result; | |
7605 | PyObject * obj0 = 0 ; | |
7606 | char *kwnames[] = { | |
7607 | (char *) "self", NULL | |
7608 | }; | |
7609 | ||
7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetFlags",kwnames,&obj0)) goto fail; | |
7611 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7612 | { | |
7613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7614 | result = (int)((wxCalculateLayoutEvent const *)arg1)->GetFlags(); | |
7615 | ||
7616 | wxPyEndAllowThreads(__tstate); | |
7617 | if (PyErr_Occurred()) SWIG_fail; | |
7618 | } | |
994141e6 | 7619 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7620 | return resultobj; |
7621 | fail: | |
7622 | return NULL; | |
7623 | } | |
7624 | ||
7625 | ||
7626 | static PyObject *_wrap_CalculateLayoutEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7627 | PyObject *resultobj; | |
7628 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7629 | wxRect *arg2 = 0 ; | |
7630 | wxRect temp2 ; | |
7631 | PyObject * obj0 = 0 ; | |
7632 | PyObject * obj1 = 0 ; | |
7633 | char *kwnames[] = { | |
7634 | (char *) "self",(char *) "rect", NULL | |
7635 | }; | |
7636 | ||
7637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CalculateLayoutEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
7638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7639 | { | |
7640 | arg2 = &temp2; | |
7641 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
7642 | } | |
7643 | { | |
7644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7645 | (arg1)->SetRect((wxRect const &)*arg2); | |
7646 | ||
7647 | wxPyEndAllowThreads(__tstate); | |
7648 | if (PyErr_Occurred()) SWIG_fail; | |
7649 | } | |
7650 | Py_INCREF(Py_None); resultobj = Py_None; | |
7651 | return resultobj; | |
7652 | fail: | |
7653 | return NULL; | |
7654 | } | |
7655 | ||
7656 | ||
7657 | static PyObject *_wrap_CalculateLayoutEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7658 | PyObject *resultobj; | |
7659 | wxCalculateLayoutEvent *arg1 = (wxCalculateLayoutEvent *) 0 ; | |
7660 | wxRect result; | |
7661 | PyObject * obj0 = 0 ; | |
7662 | char *kwnames[] = { | |
7663 | (char *) "self", NULL | |
7664 | }; | |
7665 | ||
7666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CalculateLayoutEvent_GetRect",kwnames,&obj0)) goto fail; | |
7667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCalculateLayoutEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7668 | { | |
7669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7670 | result = ((wxCalculateLayoutEvent const *)arg1)->GetRect(); | |
7671 | ||
7672 | wxPyEndAllowThreads(__tstate); | |
7673 | if (PyErr_Occurred()) SWIG_fail; | |
7674 | } | |
7675 | { | |
7676 | wxRect * resultptr; | |
7677 | resultptr = new wxRect((wxRect &) result); | |
7678 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
7679 | } | |
7680 | return resultobj; | |
7681 | fail: | |
7682 | return NULL; | |
7683 | } | |
7684 | ||
7685 | ||
7686 | static PyObject * CalculateLayoutEvent_swigregister(PyObject *self, PyObject *args) { | |
7687 | PyObject *obj; | |
7688 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7689 | SWIG_TypeClientData(SWIGTYPE_p_wxCalculateLayoutEvent, obj); | |
7690 | Py_INCREF(obj); | |
7691 | return Py_BuildValue((char *)""); | |
7692 | } | |
7693 | static PyObject *_wrap_new_SashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7694 | PyObject *resultobj; | |
7695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 7696 | int arg2 ; |
d14a1e28 RD |
7697 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
7698 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
7699 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
7700 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
7701 | long arg5 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
7702 | wxString const &arg6_defvalue = wxPySashLayoutNameStr ; | |
7703 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
7704 | wxSashLayoutWindow *result; | |
7705 | wxPoint temp3 ; | |
7706 | wxSize temp4 ; | |
e811c8ce | 7707 | bool temp6 = False ; |
d14a1e28 | 7708 | PyObject * obj0 = 0 ; |
994141e6 | 7709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7710 | PyObject * obj2 = 0 ; |
7711 | PyObject * obj3 = 0 ; | |
994141e6 | 7712 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
7713 | PyObject * obj5 = 0 ; |
7714 | char *kwnames[] = { | |
7715 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7716 | }; | |
7717 | ||
994141e6 | 7718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_SashLayoutWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 7719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7720 | { |
7721 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
7722 | if (PyErr_Occurred()) SWIG_fail; | |
7723 | } | |
d14a1e28 RD |
7724 | if (obj2) { |
7725 | { | |
7726 | arg3 = &temp3; | |
7727 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
7728 | } | |
7729 | } | |
7730 | if (obj3) { | |
7731 | { | |
7732 | arg4 = &temp4; | |
7733 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
7734 | } | |
7735 | } | |
994141e6 RD |
7736 | if (obj4) { |
7737 | { | |
7738 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
7739 | if (PyErr_Occurred()) SWIG_fail; | |
7740 | } | |
7741 | } | |
d14a1e28 RD |
7742 | if (obj5) { |
7743 | { | |
7744 | arg6 = wxString_in_helper(obj5); | |
7745 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 7746 | temp6 = True; |
d14a1e28 RD |
7747 | } |
7748 | } | |
7749 | { | |
7750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7751 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
7752 | ||
7753 | wxPyEndAllowThreads(__tstate); | |
7754 | if (PyErr_Occurred()) SWIG_fail; | |
7755 | } | |
7756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashLayoutWindow, 1); | |
7757 | { | |
7758 | if (temp6) | |
7759 | delete arg6; | |
7760 | } | |
7761 | return resultobj; | |
7762 | fail: | |
7763 | { | |
7764 | if (temp6) | |
7765 | delete arg6; | |
7766 | } | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
7771 | static PyObject *_wrap_new_PreSashLayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject *resultobj; | |
7773 | wxSashLayoutWindow *result; | |
7774 | char *kwnames[] = { | |
7775 | NULL | |
7776 | }; | |
7777 | ||
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSashLayoutWindow",kwnames)) goto fail; | |
7779 | { | |
7780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7781 | result = (wxSashLayoutWindow *)new wxSashLayoutWindow(); | |
7782 | ||
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
7785 | } | |
7786 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSashLayoutWindow, 1); | |
7787 | return resultobj; | |
7788 | fail: | |
7789 | return NULL; | |
7790 | } | |
7791 | ||
7792 | ||
7793 | static PyObject *_wrap_SashLayoutWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7794 | PyObject *resultobj; | |
7795 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7796 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 7797 | int arg3 ; |
d14a1e28 RD |
7798 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
7799 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7800 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7801 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7802 | long arg6 = (long) wxCLIP_CHILDREN|wxSW_3D ; | |
7803 | wxString const &arg7_defvalue = wxPySashLayoutNameStr ; | |
7804 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
7805 | bool result; | |
7806 | wxPoint temp4 ; | |
7807 | wxSize temp5 ; | |
e811c8ce | 7808 | bool temp7 = False ; |
d14a1e28 RD |
7809 | PyObject * obj0 = 0 ; |
7810 | PyObject * obj1 = 0 ; | |
994141e6 | 7811 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7812 | PyObject * obj3 = 0 ; |
7813 | PyObject * obj4 = 0 ; | |
994141e6 | 7814 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7815 | PyObject * obj6 = 0 ; |
7816 | char *kwnames[] = { | |
7817 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
7818 | }; | |
7819 | ||
994141e6 | 7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:SashLayoutWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
7821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
7822 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
7823 | { |
7824 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
7825 | if (PyErr_Occurred()) SWIG_fail; | |
7826 | } | |
d14a1e28 RD |
7827 | if (obj3) { |
7828 | { | |
7829 | arg4 = &temp4; | |
7830 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7831 | } | |
7832 | } | |
7833 | if (obj4) { | |
7834 | { | |
7835 | arg5 = &temp5; | |
7836 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7837 | } | |
7838 | } | |
994141e6 RD |
7839 | if (obj5) { |
7840 | { | |
7841 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
7842 | if (PyErr_Occurred()) SWIG_fail; | |
7843 | } | |
7844 | } | |
d14a1e28 RD |
7845 | if (obj6) { |
7846 | { | |
7847 | arg7 = wxString_in_helper(obj6); | |
7848 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 7849 | temp7 = True; |
d14a1e28 RD |
7850 | } |
7851 | } | |
7852 | { | |
7853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7854 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
7855 | ||
7856 | wxPyEndAllowThreads(__tstate); | |
7857 | if (PyErr_Occurred()) SWIG_fail; | |
7858 | } | |
4d5c3d91 | 7859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
7860 | { |
7861 | if (temp7) | |
7862 | delete arg7; | |
7863 | } | |
7864 | return resultobj; | |
7865 | fail: | |
7866 | { | |
7867 | if (temp7) | |
7868 | delete arg7; | |
7869 | } | |
7870 | return NULL; | |
7871 | } | |
7872 | ||
7873 | ||
7874 | static PyObject *_wrap_SashLayoutWindow_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7875 | PyObject *resultobj; | |
7876 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7877 | int result; | |
7878 | PyObject * obj0 = 0 ; | |
7879 | char *kwnames[] = { | |
7880 | (char *) "self", NULL | |
7881 | }; | |
7882 | ||
7883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetAlignment",kwnames,&obj0)) goto fail; | |
7884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7885 | { | |
7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7887 | result = (int)(arg1)->GetAlignment(); | |
7888 | ||
7889 | wxPyEndAllowThreads(__tstate); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
994141e6 | 7892 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7893 | return resultobj; |
7894 | fail: | |
7895 | return NULL; | |
7896 | } | |
7897 | ||
7898 | ||
7899 | static PyObject *_wrap_SashLayoutWindow_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject *resultobj; | |
7901 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7902 | int result; | |
7903 | PyObject * obj0 = 0 ; | |
7904 | char *kwnames[] = { | |
7905 | (char *) "self", NULL | |
7906 | }; | |
7907 | ||
7908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SashLayoutWindow_GetOrientation",kwnames,&obj0)) goto fail; | |
7909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7910 | { | |
7911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7912 | result = (int)(arg1)->GetOrientation(); | |
7913 | ||
7914 | wxPyEndAllowThreads(__tstate); | |
7915 | if (PyErr_Occurred()) SWIG_fail; | |
7916 | } | |
994141e6 | 7917 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
7918 | return resultobj; |
7919 | fail: | |
7920 | return NULL; | |
7921 | } | |
7922 | ||
7923 | ||
7924 | static PyObject *_wrap_SashLayoutWindow_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7925 | PyObject *resultobj; | |
7926 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7927 | int arg2 ; | |
7928 | PyObject * obj0 = 0 ; | |
994141e6 | 7929 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7930 | char *kwnames[] = { |
7931 | (char *) "self",(char *) "alignment", NULL | |
7932 | }; | |
7933 | ||
994141e6 | 7934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7935 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7936 | { |
7937 | arg2 = (wxLayoutAlignment) SWIG_PyObj_AsInt(obj1); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
7939 | } | |
d14a1e28 RD |
7940 | { |
7941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7942 | (arg1)->SetAlignment((wxLayoutAlignment )arg2); | |
7943 | ||
7944 | wxPyEndAllowThreads(__tstate); | |
7945 | if (PyErr_Occurred()) SWIG_fail; | |
7946 | } | |
7947 | Py_INCREF(Py_None); resultobj = Py_None; | |
7948 | return resultobj; | |
7949 | fail: | |
7950 | return NULL; | |
7951 | } | |
7952 | ||
7953 | ||
7954 | static PyObject *_wrap_SashLayoutWindow_SetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7955 | PyObject *resultobj; | |
7956 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7957 | wxSize *arg2 = 0 ; | |
7958 | wxSize temp2 ; | |
7959 | PyObject * obj0 = 0 ; | |
7960 | PyObject * obj1 = 0 ; | |
7961 | char *kwnames[] = { | |
7962 | (char *) "self",(char *) "size", NULL | |
7963 | }; | |
7964 | ||
7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetDefaultSize",kwnames,&obj0,&obj1)) goto fail; | |
7966 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7967 | { | |
7968 | arg2 = &temp2; | |
7969 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7970 | } | |
7971 | { | |
7972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7973 | (arg1)->SetDefaultSize((wxSize const &)*arg2); | |
7974 | ||
7975 | wxPyEndAllowThreads(__tstate); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | } | |
7978 | Py_INCREF(Py_None); resultobj = Py_None; | |
7979 | return resultobj; | |
7980 | fail: | |
7981 | return NULL; | |
7982 | } | |
7983 | ||
7984 | ||
7985 | static PyObject *_wrap_SashLayoutWindow_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7986 | PyObject *resultobj; | |
7987 | wxSashLayoutWindow *arg1 = (wxSashLayoutWindow *) 0 ; | |
7988 | int arg2 ; | |
7989 | PyObject * obj0 = 0 ; | |
994141e6 | 7990 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7991 | char *kwnames[] = { |
7992 | (char *) "self",(char *) "orientation", NULL | |
7993 | }; | |
7994 | ||
994141e6 | 7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SashLayoutWindow_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 7996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSashLayoutWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
7997 | { |
7998 | arg2 = (wxLayoutOrientation) SWIG_PyObj_AsInt(obj1); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | } | |
d14a1e28 RD |
8001 | { |
8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8003 | (arg1)->SetOrientation((wxLayoutOrientation )arg2); | |
8004 | ||
8005 | wxPyEndAllowThreads(__tstate); | |
8006 | if (PyErr_Occurred()) SWIG_fail; | |
8007 | } | |
8008 | Py_INCREF(Py_None); resultobj = Py_None; | |
8009 | return resultobj; | |
8010 | fail: | |
8011 | return NULL; | |
8012 | } | |
8013 | ||
8014 | ||
8015 | static PyObject * SashLayoutWindow_swigregister(PyObject *self, PyObject *args) { | |
8016 | PyObject *obj; | |
8017 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8018 | SWIG_TypeClientData(SWIGTYPE_p_wxSashLayoutWindow, obj); | |
8019 | Py_INCREF(obj); | |
8020 | return Py_BuildValue((char *)""); | |
8021 | } | |
8022 | static PyObject *_wrap_new_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8023 | PyObject *resultobj; | |
8024 | wxLayoutAlgorithm *result; | |
8025 | char *kwnames[] = { | |
8026 | NULL | |
8027 | }; | |
8028 | ||
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutAlgorithm",kwnames)) goto fail; | |
8030 | { | |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | result = (wxLayoutAlgorithm *)new wxLayoutAlgorithm(); | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutAlgorithm, 1); | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_delete_LayoutAlgorithm(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8047 | PyObject * obj0 = 0 ; | |
8048 | char *kwnames[] = { | |
8049 | (char *) "self", NULL | |
8050 | }; | |
8051 | ||
8052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LayoutAlgorithm",kwnames,&obj0)) goto fail; | |
8053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8054 | { | |
8055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8056 | delete arg1; | |
8057 | ||
8058 | wxPyEndAllowThreads(__tstate); | |
8059 | if (PyErr_Occurred()) SWIG_fail; | |
8060 | } | |
8061 | Py_INCREF(Py_None); resultobj = Py_None; | |
8062 | return resultobj; | |
8063 | fail: | |
8064 | return NULL; | |
8065 | } | |
8066 | ||
8067 | ||
8068 | static PyObject *_wrap_LayoutAlgorithm_LayoutMDIFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8069 | PyObject *resultobj; | |
8070 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8071 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
8072 | wxRect *arg3 = (wxRect *) NULL ; | |
8073 | bool result; | |
8074 | PyObject * obj0 = 0 ; | |
8075 | PyObject * obj1 = 0 ; | |
8076 | PyObject * obj2 = 0 ; | |
8077 | char *kwnames[] = { | |
8078 | (char *) "self",(char *) "frame",(char *) "rect", NULL | |
8079 | }; | |
8080 | ||
8081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutMDIFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8083 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8084 | if (obj2) { | |
8085 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8086 | } | |
8087 | { | |
8088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8089 | result = (bool)(arg1)->LayoutMDIFrame(arg2,arg3); | |
8090 | ||
8091 | wxPyEndAllowThreads(__tstate); | |
8092 | if (PyErr_Occurred()) SWIG_fail; | |
8093 | } | |
4d5c3d91 | 8094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8095 | return resultobj; |
8096 | fail: | |
8097 | return NULL; | |
8098 | } | |
8099 | ||
8100 | ||
8101 | static PyObject *_wrap_LayoutAlgorithm_LayoutFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject *resultobj; | |
8103 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8104 | wxFrame *arg2 = (wxFrame *) 0 ; | |
8105 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8106 | bool result; | |
8107 | PyObject * obj0 = 0 ; | |
8108 | PyObject * obj1 = 0 ; | |
8109 | PyObject * obj2 = 0 ; | |
8110 | char *kwnames[] = { | |
8111 | (char *) "self",(char *) "frame",(char *) "mainWindow", NULL | |
8112 | }; | |
8113 | ||
8114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutFrame",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8116 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8117 | if (obj2) { | |
8118 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8119 | } | |
8120 | { | |
8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8122 | result = (bool)(arg1)->LayoutFrame(arg2,arg3); | |
8123 | ||
8124 | wxPyEndAllowThreads(__tstate); | |
8125 | if (PyErr_Occurred()) SWIG_fail; | |
8126 | } | |
4d5c3d91 | 8127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8128 | return resultobj; |
8129 | fail: | |
8130 | return NULL; | |
8131 | } | |
8132 | ||
8133 | ||
8134 | static PyObject *_wrap_LayoutAlgorithm_LayoutWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8135 | PyObject *resultobj; | |
8136 | wxLayoutAlgorithm *arg1 = (wxLayoutAlgorithm *) 0 ; | |
8137 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8138 | wxWindow *arg3 = (wxWindow *) NULL ; | |
8139 | bool result; | |
8140 | PyObject * obj0 = 0 ; | |
8141 | PyObject * obj1 = 0 ; | |
8142 | PyObject * obj2 = 0 ; | |
8143 | char *kwnames[] = { | |
8144 | (char *) "self",(char *) "parent",(char *) "mainWindow", NULL | |
8145 | }; | |
8146 | ||
8147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:LayoutAlgorithm_LayoutWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutAlgorithm,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8149 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8150 | if (obj2) { | |
8151 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8152 | } | |
8153 | { | |
8154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8155 | result = (bool)(arg1)->LayoutWindow(arg2,arg3); | |
8156 | ||
8157 | wxPyEndAllowThreads(__tstate); | |
8158 | if (PyErr_Occurred()) SWIG_fail; | |
8159 | } | |
4d5c3d91 | 8160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8161 | return resultobj; |
8162 | fail: | |
8163 | return NULL; | |
8164 | } | |
8165 | ||
8166 | ||
8167 | static PyObject * LayoutAlgorithm_swigregister(PyObject *self, PyObject *args) { | |
8168 | PyObject *obj; | |
8169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8170 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutAlgorithm, obj); | |
8171 | Py_INCREF(obj); | |
8172 | return Py_BuildValue((char *)""); | |
8173 | } | |
8174 | static PyObject *_wrap_new_PopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8175 | PyObject *resultobj; | |
8176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8177 | int arg2 = (int) wxBORDER_NONE ; | |
8178 | wxPopupWindow *result; | |
8179 | PyObject * obj0 = 0 ; | |
994141e6 | 8180 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8181 | char *kwnames[] = { |
8182 | (char *) "parent",(char *) "flags", NULL | |
8183 | }; | |
8184 | ||
994141e6 | 8185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupWindow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8187 | if (obj1) { |
8188 | { | |
8189 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8190 | if (PyErr_Occurred()) SWIG_fail; | |
8191 | } | |
8192 | } | |
d14a1e28 RD |
8193 | { |
8194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8195 | result = (wxPopupWindow *)new wxPopupWindow(arg1,arg2); | |
8196 | ||
8197 | wxPyEndAllowThreads(__tstate); | |
8198 | if (PyErr_Occurred()) SWIG_fail; | |
8199 | } | |
8200 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPopupWindow, 1); | |
8201 | return resultobj; | |
8202 | fail: | |
8203 | return NULL; | |
8204 | } | |
8205 | ||
8206 | ||
8207 | static PyObject *_wrap_new_PrePopupWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8208 | PyObject *resultobj; | |
8209 | wxPopupWindow *result; | |
8210 | char *kwnames[] = { | |
8211 | NULL | |
8212 | }; | |
8213 | ||
8214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupWindow",kwnames)) goto fail; | |
8215 | { | |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | result = (wxPopupWindow *)new wxPopupWindow(); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPopupWindow, 1); | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | return NULL; | |
8226 | } | |
8227 | ||
8228 | ||
8229 | static PyObject *_wrap_PopupWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8230 | PyObject *resultobj; | |
8231 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8232 | wxWindow *arg2 = (wxWindow *) 0 ; | |
8233 | int arg3 = (int) wxBORDER_NONE ; | |
8234 | bool result; | |
8235 | PyObject * obj0 = 0 ; | |
8236 | PyObject * obj1 = 0 ; | |
994141e6 | 8237 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8238 | char *kwnames[] = { |
8239 | (char *) "self",(char *) "parent",(char *) "flags", NULL | |
8240 | }; | |
8241 | ||
994141e6 | 8242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PopupWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8243 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPopupWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8244 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
8245 | if (obj2) { |
8246 | { | |
8247 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8248 | if (PyErr_Occurred()) SWIG_fail; | |
8249 | } | |
8250 | } | |
d14a1e28 RD |
8251 | { |
8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8253 | result = (bool)(arg1)->Create(arg2,arg3); | |
8254 | ||
8255 | wxPyEndAllowThreads(__tstate); | |
8256 | if (PyErr_Occurred()) SWIG_fail; | |
8257 | } | |
4d5c3d91 | 8258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8259 | return resultobj; |
8260 | fail: | |
8261 | return NULL; | |
8262 | } | |
8263 | ||
8264 | ||
8265 | static PyObject *_wrap_PopupWindow_Position(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8266 | PyObject *resultobj; | |
8267 | wxPopupWindow *arg1 = (wxPopupWindow *) 0 ; | |
8268 | wxPoint *arg2 = 0 ; | |
8269 | wxSize *arg3 = 0 ; | |
8270 | wxPoint temp2 ; | |
8271 | wxSize temp3 ; | |
8272 | PyObject * obj0 = 0 ; | |
8273 | PyObject * obj1 = 0 ; | |
8274 | PyObject * obj2 = 0 ; | |
8275 | char *kwnames[] = { | |
8276 | (char *) "self",(char *) "ptOrigin",(char *) "size", NULL | |
8277 | }; | |
8278 | ||
8279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupWindow_Position",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPopupWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8281 | { | |
8282 | arg2 = &temp2; | |
8283 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8284 | } | |
8285 | { | |
8286 | arg3 = &temp3; | |
8287 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
8288 | } | |
8289 | { | |
8290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8291 | (arg1)->Position((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8292 | ||
8293 | wxPyEndAllowThreads(__tstate); | |
8294 | if (PyErr_Occurred()) SWIG_fail; | |
8295 | } | |
8296 | Py_INCREF(Py_None); resultobj = Py_None; | |
8297 | return resultobj; | |
8298 | fail: | |
8299 | return NULL; | |
8300 | } | |
8301 | ||
8302 | ||
8303 | static PyObject * PopupWindow_swigregister(PyObject *self, PyObject *args) { | |
8304 | PyObject *obj; | |
8305 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8306 | SWIG_TypeClientData(SWIGTYPE_p_wxPopupWindow, obj); | |
8307 | Py_INCREF(obj); | |
8308 | return Py_BuildValue((char *)""); | |
8309 | } | |
8310 | static PyObject *_wrap_new_PopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8311 | PyObject *resultobj; | |
8312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
8313 | int arg2 = (int) wxBORDER_NONE ; | |
8314 | wxPyPopupTransientWindow *result; | |
8315 | PyObject * obj0 = 0 ; | |
994141e6 | 8316 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8317 | char *kwnames[] = { |
8318 | (char *) "parent",(char *) "style", NULL | |
8319 | }; | |
8320 | ||
994141e6 | 8321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PopupTransientWindow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8323 | if (obj1) { |
8324 | { | |
8325 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8326 | if (PyErr_Occurred()) SWIG_fail; | |
8327 | } | |
8328 | } | |
d14a1e28 RD |
8329 | { |
8330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8331 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(arg1,arg2); | |
8332 | ||
8333 | wxPyEndAllowThreads(__tstate); | |
8334 | if (PyErr_Occurred()) SWIG_fail; | |
8335 | } | |
8336 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8337 | return resultobj; | |
8338 | fail: | |
8339 | return NULL; | |
8340 | } | |
8341 | ||
8342 | ||
8343 | static PyObject *_wrap_new_PrePopupTransientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8344 | PyObject *resultobj; | |
8345 | wxPyPopupTransientWindow *result; | |
8346 | char *kwnames[] = { | |
8347 | NULL | |
8348 | }; | |
8349 | ||
8350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePopupTransientWindow",kwnames)) goto fail; | |
8351 | { | |
8352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8353 | result = (wxPyPopupTransientWindow *)new wxPyPopupTransientWindow(); | |
8354 | ||
8355 | wxPyEndAllowThreads(__tstate); | |
8356 | if (PyErr_Occurred()) SWIG_fail; | |
8357 | } | |
8358 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPopupTransientWindow, 1); | |
8359 | return resultobj; | |
8360 | fail: | |
8361 | return NULL; | |
8362 | } | |
8363 | ||
8364 | ||
8365 | static PyObject *_wrap_PopupTransientWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8366 | PyObject *resultobj; | |
8367 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8368 | PyObject *arg2 = (PyObject *) 0 ; | |
8369 | PyObject *arg3 = (PyObject *) 0 ; | |
8370 | PyObject * obj0 = 0 ; | |
8371 | PyObject * obj1 = 0 ; | |
8372 | PyObject * obj2 = 0 ; | |
8373 | char *kwnames[] = { | |
8374 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8375 | }; | |
8376 | ||
8377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PopupTransientWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPopupTransientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8379 | arg2 = obj1; | |
8380 | arg3 = obj2; | |
8381 | { | |
8382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8383 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8384 | ||
8385 | wxPyEndAllowThreads(__tstate); | |
8386 | if (PyErr_Occurred()) SWIG_fail; | |
8387 | } | |
8388 | Py_INCREF(Py_None); resultobj = Py_None; | |
8389 | return resultobj; | |
8390 | fail: | |
8391 | return NULL; | |
8392 | } | |
8393 | ||
8394 | ||
8395 | static PyObject *_wrap_PopupTransientWindow_Popup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8396 | PyObject *resultobj; | |
8397 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8398 | wxWindow *arg2 = (wxWindow *) NULL ; | |
8399 | PyObject * obj0 = 0 ; | |
8400 | PyObject * obj1 = 0 ; | |
8401 | char *kwnames[] = { | |
8402 | (char *) "self",(char *) "focus", NULL | |
8403 | }; | |
8404 | ||
8405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PopupTransientWindow_Popup",kwnames,&obj0,&obj1)) goto fail; | |
8406 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPopupTransientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8407 | if (obj1) { | |
8408 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8409 | } | |
8410 | { | |
8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8412 | (arg1)->Popup(arg2); | |
8413 | ||
8414 | wxPyEndAllowThreads(__tstate); | |
8415 | if (PyErr_Occurred()) SWIG_fail; | |
8416 | } | |
8417 | Py_INCREF(Py_None); resultobj = Py_None; | |
8418 | return resultobj; | |
8419 | fail: | |
8420 | return NULL; | |
8421 | } | |
8422 | ||
8423 | ||
8424 | static PyObject *_wrap_PopupTransientWindow_Dismiss(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8425 | PyObject *resultobj; | |
8426 | wxPyPopupTransientWindow *arg1 = (wxPyPopupTransientWindow *) 0 ; | |
8427 | PyObject * obj0 = 0 ; | |
8428 | char *kwnames[] = { | |
8429 | (char *) "self", NULL | |
8430 | }; | |
8431 | ||
8432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PopupTransientWindow_Dismiss",kwnames,&obj0)) goto fail; | |
8433 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPopupTransientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8434 | { | |
8435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8436 | (arg1)->Dismiss(); | |
8437 | ||
8438 | wxPyEndAllowThreads(__tstate); | |
8439 | if (PyErr_Occurred()) SWIG_fail; | |
8440 | } | |
8441 | Py_INCREF(Py_None); resultobj = Py_None; | |
8442 | return resultobj; | |
8443 | fail: | |
8444 | return NULL; | |
8445 | } | |
8446 | ||
8447 | ||
8448 | static PyObject * PopupTransientWindow_swigregister(PyObject *self, PyObject *args) { | |
8449 | PyObject *obj; | |
8450 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8451 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPopupTransientWindow, obj); | |
8452 | Py_INCREF(obj); | |
8453 | return Py_BuildValue((char *)""); | |
8454 | } | |
8455 | static PyObject *_wrap_new_TipWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8456 | PyObject *resultobj; | |
8457 | wxWindow *arg1 = (wxWindow *) 0 ; | |
fd3f2efe | 8458 | wxString *arg2 = 0 ; |
e811c8ce | 8459 | int arg3 = (int) 100 ; |
d14a1e28 RD |
8460 | wxRect *arg4 = (wxRect *) NULL ; |
8461 | wxTipWindow *result; | |
fd3f2efe | 8462 | bool temp2 = False ; |
d14a1e28 RD |
8463 | PyObject * obj0 = 0 ; |
8464 | PyObject * obj1 = 0 ; | |
994141e6 | 8465 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8466 | PyObject * obj3 = 0 ; |
8467 | char *kwnames[] = { | |
8468 | (char *) "parent",(char *) "text",(char *) "maxLength",(char *) "rectBound", NULL | |
8469 | }; | |
8470 | ||
994141e6 | 8471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_TipWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 | 8472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
fd3f2efe RD |
8473 | { |
8474 | arg2 = wxString_in_helper(obj1); | |
8475 | if (arg2 == NULL) SWIG_fail; | |
8476 | temp2 = True; | |
8477 | } | |
994141e6 RD |
8478 | if (obj2) { |
8479 | { | |
8480 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8481 | if (PyErr_Occurred()) SWIG_fail; | |
8482 | } | |
8483 | } | |
d14a1e28 RD |
8484 | if (obj3) { |
8485 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8486 | } | |
8487 | { | |
8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fd3f2efe | 8489 | result = (wxTipWindow *)new_wxTipWindow(arg1,(wxString const &)*arg2,arg3,arg4); |
d14a1e28 RD |
8490 | |
8491 | wxPyEndAllowThreads(__tstate); | |
8492 | if (PyErr_Occurred()) SWIG_fail; | |
8493 | } | |
8494 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTipWindow, 1); | |
fd3f2efe RD |
8495 | { |
8496 | if (temp2) | |
8497 | delete arg2; | |
8498 | } | |
d14a1e28 RD |
8499 | return resultobj; |
8500 | fail: | |
fd3f2efe RD |
8501 | { |
8502 | if (temp2) | |
8503 | delete arg2; | |
8504 | } | |
d14a1e28 RD |
8505 | return NULL; |
8506 | } | |
8507 | ||
8508 | ||
8509 | static PyObject *_wrap_TipWindow_SetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8510 | PyObject *resultobj; | |
8511 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8512 | wxRect *arg2 = 0 ; | |
8513 | wxRect temp2 ; | |
8514 | PyObject * obj0 = 0 ; | |
8515 | PyObject * obj1 = 0 ; | |
8516 | char *kwnames[] = { | |
8517 | (char *) "self",(char *) "rectBound", NULL | |
8518 | }; | |
8519 | ||
8520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipWindow_SetBoundingRect",kwnames,&obj0,&obj1)) goto fail; | |
8521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8522 | { | |
8523 | arg2 = &temp2; | |
8524 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
8525 | } | |
8526 | { | |
8527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8528 | (arg1)->SetBoundingRect((wxRect const &)*arg2); | |
8529 | ||
8530 | wxPyEndAllowThreads(__tstate); | |
8531 | if (PyErr_Occurred()) SWIG_fail; | |
8532 | } | |
8533 | Py_INCREF(Py_None); resultobj = Py_None; | |
8534 | return resultobj; | |
8535 | fail: | |
8536 | return NULL; | |
8537 | } | |
8538 | ||
8539 | ||
8540 | static PyObject *_wrap_TipWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8541 | PyObject *resultobj; | |
8542 | wxTipWindow *arg1 = (wxTipWindow *) 0 ; | |
8543 | PyObject * obj0 = 0 ; | |
8544 | char *kwnames[] = { | |
8545 | (char *) "self", NULL | |
8546 | }; | |
8547 | ||
8548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipWindow_Close",kwnames,&obj0)) goto fail; | |
8549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTipWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8550 | { | |
8551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8552 | (arg1)->Close(); | |
8553 | ||
8554 | wxPyEndAllowThreads(__tstate); | |
8555 | if (PyErr_Occurred()) SWIG_fail; | |
8556 | } | |
8557 | Py_INCREF(Py_None); resultobj = Py_None; | |
8558 | return resultobj; | |
8559 | fail: | |
8560 | return NULL; | |
8561 | } | |
8562 | ||
8563 | ||
8564 | static PyObject * TipWindow_swigregister(PyObject *self, PyObject *args) { | |
8565 | PyObject *obj; | |
8566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8567 | SWIG_TypeClientData(SWIGTYPE_p_wxTipWindow, obj); | |
8568 | Py_INCREF(obj); | |
8569 | return Py_BuildValue((char *)""); | |
8570 | } | |
8571 | static PyObject *_wrap_new_VScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8572 | PyObject *resultobj; | |
8573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8574 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
8575 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8576 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8577 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8578 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8579 | long arg5 = (long) 0 ; | |
8580 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
8581 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8582 | wxPyVScrolledWindow *result; | |
8583 | wxPoint temp3 ; | |
8584 | wxSize temp4 ; | |
e811c8ce | 8585 | bool temp6 = False ; |
d14a1e28 | 8586 | PyObject * obj0 = 0 ; |
994141e6 | 8587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8588 | PyObject * obj2 = 0 ; |
8589 | PyObject * obj3 = 0 ; | |
994141e6 | 8590 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
8591 | PyObject * obj5 = 0 ; |
8592 | char *kwnames[] = { | |
8593 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8594 | }; | |
8595 | ||
994141e6 | 8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VScrolledWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 8597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8598 | if (obj1) { |
8599 | { | |
8600 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8601 | if (PyErr_Occurred()) SWIG_fail; | |
8602 | } | |
8603 | } | |
d14a1e28 RD |
8604 | if (obj2) { |
8605 | { | |
8606 | arg3 = &temp3; | |
8607 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8608 | } | |
8609 | } | |
8610 | if (obj3) { | |
8611 | { | |
8612 | arg4 = &temp4; | |
8613 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8614 | } | |
8615 | } | |
994141e6 RD |
8616 | if (obj4) { |
8617 | { | |
8618 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
8619 | if (PyErr_Occurred()) SWIG_fail; | |
8620 | } | |
8621 | } | |
d14a1e28 RD |
8622 | if (obj5) { |
8623 | { | |
8624 | arg6 = wxString_in_helper(obj5); | |
8625 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 8626 | temp6 = True; |
d14a1e28 RD |
8627 | } |
8628 | } | |
8629 | { | |
8630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8631 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8632 | ||
8633 | wxPyEndAllowThreads(__tstate); | |
8634 | if (PyErr_Occurred()) SWIG_fail; | |
8635 | } | |
8636 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8637 | { | |
8638 | if (temp6) | |
8639 | delete arg6; | |
8640 | } | |
8641 | return resultobj; | |
8642 | fail: | |
8643 | { | |
8644 | if (temp6) | |
8645 | delete arg6; | |
8646 | } | |
8647 | return NULL; | |
8648 | } | |
8649 | ||
8650 | ||
8651 | static PyObject *_wrap_new_PreVScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8652 | PyObject *resultobj; | |
8653 | wxPyVScrolledWindow *result; | |
8654 | char *kwnames[] = { | |
8655 | NULL | |
8656 | }; | |
8657 | ||
8658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVScrolledWindow",kwnames)) goto fail; | |
8659 | { | |
8660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8661 | result = (wxPyVScrolledWindow *)new wxPyVScrolledWindow(); | |
8662 | ||
8663 | wxPyEndAllowThreads(__tstate); | |
8664 | if (PyErr_Occurred()) SWIG_fail; | |
8665 | } | |
8666 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVScrolledWindow, 1); | |
8667 | return resultobj; | |
8668 | fail: | |
8669 | return NULL; | |
8670 | } | |
8671 | ||
8672 | ||
8673 | static PyObject *_wrap_VScrolledWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8674 | PyObject *resultobj; | |
8675 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8676 | PyObject *arg2 = (PyObject *) 0 ; | |
8677 | PyObject *arg3 = (PyObject *) 0 ; | |
8678 | PyObject * obj0 = 0 ; | |
8679 | PyObject * obj1 = 0 ; | |
8680 | PyObject * obj2 = 0 ; | |
8681 | char *kwnames[] = { | |
8682 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
8683 | }; | |
8684 | ||
8685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8686 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8687 | arg2 = obj1; | |
8688 | arg3 = obj2; | |
8689 | { | |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8691 | (arg1)->_setCallbackInfo(arg2,arg3); | |
8692 | ||
8693 | wxPyEndAllowThreads(__tstate); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | Py_INCREF(Py_None); resultobj = Py_None; | |
8697 | return resultobj; | |
8698 | fail: | |
8699 | return NULL; | |
8700 | } | |
8701 | ||
8702 | ||
8703 | static PyObject *_wrap_VScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8704 | PyObject *resultobj; | |
8705 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8706 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8707 | int arg3 = (int) wxID_ANY ; |
d14a1e28 RD |
8708 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8709 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8710 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8711 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8712 | long arg6 = (long) 0 ; | |
8713 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
8714 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8715 | bool result; | |
8716 | wxPoint temp4 ; | |
8717 | wxSize temp5 ; | |
e811c8ce | 8718 | bool temp7 = False ; |
d14a1e28 RD |
8719 | PyObject * obj0 = 0 ; |
8720 | PyObject * obj1 = 0 ; | |
994141e6 | 8721 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8722 | PyObject * obj3 = 0 ; |
8723 | PyObject * obj4 = 0 ; | |
994141e6 | 8724 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
8725 | PyObject * obj6 = 0 ; |
8726 | char *kwnames[] = { | |
8727 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8728 | }; | |
8729 | ||
994141e6 | 8730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VScrolledWindow_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
8731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
8732 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
8733 | if (obj2) { |
8734 | { | |
8735 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8736 | if (PyErr_Occurred()) SWIG_fail; | |
8737 | } | |
8738 | } | |
d14a1e28 RD |
8739 | if (obj3) { |
8740 | { | |
8741 | arg4 = &temp4; | |
8742 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8743 | } | |
8744 | } | |
8745 | if (obj4) { | |
8746 | { | |
8747 | arg5 = &temp5; | |
8748 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8749 | } | |
8750 | } | |
994141e6 RD |
8751 | if (obj5) { |
8752 | { | |
8753 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
8754 | if (PyErr_Occurred()) SWIG_fail; | |
8755 | } | |
8756 | } | |
d14a1e28 RD |
8757 | if (obj6) { |
8758 | { | |
8759 | arg7 = wxString_in_helper(obj6); | |
8760 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 8761 | temp7 = True; |
d14a1e28 RD |
8762 | } |
8763 | } | |
8764 | { | |
8765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8766 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8767 | ||
8768 | wxPyEndAllowThreads(__tstate); | |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
8770 | } | |
4d5c3d91 | 8771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8772 | { |
8773 | if (temp7) | |
8774 | delete arg7; | |
8775 | } | |
8776 | return resultobj; | |
8777 | fail: | |
8778 | { | |
8779 | if (temp7) | |
8780 | delete arg7; | |
8781 | } | |
8782 | return NULL; | |
8783 | } | |
8784 | ||
8785 | ||
8786 | static PyObject *_wrap_VScrolledWindow_SetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8787 | PyObject *resultobj; | |
8788 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8789 | size_t arg2 ; | |
8790 | PyObject * obj0 = 0 ; | |
8791 | PyObject * obj1 = 0 ; | |
8792 | char *kwnames[] = { | |
8793 | (char *) "self",(char *) "count", NULL | |
8794 | }; | |
8795 | ||
8796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_SetLineCount",kwnames,&obj0,&obj1)) goto fail; | |
8797 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 8798 | { |
994141e6 | 8799 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
8800 | if (PyErr_Occurred()) SWIG_fail; |
8801 | } | |
d14a1e28 RD |
8802 | { |
8803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8804 | (arg1)->SetLineCount(arg2); | |
8805 | ||
8806 | wxPyEndAllowThreads(__tstate); | |
8807 | if (PyErr_Occurred()) SWIG_fail; | |
8808 | } | |
8809 | Py_INCREF(Py_None); resultobj = Py_None; | |
8810 | return resultobj; | |
8811 | fail: | |
8812 | return NULL; | |
8813 | } | |
8814 | ||
8815 | ||
8816 | static PyObject *_wrap_VScrolledWindow_ScrollToLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8817 | PyObject *resultobj; | |
8818 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8819 | size_t arg2 ; | |
8820 | bool result; | |
8821 | PyObject * obj0 = 0 ; | |
8822 | PyObject * obj1 = 0 ; | |
8823 | char *kwnames[] = { | |
8824 | (char *) "self",(char *) "line", NULL | |
8825 | }; | |
8826 | ||
8827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollToLine",kwnames,&obj0,&obj1)) goto fail; | |
8828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 8829 | { |
994141e6 | 8830 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
8831 | if (PyErr_Occurred()) SWIG_fail; |
8832 | } | |
d14a1e28 RD |
8833 | { |
8834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8835 | result = (bool)(arg1)->ScrollToLine(arg2); | |
8836 | ||
8837 | wxPyEndAllowThreads(__tstate); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
4d5c3d91 | 8840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8841 | return resultobj; |
8842 | fail: | |
8843 | return NULL; | |
8844 | } | |
8845 | ||
8846 | ||
8847 | static PyObject *_wrap_VScrolledWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8848 | PyObject *resultobj; | |
8849 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8850 | int arg2 ; | |
8851 | bool result; | |
8852 | PyObject * obj0 = 0 ; | |
994141e6 | 8853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8854 | char *kwnames[] = { |
8855 | (char *) "self",(char *) "lines", NULL | |
8856 | }; | |
8857 | ||
994141e6 | 8858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8860 | { |
8861 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8862 | if (PyErr_Occurred()) SWIG_fail; | |
8863 | } | |
d14a1e28 RD |
8864 | { |
8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8866 | result = (bool)(arg1)->ScrollLines(arg2); | |
8867 | ||
8868 | wxPyEndAllowThreads(__tstate); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
8870 | } | |
4d5c3d91 | 8871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8872 | return resultobj; |
8873 | fail: | |
8874 | return NULL; | |
8875 | } | |
8876 | ||
8877 | ||
8878 | static PyObject *_wrap_VScrolledWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8879 | PyObject *resultobj; | |
8880 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8881 | int arg2 ; | |
8882 | bool result; | |
8883 | PyObject * obj0 = 0 ; | |
994141e6 | 8884 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8885 | char *kwnames[] = { |
8886 | (char *) "self",(char *) "pages", NULL | |
8887 | }; | |
8888 | ||
994141e6 | 8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 8890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8891 | { |
8892 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8893 | if (PyErr_Occurred()) SWIG_fail; | |
8894 | } | |
d14a1e28 RD |
8895 | { |
8896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8897 | result = (bool)(arg1)->ScrollPages(arg2); | |
8898 | ||
8899 | wxPyEndAllowThreads(__tstate); | |
8900 | if (PyErr_Occurred()) SWIG_fail; | |
8901 | } | |
4d5c3d91 | 8902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
8903 | return resultobj; |
8904 | fail: | |
8905 | return NULL; | |
8906 | } | |
8907 | ||
8908 | ||
8909 | static PyObject *_wrap_VScrolledWindow_RefreshLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8910 | PyObject *resultobj; | |
8911 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8912 | size_t arg2 ; | |
8913 | PyObject * obj0 = 0 ; | |
8914 | PyObject * obj1 = 0 ; | |
8915 | char *kwnames[] = { | |
8916 | (char *) "self",(char *) "line", NULL | |
8917 | }; | |
8918 | ||
8919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_RefreshLine",kwnames,&obj0,&obj1)) goto fail; | |
8920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 8921 | { |
994141e6 | 8922 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
8923 | if (PyErr_Occurred()) SWIG_fail; |
8924 | } | |
d14a1e28 RD |
8925 | { |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8927 | (arg1)->RefreshLine(arg2); | |
8928 | ||
8929 | wxPyEndAllowThreads(__tstate); | |
8930 | if (PyErr_Occurred()) SWIG_fail; | |
8931 | } | |
8932 | Py_INCREF(Py_None); resultobj = Py_None; | |
8933 | return resultobj; | |
8934 | fail: | |
8935 | return NULL; | |
8936 | } | |
8937 | ||
8938 | ||
8939 | static PyObject *_wrap_VScrolledWindow_RefreshLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8940 | PyObject *resultobj; | |
8941 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
8942 | size_t arg2 ; | |
8943 | size_t arg3 ; | |
8944 | PyObject * obj0 = 0 ; | |
8945 | PyObject * obj1 = 0 ; | |
8946 | PyObject * obj2 = 0 ; | |
8947 | char *kwnames[] = { | |
8948 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8949 | }; | |
8950 | ||
8951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_RefreshLines",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 8953 | { |
994141e6 | 8954 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
8955 | if (PyErr_Occurred()) SWIG_fail; |
8956 | } | |
8957 | { | |
994141e6 | 8958 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
8959 | if (PyErr_Occurred()) SWIG_fail; |
8960 | } | |
d14a1e28 RD |
8961 | { |
8962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8963 | (arg1)->RefreshLines(arg2,arg3); | |
8964 | ||
8965 | wxPyEndAllowThreads(__tstate); | |
8966 | if (PyErr_Occurred()) SWIG_fail; | |
8967 | } | |
8968 | Py_INCREF(Py_None); resultobj = Py_None; | |
8969 | return resultobj; | |
8970 | fail: | |
8971 | return NULL; | |
8972 | } | |
8973 | ||
8974 | ||
8975 | static PyObject *_wrap_VScrolledWindow_HitTestXT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8976 | PyObject *resultobj; | |
8977 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
e811c8ce RD |
8978 | int arg2 ; |
8979 | int arg3 ; | |
d14a1e28 RD |
8980 | int result; |
8981 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8982 | PyObject * obj1 = 0 ; |
8983 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8984 | char *kwnames[] = { |
8985 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8986 | }; | |
8987 | ||
994141e6 | 8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VScrolledWindow_HitTestXT",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 8989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
8990 | { |
8991 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
8992 | if (PyErr_Occurred()) SWIG_fail; | |
8993 | } | |
8994 | { | |
8995 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
d14a1e28 RD |
8998 | { |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest(arg2,arg3); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
994141e6 | 9005 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9006 | return resultobj; |
9007 | fail: | |
9008 | return NULL; | |
9009 | } | |
9010 | ||
9011 | ||
9012 | static PyObject *_wrap_VScrolledWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9013 | PyObject *resultobj; | |
9014 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9015 | wxPoint *arg2 = 0 ; | |
9016 | int result; | |
9017 | wxPoint temp2 ; | |
9018 | PyObject * obj0 = 0 ; | |
9019 | PyObject * obj1 = 0 ; | |
9020 | char *kwnames[] = { | |
9021 | (char *) "self",(char *) "pt", NULL | |
9022 | }; | |
9023 | ||
9024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9026 | { | |
9027 | arg2 = &temp2; | |
9028 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9029 | } | |
9030 | { | |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | result = (int)((wxPyVScrolledWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
994141e6 | 9037 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9038 | return resultobj; |
9039 | fail: | |
9040 | return NULL; | |
9041 | } | |
9042 | ||
9043 | ||
9044 | static PyObject *_wrap_VScrolledWindow_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9045 | PyObject *resultobj; | |
9046 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9047 | PyObject * obj0 = 0 ; | |
9048 | char *kwnames[] = { | |
9049 | (char *) "self", NULL | |
9050 | }; | |
9051 | ||
9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_RefreshAll",kwnames,&obj0)) goto fail; | |
9053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9054 | { | |
9055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9056 | (arg1)->RefreshAll(); | |
9057 | ||
9058 | wxPyEndAllowThreads(__tstate); | |
9059 | if (PyErr_Occurred()) SWIG_fail; | |
9060 | } | |
9061 | Py_INCREF(Py_None); resultobj = Py_None; | |
9062 | return resultobj; | |
9063 | fail: | |
9064 | return NULL; | |
9065 | } | |
9066 | ||
9067 | ||
9068 | static PyObject *_wrap_VScrolledWindow_GetLineCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9069 | PyObject *resultobj; | |
9070 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9071 | size_t result; | |
9072 | PyObject * obj0 = 0 ; | |
9073 | char *kwnames[] = { | |
9074 | (char *) "self", NULL | |
9075 | }; | |
9076 | ||
9077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLineCount",kwnames,&obj0)) goto fail; | |
9078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9079 | { | |
9080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9081 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLineCount(); | |
9082 | ||
9083 | wxPyEndAllowThreads(__tstate); | |
9084 | if (PyErr_Occurred()) SWIG_fail; | |
9085 | } | |
994141e6 | 9086 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9087 | return resultobj; |
9088 | fail: | |
9089 | return NULL; | |
9090 | } | |
9091 | ||
9092 | ||
9093 | static PyObject *_wrap_VScrolledWindow_GetFirstVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9094 | PyObject *resultobj; | |
9095 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9096 | size_t result; | |
9097 | PyObject * obj0 = 0 ; | |
9098 | char *kwnames[] = { | |
9099 | (char *) "self", NULL | |
9100 | }; | |
9101 | ||
9102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetFirstVisibleLine",kwnames,&obj0)) goto fail; | |
9103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9104 | { | |
9105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9106 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetFirstVisibleLine(); | |
9107 | ||
9108 | wxPyEndAllowThreads(__tstate); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | } | |
994141e6 | 9111 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9112 | return resultobj; |
9113 | fail: | |
9114 | return NULL; | |
9115 | } | |
9116 | ||
9117 | ||
9118 | static PyObject *_wrap_VScrolledWindow_GetLastVisibleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9119 | PyObject *resultobj; | |
9120 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9121 | size_t result; | |
9122 | PyObject * obj0 = 0 ; | |
9123 | char *kwnames[] = { | |
9124 | (char *) "self", NULL | |
9125 | }; | |
9126 | ||
9127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VScrolledWindow_GetLastVisibleLine",kwnames,&obj0)) goto fail; | |
9128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9129 | { | |
9130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9131 | result = (size_t)((wxPyVScrolledWindow const *)arg1)->GetLastVisibleLine(); | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
994141e6 | 9136 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9137 | return resultobj; |
9138 | fail: | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
9143 | static PyObject *_wrap_VScrolledWindow_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9144 | PyObject *resultobj; | |
9145 | wxPyVScrolledWindow *arg1 = (wxPyVScrolledWindow *) 0 ; | |
9146 | size_t arg2 ; | |
9147 | bool result; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | PyObject * obj1 = 0 ; | |
9150 | char *kwnames[] = { | |
9151 | (char *) "self",(char *) "line", NULL | |
9152 | }; | |
9153 | ||
9154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VScrolledWindow_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
9155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVScrolledWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9156 | { |
994141e6 | 9157 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
9158 | if (PyErr_Occurred()) SWIG_fail; |
9159 | } | |
d14a1e28 RD |
9160 | { |
9161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9162 | result = (bool)((wxPyVScrolledWindow const *)arg1)->IsVisible(arg2); | |
9163 | ||
9164 | wxPyEndAllowThreads(__tstate); | |
9165 | if (PyErr_Occurred()) SWIG_fail; | |
9166 | } | |
4d5c3d91 | 9167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9168 | return resultobj; |
9169 | fail: | |
9170 | return NULL; | |
9171 | } | |
9172 | ||
9173 | ||
9174 | static PyObject * VScrolledWindow_swigregister(PyObject *self, PyObject *args) { | |
9175 | PyObject *obj; | |
9176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9177 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVScrolledWindow, obj); | |
9178 | Py_INCREF(obj); | |
9179 | return Py_BuildValue((char *)""); | |
9180 | } | |
b2dc1044 RD |
9181 | static int _wrap_VListBoxNameStr_set(PyObject *_val) { |
9182 | PyErr_SetString(PyExc_TypeError,"Variable VListBoxNameStr is read-only."); | |
9183 | return 1; | |
9184 | } | |
9185 | ||
9186 | ||
9187 | static PyObject *_wrap_VListBoxNameStr_get() { | |
9188 | PyObject *pyobj; | |
9189 | ||
9190 | { | |
9191 | #if wxUSE_UNICODE | |
9192 | pyobj = PyUnicode_FromWideChar((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9193 | #else | |
9194 | pyobj = PyString_FromStringAndSize((&wxPyVListBoxNameStr)->c_str(), (&wxPyVListBoxNameStr)->Len()); | |
9195 | #endif | |
9196 | } | |
9197 | return pyobj; | |
9198 | } | |
9199 | ||
9200 | ||
d14a1e28 RD |
9201 | static PyObject *_wrap_new_VListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9202 | PyObject *resultobj; | |
9203 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9204 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
9205 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9206 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9207 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9208 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9209 | long arg5 = (long) 0 ; | |
9210 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
9211 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
9212 | wxPyVListBox *result; | |
9213 | wxPoint temp3 ; | |
9214 | wxSize temp4 ; | |
e811c8ce | 9215 | bool temp6 = False ; |
d14a1e28 | 9216 | PyObject * obj0 = 0 ; |
994141e6 | 9217 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9218 | PyObject * obj2 = 0 ; |
9219 | PyObject * obj3 = 0 ; | |
994141e6 | 9220 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9221 | PyObject * obj5 = 0 ; |
9222 | char *kwnames[] = { | |
9223 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9224 | }; | |
9225 | ||
994141e6 | 9226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_VListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 9227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9228 | if (obj1) { |
9229 | { | |
9230 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9231 | if (PyErr_Occurred()) SWIG_fail; | |
9232 | } | |
9233 | } | |
d14a1e28 RD |
9234 | if (obj2) { |
9235 | { | |
9236 | arg3 = &temp3; | |
9237 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9238 | } | |
9239 | } | |
9240 | if (obj3) { | |
9241 | { | |
9242 | arg4 = &temp4; | |
9243 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9244 | } | |
9245 | } | |
994141e6 RD |
9246 | if (obj4) { |
9247 | { | |
9248 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
9249 | if (PyErr_Occurred()) SWIG_fail; | |
9250 | } | |
9251 | } | |
d14a1e28 RD |
9252 | if (obj5) { |
9253 | { | |
9254 | arg6 = wxString_in_helper(obj5); | |
9255 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 9256 | temp6 = True; |
d14a1e28 RD |
9257 | } |
9258 | } | |
9259 | { | |
9260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9261 | result = (wxPyVListBox *)new wxPyVListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
9262 | ||
9263 | wxPyEndAllowThreads(__tstate); | |
9264 | if (PyErr_Occurred()) SWIG_fail; | |
9265 | } | |
9266 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVListBox, 1); | |
9267 | { | |
9268 | if (temp6) | |
9269 | delete arg6; | |
9270 | } | |
9271 | return resultobj; | |
9272 | fail: | |
9273 | { | |
9274 | if (temp6) | |
9275 | delete arg6; | |
9276 | } | |
9277 | return NULL; | |
9278 | } | |
9279 | ||
9280 | ||
9281 | static PyObject *_wrap_new_PreVListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9282 | PyObject *resultobj; | |
9283 | wxPyVListBox *result; | |
9284 | char *kwnames[] = { | |
9285 | NULL | |
9286 | }; | |
9287 | ||
9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreVListBox",kwnames)) goto fail; | |
9289 | { | |
9290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9291 | result = (wxPyVListBox *)new wxPyVListBox(); | |
9292 | ||
9293 | wxPyEndAllowThreads(__tstate); | |
9294 | if (PyErr_Occurred()) SWIG_fail; | |
9295 | } | |
9296 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyVListBox, 1); | |
9297 | return resultobj; | |
9298 | fail: | |
9299 | return NULL; | |
9300 | } | |
9301 | ||
9302 | ||
9303 | static PyObject *_wrap_VListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9304 | PyObject *resultobj; | |
9305 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9306 | PyObject *arg2 = (PyObject *) 0 ; | |
9307 | PyObject *arg3 = (PyObject *) 0 ; | |
9308 | PyObject * obj0 = 0 ; | |
9309 | PyObject * obj1 = 0 ; | |
9310 | PyObject * obj2 = 0 ; | |
9311 | char *kwnames[] = { | |
9312 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
9313 | }; | |
9314 | ||
9315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9317 | arg2 = obj1; | |
9318 | arg3 = obj2; | |
9319 | { | |
9320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9321 | (arg1)->_setCallbackInfo(arg2,arg3); | |
9322 | ||
9323 | wxPyEndAllowThreads(__tstate); | |
9324 | if (PyErr_Occurred()) SWIG_fail; | |
9325 | } | |
9326 | Py_INCREF(Py_None); resultobj = Py_None; | |
9327 | return resultobj; | |
9328 | fail: | |
9329 | return NULL; | |
9330 | } | |
9331 | ||
9332 | ||
9333 | static PyObject *_wrap_VListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9334 | PyObject *resultobj; | |
9335 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9336 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9337 | int arg3 = (int) wxID_ANY ; |
d14a1e28 RD |
9338 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9339 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9340 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9341 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9342 | long arg6 = (long) 0 ; | |
9343 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
9344 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9345 | bool result; | |
9346 | wxPoint temp4 ; | |
9347 | wxSize temp5 ; | |
e811c8ce | 9348 | bool temp7 = False ; |
d14a1e28 RD |
9349 | PyObject * obj0 = 0 ; |
9350 | PyObject * obj1 = 0 ; | |
994141e6 | 9351 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9352 | PyObject * obj3 = 0 ; |
9353 | PyObject * obj4 = 0 ; | |
994141e6 | 9354 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9355 | PyObject * obj6 = 0 ; |
9356 | char *kwnames[] = { | |
9357 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
9358 | }; | |
9359 | ||
994141e6 | 9360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:VListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
9361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
9362 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
9363 | if (obj2) { |
9364 | { | |
9365 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | } | |
d14a1e28 RD |
9369 | if (obj3) { |
9370 | { | |
9371 | arg4 = &temp4; | |
9372 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9373 | } | |
9374 | } | |
9375 | if (obj4) { | |
9376 | { | |
9377 | arg5 = &temp5; | |
9378 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9379 | } | |
9380 | } | |
994141e6 RD |
9381 | if (obj5) { |
9382 | { | |
9383 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
9384 | if (PyErr_Occurred()) SWIG_fail; | |
9385 | } | |
9386 | } | |
d14a1e28 RD |
9387 | if (obj6) { |
9388 | { | |
9389 | arg7 = wxString_in_helper(obj6); | |
9390 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 9391 | temp7 = True; |
d14a1e28 RD |
9392 | } |
9393 | } | |
9394 | { | |
9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9396 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
9397 | ||
9398 | wxPyEndAllowThreads(__tstate); | |
9399 | if (PyErr_Occurred()) SWIG_fail; | |
9400 | } | |
4d5c3d91 | 9401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9402 | { |
9403 | if (temp7) | |
9404 | delete arg7; | |
9405 | } | |
9406 | return resultobj; | |
9407 | fail: | |
9408 | { | |
9409 | if (temp7) | |
9410 | delete arg7; | |
9411 | } | |
9412 | return NULL; | |
9413 | } | |
9414 | ||
9415 | ||
9416 | static PyObject *_wrap_VListBox_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9417 | PyObject *resultobj; | |
9418 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9419 | size_t result; | |
9420 | PyObject * obj0 = 0 ; | |
9421 | char *kwnames[] = { | |
9422 | (char *) "self", NULL | |
9423 | }; | |
9424 | ||
9425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetItemCount",kwnames,&obj0)) goto fail; | |
9426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9427 | { | |
9428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9429 | result = (size_t)((wxPyVListBox const *)arg1)->GetItemCount(); | |
9430 | ||
9431 | wxPyEndAllowThreads(__tstate); | |
9432 | if (PyErr_Occurred()) SWIG_fail; | |
9433 | } | |
994141e6 | 9434 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9435 | return resultobj; |
9436 | fail: | |
9437 | return NULL; | |
9438 | } | |
9439 | ||
9440 | ||
9441 | static PyObject *_wrap_VListBox_HasMultipleSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9442 | PyObject *resultobj; | |
9443 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9444 | bool result; | |
9445 | PyObject * obj0 = 0 ; | |
9446 | char *kwnames[] = { | |
9447 | (char *) "self", NULL | |
9448 | }; | |
9449 | ||
9450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_HasMultipleSelection",kwnames,&obj0)) goto fail; | |
9451 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9452 | { | |
9453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9454 | result = (bool)((wxPyVListBox const *)arg1)->HasMultipleSelection(); | |
9455 | ||
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
4d5c3d91 | 9459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9460 | return resultobj; |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
9466 | static PyObject *_wrap_VListBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9467 | PyObject *resultobj; | |
9468 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9469 | int result; | |
9470 | PyObject * obj0 = 0 ; | |
9471 | char *kwnames[] = { | |
9472 | (char *) "self", NULL | |
9473 | }; | |
9474 | ||
9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelection",kwnames,&obj0)) goto fail; | |
9476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9477 | { | |
9478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9479 | result = (int)((wxPyVListBox const *)arg1)->GetSelection(); | |
9480 | ||
9481 | wxPyEndAllowThreads(__tstate); | |
9482 | if (PyErr_Occurred()) SWIG_fail; | |
9483 | } | |
994141e6 | 9484 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9485 | return resultobj; |
9486 | fail: | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_VListBox_IsCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9494 | size_t arg2 ; | |
9495 | bool result; | |
9496 | PyObject * obj0 = 0 ; | |
9497 | PyObject * obj1 = 0 ; | |
9498 | char *kwnames[] = { | |
9499 | (char *) "self",(char *) "item", NULL | |
9500 | }; | |
9501 | ||
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsCurrent",kwnames,&obj0,&obj1)) goto fail; | |
9503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9504 | { |
994141e6 | 9505 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
9506 | if (PyErr_Occurred()) SWIG_fail; |
9507 | } | |
d14a1e28 RD |
9508 | { |
9509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9510 | result = (bool)((wxPyVListBox const *)arg1)->IsCurrent(arg2); | |
9511 | ||
9512 | wxPyEndAllowThreads(__tstate); | |
9513 | if (PyErr_Occurred()) SWIG_fail; | |
9514 | } | |
4d5c3d91 | 9515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9516 | return resultobj; |
9517 | fail: | |
9518 | return NULL; | |
9519 | } | |
9520 | ||
9521 | ||
9522 | static PyObject *_wrap_VListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9523 | PyObject *resultobj; | |
9524 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9525 | size_t arg2 ; | |
9526 | bool result; | |
9527 | PyObject * obj0 = 0 ; | |
9528 | PyObject * obj1 = 0 ; | |
9529 | char *kwnames[] = { | |
9530 | (char *) "self",(char *) "item", NULL | |
9531 | }; | |
9532 | ||
9533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
9534 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9535 | { |
994141e6 | 9536 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
9537 | if (PyErr_Occurred()) SWIG_fail; |
9538 | } | |
d14a1e28 RD |
9539 | { |
9540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9541 | result = (bool)((wxPyVListBox const *)arg1)->IsSelected(arg2); | |
9542 | ||
9543 | wxPyEndAllowThreads(__tstate); | |
9544 | if (PyErr_Occurred()) SWIG_fail; | |
9545 | } | |
4d5c3d91 | 9546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9547 | return resultobj; |
9548 | fail: | |
9549 | return NULL; | |
9550 | } | |
9551 | ||
9552 | ||
9553 | static PyObject *_wrap_VListBox_GetSelectedCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9554 | PyObject *resultobj; | |
9555 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9556 | size_t result; | |
9557 | PyObject * obj0 = 0 ; | |
9558 | char *kwnames[] = { | |
9559 | (char *) "self", NULL | |
9560 | }; | |
9561 | ||
9562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectedCount",kwnames,&obj0)) goto fail; | |
9563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | result = (size_t)((wxPyVListBox const *)arg1)->GetSelectedCount(); | |
9567 | ||
9568 | wxPyEndAllowThreads(__tstate); | |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
9570 | } | |
994141e6 | 9571 | resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
9572 | return resultobj; |
9573 | fail: | |
9574 | return NULL; | |
9575 | } | |
9576 | ||
9577 | ||
9578 | static PyObject *_wrap_VListBox_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9579 | PyObject *resultobj; | |
9580 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9581 | unsigned long *arg2 = 0 ; | |
9582 | int result; | |
9583 | PyObject * obj0 = 0 ; | |
9584 | PyObject * obj1 = 0 ; | |
9585 | char *kwnames[] = { | |
9586 | (char *) "self",(char *) "cookie", NULL | |
9587 | }; | |
9588 | ||
9589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetFirstSelected",kwnames,&obj0,&obj1)) goto fail; | |
9590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9591 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9592 | if (arg2 == NULL) { | |
9593 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9594 | } | |
9595 | { | |
9596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9597 | result = (int)((wxPyVListBox const *)arg1)->GetFirstSelected(*arg2); | |
9598 | ||
9599 | wxPyEndAllowThreads(__tstate); | |
9600 | if (PyErr_Occurred()) SWIG_fail; | |
9601 | } | |
994141e6 | 9602 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9603 | return resultobj; |
9604 | fail: | |
9605 | return NULL; | |
9606 | } | |
9607 | ||
9608 | ||
9609 | static PyObject *_wrap_VListBox_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9610 | PyObject *resultobj; | |
9611 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9612 | unsigned long *arg2 = 0 ; | |
9613 | int result; | |
9614 | PyObject * obj0 = 0 ; | |
9615 | PyObject * obj1 = 0 ; | |
9616 | char *kwnames[] = { | |
9617 | (char *) "self",(char *) "cookie", NULL | |
9618 | }; | |
9619 | ||
9620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
9621 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9622 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_long,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9623 | if (arg2 == NULL) { | |
9624 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9625 | } | |
9626 | { | |
9627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9628 | result = (int)((wxPyVListBox const *)arg1)->GetNextSelected(*arg2); | |
9629 | ||
9630 | wxPyEndAllowThreads(__tstate); | |
9631 | if (PyErr_Occurred()) SWIG_fail; | |
9632 | } | |
994141e6 | 9633 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
9634 | return resultobj; |
9635 | fail: | |
9636 | return NULL; | |
9637 | } | |
9638 | ||
9639 | ||
9640 | static PyObject *_wrap_VListBox_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9641 | PyObject *resultobj; | |
9642 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9643 | wxPoint result; | |
9644 | PyObject * obj0 = 0 ; | |
9645 | char *kwnames[] = { | |
9646 | (char *) "self", NULL | |
9647 | }; | |
9648 | ||
9649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetMargins",kwnames,&obj0)) goto fail; | |
9650 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9651 | { | |
9652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9653 | result = ((wxPyVListBox const *)arg1)->GetMargins(); | |
9654 | ||
9655 | wxPyEndAllowThreads(__tstate); | |
9656 | if (PyErr_Occurred()) SWIG_fail; | |
9657 | } | |
9658 | { | |
9659 | wxPoint * resultptr; | |
9660 | resultptr = new wxPoint((wxPoint &) result); | |
9661 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
9662 | } | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | return NULL; | |
9666 | } | |
9667 | ||
9668 | ||
9669 | static PyObject *_wrap_VListBox_GetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9670 | PyObject *resultobj; | |
9671 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9672 | wxColour *result; | |
9673 | PyObject * obj0 = 0 ; | |
9674 | char *kwnames[] = { | |
9675 | (char *) "self", NULL | |
9676 | }; | |
9677 | ||
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_GetSelectionBackground",kwnames,&obj0)) goto fail; | |
9679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9680 | { | |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9682 | { | |
9683 | wxColour const &_result_ref = ((wxPyVListBox const *)arg1)->GetSelectionBackground(); | |
9684 | result = (wxColour *) &_result_ref; | |
9685 | } | |
9686 | ||
9687 | wxPyEndAllowThreads(__tstate); | |
9688 | if (PyErr_Occurred()) SWIG_fail; | |
9689 | } | |
9690 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
9691 | return resultobj; | |
9692 | fail: | |
9693 | return NULL; | |
9694 | } | |
9695 | ||
9696 | ||
9697 | static PyObject *_wrap_VListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9698 | PyObject *resultobj; | |
9699 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9700 | size_t arg2 ; | |
9701 | PyObject * obj0 = 0 ; | |
9702 | PyObject * obj1 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self",(char *) "count", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9709 | { |
994141e6 | 9710 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
9711 | if (PyErr_Occurred()) SWIG_fail; |
9712 | } | |
d14a1e28 RD |
9713 | { |
9714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9715 | (arg1)->SetItemCount(arg2); | |
9716 | ||
9717 | wxPyEndAllowThreads(__tstate); | |
9718 | if (PyErr_Occurred()) SWIG_fail; | |
9719 | } | |
9720 | Py_INCREF(Py_None); resultobj = Py_None; | |
9721 | return resultobj; | |
9722 | fail: | |
9723 | return NULL; | |
9724 | } | |
9725 | ||
9726 | ||
9727 | static PyObject *_wrap_VListBox_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9728 | PyObject *resultobj; | |
9729 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9730 | PyObject * obj0 = 0 ; | |
9731 | char *kwnames[] = { | |
9732 | (char *) "self", NULL | |
9733 | }; | |
9734 | ||
9735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_Clear",kwnames,&obj0)) goto fail; | |
9736 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9737 | { | |
9738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9739 | (arg1)->Clear(); | |
9740 | ||
9741 | wxPyEndAllowThreads(__tstate); | |
9742 | if (PyErr_Occurred()) SWIG_fail; | |
9743 | } | |
9744 | Py_INCREF(Py_None); resultobj = Py_None; | |
9745 | return resultobj; | |
9746 | fail: | |
9747 | return NULL; | |
9748 | } | |
9749 | ||
9750 | ||
9751 | static PyObject *_wrap_VListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9752 | PyObject *resultobj; | |
9753 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9754 | int arg2 ; | |
9755 | PyObject * obj0 = 0 ; | |
994141e6 | 9756 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9757 | char *kwnames[] = { |
9758 | (char *) "self",(char *) "selection", NULL | |
9759 | }; | |
9760 | ||
994141e6 | 9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 9762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9763 | { |
9764 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9765 | if (PyErr_Occurred()) SWIG_fail; | |
9766 | } | |
d14a1e28 RD |
9767 | { |
9768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9769 | (arg1)->SetSelection(arg2); | |
9770 | ||
9771 | wxPyEndAllowThreads(__tstate); | |
9772 | if (PyErr_Occurred()) SWIG_fail; | |
9773 | } | |
9774 | Py_INCREF(Py_None); resultobj = Py_None; | |
9775 | return resultobj; | |
9776 | fail: | |
9777 | return NULL; | |
9778 | } | |
9779 | ||
9780 | ||
9781 | static PyObject *_wrap_VListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9782 | PyObject *resultobj; | |
9783 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9784 | size_t arg2 ; | |
e811c8ce | 9785 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9786 | bool result; |
9787 | PyObject * obj0 = 0 ; | |
9788 | PyObject * obj1 = 0 ; | |
9789 | PyObject * obj2 = 0 ; | |
9790 | char *kwnames[] = { | |
9791 | (char *) "self",(char *) "item",(char *) "select", NULL | |
9792 | }; | |
9793 | ||
9794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:VListBox_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9796 | { |
994141e6 | 9797 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
d14a1e28 RD |
9798 | if (PyErr_Occurred()) SWIG_fail; |
9799 | } | |
a41e16b6 RD |
9800 | if (obj2) { |
9801 | { | |
994141e6 | 9802 | arg3 = (bool) SWIG_PyObj_AsBool(obj2); |
a41e16b6 RD |
9803 | if (PyErr_Occurred()) SWIG_fail; |
9804 | } | |
9805 | } | |
d14a1e28 RD |
9806 | { |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | result = (bool)(arg1)->Select(arg2,arg3); | |
9809 | ||
9810 | wxPyEndAllowThreads(__tstate); | |
9811 | if (PyErr_Occurred()) SWIG_fail; | |
9812 | } | |
4d5c3d91 | 9813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9814 | return resultobj; |
9815 | fail: | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | static PyObject *_wrap_VListBox_SelectRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9821 | PyObject *resultobj; | |
9822 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9823 | size_t arg2 ; | |
9824 | size_t arg3 ; | |
9825 | bool result; | |
9826 | PyObject * obj0 = 0 ; | |
9827 | PyObject * obj1 = 0 ; | |
9828 | PyObject * obj2 = 0 ; | |
9829 | char *kwnames[] = { | |
9830 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9831 | }; | |
9832 | ||
9833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SelectRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9835 | { |
994141e6 | 9836 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
9837 | if (PyErr_Occurred()) SWIG_fail; |
9838 | } | |
9839 | { | |
994141e6 | 9840 | arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2); |
a41e16b6 RD |
9841 | if (PyErr_Occurred()) SWIG_fail; |
9842 | } | |
d14a1e28 RD |
9843 | { |
9844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9845 | result = (bool)(arg1)->SelectRange(arg2,arg3); | |
9846 | ||
9847 | wxPyEndAllowThreads(__tstate); | |
9848 | if (PyErr_Occurred()) SWIG_fail; | |
9849 | } | |
4d5c3d91 | 9850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9851 | return resultobj; |
9852 | fail: | |
9853 | return NULL; | |
9854 | } | |
9855 | ||
9856 | ||
9857 | static PyObject *_wrap_VListBox_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9858 | PyObject *resultobj; | |
9859 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9860 | size_t arg2 ; | |
9861 | PyObject * obj0 = 0 ; | |
9862 | PyObject * obj1 = 0 ; | |
9863 | char *kwnames[] = { | |
9864 | (char *) "self",(char *) "item", NULL | |
9865 | }; | |
9866 | ||
9867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
9868 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 9869 | { |
994141e6 | 9870 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
9871 | if (PyErr_Occurred()) SWIG_fail; |
9872 | } | |
d14a1e28 RD |
9873 | { |
9874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9875 | (arg1)->Toggle(arg2); | |
9876 | ||
9877 | wxPyEndAllowThreads(__tstate); | |
9878 | if (PyErr_Occurred()) SWIG_fail; | |
9879 | } | |
9880 | Py_INCREF(Py_None); resultobj = Py_None; | |
9881 | return resultobj; | |
9882 | fail: | |
9883 | return NULL; | |
9884 | } | |
9885 | ||
9886 | ||
9887 | static PyObject *_wrap_VListBox_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9888 | PyObject *resultobj; | |
9889 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9890 | bool result; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char *kwnames[] = { | |
9893 | (char *) "self", NULL | |
9894 | }; | |
9895 | ||
9896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_SelectAll",kwnames,&obj0)) goto fail; | |
9897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9898 | { | |
9899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9900 | result = (bool)(arg1)->SelectAll(); | |
9901 | ||
9902 | wxPyEndAllowThreads(__tstate); | |
9903 | if (PyErr_Occurred()) SWIG_fail; | |
9904 | } | |
4d5c3d91 | 9905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9906 | return resultobj; |
9907 | fail: | |
9908 | return NULL; | |
9909 | } | |
9910 | ||
9911 | ||
9912 | static PyObject *_wrap_VListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9913 | PyObject *resultobj; | |
9914 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9915 | bool result; | |
9916 | PyObject * obj0 = 0 ; | |
9917 | char *kwnames[] = { | |
9918 | (char *) "self", NULL | |
9919 | }; | |
9920 | ||
9921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VListBox_DeselectAll",kwnames,&obj0)) goto fail; | |
9922 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9923 | { | |
9924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9925 | result = (bool)(arg1)->DeselectAll(); | |
9926 | ||
9927 | wxPyEndAllowThreads(__tstate); | |
9928 | if (PyErr_Occurred()) SWIG_fail; | |
9929 | } | |
4d5c3d91 | 9930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
9931 | return resultobj; |
9932 | fail: | |
9933 | return NULL; | |
9934 | } | |
9935 | ||
9936 | ||
9937 | static PyObject *_wrap_VListBox_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9938 | PyObject *resultobj; | |
9939 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
9940 | wxPoint *arg2 = 0 ; | |
9941 | wxPoint temp2 ; | |
9942 | PyObject * obj0 = 0 ; | |
9943 | PyObject * obj1 = 0 ; | |
9944 | char *kwnames[] = { | |
9945 | (char *) "self",(char *) "pt", NULL | |
9946 | }; | |
9947 | ||
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
9949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9950 | { | |
9951 | arg2 = &temp2; | |
9952 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9953 | } | |
9954 | { | |
9955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9956 | (arg1)->SetMargins((wxPoint const &)*arg2); | |
9957 | ||
9958 | wxPyEndAllowThreads(__tstate); | |
9959 | if (PyErr_Occurred()) SWIG_fail; | |
9960 | } | |
9961 | Py_INCREF(Py_None); resultobj = Py_None; | |
9962 | return resultobj; | |
9963 | fail: | |
9964 | return NULL; | |
9965 | } | |
9966 | ||
9967 | ||
9968 | static PyObject *_wrap_VListBox_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9969 | PyObject *resultobj; | |
9970 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
e811c8ce RD |
9971 | int arg2 ; |
9972 | int arg3 ; | |
d14a1e28 | 9973 | PyObject * obj0 = 0 ; |
994141e6 RD |
9974 | PyObject * obj1 = 0 ; |
9975 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9976 | char *kwnames[] = { |
9977 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9978 | }; | |
9979 | ||
994141e6 | 9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:VListBox_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 9981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
9982 | { |
9983 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
9986 | { | |
9987 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
9988 | if (PyErr_Occurred()) SWIG_fail; | |
9989 | } | |
d14a1e28 RD |
9990 | { |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9992 | (arg1)->SetMargins(arg2,arg3); | |
9993 | ||
9994 | wxPyEndAllowThreads(__tstate); | |
9995 | if (PyErr_Occurred()) SWIG_fail; | |
9996 | } | |
9997 | Py_INCREF(Py_None); resultobj = Py_None; | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | return NULL; | |
10001 | } | |
10002 | ||
10003 | ||
10004 | static PyObject *_wrap_VListBox_SetSelectionBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10005 | PyObject *resultobj; | |
10006 | wxPyVListBox *arg1 = (wxPyVListBox *) 0 ; | |
10007 | wxColour *arg2 = 0 ; | |
10008 | wxColour temp2 ; | |
10009 | PyObject * obj0 = 0 ; | |
10010 | PyObject * obj1 = 0 ; | |
10011 | char *kwnames[] = { | |
10012 | (char *) "self",(char *) "col", NULL | |
10013 | }; | |
10014 | ||
10015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VListBox_SetSelectionBackground",kwnames,&obj0,&obj1)) goto fail; | |
10016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyVListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10017 | { | |
10018 | arg2 = &temp2; | |
10019 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10020 | } | |
10021 | { | |
10022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10023 | (arg1)->SetSelectionBackground((wxColour const &)*arg2); | |
10024 | ||
10025 | wxPyEndAllowThreads(__tstate); | |
10026 | if (PyErr_Occurred()) SWIG_fail; | |
10027 | } | |
10028 | Py_INCREF(Py_None); resultobj = Py_None; | |
10029 | return resultobj; | |
10030 | fail: | |
10031 | return NULL; | |
10032 | } | |
10033 | ||
10034 | ||
10035 | static PyObject * VListBox_swigregister(PyObject *self, PyObject *args) { | |
10036 | PyObject *obj; | |
10037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10038 | SWIG_TypeClientData(SWIGTYPE_p_wxPyVListBox, obj); | |
10039 | Py_INCREF(obj); | |
10040 | return Py_BuildValue((char *)""); | |
10041 | } | |
10042 | static PyObject *_wrap_new_HtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10043 | PyObject *resultobj; | |
10044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10045 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
10046 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10047 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10048 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10049 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10050 | long arg5 = (long) 0 ; | |
10051 | wxString const &arg6_defvalue = wxPyVListBoxNameStr ; | |
10052 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10053 | wxPyHtmlListBox *result; | |
10054 | wxPoint temp3 ; | |
10055 | wxSize temp4 ; | |
e811c8ce | 10056 | bool temp6 = False ; |
d14a1e28 | 10057 | PyObject * obj0 = 0 ; |
994141e6 | 10058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10059 | PyObject * obj2 = 0 ; |
10060 | PyObject * obj3 = 0 ; | |
994141e6 | 10061 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10062 | PyObject * obj5 = 0 ; |
10063 | char *kwnames[] = { | |
10064 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10065 | }; | |
10066 | ||
994141e6 | 10067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_HtmlListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 10068 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10069 | if (obj1) { |
10070 | { | |
10071 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | } | |
d14a1e28 RD |
10075 | if (obj2) { |
10076 | { | |
10077 | arg3 = &temp3; | |
10078 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10079 | } | |
10080 | } | |
10081 | if (obj3) { | |
10082 | { | |
10083 | arg4 = &temp4; | |
10084 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10085 | } | |
10086 | } | |
994141e6 RD |
10087 | if (obj4) { |
10088 | { | |
10089 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
10090 | if (PyErr_Occurred()) SWIG_fail; | |
10091 | } | |
10092 | } | |
d14a1e28 RD |
10093 | if (obj5) { |
10094 | { | |
10095 | arg6 = wxString_in_helper(obj5); | |
10096 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 10097 | temp6 = True; |
d14a1e28 RD |
10098 | } |
10099 | } | |
10100 | { | |
10101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10102 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10103 | ||
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
10107 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10108 | { | |
10109 | if (temp6) | |
10110 | delete arg6; | |
10111 | } | |
10112 | return resultobj; | |
10113 | fail: | |
10114 | { | |
10115 | if (temp6) | |
10116 | delete arg6; | |
10117 | } | |
10118 | return NULL; | |
10119 | } | |
10120 | ||
10121 | ||
10122 | static PyObject *_wrap_new_PreHtmlListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10123 | PyObject *resultobj; | |
10124 | wxPyHtmlListBox *result; | |
10125 | char *kwnames[] = { | |
10126 | NULL | |
10127 | }; | |
10128 | ||
10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreHtmlListBox",kwnames)) goto fail; | |
10130 | { | |
10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10132 | result = (wxPyHtmlListBox *)new wxPyHtmlListBox(); | |
10133 | ||
10134 | wxPyEndAllowThreads(__tstate); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyHtmlListBox, 1); | |
10138 | return resultobj; | |
10139 | fail: | |
10140 | return NULL; | |
10141 | } | |
10142 | ||
10143 | ||
10144 | static PyObject *_wrap_HtmlListBox__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10145 | PyObject *resultobj; | |
10146 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10147 | PyObject *arg2 = (PyObject *) 0 ; | |
10148 | PyObject *arg3 = (PyObject *) 0 ; | |
10149 | PyObject * obj0 = 0 ; | |
10150 | PyObject * obj1 = 0 ; | |
10151 | PyObject * obj2 = 0 ; | |
10152 | char *kwnames[] = { | |
10153 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
10154 | }; | |
10155 | ||
10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HtmlListBox__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10158 | arg2 = obj1; | |
10159 | arg3 = obj2; | |
10160 | { | |
10161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10162 | (arg1)->_setCallbackInfo(arg2,arg3); | |
10163 | ||
10164 | wxPyEndAllowThreads(__tstate); | |
10165 | if (PyErr_Occurred()) SWIG_fail; | |
10166 | } | |
10167 | Py_INCREF(Py_None); resultobj = Py_None; | |
10168 | return resultobj; | |
10169 | fail: | |
10170 | return NULL; | |
10171 | } | |
10172 | ||
10173 | ||
10174 | static PyObject *_wrap_HtmlListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10175 | PyObject *resultobj; | |
10176 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10177 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10178 | int arg3 = (int) wxID_ANY ; |
d14a1e28 RD |
10179 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10180 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10181 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10182 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10183 | long arg6 = (long) 0 ; | |
10184 | wxString const &arg7_defvalue = wxPyVListBoxNameStr ; | |
10185 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10186 | bool result; | |
10187 | wxPoint temp4 ; | |
10188 | wxSize temp5 ; | |
e811c8ce | 10189 | bool temp7 = False ; |
d14a1e28 RD |
10190 | PyObject * obj0 = 0 ; |
10191 | PyObject * obj1 = 0 ; | |
994141e6 | 10192 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10193 | PyObject * obj3 = 0 ; |
10194 | PyObject * obj4 = 0 ; | |
994141e6 | 10195 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10196 | PyObject * obj6 = 0 ; |
10197 | char *kwnames[] = { | |
10198 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10199 | }; | |
10200 | ||
994141e6 | 10201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:HtmlListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
10202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
10204 | if (obj2) { |
10205 | { | |
10206 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
10207 | if (PyErr_Occurred()) SWIG_fail; | |
10208 | } | |
10209 | } | |
d14a1e28 RD |
10210 | if (obj3) { |
10211 | { | |
10212 | arg4 = &temp4; | |
10213 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10214 | } | |
10215 | } | |
10216 | if (obj4) { | |
10217 | { | |
10218 | arg5 = &temp5; | |
10219 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10220 | } | |
10221 | } | |
994141e6 RD |
10222 | if (obj5) { |
10223 | { | |
10224 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
10225 | if (PyErr_Occurred()) SWIG_fail; | |
10226 | } | |
10227 | } | |
d14a1e28 RD |
10228 | if (obj6) { |
10229 | { | |
10230 | arg7 = wxString_in_helper(obj6); | |
10231 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10232 | temp7 = True; |
d14a1e28 RD |
10233 | } |
10234 | } | |
10235 | { | |
10236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10237 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10238 | ||
10239 | wxPyEndAllowThreads(__tstate); | |
10240 | if (PyErr_Occurred()) SWIG_fail; | |
10241 | } | |
4d5c3d91 | 10242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10243 | { |
10244 | if (temp7) | |
10245 | delete arg7; | |
10246 | } | |
10247 | return resultobj; | |
10248 | fail: | |
10249 | { | |
10250 | if (temp7) | |
10251 | delete arg7; | |
10252 | } | |
10253 | return NULL; | |
10254 | } | |
10255 | ||
10256 | ||
10257 | static PyObject *_wrap_HtmlListBox_RefreshAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10258 | PyObject *resultobj; | |
10259 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10260 | PyObject * obj0 = 0 ; | |
10261 | char *kwnames[] = { | |
10262 | (char *) "self", NULL | |
10263 | }; | |
10264 | ||
10265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HtmlListBox_RefreshAll",kwnames,&obj0)) goto fail; | |
10266 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10267 | { | |
10268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10269 | (arg1)->RefreshAll(); | |
10270 | ||
10271 | wxPyEndAllowThreads(__tstate); | |
10272 | if (PyErr_Occurred()) SWIG_fail; | |
10273 | } | |
10274 | Py_INCREF(Py_None); resultobj = Py_None; | |
10275 | return resultobj; | |
10276 | fail: | |
10277 | return NULL; | |
10278 | } | |
10279 | ||
10280 | ||
10281 | static PyObject *_wrap_HtmlListBox_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10282 | PyObject *resultobj; | |
10283 | wxPyHtmlListBox *arg1 = (wxPyHtmlListBox *) 0 ; | |
10284 | size_t arg2 ; | |
10285 | PyObject * obj0 = 0 ; | |
10286 | PyObject * obj1 = 0 ; | |
10287 | char *kwnames[] = { | |
10288 | (char *) "self",(char *) "count", NULL | |
10289 | }; | |
10290 | ||
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HtmlListBox_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
10292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyHtmlListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 10293 | { |
994141e6 | 10294 | arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1); |
a41e16b6 RD |
10295 | if (PyErr_Occurred()) SWIG_fail; |
10296 | } | |
d14a1e28 RD |
10297 | { |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10299 | (arg1)->SetItemCount(arg2); | |
10300 | ||
10301 | wxPyEndAllowThreads(__tstate); | |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
10304 | Py_INCREF(Py_None); resultobj = Py_None; | |
10305 | return resultobj; | |
10306 | fail: | |
10307 | return NULL; | |
10308 | } | |
10309 | ||
10310 | ||
10311 | static PyObject * HtmlListBox_swigregister(PyObject *self, PyObject *args) { | |
10312 | PyObject *obj; | |
10313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10314 | SWIG_TypeClientData(SWIGTYPE_p_wxPyHtmlListBox, obj); | |
10315 | Py_INCREF(obj); | |
10316 | return Py_BuildValue((char *)""); | |
10317 | } | |
10318 | static PyObject *_wrap_new_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10319 | PyObject *resultobj; | |
10320 | wxTaskBarIcon *result; | |
10321 | char *kwnames[] = { | |
10322 | NULL | |
10323 | }; | |
10324 | ||
10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TaskBarIcon",kwnames)) goto fail; | |
10326 | { | |
10327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10328 | result = (wxTaskBarIcon *)new wxTaskBarIcon(); | |
10329 | ||
10330 | wxPyEndAllowThreads(__tstate); | |
10331 | if (PyErr_Occurred()) SWIG_fail; | |
10332 | } | |
10333 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTaskBarIcon, 1); | |
10334 | return resultobj; | |
10335 | fail: | |
10336 | return NULL; | |
10337 | } | |
10338 | ||
10339 | ||
10340 | static PyObject *_wrap_delete_TaskBarIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10341 | PyObject *resultobj; | |
10342 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10343 | PyObject * obj0 = 0 ; | |
10344 | char *kwnames[] = { | |
10345 | (char *) "self", NULL | |
10346 | }; | |
10347 | ||
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TaskBarIcon",kwnames,&obj0)) goto fail; | |
10349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10350 | { | |
10351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10352 | delete arg1; | |
10353 | ||
10354 | wxPyEndAllowThreads(__tstate); | |
10355 | if (PyErr_Occurred()) SWIG_fail; | |
10356 | } | |
10357 | Py_INCREF(Py_None); resultobj = Py_None; | |
10358 | return resultobj; | |
10359 | fail: | |
10360 | return NULL; | |
10361 | } | |
10362 | ||
10363 | ||
10364 | static PyObject *_wrap_TaskBarIcon_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject *resultobj; | |
10366 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10367 | bool result; | |
10368 | PyObject * obj0 = 0 ; | |
10369 | char *kwnames[] = { | |
10370 | (char *) "self", NULL | |
10371 | }; | |
10372 | ||
10373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsOk",kwnames,&obj0)) goto fail; | |
10374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10375 | { | |
10376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10377 | result = (bool)((wxTaskBarIcon const *)arg1)->IsOk(); | |
10378 | ||
10379 | wxPyEndAllowThreads(__tstate); | |
10380 | if (PyErr_Occurred()) SWIG_fail; | |
10381 | } | |
4d5c3d91 | 10382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10383 | return resultobj; |
10384 | fail: | |
10385 | return NULL; | |
10386 | } | |
10387 | ||
10388 | ||
10389 | static PyObject *_wrap_TaskBarIcon_IsIconInstalled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10390 | PyObject *resultobj; | |
10391 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10392 | bool result; | |
10393 | PyObject * obj0 = 0 ; | |
10394 | char *kwnames[] = { | |
10395 | (char *) "self", NULL | |
10396 | }; | |
10397 | ||
10398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_IsIconInstalled",kwnames,&obj0)) goto fail; | |
10399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10400 | { | |
10401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10402 | result = (bool)((wxTaskBarIcon const *)arg1)->IsIconInstalled(); | |
10403 | ||
10404 | wxPyEndAllowThreads(__tstate); | |
10405 | if (PyErr_Occurred()) SWIG_fail; | |
10406 | } | |
4d5c3d91 | 10407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10408 | return resultobj; |
10409 | fail: | |
10410 | return NULL; | |
10411 | } | |
10412 | ||
10413 | ||
10414 | static PyObject *_wrap_TaskBarIcon_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10415 | PyObject *resultobj; | |
10416 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10417 | wxIcon *arg2 = 0 ; | |
10418 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10419 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10420 | bool result; | |
e811c8ce | 10421 | bool temp3 = False ; |
d14a1e28 RD |
10422 | PyObject * obj0 = 0 ; |
10423 | PyObject * obj1 = 0 ; | |
10424 | PyObject * obj2 = 0 ; | |
10425 | char *kwnames[] = { | |
10426 | (char *) "self",(char *) "icon",(char *) "tooltip", NULL | |
10427 | }; | |
10428 | ||
10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TaskBarIcon_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10431 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10432 | if (arg2 == NULL) { | |
10433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10434 | } | |
10435 | if (obj2) { | |
10436 | { | |
10437 | arg3 = wxString_in_helper(obj2); | |
10438 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10439 | temp3 = True; |
d14a1e28 RD |
10440 | } |
10441 | } | |
10442 | { | |
10443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10444 | result = (bool)(arg1)->SetIcon((wxIcon const &)*arg2,(wxString const &)*arg3); | |
10445 | ||
10446 | wxPyEndAllowThreads(__tstate); | |
10447 | if (PyErr_Occurred()) SWIG_fail; | |
10448 | } | |
4d5c3d91 | 10449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10450 | { |
10451 | if (temp3) | |
10452 | delete arg3; | |
10453 | } | |
10454 | return resultobj; | |
10455 | fail: | |
10456 | { | |
10457 | if (temp3) | |
10458 | delete arg3; | |
10459 | } | |
10460 | return NULL; | |
10461 | } | |
10462 | ||
10463 | ||
10464 | static PyObject *_wrap_TaskBarIcon_RemoveIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10465 | PyObject *resultobj; | |
10466 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10467 | bool result; | |
10468 | PyObject * obj0 = 0 ; | |
10469 | char *kwnames[] = { | |
10470 | (char *) "self", NULL | |
10471 | }; | |
10472 | ||
10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TaskBarIcon_RemoveIcon",kwnames,&obj0)) goto fail; | |
10474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10475 | { | |
10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10477 | result = (bool)(arg1)->RemoveIcon(); | |
10478 | ||
10479 | wxPyEndAllowThreads(__tstate); | |
10480 | if (PyErr_Occurred()) SWIG_fail; | |
10481 | } | |
4d5c3d91 | 10482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10483 | return resultobj; |
10484 | fail: | |
10485 | return NULL; | |
10486 | } | |
10487 | ||
10488 | ||
10489 | static PyObject *_wrap_TaskBarIcon_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10490 | PyObject *resultobj; | |
10491 | wxTaskBarIcon *arg1 = (wxTaskBarIcon *) 0 ; | |
10492 | wxMenu *arg2 = (wxMenu *) 0 ; | |
10493 | bool result; | |
10494 | PyObject * obj0 = 0 ; | |
10495 | PyObject * obj1 = 0 ; | |
10496 | char *kwnames[] = { | |
10497 | (char *) "self",(char *) "menu", NULL | |
10498 | }; | |
10499 | ||
10500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TaskBarIcon_PopupMenu",kwnames,&obj0,&obj1)) goto fail; | |
10501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10502 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10503 | { | |
10504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10505 | result = (bool)(arg1)->PopupMenu(arg2); | |
10506 | ||
10507 | wxPyEndAllowThreads(__tstate); | |
10508 | if (PyErr_Occurred()) SWIG_fail; | |
10509 | } | |
4d5c3d91 | 10510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10511 | return resultobj; |
10512 | fail: | |
10513 | return NULL; | |
10514 | } | |
10515 | ||
10516 | ||
10517 | static PyObject * TaskBarIcon_swigregister(PyObject *self, PyObject *args) { | |
10518 | PyObject *obj; | |
10519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10520 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIcon, obj); | |
10521 | Py_INCREF(obj); | |
10522 | return Py_BuildValue((char *)""); | |
10523 | } | |
10524 | static PyObject *_wrap_new_TaskBarIconEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10525 | PyObject *resultobj; | |
10526 | wxEventType arg1 ; | |
10527 | wxTaskBarIcon *arg2 = (wxTaskBarIcon *) 0 ; | |
10528 | wxTaskBarIconEvent *result; | |
994141e6 | 10529 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
10530 | PyObject * obj1 = 0 ; |
10531 | char *kwnames[] = { | |
10532 | (char *) "evtType",(char *) "tbIcon", NULL | |
10533 | }; | |
10534 | ||
994141e6 RD |
10535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_TaskBarIconEvent",kwnames,&obj0,&obj1)) goto fail; |
10536 | { | |
10537 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
10538 | if (PyErr_Occurred()) SWIG_fail; | |
10539 | } | |
d14a1e28 RD |
10540 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTaskBarIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
10541 | { | |
10542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10543 | result = (wxTaskBarIconEvent *)new wxTaskBarIconEvent(arg1,arg2); | |
10544 | ||
10545 | wxPyEndAllowThreads(__tstate); | |
10546 | if (PyErr_Occurred()) SWIG_fail; | |
10547 | } | |
10548 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTaskBarIconEvent, 1); | |
10549 | return resultobj; | |
10550 | fail: | |
10551 | return NULL; | |
10552 | } | |
10553 | ||
10554 | ||
10555 | static PyObject * TaskBarIconEvent_swigregister(PyObject *self, PyObject *args) { | |
10556 | PyObject *obj; | |
10557 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10558 | SWIG_TypeClientData(SWIGTYPE_p_wxTaskBarIconEvent, obj); | |
10559 | Py_INCREF(obj); | |
10560 | return Py_BuildValue((char *)""); | |
10561 | } | |
b2dc1044 RD |
10562 | static int _wrap_FileSelectorPromptStr_set(PyObject *_val) { |
10563 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only."); | |
10564 | return 1; | |
10565 | } | |
10566 | ||
10567 | ||
10568 | static PyObject *_wrap_FileSelectorPromptStr_get() { | |
10569 | PyObject *pyobj; | |
10570 | ||
10571 | { | |
10572 | #if wxUSE_UNICODE | |
10573 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10574 | #else | |
10575 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len()); | |
10576 | #endif | |
10577 | } | |
10578 | return pyobj; | |
10579 | } | |
10580 | ||
10581 | ||
10582 | static int _wrap_DirSelectorPromptStr_set(PyObject *_val) { | |
10583 | PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only."); | |
10584 | return 1; | |
10585 | } | |
10586 | ||
10587 | ||
10588 | static PyObject *_wrap_DirSelectorPromptStr_get() { | |
10589 | PyObject *pyobj; | |
10590 | ||
10591 | { | |
10592 | #if wxUSE_UNICODE | |
10593 | pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10594 | #else | |
10595 | pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len()); | |
10596 | #endif | |
10597 | } | |
10598 | return pyobj; | |
10599 | } | |
10600 | ||
10601 | ||
10602 | static int _wrap_DirDialogNameStr_set(PyObject *_val) { | |
10603 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogNameStr is read-only."); | |
10604 | return 1; | |
10605 | } | |
10606 | ||
10607 | ||
10608 | static PyObject *_wrap_DirDialogNameStr_get() { | |
10609 | PyObject *pyobj; | |
10610 | ||
10611 | { | |
10612 | #if wxUSE_UNICODE | |
10613 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10614 | #else | |
10615 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogNameStr)->c_str(), (&wxPyDirDialogNameStr)->Len()); | |
10616 | #endif | |
10617 | } | |
10618 | return pyobj; | |
10619 | } | |
10620 | ||
10621 | ||
10622 | static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) { | |
10623 | PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only."); | |
10624 | return 1; | |
10625 | } | |
10626 | ||
10627 | ||
10628 | static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() { | |
10629 | PyObject *pyobj; | |
10630 | ||
10631 | { | |
10632 | #if wxUSE_UNICODE | |
10633 | pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10634 | #else | |
10635 | pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len()); | |
10636 | #endif | |
10637 | } | |
10638 | return pyobj; | |
10639 | } | |
10640 | ||
10641 | ||
10642 | static int _wrap_GetTextFromUserPromptStr_set(PyObject *_val) { | |
10643 | PyErr_SetString(PyExc_TypeError,"Variable GetTextFromUserPromptStr is read-only."); | |
10644 | return 1; | |
10645 | } | |
10646 | ||
10647 | ||
10648 | static PyObject *_wrap_GetTextFromUserPromptStr_get() { | |
10649 | PyObject *pyobj; | |
10650 | ||
10651 | { | |
10652 | #if wxUSE_UNICODE | |
10653 | pyobj = PyUnicode_FromWideChar((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10654 | #else | |
10655 | pyobj = PyString_FromStringAndSize((&wxPyGetTextFromUserPromptStr)->c_str(), (&wxPyGetTextFromUserPromptStr)->Len()); | |
10656 | #endif | |
10657 | } | |
10658 | return pyobj; | |
10659 | } | |
10660 | ||
10661 | ||
10662 | static int _wrap_MessageBoxCaptionStr_set(PyObject *_val) { | |
10663 | PyErr_SetString(PyExc_TypeError,"Variable MessageBoxCaptionStr is read-only."); | |
10664 | return 1; | |
10665 | } | |
10666 | ||
10667 | ||
10668 | static PyObject *_wrap_MessageBoxCaptionStr_get() { | |
10669 | PyObject *pyobj; | |
10670 | ||
10671 | { | |
10672 | #if wxUSE_UNICODE | |
10673 | pyobj = PyUnicode_FromWideChar((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10674 | #else | |
10675 | pyobj = PyString_FromStringAndSize((&wxPyMessageBoxCaptionStr)->c_str(), (&wxPyMessageBoxCaptionStr)->Len()); | |
10676 | #endif | |
10677 | } | |
10678 | return pyobj; | |
10679 | } | |
10680 | ||
10681 | ||
d14a1e28 RD |
10682 | static PyObject *_wrap_new_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { |
10683 | PyObject *resultobj; | |
10684 | wxColourData *result; | |
10685 | char *kwnames[] = { | |
10686 | NULL | |
10687 | }; | |
10688 | ||
10689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourData",kwnames)) goto fail; | |
10690 | { | |
10691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10692 | result = (wxColourData *)new wxColourData(); | |
10693 | ||
10694 | wxPyEndAllowThreads(__tstate); | |
10695 | if (PyErr_Occurred()) SWIG_fail; | |
10696 | } | |
10697 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourData, 1); | |
10698 | return resultobj; | |
10699 | fail: | |
10700 | return NULL; | |
10701 | } | |
10702 | ||
10703 | ||
10704 | static PyObject *_wrap_delete_ColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10705 | PyObject *resultobj; | |
10706 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10707 | PyObject * obj0 = 0 ; | |
10708 | char *kwnames[] = { | |
10709 | (char *) "self", NULL | |
10710 | }; | |
10711 | ||
10712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourData",kwnames,&obj0)) goto fail; | |
10713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10714 | { | |
10715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10716 | delete arg1; | |
10717 | ||
10718 | wxPyEndAllowThreads(__tstate); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | } | |
10721 | Py_INCREF(Py_None); resultobj = Py_None; | |
10722 | return resultobj; | |
10723 | fail: | |
10724 | return NULL; | |
10725 | } | |
10726 | ||
10727 | ||
10728 | static PyObject *_wrap_ColourData_GetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10729 | PyObject *resultobj; | |
10730 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10731 | bool result; | |
10732 | PyObject * obj0 = 0 ; | |
10733 | char *kwnames[] = { | |
10734 | (char *) "self", NULL | |
10735 | }; | |
10736 | ||
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetChooseFull",kwnames,&obj0)) goto fail; | |
10738 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10739 | { | |
10740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10741 | result = (bool)(arg1)->GetChooseFull(); | |
10742 | ||
10743 | wxPyEndAllowThreads(__tstate); | |
10744 | if (PyErr_Occurred()) SWIG_fail; | |
10745 | } | |
4d5c3d91 | 10746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
10747 | return resultobj; |
10748 | fail: | |
10749 | return NULL; | |
10750 | } | |
10751 | ||
10752 | ||
10753 | static PyObject *_wrap_ColourData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10754 | PyObject *resultobj; | |
10755 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10756 | wxColour result; | |
10757 | PyObject * obj0 = 0 ; | |
10758 | char *kwnames[] = { | |
10759 | (char *) "self", NULL | |
10760 | }; | |
10761 | ||
10762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourData_GetColour",kwnames,&obj0)) goto fail; | |
10763 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10764 | { | |
10765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10766 | result = (arg1)->GetColour(); | |
10767 | ||
10768 | wxPyEndAllowThreads(__tstate); | |
10769 | if (PyErr_Occurred()) SWIG_fail; | |
10770 | } | |
10771 | { | |
10772 | wxColour * resultptr; | |
10773 | resultptr = new wxColour((wxColour &) result); | |
10774 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10775 | } | |
10776 | return resultobj; | |
10777 | fail: | |
10778 | return NULL; | |
10779 | } | |
10780 | ||
10781 | ||
10782 | static PyObject *_wrap_ColourData_GetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10783 | PyObject *resultobj; | |
10784 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10785 | int arg2 ; | |
10786 | wxColour result; | |
10787 | PyObject * obj0 = 0 ; | |
994141e6 | 10788 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10789 | char *kwnames[] = { |
10790 | (char *) "self",(char *) "i", NULL | |
10791 | }; | |
10792 | ||
994141e6 | 10793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_GetCustomColour",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10794 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10795 | { |
10796 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10797 | if (PyErr_Occurred()) SWIG_fail; | |
10798 | } | |
d14a1e28 RD |
10799 | { |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10801 | result = (arg1)->GetCustomColour(arg2); | |
10802 | ||
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
10806 | { | |
10807 | wxColour * resultptr; | |
10808 | resultptr = new wxColour((wxColour &) result); | |
10809 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
10810 | } | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
10817 | static PyObject *_wrap_ColourData_SetChooseFull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10818 | PyObject *resultobj; | |
10819 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10820 | int arg2 ; | |
10821 | PyObject * obj0 = 0 ; | |
994141e6 | 10822 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10823 | char *kwnames[] = { |
10824 | (char *) "self",(char *) "flag", NULL | |
10825 | }; | |
10826 | ||
994141e6 | 10827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetChooseFull",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 10828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10829 | { |
10830 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10831 | if (PyErr_Occurred()) SWIG_fail; | |
10832 | } | |
d14a1e28 RD |
10833 | { |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | (arg1)->SetChooseFull(arg2); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | Py_INCREF(Py_None); resultobj = Py_None; | |
10841 | return resultobj; | |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
10847 | static PyObject *_wrap_ColourData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10848 | PyObject *resultobj; | |
10849 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10850 | wxColour *arg2 = 0 ; | |
10851 | wxColour temp2 ; | |
10852 | PyObject * obj0 = 0 ; | |
10853 | PyObject * obj1 = 0 ; | |
10854 | char *kwnames[] = { | |
10855 | (char *) "self",(char *) "colour", NULL | |
10856 | }; | |
10857 | ||
10858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
10859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10860 | { | |
10861 | arg2 = &temp2; | |
10862 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10863 | } | |
10864 | { | |
10865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10866 | (arg1)->SetColour((wxColour const &)*arg2); | |
10867 | ||
10868 | wxPyEndAllowThreads(__tstate); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | } | |
10871 | Py_INCREF(Py_None); resultobj = Py_None; | |
10872 | return resultobj; | |
10873 | fail: | |
10874 | return NULL; | |
10875 | } | |
10876 | ||
10877 | ||
10878 | static PyObject *_wrap_ColourData_SetCustomColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10879 | PyObject *resultobj; | |
10880 | wxColourData *arg1 = (wxColourData *) 0 ; | |
10881 | int arg2 ; | |
10882 | wxColour *arg3 = 0 ; | |
10883 | wxColour temp3 ; | |
10884 | PyObject * obj0 = 0 ; | |
994141e6 | 10885 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10886 | PyObject * obj2 = 0 ; |
10887 | char *kwnames[] = { | |
10888 | (char *) "self",(char *) "i",(char *) "colour", NULL | |
10889 | }; | |
10890 | ||
994141e6 | 10891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourData_SetCustomColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 10892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
10893 | { |
10894 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
10895 | if (PyErr_Occurred()) SWIG_fail; | |
10896 | } | |
d14a1e28 RD |
10897 | { |
10898 | arg3 = &temp3; | |
10899 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
10900 | } | |
10901 | { | |
10902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10903 | (arg1)->SetCustomColour(arg2,(wxColour const &)*arg3); | |
10904 | ||
10905 | wxPyEndAllowThreads(__tstate); | |
10906 | if (PyErr_Occurred()) SWIG_fail; | |
10907 | } | |
10908 | Py_INCREF(Py_None); resultobj = Py_None; | |
10909 | return resultobj; | |
10910 | fail: | |
10911 | return NULL; | |
10912 | } | |
10913 | ||
10914 | ||
10915 | static PyObject * ColourData_swigregister(PyObject *self, PyObject *args) { | |
10916 | PyObject *obj; | |
10917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10918 | SWIG_TypeClientData(SWIGTYPE_p_wxColourData, obj); | |
10919 | Py_INCREF(obj); | |
10920 | return Py_BuildValue((char *)""); | |
10921 | } | |
10922 | static PyObject *_wrap_new_ColourDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10923 | PyObject *resultobj; | |
10924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10925 | wxColourData *arg2 = (wxColourData *) NULL ; | |
10926 | wxColourDialog *result; | |
10927 | PyObject * obj0 = 0 ; | |
10928 | PyObject * obj1 = 0 ; | |
10929 | char *kwnames[] = { | |
10930 | (char *) "parent",(char *) "data", NULL | |
10931 | }; | |
10932 | ||
10933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_ColourDialog",kwnames,&obj0,&obj1)) goto fail; | |
10934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10935 | if (obj1) { | |
10936 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxColourData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10937 | } | |
10938 | { | |
10939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10940 | result = (wxColourDialog *)new wxColourDialog(arg1,arg2); | |
10941 | ||
10942 | wxPyEndAllowThreads(__tstate); | |
10943 | if (PyErr_Occurred()) SWIG_fail; | |
10944 | } | |
10945 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDialog, 1); | |
10946 | return resultobj; | |
10947 | fail: | |
10948 | return NULL; | |
10949 | } | |
10950 | ||
10951 | ||
10952 | static PyObject *_wrap_ColourDialog_GetColourData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10953 | PyObject *resultobj; | |
10954 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
10955 | wxColourData *result; | |
10956 | PyObject * obj0 = 0 ; | |
10957 | char *kwnames[] = { | |
10958 | (char *) "self", NULL | |
10959 | }; | |
10960 | ||
10961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_GetColourData",kwnames,&obj0)) goto fail; | |
10962 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10963 | { | |
10964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10965 | { | |
10966 | wxColourData &_result_ref = (arg1)->GetColourData(); | |
10967 | result = (wxColourData *) &_result_ref; | |
10968 | } | |
10969 | ||
10970 | wxPyEndAllowThreads(__tstate); | |
10971 | if (PyErr_Occurred()) SWIG_fail; | |
10972 | } | |
10973 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourData, 0); | |
10974 | return resultobj; | |
10975 | fail: | |
10976 | return NULL; | |
10977 | } | |
10978 | ||
10979 | ||
10980 | static PyObject *_wrap_ColourDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10981 | PyObject *resultobj; | |
10982 | wxColourDialog *arg1 = (wxColourDialog *) 0 ; | |
10983 | int result; | |
10984 | PyObject * obj0 = 0 ; | |
10985 | char *kwnames[] = { | |
10986 | (char *) "self", NULL | |
10987 | }; | |
10988 | ||
10989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ColourDialog_ShowModal",kwnames,&obj0)) goto fail; | |
10990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10991 | { | |
10992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10993 | result = (int)(arg1)->ShowModal(); | |
10994 | ||
10995 | wxPyEndAllowThreads(__tstate); | |
10996 | if (PyErr_Occurred()) SWIG_fail; | |
10997 | } | |
994141e6 | 10998 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
10999 | return resultobj; |
11000 | fail: | |
11001 | return NULL; | |
11002 | } | |
11003 | ||
11004 | ||
11005 | static PyObject * ColourDialog_swigregister(PyObject *self, PyObject *args) { | |
11006 | PyObject *obj; | |
11007 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11008 | SWIG_TypeClientData(SWIGTYPE_p_wxColourDialog, obj); | |
11009 | Py_INCREF(obj); | |
11010 | return Py_BuildValue((char *)""); | |
11011 | } | |
11012 | static PyObject *_wrap_new_DirDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11013 | PyObject *resultobj; | |
11014 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11015 | wxString const &arg2_defvalue = wxPyDirSelectorPromptStr ; | |
11016 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11017 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11018 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11019 | long arg4 = (long) 0 ; | |
11020 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11021 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11022 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11023 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11024 | wxString const &arg7_defvalue = wxPyDirDialogNameStr ; | |
11025 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
11026 | wxDirDialog *result; | |
e811c8ce RD |
11027 | bool temp2 = False ; |
11028 | bool temp3 = False ; | |
d14a1e28 RD |
11029 | wxPoint temp5 ; |
11030 | wxSize temp6 ; | |
e811c8ce | 11031 | bool temp7 = False ; |
d14a1e28 RD |
11032 | PyObject * obj0 = 0 ; |
11033 | PyObject * obj1 = 0 ; | |
11034 | PyObject * obj2 = 0 ; | |
994141e6 | 11035 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
11036 | PyObject * obj4 = 0 ; |
11037 | PyObject * obj5 = 0 ; | |
11038 | PyObject * obj6 = 0 ; | |
11039 | char *kwnames[] = { | |
11040 | (char *) "parent",(char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "size",(char *) "name", NULL | |
11041 | }; | |
11042 | ||
994141e6 | 11043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DirDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
11044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11045 | if (obj1) { | |
11046 | { | |
11047 | arg2 = wxString_in_helper(obj1); | |
11048 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11049 | temp2 = True; |
d14a1e28 RD |
11050 | } |
11051 | } | |
11052 | if (obj2) { | |
11053 | { | |
11054 | arg3 = wxString_in_helper(obj2); | |
11055 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11056 | temp3 = True; |
d14a1e28 RD |
11057 | } |
11058 | } | |
994141e6 RD |
11059 | if (obj3) { |
11060 | { | |
11061 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
11062 | if (PyErr_Occurred()) SWIG_fail; | |
11063 | } | |
11064 | } | |
d14a1e28 RD |
11065 | if (obj4) { |
11066 | { | |
11067 | arg5 = &temp5; | |
11068 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11069 | } | |
11070 | } | |
11071 | if (obj5) { | |
11072 | { | |
11073 | arg6 = &temp6; | |
11074 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11075 | } | |
11076 | } | |
11077 | if (obj6) { | |
11078 | { | |
11079 | arg7 = wxString_in_helper(obj6); | |
11080 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 11081 | temp7 = True; |
d14a1e28 RD |
11082 | } |
11083 | } | |
11084 | { | |
11085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11086 | result = (wxDirDialog *)new wxDirDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxString const &)*arg7); | |
11087 | ||
11088 | wxPyEndAllowThreads(__tstate); | |
11089 | if (PyErr_Occurred()) SWIG_fail; | |
11090 | } | |
11091 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirDialog, 1); | |
11092 | { | |
11093 | if (temp2) | |
11094 | delete arg2; | |
11095 | } | |
11096 | { | |
11097 | if (temp3) | |
11098 | delete arg3; | |
11099 | } | |
11100 | { | |
11101 | if (temp7) | |
11102 | delete arg7; | |
11103 | } | |
11104 | return resultobj; | |
11105 | fail: | |
11106 | { | |
11107 | if (temp2) | |
11108 | delete arg2; | |
11109 | } | |
11110 | { | |
11111 | if (temp3) | |
11112 | delete arg3; | |
11113 | } | |
11114 | { | |
11115 | if (temp7) | |
11116 | delete arg7; | |
11117 | } | |
11118 | return NULL; | |
11119 | } | |
11120 | ||
11121 | ||
11122 | static PyObject *_wrap_DirDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11123 | PyObject *resultobj; | |
11124 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11125 | wxString result; | |
11126 | PyObject * obj0 = 0 ; | |
11127 | char *kwnames[] = { | |
11128 | (char *) "self", NULL | |
11129 | }; | |
11130 | ||
11131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetPath",kwnames,&obj0)) goto fail; | |
11132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11133 | { | |
11134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11135 | result = (arg1)->GetPath(); | |
11136 | ||
11137 | wxPyEndAllowThreads(__tstate); | |
11138 | if (PyErr_Occurred()) SWIG_fail; | |
11139 | } | |
11140 | { | |
11141 | #if wxUSE_UNICODE | |
11142 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11143 | #else | |
11144 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11145 | #endif | |
11146 | } | |
11147 | return resultobj; | |
11148 | fail: | |
11149 | return NULL; | |
11150 | } | |
11151 | ||
11152 | ||
11153 | static PyObject *_wrap_DirDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11154 | PyObject *resultobj; | |
11155 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11156 | wxString result; | |
11157 | PyObject * obj0 = 0 ; | |
11158 | char *kwnames[] = { | |
11159 | (char *) "self", NULL | |
11160 | }; | |
11161 | ||
11162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11164 | { | |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | result = (arg1)->GetMessage(); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | } | |
11171 | { | |
11172 | #if wxUSE_UNICODE | |
11173 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11174 | #else | |
11175 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11176 | #endif | |
11177 | } | |
11178 | return resultobj; | |
11179 | fail: | |
11180 | return NULL; | |
11181 | } | |
11182 | ||
11183 | ||
11184 | static PyObject *_wrap_DirDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11185 | PyObject *resultobj; | |
11186 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11187 | long result; | |
11188 | PyObject * obj0 = 0 ; | |
11189 | char *kwnames[] = { | |
11190 | (char *) "self", NULL | |
11191 | }; | |
11192 | ||
11193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11195 | { | |
11196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11197 | result = (long)(arg1)->GetStyle(); | |
11198 | ||
11199 | wxPyEndAllowThreads(__tstate); | |
11200 | if (PyErr_Occurred()) SWIG_fail; | |
11201 | } | |
994141e6 | 11202 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
11203 | return resultobj; |
11204 | fail: | |
11205 | return NULL; | |
11206 | } | |
11207 | ||
11208 | ||
11209 | static PyObject *_wrap_DirDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11210 | PyObject *resultobj; | |
11211 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11212 | wxString *arg2 = 0 ; | |
e811c8ce | 11213 | bool temp2 = False ; |
d14a1e28 RD |
11214 | PyObject * obj0 = 0 ; |
11215 | PyObject * obj1 = 0 ; | |
11216 | char *kwnames[] = { | |
11217 | (char *) "self",(char *) "message", NULL | |
11218 | }; | |
11219 | ||
11220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11221 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11222 | { | |
11223 | arg2 = wxString_in_helper(obj1); | |
11224 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11225 | temp2 = True; |
d14a1e28 RD |
11226 | } |
11227 | { | |
11228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11229 | (arg1)->SetMessage((wxString const &)*arg2); | |
11230 | ||
11231 | wxPyEndAllowThreads(__tstate); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
11234 | Py_INCREF(Py_None); resultobj = Py_None; | |
11235 | { | |
11236 | if (temp2) | |
11237 | delete arg2; | |
11238 | } | |
11239 | return resultobj; | |
11240 | fail: | |
11241 | { | |
11242 | if (temp2) | |
11243 | delete arg2; | |
11244 | } | |
11245 | return NULL; | |
11246 | } | |
11247 | ||
11248 | ||
11249 | static PyObject *_wrap_DirDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11250 | PyObject *resultobj; | |
11251 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11252 | wxString *arg2 = 0 ; | |
e811c8ce | 11253 | bool temp2 = False ; |
d14a1e28 RD |
11254 | PyObject * obj0 = 0 ; |
11255 | PyObject * obj1 = 0 ; | |
11256 | char *kwnames[] = { | |
11257 | (char *) "self",(char *) "path", NULL | |
11258 | }; | |
11259 | ||
11260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DirDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11262 | { | |
11263 | arg2 = wxString_in_helper(obj1); | |
11264 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11265 | temp2 = True; |
d14a1e28 RD |
11266 | } |
11267 | { | |
11268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11269 | (arg1)->SetPath((wxString const &)*arg2); | |
11270 | ||
11271 | wxPyEndAllowThreads(__tstate); | |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
11274 | Py_INCREF(Py_None); resultobj = Py_None; | |
11275 | { | |
11276 | if (temp2) | |
11277 | delete arg2; | |
11278 | } | |
11279 | return resultobj; | |
11280 | fail: | |
11281 | { | |
11282 | if (temp2) | |
11283 | delete arg2; | |
11284 | } | |
11285 | return NULL; | |
11286 | } | |
11287 | ||
11288 | ||
11289 | static PyObject *_wrap_DirDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11290 | PyObject *resultobj; | |
11291 | wxDirDialog *arg1 = (wxDirDialog *) 0 ; | |
11292 | int result; | |
11293 | PyObject * obj0 = 0 ; | |
11294 | char *kwnames[] = { | |
11295 | (char *) "self", NULL | |
11296 | }; | |
11297 | ||
11298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DirDialog_ShowModal",kwnames,&obj0)) goto fail; | |
11299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11300 | { | |
11301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11302 | result = (int)(arg1)->ShowModal(); | |
11303 | ||
11304 | wxPyEndAllowThreads(__tstate); | |
11305 | if (PyErr_Occurred()) SWIG_fail; | |
11306 | } | |
994141e6 | 11307 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11308 | return resultobj; |
11309 | fail: | |
11310 | return NULL; | |
11311 | } | |
11312 | ||
11313 | ||
11314 | static PyObject * DirDialog_swigregister(PyObject *self, PyObject *args) { | |
11315 | PyObject *obj; | |
11316 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11317 | SWIG_TypeClientData(SWIGTYPE_p_wxDirDialog, obj); | |
11318 | Py_INCREF(obj); | |
11319 | return Py_BuildValue((char *)""); | |
11320 | } | |
11321 | static PyObject *_wrap_new_FileDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11322 | PyObject *resultobj; | |
11323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11324 | wxString const &arg2_defvalue = wxPyFileSelectorPromptStr ; | |
11325 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
11326 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11327 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11328 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11329 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11330 | wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ; | |
11331 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
11332 | long arg6 = (long) 0 ; | |
11333 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11334 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11335 | wxFileDialog *result; | |
e811c8ce RD |
11336 | bool temp2 = False ; |
11337 | bool temp3 = False ; | |
11338 | bool temp4 = False ; | |
11339 | bool temp5 = False ; | |
d14a1e28 RD |
11340 | wxPoint temp7 ; |
11341 | PyObject * obj0 = 0 ; | |
11342 | PyObject * obj1 = 0 ; | |
11343 | PyObject * obj2 = 0 ; | |
11344 | PyObject * obj3 = 0 ; | |
11345 | PyObject * obj4 = 0 ; | |
994141e6 | 11346 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11347 | PyObject * obj6 = 0 ; |
11348 | char *kwnames[] = { | |
11349 | (char *) "parent",(char *) "message",(char *) "defaultDir",(char *) "defaultFile",(char *) "wildcard",(char *) "style",(char *) "pos", NULL | |
11350 | }; | |
11351 | ||
994141e6 | 11352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_FileDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
11353 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11354 | if (obj1) { | |
11355 | { | |
11356 | arg2 = wxString_in_helper(obj1); | |
11357 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11358 | temp2 = True; |
d14a1e28 RD |
11359 | } |
11360 | } | |
11361 | if (obj2) { | |
11362 | { | |
11363 | arg3 = wxString_in_helper(obj2); | |
11364 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11365 | temp3 = True; |
d14a1e28 RD |
11366 | } |
11367 | } | |
11368 | if (obj3) { | |
11369 | { | |
11370 | arg4 = wxString_in_helper(obj3); | |
11371 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11372 | temp4 = True; |
d14a1e28 RD |
11373 | } |
11374 | } | |
11375 | if (obj4) { | |
11376 | { | |
11377 | arg5 = wxString_in_helper(obj4); | |
11378 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 11379 | temp5 = True; |
d14a1e28 RD |
11380 | } |
11381 | } | |
994141e6 RD |
11382 | if (obj5) { |
11383 | { | |
11384 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
11385 | if (PyErr_Occurred()) SWIG_fail; | |
11386 | } | |
11387 | } | |
d14a1e28 RD |
11388 | if (obj6) { |
11389 | { | |
11390 | arg7 = &temp7; | |
11391 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
11392 | } | |
11393 | } | |
11394 | { | |
11395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11396 | result = (wxFileDialog *)new wxFileDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,(wxPoint const &)*arg7); | |
11397 | ||
11398 | wxPyEndAllowThreads(__tstate); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
11400 | } | |
11401 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFileDialog, 1); | |
11402 | { | |
11403 | if (temp2) | |
11404 | delete arg2; | |
11405 | } | |
11406 | { | |
11407 | if (temp3) | |
11408 | delete arg3; | |
11409 | } | |
11410 | { | |
11411 | if (temp4) | |
11412 | delete arg4; | |
11413 | } | |
11414 | { | |
11415 | if (temp5) | |
11416 | delete arg5; | |
11417 | } | |
11418 | return resultobj; | |
11419 | fail: | |
11420 | { | |
11421 | if (temp2) | |
11422 | delete arg2; | |
11423 | } | |
11424 | { | |
11425 | if (temp3) | |
11426 | delete arg3; | |
11427 | } | |
11428 | { | |
11429 | if (temp4) | |
11430 | delete arg4; | |
11431 | } | |
11432 | { | |
11433 | if (temp5) | |
11434 | delete arg5; | |
11435 | } | |
11436 | return NULL; | |
11437 | } | |
11438 | ||
11439 | ||
11440 | static PyObject *_wrap_FileDialog_SetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11441 | PyObject *resultobj; | |
11442 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11443 | wxString *arg2 = 0 ; | |
e811c8ce | 11444 | bool temp2 = False ; |
d14a1e28 RD |
11445 | PyObject * obj0 = 0 ; |
11446 | PyObject * obj1 = 0 ; | |
11447 | char *kwnames[] = { | |
11448 | (char *) "self",(char *) "message", NULL | |
11449 | }; | |
11450 | ||
11451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetMessage",kwnames,&obj0,&obj1)) goto fail; | |
11452 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11453 | { | |
11454 | arg2 = wxString_in_helper(obj1); | |
11455 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11456 | temp2 = True; |
d14a1e28 RD |
11457 | } |
11458 | { | |
11459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11460 | (arg1)->SetMessage((wxString const &)*arg2); | |
11461 | ||
11462 | wxPyEndAllowThreads(__tstate); | |
11463 | if (PyErr_Occurred()) SWIG_fail; | |
11464 | } | |
11465 | Py_INCREF(Py_None); resultobj = Py_None; | |
11466 | { | |
11467 | if (temp2) | |
11468 | delete arg2; | |
11469 | } | |
11470 | return resultobj; | |
11471 | fail: | |
11472 | { | |
11473 | if (temp2) | |
11474 | delete arg2; | |
11475 | } | |
11476 | return NULL; | |
11477 | } | |
11478 | ||
11479 | ||
11480 | static PyObject *_wrap_FileDialog_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11481 | PyObject *resultobj; | |
11482 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11483 | wxString *arg2 = 0 ; | |
e811c8ce | 11484 | bool temp2 = False ; |
d14a1e28 RD |
11485 | PyObject * obj0 = 0 ; |
11486 | PyObject * obj1 = 0 ; | |
11487 | char *kwnames[] = { | |
11488 | (char *) "self",(char *) "path", NULL | |
11489 | }; | |
11490 | ||
11491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
11492 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11493 | { | |
11494 | arg2 = wxString_in_helper(obj1); | |
11495 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11496 | temp2 = True; |
d14a1e28 RD |
11497 | } |
11498 | { | |
11499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11500 | (arg1)->SetPath((wxString const &)*arg2); | |
11501 | ||
11502 | wxPyEndAllowThreads(__tstate); | |
11503 | if (PyErr_Occurred()) SWIG_fail; | |
11504 | } | |
11505 | Py_INCREF(Py_None); resultobj = Py_None; | |
11506 | { | |
11507 | if (temp2) | |
11508 | delete arg2; | |
11509 | } | |
11510 | return resultobj; | |
11511 | fail: | |
11512 | { | |
11513 | if (temp2) | |
11514 | delete arg2; | |
11515 | } | |
11516 | return NULL; | |
11517 | } | |
11518 | ||
11519 | ||
11520 | static PyObject *_wrap_FileDialog_SetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11521 | PyObject *resultobj; | |
11522 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11523 | wxString *arg2 = 0 ; | |
e811c8ce | 11524 | bool temp2 = False ; |
d14a1e28 RD |
11525 | PyObject * obj0 = 0 ; |
11526 | PyObject * obj1 = 0 ; | |
11527 | char *kwnames[] = { | |
11528 | (char *) "self",(char *) "dir", NULL | |
11529 | }; | |
11530 | ||
11531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetDirectory",kwnames,&obj0,&obj1)) goto fail; | |
11532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11533 | { | |
11534 | arg2 = wxString_in_helper(obj1); | |
11535 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11536 | temp2 = True; |
d14a1e28 RD |
11537 | } |
11538 | { | |
11539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11540 | (arg1)->SetDirectory((wxString const &)*arg2); | |
11541 | ||
11542 | wxPyEndAllowThreads(__tstate); | |
11543 | if (PyErr_Occurred()) SWIG_fail; | |
11544 | } | |
11545 | Py_INCREF(Py_None); resultobj = Py_None; | |
11546 | { | |
11547 | if (temp2) | |
11548 | delete arg2; | |
11549 | } | |
11550 | return resultobj; | |
11551 | fail: | |
11552 | { | |
11553 | if (temp2) | |
11554 | delete arg2; | |
11555 | } | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
11560 | static PyObject *_wrap_FileDialog_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11561 | PyObject *resultobj; | |
11562 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11563 | wxString *arg2 = 0 ; | |
e811c8ce | 11564 | bool temp2 = False ; |
d14a1e28 RD |
11565 | PyObject * obj0 = 0 ; |
11566 | PyObject * obj1 = 0 ; | |
11567 | char *kwnames[] = { | |
11568 | (char *) "self",(char *) "name", NULL | |
11569 | }; | |
11570 | ||
11571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
11572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11573 | { | |
11574 | arg2 = wxString_in_helper(obj1); | |
11575 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11576 | temp2 = True; |
d14a1e28 RD |
11577 | } |
11578 | { | |
11579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11580 | (arg1)->SetFilename((wxString const &)*arg2); | |
11581 | ||
11582 | wxPyEndAllowThreads(__tstate); | |
11583 | if (PyErr_Occurred()) SWIG_fail; | |
11584 | } | |
11585 | Py_INCREF(Py_None); resultobj = Py_None; | |
11586 | { | |
11587 | if (temp2) | |
11588 | delete arg2; | |
11589 | } | |
11590 | return resultobj; | |
11591 | fail: | |
11592 | { | |
11593 | if (temp2) | |
11594 | delete arg2; | |
11595 | } | |
11596 | return NULL; | |
11597 | } | |
11598 | ||
11599 | ||
11600 | static PyObject *_wrap_FileDialog_SetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11601 | PyObject *resultobj; | |
11602 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11603 | wxString *arg2 = 0 ; | |
e811c8ce | 11604 | bool temp2 = False ; |
d14a1e28 RD |
11605 | PyObject * obj0 = 0 ; |
11606 | PyObject * obj1 = 0 ; | |
11607 | char *kwnames[] = { | |
11608 | (char *) "self",(char *) "wildCard", NULL | |
11609 | }; | |
11610 | ||
11611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetWildcard",kwnames,&obj0,&obj1)) goto fail; | |
11612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11613 | { | |
11614 | arg2 = wxString_in_helper(obj1); | |
11615 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11616 | temp2 = True; |
d14a1e28 RD |
11617 | } |
11618 | { | |
11619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11620 | (arg1)->SetWildcard((wxString const &)*arg2); | |
11621 | ||
11622 | wxPyEndAllowThreads(__tstate); | |
11623 | if (PyErr_Occurred()) SWIG_fail; | |
11624 | } | |
11625 | Py_INCREF(Py_None); resultobj = Py_None; | |
11626 | { | |
11627 | if (temp2) | |
11628 | delete arg2; | |
11629 | } | |
11630 | return resultobj; | |
11631 | fail: | |
11632 | { | |
11633 | if (temp2) | |
11634 | delete arg2; | |
11635 | } | |
11636 | return NULL; | |
11637 | } | |
11638 | ||
11639 | ||
11640 | static PyObject *_wrap_FileDialog_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11641 | PyObject *resultobj; | |
11642 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11643 | long arg2 ; | |
11644 | PyObject * obj0 = 0 ; | |
994141e6 | 11645 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11646 | char *kwnames[] = { |
11647 | (char *) "self",(char *) "style", NULL | |
11648 | }; | |
11649 | ||
994141e6 | 11650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetStyle",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11652 | { |
11653 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
11654 | if (PyErr_Occurred()) SWIG_fail; | |
11655 | } | |
d14a1e28 RD |
11656 | { |
11657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11658 | (arg1)->SetStyle(arg2); | |
11659 | ||
11660 | wxPyEndAllowThreads(__tstate); | |
11661 | if (PyErr_Occurred()) SWIG_fail; | |
11662 | } | |
11663 | Py_INCREF(Py_None); resultobj = Py_None; | |
11664 | return resultobj; | |
11665 | fail: | |
11666 | return NULL; | |
11667 | } | |
11668 | ||
11669 | ||
11670 | static PyObject *_wrap_FileDialog_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11671 | PyObject *resultobj; | |
11672 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11673 | int arg2 ; | |
11674 | PyObject * obj0 = 0 ; | |
994141e6 | 11675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11676 | char *kwnames[] = { |
11677 | (char *) "self",(char *) "filterIndex", NULL | |
11678 | }; | |
11679 | ||
994141e6 | 11680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDialog_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 11681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
11682 | { |
11683 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
11684 | if (PyErr_Occurred()) SWIG_fail; | |
11685 | } | |
d14a1e28 RD |
11686 | { |
11687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11688 | (arg1)->SetFilterIndex(arg2); | |
11689 | ||
11690 | wxPyEndAllowThreads(__tstate); | |
11691 | if (PyErr_Occurred()) SWIG_fail; | |
11692 | } | |
11693 | Py_INCREF(Py_None); resultobj = Py_None; | |
11694 | return resultobj; | |
11695 | fail: | |
11696 | return NULL; | |
11697 | } | |
11698 | ||
11699 | ||
11700 | static PyObject *_wrap_FileDialog_GetMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11701 | PyObject *resultobj; | |
11702 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11703 | wxString result; | |
11704 | PyObject * obj0 = 0 ; | |
11705 | char *kwnames[] = { | |
11706 | (char *) "self", NULL | |
11707 | }; | |
11708 | ||
11709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetMessage",kwnames,&obj0)) goto fail; | |
11710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11711 | { | |
11712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11713 | result = ((wxFileDialog const *)arg1)->GetMessage(); | |
11714 | ||
11715 | wxPyEndAllowThreads(__tstate); | |
11716 | if (PyErr_Occurred()) SWIG_fail; | |
11717 | } | |
11718 | { | |
11719 | #if wxUSE_UNICODE | |
11720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11721 | #else | |
11722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11723 | #endif | |
11724 | } | |
11725 | return resultobj; | |
11726 | fail: | |
11727 | return NULL; | |
11728 | } | |
11729 | ||
11730 | ||
11731 | static PyObject *_wrap_FileDialog_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11732 | PyObject *resultobj; | |
11733 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11734 | wxString result; | |
11735 | PyObject * obj0 = 0 ; | |
11736 | char *kwnames[] = { | |
11737 | (char *) "self", NULL | |
11738 | }; | |
11739 | ||
11740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPath",kwnames,&obj0)) goto fail; | |
11741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11742 | { | |
11743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11744 | result = ((wxFileDialog const *)arg1)->GetPath(); | |
11745 | ||
11746 | wxPyEndAllowThreads(__tstate); | |
11747 | if (PyErr_Occurred()) SWIG_fail; | |
11748 | } | |
11749 | { | |
11750 | #if wxUSE_UNICODE | |
11751 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11752 | #else | |
11753 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11754 | #endif | |
11755 | } | |
11756 | return resultobj; | |
11757 | fail: | |
11758 | return NULL; | |
11759 | } | |
11760 | ||
11761 | ||
11762 | static PyObject *_wrap_FileDialog_GetDirectory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11763 | PyObject *resultobj; | |
11764 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11765 | wxString result; | |
11766 | PyObject * obj0 = 0 ; | |
11767 | char *kwnames[] = { | |
11768 | (char *) "self", NULL | |
11769 | }; | |
11770 | ||
11771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetDirectory",kwnames,&obj0)) goto fail; | |
11772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11773 | { | |
11774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11775 | result = ((wxFileDialog const *)arg1)->GetDirectory(); | |
11776 | ||
11777 | wxPyEndAllowThreads(__tstate); | |
11778 | if (PyErr_Occurred()) SWIG_fail; | |
11779 | } | |
11780 | { | |
11781 | #if wxUSE_UNICODE | |
11782 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11783 | #else | |
11784 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11785 | #endif | |
11786 | } | |
11787 | return resultobj; | |
11788 | fail: | |
11789 | return NULL; | |
11790 | } | |
11791 | ||
11792 | ||
11793 | static PyObject *_wrap_FileDialog_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11794 | PyObject *resultobj; | |
11795 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11796 | wxString result; | |
11797 | PyObject * obj0 = 0 ; | |
11798 | char *kwnames[] = { | |
11799 | (char *) "self", NULL | |
11800 | }; | |
11801 | ||
11802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilename",kwnames,&obj0)) goto fail; | |
11803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11804 | { | |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | result = ((wxFileDialog const *)arg1)->GetFilename(); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
11811 | { | |
11812 | #if wxUSE_UNICODE | |
11813 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11814 | #else | |
11815 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11816 | #endif | |
11817 | } | |
11818 | return resultobj; | |
11819 | fail: | |
11820 | return NULL; | |
11821 | } | |
11822 | ||
11823 | ||
11824 | static PyObject *_wrap_FileDialog_GetWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11825 | PyObject *resultobj; | |
11826 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11827 | wxString result; | |
11828 | PyObject * obj0 = 0 ; | |
11829 | char *kwnames[] = { | |
11830 | (char *) "self", NULL | |
11831 | }; | |
11832 | ||
11833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetWildcard",kwnames,&obj0)) goto fail; | |
11834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11835 | { | |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = ((wxFileDialog const *)arg1)->GetWildcard(); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | #if wxUSE_UNICODE | |
11844 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11845 | #else | |
11846 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11847 | #endif | |
11848 | } | |
11849 | return resultobj; | |
11850 | fail: | |
11851 | return NULL; | |
11852 | } | |
11853 | ||
11854 | ||
11855 | static PyObject *_wrap_FileDialog_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11856 | PyObject *resultobj; | |
11857 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11858 | long result; | |
11859 | PyObject * obj0 = 0 ; | |
11860 | char *kwnames[] = { | |
11861 | (char *) "self", NULL | |
11862 | }; | |
11863 | ||
11864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetStyle",kwnames,&obj0)) goto fail; | |
11865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11866 | { | |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | result = (long)((wxFileDialog const *)arg1)->GetStyle(); | |
11869 | ||
11870 | wxPyEndAllowThreads(__tstate); | |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
994141e6 | 11873 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
11874 | return resultobj; |
11875 | fail: | |
11876 | return NULL; | |
11877 | } | |
11878 | ||
11879 | ||
11880 | static PyObject *_wrap_FileDialog_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11881 | PyObject *resultobj; | |
11882 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11883 | int result; | |
11884 | PyObject * obj0 = 0 ; | |
11885 | char *kwnames[] = { | |
11886 | (char *) "self", NULL | |
11887 | }; | |
11888 | ||
11889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilterIndex",kwnames,&obj0)) goto fail; | |
11890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11891 | { | |
11892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11893 | result = (int)((wxFileDialog const *)arg1)->GetFilterIndex(); | |
11894 | ||
11895 | wxPyEndAllowThreads(__tstate); | |
11896 | if (PyErr_Occurred()) SWIG_fail; | |
11897 | } | |
994141e6 | 11898 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
11899 | return resultobj; |
11900 | fail: | |
11901 | return NULL; | |
11902 | } | |
11903 | ||
11904 | ||
11905 | static PyObject *_wrap_FileDialog_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11906 | PyObject *resultobj; | |
11907 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11908 | PyObject *result; | |
11909 | PyObject * obj0 = 0 ; | |
11910 | char *kwnames[] = { | |
11911 | (char *) "self", NULL | |
11912 | }; | |
11913 | ||
11914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetFilenames",kwnames,&obj0)) goto fail; | |
11915 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11916 | { | |
11917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11918 | result = (PyObject *)wxFileDialog_GetFilenames(arg1); | |
11919 | ||
11920 | wxPyEndAllowThreads(__tstate); | |
11921 | if (PyErr_Occurred()) SWIG_fail; | |
11922 | } | |
11923 | resultobj = result; | |
11924 | return resultobj; | |
11925 | fail: | |
11926 | return NULL; | |
11927 | } | |
11928 | ||
11929 | ||
11930 | static PyObject *_wrap_FileDialog_GetPaths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11931 | PyObject *resultobj; | |
11932 | wxFileDialog *arg1 = (wxFileDialog *) 0 ; | |
11933 | PyObject *result; | |
11934 | PyObject * obj0 = 0 ; | |
11935 | char *kwnames[] = { | |
11936 | (char *) "self", NULL | |
11937 | }; | |
11938 | ||
11939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDialog_GetPaths",kwnames,&obj0)) goto fail; | |
11940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11941 | { | |
11942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11943 | result = (PyObject *)wxFileDialog_GetPaths(arg1); | |
11944 | ||
11945 | wxPyEndAllowThreads(__tstate); | |
11946 | if (PyErr_Occurred()) SWIG_fail; | |
11947 | } | |
11948 | resultobj = result; | |
11949 | return resultobj; | |
11950 | fail: | |
11951 | return NULL; | |
11952 | } | |
11953 | ||
11954 | ||
11955 | static PyObject * FileDialog_swigregister(PyObject *self, PyObject *args) { | |
11956 | PyObject *obj; | |
11957 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11958 | SWIG_TypeClientData(SWIGTYPE_p_wxFileDialog, obj); | |
11959 | Py_INCREF(obj); | |
11960 | return Py_BuildValue((char *)""); | |
11961 | } | |
11962 | static PyObject *_wrap_new_MultiChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11963 | PyObject *resultobj; | |
11964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11965 | wxString *arg2 = 0 ; | |
11966 | wxString *arg3 = 0 ; | |
4d5c3d91 | 11967 | int arg4 = (int) 0 ; |
d14a1e28 RD |
11968 | wxString *arg5 = (wxString *) 0 ; |
11969 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
11970 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
11971 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
11972 | wxMultiChoiceDialog *result; | |
e811c8ce RD |
11973 | bool temp2 = False ; |
11974 | bool temp3 = False ; | |
4d5c3d91 | 11975 | wxPoint temp6 ; |
d14a1e28 RD |
11976 | PyObject * obj0 = 0 ; |
11977 | PyObject * obj1 = 0 ; | |
11978 | PyObject * obj2 = 0 ; | |
994141e6 | 11979 | PyObject * obj3 = 0 ; |
d14a1e28 | 11980 | PyObject * obj4 = 0 ; |
994141e6 | 11981 | PyObject * obj5 = 0 ; |
d14a1e28 | 11982 | char *kwnames[] = { |
4d5c3d91 | 11983 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL |
d14a1e28 RD |
11984 | }; |
11985 | ||
4d5c3d91 | 11986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_MultiChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
11987 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
11988 | { | |
11989 | arg2 = wxString_in_helper(obj1); | |
11990 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11991 | temp2 = True; |
d14a1e28 RD |
11992 | } |
11993 | { | |
11994 | arg3 = wxString_in_helper(obj2); | |
11995 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11996 | temp3 = True; |
d14a1e28 | 11997 | } |
4d5c3d91 RD |
11998 | if (obj3) { |
11999 | { | |
12000 | arg4 = PyList_Size(obj3); | |
12001 | arg5 = wxString_LIST_helper(obj3); | |
12002 | if (arg5 == NULL) SWIG_fail; | |
12003 | } | |
7eae615b | 12004 | } |
4d5c3d91 | 12005 | if (obj4) { |
994141e6 | 12006 | { |
4d5c3d91 | 12007 | arg6 = (long) SWIG_PyObj_AsLong(obj4); |
994141e6 RD |
12008 | if (PyErr_Occurred()) SWIG_fail; |
12009 | } | |
12010 | } | |
4d5c3d91 | 12011 | if (obj5) { |
d14a1e28 | 12012 | { |
4d5c3d91 RD |
12013 | arg7 = &temp6; |
12014 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
d14a1e28 RD |
12015 | } |
12016 | } | |
12017 | { | |
12018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12019 | result = (wxMultiChoiceDialog *)new wxMultiChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12020 | ||
12021 | wxPyEndAllowThreads(__tstate); | |
12022 | if (PyErr_Occurred()) SWIG_fail; | |
12023 | } | |
12024 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMultiChoiceDialog, 1); | |
12025 | { | |
12026 | if (temp2) | |
12027 | delete arg2; | |
12028 | } | |
12029 | { | |
12030 | if (temp3) | |
12031 | delete arg3; | |
12032 | } | |
7eae615b | 12033 | { |
4d5c3d91 | 12034 | if (arg5) delete [] arg5; |
7eae615b | 12035 | } |
d14a1e28 RD |
12036 | return resultobj; |
12037 | fail: | |
12038 | { | |
12039 | if (temp2) | |
12040 | delete arg2; | |
12041 | } | |
12042 | { | |
12043 | if (temp3) | |
12044 | delete arg3; | |
12045 | } | |
7eae615b | 12046 | { |
4d5c3d91 | 12047 | if (arg5) delete [] arg5; |
7eae615b | 12048 | } |
d14a1e28 RD |
12049 | return NULL; |
12050 | } | |
12051 | ||
12052 | ||
12053 | static PyObject *_wrap_MultiChoiceDialog_SetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12054 | PyObject *resultobj; | |
12055 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12056 | wxArrayInt *arg2 = 0 ; | |
3adfb63b | 12057 | bool temp2 = False ; |
d14a1e28 RD |
12058 | PyObject * obj0 = 0 ; |
12059 | PyObject * obj1 = 0 ; | |
12060 | char *kwnames[] = { | |
12061 | (char *) "self",(char *) "selections", NULL | |
12062 | }; | |
12063 | ||
12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MultiChoiceDialog_SetSelections",kwnames,&obj0,&obj1)) goto fail; | |
12065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMultiChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12066 | { | |
12067 | if (! PySequence_Check(obj1)) { | |
12068 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
12069 | SWIG_fail; | |
12070 | } | |
12071 | arg2 = new wxArrayInt; | |
3adfb63b | 12072 | temp2 = True; |
d14a1e28 RD |
12073 | int i, len=PySequence_Length(obj1); |
12074 | for (i=0; i<len; i++) { | |
12075 | PyObject* item = PySequence_GetItem(obj1, i); | |
12076 | PyObject* number = PyNumber_Int(item); | |
12077 | arg2->Add(PyInt_AS_LONG(number)); | |
12078 | Py_DECREF(item); | |
12079 | Py_DECREF(number); | |
12080 | } | |
12081 | } | |
12082 | { | |
12083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12084 | (arg1)->SetSelections((wxArrayInt const &)*arg2); | |
12085 | ||
12086 | wxPyEndAllowThreads(__tstate); | |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | } | |
12089 | Py_INCREF(Py_None); resultobj = Py_None; | |
12090 | { | |
3adfb63b | 12091 | if (temp2) delete arg2; |
d14a1e28 RD |
12092 | } |
12093 | return resultobj; | |
12094 | fail: | |
12095 | { | |
3adfb63b | 12096 | if (temp2) delete arg2; |
d14a1e28 RD |
12097 | } |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
12102 | static PyObject *_wrap_MultiChoiceDialog_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12103 | PyObject *resultobj; | |
12104 | wxMultiChoiceDialog *arg1 = (wxMultiChoiceDialog *) 0 ; | |
12105 | PyObject *result; | |
12106 | PyObject * obj0 = 0 ; | |
12107 | char *kwnames[] = { | |
12108 | (char *) "self", NULL | |
12109 | }; | |
12110 | ||
12111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MultiChoiceDialog_GetSelections",kwnames,&obj0)) goto fail; | |
12112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMultiChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12113 | { | |
12114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12115 | result = (PyObject *)wxMultiChoiceDialog_GetSelections(arg1); | |
12116 | ||
12117 | wxPyEndAllowThreads(__tstate); | |
12118 | if (PyErr_Occurred()) SWIG_fail; | |
12119 | } | |
12120 | resultobj = result; | |
12121 | return resultobj; | |
12122 | fail: | |
12123 | return NULL; | |
12124 | } | |
12125 | ||
12126 | ||
12127 | static PyObject * MultiChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12128 | PyObject *obj; | |
12129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12130 | SWIG_TypeClientData(SWIGTYPE_p_wxMultiChoiceDialog, obj); | |
12131 | Py_INCREF(obj); | |
12132 | return Py_BuildValue((char *)""); | |
12133 | } | |
12134 | static PyObject *_wrap_new_SingleChoiceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12135 | PyObject *resultobj; | |
12136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12137 | wxString *arg2 = 0 ; | |
12138 | wxString *arg3 = 0 ; | |
12139 | int arg4 ; | |
12140 | wxString *arg5 = (wxString *) 0 ; | |
12141 | long arg6 = (long) wxCHOICEDLG_STYLE ; | |
12142 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12143 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12144 | wxSingleChoiceDialog *result; | |
e811c8ce RD |
12145 | bool temp2 = False ; |
12146 | bool temp3 = False ; | |
d14a1e28 RD |
12147 | wxPoint temp6 ; |
12148 | PyObject * obj0 = 0 ; | |
12149 | PyObject * obj1 = 0 ; | |
12150 | PyObject * obj2 = 0 ; | |
12151 | PyObject * obj3 = 0 ; | |
994141e6 | 12152 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12153 | PyObject * obj5 = 0 ; |
12154 | char *kwnames[] = { | |
12155 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "choices",(char *) "style",(char *) "pos", NULL | |
12156 | }; | |
12157 | ||
994141e6 | 12158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:new_SingleChoiceDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
12159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12160 | { | |
12161 | arg2 = wxString_in_helper(obj1); | |
12162 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12163 | temp2 = True; |
d14a1e28 RD |
12164 | } |
12165 | { | |
12166 | arg3 = wxString_in_helper(obj2); | |
12167 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12168 | temp3 = True; |
d14a1e28 RD |
12169 | } |
12170 | { | |
12171 | arg4 = PyList_Size(obj3); | |
12172 | arg5 = wxString_LIST_helper(obj3); | |
12173 | if (arg5 == NULL) SWIG_fail; | |
12174 | } | |
994141e6 RD |
12175 | if (obj4) { |
12176 | { | |
12177 | arg6 = (long) SWIG_PyObj_AsLong(obj4); | |
12178 | if (PyErr_Occurred()) SWIG_fail; | |
12179 | } | |
12180 | } | |
d14a1e28 RD |
12181 | if (obj5) { |
12182 | { | |
12183 | arg7 = &temp6; | |
12184 | if ( ! wxPoint_helper(obj5, &arg7)) SWIG_fail; | |
12185 | } | |
12186 | } | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | result = (wxSingleChoiceDialog *)new_wxSingleChoiceDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,(wxPoint const &)*arg7); | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
12194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSingleChoiceDialog, 1); | |
12195 | { | |
12196 | if (temp2) | |
12197 | delete arg2; | |
12198 | } | |
12199 | { | |
12200 | if (temp3) | |
12201 | delete arg3; | |
12202 | } | |
12203 | { | |
12204 | if (arg5) delete [] arg5; | |
12205 | } | |
12206 | return resultobj; | |
12207 | fail: | |
12208 | { | |
12209 | if (temp2) | |
12210 | delete arg2; | |
12211 | } | |
12212 | { | |
12213 | if (temp3) | |
12214 | delete arg3; | |
12215 | } | |
12216 | { | |
12217 | if (arg5) delete [] arg5; | |
12218 | } | |
12219 | return NULL; | |
12220 | } | |
12221 | ||
12222 | ||
12223 | static PyObject *_wrap_SingleChoiceDialog_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12224 | PyObject *resultobj; | |
12225 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12226 | int result; | |
12227 | PyObject * obj0 = 0 ; | |
12228 | char *kwnames[] = { | |
12229 | (char *) "self", NULL | |
12230 | }; | |
12231 | ||
12232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetSelection",kwnames,&obj0)) goto fail; | |
12233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12234 | { | |
12235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12236 | result = (int)(arg1)->GetSelection(); | |
12237 | ||
12238 | wxPyEndAllowThreads(__tstate); | |
12239 | if (PyErr_Occurred()) SWIG_fail; | |
12240 | } | |
994141e6 | 12241 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12242 | return resultobj; |
12243 | fail: | |
12244 | return NULL; | |
12245 | } | |
12246 | ||
12247 | ||
12248 | static PyObject *_wrap_SingleChoiceDialog_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12249 | PyObject *resultobj; | |
12250 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12251 | wxString result; | |
12252 | PyObject * obj0 = 0 ; | |
12253 | char *kwnames[] = { | |
12254 | (char *) "self", NULL | |
12255 | }; | |
12256 | ||
12257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_GetStringSelection",kwnames,&obj0)) goto fail; | |
12258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12259 | { | |
12260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12261 | result = (arg1)->GetStringSelection(); | |
12262 | ||
12263 | wxPyEndAllowThreads(__tstate); | |
12264 | if (PyErr_Occurred()) SWIG_fail; | |
12265 | } | |
12266 | { | |
12267 | #if wxUSE_UNICODE | |
12268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12269 | #else | |
12270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12271 | #endif | |
12272 | } | |
12273 | return resultobj; | |
12274 | fail: | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
12279 | static PyObject *_wrap_SingleChoiceDialog_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12280 | PyObject *resultobj; | |
12281 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12282 | int arg2 ; | |
12283 | PyObject * obj0 = 0 ; | |
994141e6 | 12284 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12285 | char *kwnames[] = { |
12286 | (char *) "self",(char *) "sel", NULL | |
12287 | }; | |
12288 | ||
994141e6 | 12289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SingleChoiceDialog_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 12290 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12291 | { |
12292 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12293 | if (PyErr_Occurred()) SWIG_fail; | |
12294 | } | |
d14a1e28 RD |
12295 | { |
12296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12297 | (arg1)->SetSelection(arg2); | |
12298 | ||
12299 | wxPyEndAllowThreads(__tstate); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | Py_INCREF(Py_None); resultobj = Py_None; | |
12303 | return resultobj; | |
12304 | fail: | |
12305 | return NULL; | |
12306 | } | |
12307 | ||
12308 | ||
12309 | static PyObject *_wrap_SingleChoiceDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12310 | PyObject *resultobj; | |
12311 | wxSingleChoiceDialog *arg1 = (wxSingleChoiceDialog *) 0 ; | |
12312 | int result; | |
12313 | PyObject * obj0 = 0 ; | |
12314 | char *kwnames[] = { | |
12315 | (char *) "self", NULL | |
12316 | }; | |
12317 | ||
12318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleChoiceDialog_ShowModal",kwnames,&obj0)) goto fail; | |
12319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSingleChoiceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12320 | { | |
12321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12322 | result = (int)(arg1)->ShowModal(); | |
12323 | ||
12324 | wxPyEndAllowThreads(__tstate); | |
12325 | if (PyErr_Occurred()) SWIG_fail; | |
12326 | } | |
994141e6 | 12327 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12328 | return resultobj; |
12329 | fail: | |
12330 | return NULL; | |
12331 | } | |
12332 | ||
12333 | ||
12334 | static PyObject * SingleChoiceDialog_swigregister(PyObject *self, PyObject *args) { | |
12335 | PyObject *obj; | |
12336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12337 | SWIG_TypeClientData(SWIGTYPE_p_wxSingleChoiceDialog, obj); | |
12338 | Py_INCREF(obj); | |
12339 | return Py_BuildValue((char *)""); | |
12340 | } | |
12341 | static PyObject *_wrap_new_TextEntryDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12342 | PyObject *resultobj; | |
12343 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12344 | wxString *arg2 = 0 ; | |
12345 | wxString const &arg3_defvalue = wxPyGetTextFromUserPromptStr ; | |
12346 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
12347 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12348 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
12349 | long arg5 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
12350 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12351 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12352 | wxTextEntryDialog *result; | |
e811c8ce RD |
12353 | bool temp2 = False ; |
12354 | bool temp3 = False ; | |
12355 | bool temp4 = False ; | |
d14a1e28 RD |
12356 | wxPoint temp6 ; |
12357 | PyObject * obj0 = 0 ; | |
12358 | PyObject * obj1 = 0 ; | |
12359 | PyObject * obj2 = 0 ; | |
12360 | PyObject * obj3 = 0 ; | |
994141e6 | 12361 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
12362 | PyObject * obj5 = 0 ; |
12363 | char *kwnames[] = { | |
12364 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "defaultValue",(char *) "style",(char *) "pos", NULL | |
12365 | }; | |
12366 | ||
994141e6 | 12367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_TextEntryDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
12368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12369 | { | |
12370 | arg2 = wxString_in_helper(obj1); | |
12371 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12372 | temp2 = True; |
d14a1e28 RD |
12373 | } |
12374 | if (obj2) { | |
12375 | { | |
12376 | arg3 = wxString_in_helper(obj2); | |
12377 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12378 | temp3 = True; |
d14a1e28 RD |
12379 | } |
12380 | } | |
12381 | if (obj3) { | |
12382 | { | |
12383 | arg4 = wxString_in_helper(obj3); | |
12384 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 12385 | temp4 = True; |
d14a1e28 RD |
12386 | } |
12387 | } | |
994141e6 RD |
12388 | if (obj4) { |
12389 | { | |
12390 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
12391 | if (PyErr_Occurred()) SWIG_fail; | |
12392 | } | |
12393 | } | |
d14a1e28 RD |
12394 | if (obj5) { |
12395 | { | |
12396 | arg6 = &temp6; | |
12397 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12398 | } | |
12399 | } | |
12400 | { | |
12401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12402 | result = (wxTextEntryDialog *)new wxTextEntryDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,(wxPoint const &)*arg6); | |
12403 | ||
12404 | wxPyEndAllowThreads(__tstate); | |
12405 | if (PyErr_Occurred()) SWIG_fail; | |
12406 | } | |
12407 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextEntryDialog, 1); | |
12408 | { | |
12409 | if (temp2) | |
12410 | delete arg2; | |
12411 | } | |
12412 | { | |
12413 | if (temp3) | |
12414 | delete arg3; | |
12415 | } | |
12416 | { | |
12417 | if (temp4) | |
12418 | delete arg4; | |
12419 | } | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | { | |
12423 | if (temp2) | |
12424 | delete arg2; | |
12425 | } | |
12426 | { | |
12427 | if (temp3) | |
12428 | delete arg3; | |
12429 | } | |
12430 | { | |
12431 | if (temp4) | |
12432 | delete arg4; | |
12433 | } | |
12434 | return NULL; | |
12435 | } | |
12436 | ||
12437 | ||
12438 | static PyObject *_wrap_TextEntryDialog_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12439 | PyObject *resultobj; | |
12440 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12441 | wxString result; | |
12442 | PyObject * obj0 = 0 ; | |
12443 | char *kwnames[] = { | |
12444 | (char *) "self", NULL | |
12445 | }; | |
12446 | ||
12447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_GetValue",kwnames,&obj0)) goto fail; | |
12448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextEntryDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12449 | { | |
12450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12451 | result = (arg1)->GetValue(); | |
12452 | ||
12453 | wxPyEndAllowThreads(__tstate); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | { | |
12457 | #if wxUSE_UNICODE | |
12458 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12459 | #else | |
12460 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12461 | #endif | |
12462 | } | |
12463 | return resultobj; | |
12464 | fail: | |
12465 | return NULL; | |
12466 | } | |
12467 | ||
12468 | ||
12469 | static PyObject *_wrap_TextEntryDialog_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12470 | PyObject *resultobj; | |
12471 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12472 | wxString *arg2 = 0 ; | |
e811c8ce | 12473 | bool temp2 = False ; |
d14a1e28 RD |
12474 | PyObject * obj0 = 0 ; |
12475 | PyObject * obj1 = 0 ; | |
12476 | char *kwnames[] = { | |
12477 | (char *) "self",(char *) "value", NULL | |
12478 | }; | |
12479 | ||
12480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextEntryDialog_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12481 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextEntryDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12482 | { | |
12483 | arg2 = wxString_in_helper(obj1); | |
12484 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12485 | temp2 = True; |
d14a1e28 RD |
12486 | } |
12487 | { | |
12488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12489 | (arg1)->SetValue((wxString const &)*arg2); | |
12490 | ||
12491 | wxPyEndAllowThreads(__tstate); | |
12492 | if (PyErr_Occurred()) SWIG_fail; | |
12493 | } | |
12494 | Py_INCREF(Py_None); resultobj = Py_None; | |
12495 | { | |
12496 | if (temp2) | |
12497 | delete arg2; | |
12498 | } | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | { | |
12502 | if (temp2) | |
12503 | delete arg2; | |
12504 | } | |
12505 | return NULL; | |
12506 | } | |
12507 | ||
12508 | ||
12509 | static PyObject *_wrap_TextEntryDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12510 | PyObject *resultobj; | |
12511 | wxTextEntryDialog *arg1 = (wxTextEntryDialog *) 0 ; | |
12512 | int result; | |
12513 | PyObject * obj0 = 0 ; | |
12514 | char *kwnames[] = { | |
12515 | (char *) "self", NULL | |
12516 | }; | |
12517 | ||
12518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextEntryDialog_ShowModal",kwnames,&obj0)) goto fail; | |
12519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextEntryDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12520 | { | |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | result = (int)(arg1)->ShowModal(); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
994141e6 | 12527 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
12528 | return resultobj; |
12529 | fail: | |
12530 | return NULL; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static PyObject * TextEntryDialog_swigregister(PyObject *self, PyObject *args) { | |
12535 | PyObject *obj; | |
12536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12537 | SWIG_TypeClientData(SWIGTYPE_p_wxTextEntryDialog, obj); | |
12538 | Py_INCREF(obj); | |
12539 | return Py_BuildValue((char *)""); | |
12540 | } | |
12541 | static PyObject *_wrap_new_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12542 | PyObject *resultobj; | |
12543 | wxFontData *result; | |
12544 | char *kwnames[] = { | |
12545 | NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontData",kwnames)) goto fail; | |
12549 | { | |
12550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12551 | result = (wxFontData *)new wxFontData(); | |
12552 | ||
12553 | wxPyEndAllowThreads(__tstate); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
12556 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontData, 1); | |
12557 | return resultobj; | |
12558 | fail: | |
12559 | return NULL; | |
12560 | } | |
12561 | ||
12562 | ||
12563 | static PyObject *_wrap_delete_FontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12564 | PyObject *resultobj; | |
12565 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12566 | PyObject * obj0 = 0 ; | |
12567 | char *kwnames[] = { | |
12568 | (char *) "self", NULL | |
12569 | }; | |
12570 | ||
12571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontData",kwnames,&obj0)) goto fail; | |
12572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12573 | { | |
12574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12575 | delete arg1; | |
12576 | ||
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
12580 | Py_INCREF(Py_None); resultobj = Py_None; | |
12581 | return resultobj; | |
12582 | fail: | |
12583 | return NULL; | |
12584 | } | |
12585 | ||
12586 | ||
12587 | static PyObject *_wrap_FontData_EnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12588 | PyObject *resultobj; | |
12589 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12590 | bool arg2 ; | |
12591 | PyObject * obj0 = 0 ; | |
12592 | PyObject * obj1 = 0 ; | |
12593 | char *kwnames[] = { | |
12594 | (char *) "self",(char *) "enable", NULL | |
12595 | }; | |
12596 | ||
12597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_EnableEffects",kwnames,&obj0,&obj1)) goto fail; | |
12598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 12599 | { |
994141e6 | 12600 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
12601 | if (PyErr_Occurred()) SWIG_fail; |
12602 | } | |
d14a1e28 RD |
12603 | { |
12604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12605 | (arg1)->EnableEffects(arg2); | |
12606 | ||
12607 | wxPyEndAllowThreads(__tstate); | |
12608 | if (PyErr_Occurred()) SWIG_fail; | |
12609 | } | |
12610 | Py_INCREF(Py_None); resultobj = Py_None; | |
12611 | return resultobj; | |
12612 | fail: | |
12613 | return NULL; | |
12614 | } | |
12615 | ||
12616 | ||
12617 | static PyObject *_wrap_FontData_GetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12618 | PyObject *resultobj; | |
12619 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12620 | bool result; | |
12621 | PyObject * obj0 = 0 ; | |
12622 | char *kwnames[] = { | |
12623 | (char *) "self", NULL | |
12624 | }; | |
12625 | ||
12626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetAllowSymbols",kwnames,&obj0)) goto fail; | |
12627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12628 | { | |
12629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12630 | result = (bool)(arg1)->GetAllowSymbols(); | |
12631 | ||
12632 | wxPyEndAllowThreads(__tstate); | |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
12634 | } | |
4d5c3d91 | 12635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12636 | return resultobj; |
12637 | fail: | |
12638 | return NULL; | |
12639 | } | |
12640 | ||
12641 | ||
12642 | static PyObject *_wrap_FontData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12643 | PyObject *resultobj; | |
12644 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12645 | wxColour result; | |
12646 | PyObject * obj0 = 0 ; | |
12647 | char *kwnames[] = { | |
12648 | (char *) "self", NULL | |
12649 | }; | |
12650 | ||
12651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetColour",kwnames,&obj0)) goto fail; | |
12652 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12653 | { | |
12654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12655 | result = (arg1)->GetColour(); | |
12656 | ||
12657 | wxPyEndAllowThreads(__tstate); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
12659 | } | |
12660 | { | |
12661 | wxColour * resultptr; | |
12662 | resultptr = new wxColour((wxColour &) result); | |
12663 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
12664 | } | |
12665 | return resultobj; | |
12666 | fail: | |
12667 | return NULL; | |
12668 | } | |
12669 | ||
12670 | ||
12671 | static PyObject *_wrap_FontData_GetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12672 | PyObject *resultobj; | |
12673 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12674 | wxFont result; | |
12675 | PyObject * obj0 = 0 ; | |
12676 | char *kwnames[] = { | |
12677 | (char *) "self", NULL | |
12678 | }; | |
12679 | ||
12680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetChosenFont",kwnames,&obj0)) goto fail; | |
12681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12682 | { | |
12683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12684 | result = (arg1)->GetChosenFont(); | |
12685 | ||
12686 | wxPyEndAllowThreads(__tstate); | |
12687 | if (PyErr_Occurred()) SWIG_fail; | |
12688 | } | |
12689 | { | |
12690 | wxFont * resultptr; | |
12691 | resultptr = new wxFont((wxFont &) result); | |
12692 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
12693 | } | |
12694 | return resultobj; | |
12695 | fail: | |
12696 | return NULL; | |
12697 | } | |
12698 | ||
12699 | ||
12700 | static PyObject *_wrap_FontData_GetEnableEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12701 | PyObject *resultobj; | |
12702 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12703 | bool result; | |
12704 | PyObject * obj0 = 0 ; | |
12705 | char *kwnames[] = { | |
12706 | (char *) "self", NULL | |
12707 | }; | |
12708 | ||
12709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetEnableEffects",kwnames,&obj0)) goto fail; | |
12710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12711 | { | |
12712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12713 | result = (bool)(arg1)->GetEnableEffects(); | |
12714 | ||
12715 | wxPyEndAllowThreads(__tstate); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
12717 | } | |
4d5c3d91 | 12718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12719 | return resultobj; |
12720 | fail: | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
12725 | static PyObject *_wrap_FontData_GetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12726 | PyObject *resultobj; | |
12727 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12728 | wxFont result; | |
12729 | PyObject * obj0 = 0 ; | |
12730 | char *kwnames[] = { | |
12731 | (char *) "self", NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetInitialFont",kwnames,&obj0)) goto fail; | |
12735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12736 | { | |
12737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12738 | result = (arg1)->GetInitialFont(); | |
12739 | ||
12740 | wxPyEndAllowThreads(__tstate); | |
12741 | if (PyErr_Occurred()) SWIG_fail; | |
12742 | } | |
12743 | { | |
12744 | wxFont * resultptr; | |
12745 | resultptr = new wxFont((wxFont &) result); | |
12746 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
12747 | } | |
12748 | return resultobj; | |
12749 | fail: | |
12750 | return NULL; | |
12751 | } | |
12752 | ||
12753 | ||
12754 | static PyObject *_wrap_FontData_GetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12755 | PyObject *resultobj; | |
12756 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12757 | bool result; | |
12758 | PyObject * obj0 = 0 ; | |
12759 | char *kwnames[] = { | |
12760 | (char *) "self", NULL | |
12761 | }; | |
12762 | ||
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontData_GetShowHelp",kwnames,&obj0)) goto fail; | |
12764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12765 | { | |
12766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12767 | result = (bool)(arg1)->GetShowHelp(); | |
12768 | ||
12769 | wxPyEndAllowThreads(__tstate); | |
12770 | if (PyErr_Occurred()) SWIG_fail; | |
12771 | } | |
4d5c3d91 | 12772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
12773 | return resultobj; |
12774 | fail: | |
12775 | return NULL; | |
12776 | } | |
12777 | ||
12778 | ||
12779 | static PyObject *_wrap_FontData_SetAllowSymbols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12780 | PyObject *resultobj; | |
12781 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12782 | bool arg2 ; | |
12783 | PyObject * obj0 = 0 ; | |
12784 | PyObject * obj1 = 0 ; | |
12785 | char *kwnames[] = { | |
12786 | (char *) "self",(char *) "allowSymbols", NULL | |
12787 | }; | |
12788 | ||
12789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetAllowSymbols",kwnames,&obj0,&obj1)) goto fail; | |
12790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 12791 | { |
994141e6 | 12792 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
12793 | if (PyErr_Occurred()) SWIG_fail; |
12794 | } | |
d14a1e28 RD |
12795 | { |
12796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12797 | (arg1)->SetAllowSymbols(arg2); | |
12798 | ||
12799 | wxPyEndAllowThreads(__tstate); | |
12800 | if (PyErr_Occurred()) SWIG_fail; | |
12801 | } | |
12802 | Py_INCREF(Py_None); resultobj = Py_None; | |
12803 | return resultobj; | |
12804 | fail: | |
12805 | return NULL; | |
12806 | } | |
12807 | ||
12808 | ||
12809 | static PyObject *_wrap_FontData_SetChosenFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12810 | PyObject *resultobj; | |
12811 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12812 | wxFont *arg2 = 0 ; | |
12813 | PyObject * obj0 = 0 ; | |
12814 | PyObject * obj1 = 0 ; | |
12815 | char *kwnames[] = { | |
12816 | (char *) "self",(char *) "font", NULL | |
12817 | }; | |
12818 | ||
12819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetChosenFont",kwnames,&obj0,&obj1)) goto fail; | |
12820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12821 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12822 | if (arg2 == NULL) { | |
12823 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12824 | } | |
12825 | { | |
12826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12827 | (arg1)->SetChosenFont((wxFont const &)*arg2); | |
12828 | ||
12829 | wxPyEndAllowThreads(__tstate); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | } | |
12832 | Py_INCREF(Py_None); resultobj = Py_None; | |
12833 | return resultobj; | |
12834 | fail: | |
12835 | return NULL; | |
12836 | } | |
12837 | ||
12838 | ||
12839 | static PyObject *_wrap_FontData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12840 | PyObject *resultobj; | |
12841 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12842 | wxColour *arg2 = 0 ; | |
12843 | wxColour temp2 ; | |
12844 | PyObject * obj0 = 0 ; | |
12845 | PyObject * obj1 = 0 ; | |
12846 | char *kwnames[] = { | |
12847 | (char *) "self",(char *) "colour", NULL | |
12848 | }; | |
12849 | ||
12850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
12851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12852 | { | |
12853 | arg2 = &temp2; | |
12854 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
12855 | } | |
12856 | { | |
12857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12858 | (arg1)->SetColour((wxColour const &)*arg2); | |
12859 | ||
12860 | wxPyEndAllowThreads(__tstate); | |
12861 | if (PyErr_Occurred()) SWIG_fail; | |
12862 | } | |
12863 | Py_INCREF(Py_None); resultobj = Py_None; | |
12864 | return resultobj; | |
12865 | fail: | |
12866 | return NULL; | |
12867 | } | |
12868 | ||
12869 | ||
12870 | static PyObject *_wrap_FontData_SetInitialFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12871 | PyObject *resultobj; | |
12872 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12873 | wxFont *arg2 = 0 ; | |
12874 | PyObject * obj0 = 0 ; | |
12875 | PyObject * obj1 = 0 ; | |
12876 | char *kwnames[] = { | |
12877 | (char *) "self",(char *) "font", NULL | |
12878 | }; | |
12879 | ||
12880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetInitialFont",kwnames,&obj0,&obj1)) goto fail; | |
12881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12882 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12883 | if (arg2 == NULL) { | |
12884 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12885 | } | |
12886 | { | |
12887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12888 | (arg1)->SetInitialFont((wxFont const &)*arg2); | |
12889 | ||
12890 | wxPyEndAllowThreads(__tstate); | |
12891 | if (PyErr_Occurred()) SWIG_fail; | |
12892 | } | |
12893 | Py_INCREF(Py_None); resultobj = Py_None; | |
12894 | return resultobj; | |
12895 | fail: | |
12896 | return NULL; | |
12897 | } | |
12898 | ||
12899 | ||
12900 | static PyObject *_wrap_FontData_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12901 | PyObject *resultobj; | |
12902 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12903 | int arg2 ; | |
12904 | int arg3 ; | |
12905 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12906 | PyObject * obj1 = 0 ; |
12907 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12908 | char *kwnames[] = { |
12909 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12910 | }; | |
12911 | ||
994141e6 | 12912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FontData_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 12913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
12914 | { |
12915 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
12918 | { | |
12919 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
12920 | if (PyErr_Occurred()) SWIG_fail; | |
12921 | } | |
d14a1e28 RD |
12922 | { |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | (arg1)->SetRange(arg2,arg3); | |
12925 | ||
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | Py_INCREF(Py_None); resultobj = Py_None; | |
12930 | return resultobj; | |
12931 | fail: | |
12932 | return NULL; | |
12933 | } | |
12934 | ||
12935 | ||
12936 | static PyObject *_wrap_FontData_SetShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12937 | PyObject *resultobj; | |
12938 | wxFontData *arg1 = (wxFontData *) 0 ; | |
12939 | bool arg2 ; | |
12940 | PyObject * obj0 = 0 ; | |
12941 | PyObject * obj1 = 0 ; | |
12942 | char *kwnames[] = { | |
12943 | (char *) "self",(char *) "showHelp", NULL | |
12944 | }; | |
12945 | ||
12946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontData_SetShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
12947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 12948 | { |
994141e6 | 12949 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
12950 | if (PyErr_Occurred()) SWIG_fail; |
12951 | } | |
d14a1e28 RD |
12952 | { |
12953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12954 | (arg1)->SetShowHelp(arg2); | |
12955 | ||
12956 | wxPyEndAllowThreads(__tstate); | |
12957 | if (PyErr_Occurred()) SWIG_fail; | |
12958 | } | |
12959 | Py_INCREF(Py_None); resultobj = Py_None; | |
12960 | return resultobj; | |
12961 | fail: | |
12962 | return NULL; | |
12963 | } | |
12964 | ||
12965 | ||
12966 | static PyObject * FontData_swigregister(PyObject *self, PyObject *args) { | |
12967 | PyObject *obj; | |
12968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12969 | SWIG_TypeClientData(SWIGTYPE_p_wxFontData, obj); | |
12970 | Py_INCREF(obj); | |
12971 | return Py_BuildValue((char *)""); | |
12972 | } | |
12973 | static PyObject *_wrap_new_FontDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12974 | PyObject *resultobj; | |
12975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12976 | wxFontData *arg2 = 0 ; | |
12977 | wxFontDialog *result; | |
12978 | PyObject * obj0 = 0 ; | |
12979 | PyObject * obj1 = 0 ; | |
12980 | char *kwnames[] = { | |
12981 | (char *) "parent",(char *) "data", NULL | |
12982 | }; | |
12983 | ||
12984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_FontDialog",kwnames,&obj0,&obj1)) goto fail; | |
12985 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12986 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFontData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12987 | if (arg2 == NULL) { | |
12988 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
12989 | } | |
12990 | { | |
12991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12992 | result = (wxFontDialog *)new wxFontDialog(arg1,(wxFontData const &)*arg2); | |
12993 | ||
12994 | wxPyEndAllowThreads(__tstate); | |
12995 | if (PyErr_Occurred()) SWIG_fail; | |
12996 | } | |
12997 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontDialog, 1); | |
12998 | return resultobj; | |
12999 | fail: | |
13000 | return NULL; | |
13001 | } | |
13002 | ||
13003 | ||
13004 | static PyObject *_wrap_FontDialog_GetFontData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13005 | PyObject *resultobj; | |
13006 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13007 | wxFontData *result; | |
13008 | PyObject * obj0 = 0 ; | |
13009 | char *kwnames[] = { | |
13010 | (char *) "self", NULL | |
13011 | }; | |
13012 | ||
13013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_GetFontData",kwnames,&obj0)) goto fail; | |
13014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13015 | { | |
13016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13017 | { | |
13018 | wxFontData &_result_ref = (arg1)->GetFontData(); | |
13019 | result = (wxFontData *) &_result_ref; | |
13020 | } | |
13021 | ||
13022 | wxPyEndAllowThreads(__tstate); | |
13023 | if (PyErr_Occurred()) SWIG_fail; | |
13024 | } | |
13025 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontData, 0); | |
13026 | return resultobj; | |
13027 | fail: | |
13028 | return NULL; | |
13029 | } | |
13030 | ||
13031 | ||
13032 | static PyObject *_wrap_FontDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13033 | PyObject *resultobj; | |
13034 | wxFontDialog *arg1 = (wxFontDialog *) 0 ; | |
13035 | int result; | |
13036 | PyObject * obj0 = 0 ; | |
13037 | char *kwnames[] = { | |
13038 | (char *) "self", NULL | |
13039 | }; | |
13040 | ||
13041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontDialog_ShowModal",kwnames,&obj0)) goto fail; | |
13042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13043 | { | |
13044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13045 | result = (int)(arg1)->ShowModal(); | |
13046 | ||
13047 | wxPyEndAllowThreads(__tstate); | |
13048 | if (PyErr_Occurred()) SWIG_fail; | |
13049 | } | |
994141e6 | 13050 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13051 | return resultobj; |
13052 | fail: | |
13053 | return NULL; | |
13054 | } | |
13055 | ||
13056 | ||
13057 | static PyObject * FontDialog_swigregister(PyObject *self, PyObject *args) { | |
13058 | PyObject *obj; | |
13059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13060 | SWIG_TypeClientData(SWIGTYPE_p_wxFontDialog, obj); | |
13061 | Py_INCREF(obj); | |
13062 | return Py_BuildValue((char *)""); | |
13063 | } | |
13064 | static PyObject *_wrap_new_MessageDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13065 | PyObject *resultobj; | |
13066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13067 | wxString *arg2 = 0 ; | |
13068 | wxString const &arg3_defvalue = wxPyMessageBoxCaptionStr ; | |
13069 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13070 | long arg4 = (long) wxOK|wxCANCEL|wxCENTRE ; | |
13071 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13072 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13073 | wxMessageDialog *result; | |
e811c8ce RD |
13074 | bool temp2 = False ; |
13075 | bool temp3 = False ; | |
d14a1e28 RD |
13076 | wxPoint temp5 ; |
13077 | PyObject * obj0 = 0 ; | |
13078 | PyObject * obj1 = 0 ; | |
13079 | PyObject * obj2 = 0 ; | |
994141e6 | 13080 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
13081 | PyObject * obj4 = 0 ; |
13082 | char *kwnames[] = { | |
13083 | (char *) "parent",(char *) "message",(char *) "caption",(char *) "style",(char *) "pos", NULL | |
13084 | }; | |
13085 | ||
994141e6 | 13086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_MessageDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13087 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13088 | { | |
13089 | arg2 = wxString_in_helper(obj1); | |
13090 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13091 | temp2 = True; |
d14a1e28 RD |
13092 | } |
13093 | if (obj2) { | |
13094 | { | |
13095 | arg3 = wxString_in_helper(obj2); | |
13096 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13097 | temp3 = True; |
d14a1e28 RD |
13098 | } |
13099 | } | |
994141e6 RD |
13100 | if (obj3) { |
13101 | { | |
13102 | arg4 = (long) SWIG_PyObj_AsLong(obj3); | |
13103 | if (PyErr_Occurred()) SWIG_fail; | |
13104 | } | |
13105 | } | |
d14a1e28 RD |
13106 | if (obj4) { |
13107 | { | |
13108 | arg5 = &temp5; | |
13109 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13110 | } | |
13111 | } | |
13112 | { | |
13113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13114 | result = (wxMessageDialog *)new wxMessageDialog(arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,(wxPoint const &)*arg5); | |
13115 | ||
13116 | wxPyEndAllowThreads(__tstate); | |
13117 | if (PyErr_Occurred()) SWIG_fail; | |
13118 | } | |
13119 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMessageDialog, 1); | |
13120 | { | |
13121 | if (temp2) | |
13122 | delete arg2; | |
13123 | } | |
13124 | { | |
13125 | if (temp3) | |
13126 | delete arg3; | |
13127 | } | |
13128 | return resultobj; | |
13129 | fail: | |
13130 | { | |
13131 | if (temp2) | |
13132 | delete arg2; | |
13133 | } | |
13134 | { | |
13135 | if (temp3) | |
13136 | delete arg3; | |
13137 | } | |
13138 | return NULL; | |
13139 | } | |
13140 | ||
13141 | ||
13142 | static PyObject *_wrap_MessageDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13143 | PyObject *resultobj; | |
13144 | wxMessageDialog *arg1 = (wxMessageDialog *) 0 ; | |
13145 | int result; | |
13146 | PyObject * obj0 = 0 ; | |
13147 | char *kwnames[] = { | |
13148 | (char *) "self", NULL | |
13149 | }; | |
13150 | ||
13151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MessageDialog_ShowModal",kwnames,&obj0)) goto fail; | |
13152 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMessageDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13153 | { | |
13154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13155 | result = (int)(arg1)->ShowModal(); | |
13156 | ||
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
994141e6 | 13160 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13161 | return resultobj; |
13162 | fail: | |
13163 | return NULL; | |
13164 | } | |
13165 | ||
13166 | ||
13167 | static PyObject * MessageDialog_swigregister(PyObject *self, PyObject *args) { | |
13168 | PyObject *obj; | |
13169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13170 | SWIG_TypeClientData(SWIGTYPE_p_wxMessageDialog, obj); | |
13171 | Py_INCREF(obj); | |
13172 | return Py_BuildValue((char *)""); | |
13173 | } | |
13174 | static PyObject *_wrap_new_ProgressDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13175 | PyObject *resultobj; | |
13176 | wxString *arg1 = 0 ; | |
13177 | wxString *arg2 = 0 ; | |
13178 | int arg3 = (int) 100 ; | |
13179 | wxWindow *arg4 = (wxWindow *) NULL ; | |
13180 | int arg5 = (int) wxPD_AUTO_HIDE|wxPD_APP_MODAL ; | |
13181 | wxProgressDialog *result; | |
e811c8ce RD |
13182 | bool temp1 = False ; |
13183 | bool temp2 = False ; | |
d14a1e28 RD |
13184 | PyObject * obj0 = 0 ; |
13185 | PyObject * obj1 = 0 ; | |
994141e6 | 13186 | PyObject * obj2 = 0 ; |
d14a1e28 | 13187 | PyObject * obj3 = 0 ; |
994141e6 | 13188 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13189 | char *kwnames[] = { |
13190 | (char *) "title",(char *) "message",(char *) "maximum",(char *) "parent",(char *) "style", NULL | |
13191 | }; | |
13192 | ||
994141e6 | 13193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_ProgressDialog",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13194 | { |
13195 | arg1 = wxString_in_helper(obj0); | |
13196 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 13197 | temp1 = True; |
d14a1e28 RD |
13198 | } |
13199 | { | |
13200 | arg2 = wxString_in_helper(obj1); | |
13201 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13202 | temp2 = True; |
d14a1e28 | 13203 | } |
994141e6 RD |
13204 | if (obj2) { |
13205 | { | |
13206 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
13207 | if (PyErr_Occurred()) SWIG_fail; | |
13208 | } | |
13209 | } | |
d14a1e28 RD |
13210 | if (obj3) { |
13211 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13212 | } | |
994141e6 RD |
13213 | if (obj4) { |
13214 | { | |
13215 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | } | |
d14a1e28 RD |
13219 | { |
13220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13221 | result = (wxProgressDialog *)new wxProgressDialog((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5); | |
13222 | ||
13223 | wxPyEndAllowThreads(__tstate); | |
13224 | if (PyErr_Occurred()) SWIG_fail; | |
13225 | } | |
13226 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxProgressDialog, 1); | |
13227 | { | |
13228 | if (temp1) | |
13229 | delete arg1; | |
13230 | } | |
13231 | { | |
13232 | if (temp2) | |
13233 | delete arg2; | |
13234 | } | |
13235 | return resultobj; | |
13236 | fail: | |
13237 | { | |
13238 | if (temp1) | |
13239 | delete arg1; | |
13240 | } | |
13241 | { | |
13242 | if (temp2) | |
13243 | delete arg2; | |
13244 | } | |
13245 | return NULL; | |
13246 | } | |
13247 | ||
13248 | ||
13249 | static PyObject *_wrap_ProgressDialog_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13250 | PyObject *resultobj; | |
13251 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13252 | int arg2 ; | |
13253 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13254 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13255 | bool result; | |
e811c8ce | 13256 | bool temp3 = False ; |
d14a1e28 | 13257 | PyObject * obj0 = 0 ; |
994141e6 | 13258 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13259 | PyObject * obj2 = 0 ; |
13260 | char *kwnames[] = { | |
13261 | (char *) "self",(char *) "value",(char *) "newmsg", NULL | |
13262 | }; | |
13263 | ||
994141e6 | 13264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ProgressDialog_Update",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 13265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProgressDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13266 | { |
13267 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13268 | if (PyErr_Occurred()) SWIG_fail; | |
13269 | } | |
d14a1e28 RD |
13270 | if (obj2) { |
13271 | { | |
13272 | arg3 = wxString_in_helper(obj2); | |
13273 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13274 | temp3 = True; |
d14a1e28 RD |
13275 | } |
13276 | } | |
13277 | { | |
13278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13279 | result = (bool)(arg1)->Update(arg2,(wxString const &)*arg3); | |
13280 | ||
13281 | wxPyEndAllowThreads(__tstate); | |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
13283 | } | |
4d5c3d91 | 13284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13285 | { |
13286 | if (temp3) | |
13287 | delete arg3; | |
13288 | } | |
13289 | return resultobj; | |
13290 | fail: | |
13291 | { | |
13292 | if (temp3) | |
13293 | delete arg3; | |
13294 | } | |
13295 | return NULL; | |
13296 | } | |
13297 | ||
13298 | ||
13299 | static PyObject *_wrap_ProgressDialog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13300 | PyObject *resultobj; | |
13301 | wxProgressDialog *arg1 = (wxProgressDialog *) 0 ; | |
13302 | PyObject * obj0 = 0 ; | |
13303 | char *kwnames[] = { | |
13304 | (char *) "self", NULL | |
13305 | }; | |
13306 | ||
13307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProgressDialog_Resume",kwnames,&obj0)) goto fail; | |
13308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxProgressDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13309 | { | |
13310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13311 | (arg1)->Resume(); | |
13312 | ||
13313 | wxPyEndAllowThreads(__tstate); | |
13314 | if (PyErr_Occurred()) SWIG_fail; | |
13315 | } | |
13316 | Py_INCREF(Py_None); resultobj = Py_None; | |
13317 | return resultobj; | |
13318 | fail: | |
13319 | return NULL; | |
13320 | } | |
13321 | ||
13322 | ||
13323 | static PyObject * ProgressDialog_swigregister(PyObject *self, PyObject *args) { | |
13324 | PyObject *obj; | |
13325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13326 | SWIG_TypeClientData(SWIGTYPE_p_wxProgressDialog, obj); | |
13327 | Py_INCREF(obj); | |
13328 | return Py_BuildValue((char *)""); | |
13329 | } | |
13330 | static PyObject *_wrap_new_FindDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13331 | PyObject *resultobj; | |
13332 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13333 | int arg2 = (int) 0 ; | |
13334 | wxFindDialogEvent *result; | |
994141e6 RD |
13335 | PyObject * obj0 = 0 ; |
13336 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13337 | char *kwnames[] = { |
13338 | (char *) "commandType",(char *) "id", NULL | |
13339 | }; | |
13340 | ||
994141e6 RD |
13341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FindDialogEvent",kwnames,&obj0,&obj1)) goto fail; |
13342 | if (obj0) { | |
13343 | { | |
13344 | arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0); | |
13345 | if (PyErr_Occurred()) SWIG_fail; | |
13346 | } | |
13347 | } | |
13348 | if (obj1) { | |
13349 | { | |
13350 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13351 | if (PyErr_Occurred()) SWIG_fail; | |
13352 | } | |
13353 | } | |
d14a1e28 RD |
13354 | { |
13355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13356 | result = (wxFindDialogEvent *)new wxFindDialogEvent(arg1,arg2); | |
13357 | ||
13358 | wxPyEndAllowThreads(__tstate); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
13361 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindDialogEvent, 1); | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | return NULL; | |
13365 | } | |
13366 | ||
13367 | ||
13368 | static PyObject *_wrap_FindDialogEvent_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13369 | PyObject *resultobj; | |
13370 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13371 | int result; | |
13372 | PyObject * obj0 = 0 ; | |
13373 | char *kwnames[] = { | |
13374 | (char *) "self", NULL | |
13375 | }; | |
13376 | ||
13377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFlags",kwnames,&obj0)) goto fail; | |
13378 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13379 | { | |
13380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13381 | result = (int)(arg1)->GetFlags(); | |
13382 | ||
13383 | wxPyEndAllowThreads(__tstate); | |
13384 | if (PyErr_Occurred()) SWIG_fail; | |
13385 | } | |
994141e6 | 13386 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13387 | return resultobj; |
13388 | fail: | |
13389 | return NULL; | |
13390 | } | |
13391 | ||
13392 | ||
13393 | static PyObject *_wrap_FindDialogEvent_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13394 | PyObject *resultobj; | |
13395 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
cc6dd355 | 13396 | wxString *result; |
d14a1e28 RD |
13397 | PyObject * obj0 = 0 ; |
13398 | char *kwnames[] = { | |
13399 | (char *) "self", NULL | |
13400 | }; | |
13401 | ||
13402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetFindString",kwnames,&obj0)) goto fail; | |
13403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13404 | { | |
13405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cc6dd355 RD |
13406 | { |
13407 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13408 | result = (wxString *) &_result_ref; | |
13409 | } | |
d14a1e28 RD |
13410 | |
13411 | wxPyEndAllowThreads(__tstate); | |
13412 | if (PyErr_Occurred()) SWIG_fail; | |
13413 | } | |
13414 | { | |
13415 | #if wxUSE_UNICODE | |
cc6dd355 | 13416 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 13417 | #else |
cc6dd355 | 13418 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
13419 | #endif |
13420 | } | |
13421 | return resultobj; | |
13422 | fail: | |
13423 | return NULL; | |
13424 | } | |
13425 | ||
13426 | ||
13427 | static PyObject *_wrap_FindDialogEvent_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13428 | PyObject *resultobj; | |
13429 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13430 | wxString *result; | |
13431 | PyObject * obj0 = 0 ; | |
13432 | char *kwnames[] = { | |
13433 | (char *) "self", NULL | |
13434 | }; | |
13435 | ||
13436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetReplaceString",kwnames,&obj0)) goto fail; | |
13437 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13438 | { | |
13439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13440 | { | |
13441 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13442 | result = (wxString *) &_result_ref; | |
13443 | } | |
13444 | ||
13445 | wxPyEndAllowThreads(__tstate); | |
13446 | if (PyErr_Occurred()) SWIG_fail; | |
13447 | } | |
cc6dd355 RD |
13448 | { |
13449 | #if wxUSE_UNICODE | |
13450 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13451 | #else | |
13452 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13453 | #endif | |
13454 | } | |
d14a1e28 RD |
13455 | return resultobj; |
13456 | fail: | |
13457 | return NULL; | |
13458 | } | |
13459 | ||
13460 | ||
13461 | static PyObject *_wrap_FindDialogEvent_GetDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13462 | PyObject *resultobj; | |
13463 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13464 | wxFindReplaceDialog *result; | |
13465 | PyObject * obj0 = 0 ; | |
13466 | char *kwnames[] = { | |
13467 | (char *) "self", NULL | |
13468 | }; | |
13469 | ||
13470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindDialogEvent_GetDialog",kwnames,&obj0)) goto fail; | |
13471 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13472 | { | |
13473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13474 | result = (wxFindReplaceDialog *)(arg1)->GetDialog(); | |
13475 | ||
13476 | wxPyEndAllowThreads(__tstate); | |
13477 | if (PyErr_Occurred()) SWIG_fail; | |
13478 | } | |
13479 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceDialog, 0); | |
13480 | return resultobj; | |
13481 | fail: | |
13482 | return NULL; | |
13483 | } | |
13484 | ||
13485 | ||
13486 | static PyObject *_wrap_FindDialogEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13487 | PyObject *resultobj; | |
13488 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13489 | int arg2 ; | |
13490 | PyObject * obj0 = 0 ; | |
994141e6 | 13491 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13492 | char *kwnames[] = { |
13493 | (char *) "self",(char *) "flags", NULL | |
13494 | }; | |
13495 | ||
994141e6 | 13496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13498 | { |
13499 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13500 | if (PyErr_Occurred()) SWIG_fail; | |
13501 | } | |
d14a1e28 RD |
13502 | { |
13503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13504 | (arg1)->SetFlags(arg2); | |
13505 | ||
13506 | wxPyEndAllowThreads(__tstate); | |
13507 | if (PyErr_Occurred()) SWIG_fail; | |
13508 | } | |
13509 | Py_INCREF(Py_None); resultobj = Py_None; | |
13510 | return resultobj; | |
13511 | fail: | |
13512 | return NULL; | |
13513 | } | |
13514 | ||
13515 | ||
13516 | static PyObject *_wrap_FindDialogEvent_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13517 | PyObject *resultobj; | |
13518 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13519 | wxString *arg2 = 0 ; | |
e811c8ce | 13520 | bool temp2 = False ; |
d14a1e28 RD |
13521 | PyObject * obj0 = 0 ; |
13522 | PyObject * obj1 = 0 ; | |
13523 | char *kwnames[] = { | |
13524 | (char *) "self",(char *) "str", NULL | |
13525 | }; | |
13526 | ||
13527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13529 | { | |
13530 | arg2 = wxString_in_helper(obj1); | |
13531 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13532 | temp2 = True; |
d14a1e28 RD |
13533 | } |
13534 | { | |
13535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13536 | (arg1)->SetFindString((wxString const &)*arg2); | |
13537 | ||
13538 | wxPyEndAllowThreads(__tstate); | |
13539 | if (PyErr_Occurred()) SWIG_fail; | |
13540 | } | |
13541 | Py_INCREF(Py_None); resultobj = Py_None; | |
13542 | { | |
13543 | if (temp2) | |
13544 | delete arg2; | |
13545 | } | |
13546 | return resultobj; | |
13547 | fail: | |
13548 | { | |
13549 | if (temp2) | |
13550 | delete arg2; | |
13551 | } | |
13552 | return NULL; | |
13553 | } | |
13554 | ||
13555 | ||
13556 | static PyObject *_wrap_FindDialogEvent_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13557 | PyObject *resultobj; | |
13558 | wxFindDialogEvent *arg1 = (wxFindDialogEvent *) 0 ; | |
13559 | wxString *arg2 = 0 ; | |
e811c8ce | 13560 | bool temp2 = False ; |
d14a1e28 RD |
13561 | PyObject * obj0 = 0 ; |
13562 | PyObject * obj1 = 0 ; | |
13563 | char *kwnames[] = { | |
13564 | (char *) "self",(char *) "str", NULL | |
13565 | }; | |
13566 | ||
13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindDialogEvent_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindDialogEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13569 | { | |
13570 | arg2 = wxString_in_helper(obj1); | |
13571 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13572 | temp2 = True; |
d14a1e28 RD |
13573 | } |
13574 | { | |
13575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13576 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13577 | ||
13578 | wxPyEndAllowThreads(__tstate); | |
13579 | if (PyErr_Occurred()) SWIG_fail; | |
13580 | } | |
13581 | Py_INCREF(Py_None); resultobj = Py_None; | |
13582 | { | |
13583 | if (temp2) | |
13584 | delete arg2; | |
13585 | } | |
13586 | return resultobj; | |
13587 | fail: | |
13588 | { | |
13589 | if (temp2) | |
13590 | delete arg2; | |
13591 | } | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | static PyObject * FindDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
13597 | PyObject *obj; | |
13598 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13599 | SWIG_TypeClientData(SWIGTYPE_p_wxFindDialogEvent, obj); | |
13600 | Py_INCREF(obj); | |
13601 | return Py_BuildValue((char *)""); | |
13602 | } | |
13603 | static PyObject *_wrap_new_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13604 | PyObject *resultobj; | |
13605 | int arg1 = (int) 0 ; | |
13606 | wxFindReplaceData *result; | |
994141e6 | 13607 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13608 | char *kwnames[] = { |
13609 | (char *) "flags", NULL | |
13610 | }; | |
13611 | ||
994141e6 RD |
13612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FindReplaceData",kwnames,&obj0)) goto fail; |
13613 | if (obj0) { | |
13614 | { | |
13615 | arg1 = (int) SWIG_PyObj_AsInt(obj0); | |
13616 | if (PyErr_Occurred()) SWIG_fail; | |
13617 | } | |
13618 | } | |
d14a1e28 RD |
13619 | { |
13620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13621 | result = (wxFindReplaceData *)new wxFindReplaceData(arg1); | |
13622 | ||
13623 | wxPyEndAllowThreads(__tstate); | |
13624 | if (PyErr_Occurred()) SWIG_fail; | |
13625 | } | |
13626 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceData, 1); | |
13627 | return resultobj; | |
13628 | fail: | |
13629 | return NULL; | |
13630 | } | |
13631 | ||
13632 | ||
13633 | static PyObject *_wrap_delete_FindReplaceData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13634 | PyObject *resultobj; | |
13635 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13636 | PyObject * obj0 = 0 ; | |
13637 | char *kwnames[] = { | |
13638 | (char *) "self", NULL | |
13639 | }; | |
13640 | ||
13641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FindReplaceData",kwnames,&obj0)) goto fail; | |
13642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13643 | { | |
13644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13645 | delete arg1; | |
13646 | ||
13647 | wxPyEndAllowThreads(__tstate); | |
13648 | if (PyErr_Occurred()) SWIG_fail; | |
13649 | } | |
13650 | Py_INCREF(Py_None); resultobj = Py_None; | |
13651 | return resultobj; | |
13652 | fail: | |
13653 | return NULL; | |
13654 | } | |
13655 | ||
13656 | ||
13657 | static PyObject *_wrap_FindReplaceData_GetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13658 | PyObject *resultobj; | |
13659 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13660 | wxString *result; | |
13661 | PyObject * obj0 = 0 ; | |
13662 | char *kwnames[] = { | |
13663 | (char *) "self", NULL | |
13664 | }; | |
13665 | ||
13666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFindString",kwnames,&obj0)) goto fail; | |
13667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13668 | { | |
13669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13670 | { | |
13671 | wxString const &_result_ref = (arg1)->GetFindString(); | |
13672 | result = (wxString *) &_result_ref; | |
13673 | } | |
13674 | ||
13675 | wxPyEndAllowThreads(__tstate); | |
13676 | if (PyErr_Occurred()) SWIG_fail; | |
13677 | } | |
cc6dd355 RD |
13678 | { |
13679 | #if wxUSE_UNICODE | |
13680 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13681 | #else | |
13682 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13683 | #endif | |
13684 | } | |
d14a1e28 RD |
13685 | return resultobj; |
13686 | fail: | |
13687 | return NULL; | |
13688 | } | |
13689 | ||
13690 | ||
13691 | static PyObject *_wrap_FindReplaceData_GetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13692 | PyObject *resultobj; | |
13693 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13694 | wxString *result; | |
13695 | PyObject * obj0 = 0 ; | |
13696 | char *kwnames[] = { | |
13697 | (char *) "self", NULL | |
13698 | }; | |
13699 | ||
13700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetReplaceString",kwnames,&obj0)) goto fail; | |
13701 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13702 | { | |
13703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13704 | { | |
13705 | wxString const &_result_ref = (arg1)->GetReplaceString(); | |
13706 | result = (wxString *) &_result_ref; | |
13707 | } | |
13708 | ||
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
cc6dd355 RD |
13712 | { |
13713 | #if wxUSE_UNICODE | |
13714 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13715 | #else | |
13716 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13717 | #endif | |
13718 | } | |
d14a1e28 RD |
13719 | return resultobj; |
13720 | fail: | |
13721 | return NULL; | |
13722 | } | |
13723 | ||
13724 | ||
13725 | static PyObject *_wrap_FindReplaceData_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13726 | PyObject *resultobj; | |
13727 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13728 | int result; | |
13729 | PyObject * obj0 = 0 ; | |
13730 | char *kwnames[] = { | |
13731 | (char *) "self", NULL | |
13732 | }; | |
13733 | ||
13734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceData_GetFlags",kwnames,&obj0)) goto fail; | |
13735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13736 | { | |
13737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13738 | result = (int)(arg1)->GetFlags(); | |
13739 | ||
13740 | wxPyEndAllowThreads(__tstate); | |
13741 | if (PyErr_Occurred()) SWIG_fail; | |
13742 | } | |
994141e6 | 13743 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
13744 | return resultobj; |
13745 | fail: | |
13746 | return NULL; | |
13747 | } | |
13748 | ||
13749 | ||
13750 | static PyObject *_wrap_FindReplaceData_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13751 | PyObject *resultobj; | |
13752 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13753 | int arg2 ; | |
13754 | PyObject * obj0 = 0 ; | |
994141e6 | 13755 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13756 | char *kwnames[] = { |
13757 | (char *) "self",(char *) "flags", NULL | |
13758 | }; | |
13759 | ||
994141e6 | 13760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 13761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
13762 | { |
13763 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
d14a1e28 RD |
13766 | { |
13767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13768 | (arg1)->SetFlags(arg2); | |
13769 | ||
13770 | wxPyEndAllowThreads(__tstate); | |
13771 | if (PyErr_Occurred()) SWIG_fail; | |
13772 | } | |
13773 | Py_INCREF(Py_None); resultobj = Py_None; | |
13774 | return resultobj; | |
13775 | fail: | |
13776 | return NULL; | |
13777 | } | |
13778 | ||
13779 | ||
13780 | static PyObject *_wrap_FindReplaceData_SetFindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13781 | PyObject *resultobj; | |
13782 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13783 | wxString *arg2 = 0 ; | |
e811c8ce | 13784 | bool temp2 = False ; |
d14a1e28 RD |
13785 | PyObject * obj0 = 0 ; |
13786 | PyObject * obj1 = 0 ; | |
13787 | char *kwnames[] = { | |
13788 | (char *) "self",(char *) "str", NULL | |
13789 | }; | |
13790 | ||
13791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetFindString",kwnames,&obj0,&obj1)) goto fail; | |
13792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13793 | { | |
13794 | arg2 = wxString_in_helper(obj1); | |
13795 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13796 | temp2 = True; |
d14a1e28 RD |
13797 | } |
13798 | { | |
13799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13800 | (arg1)->SetFindString((wxString const &)*arg2); | |
13801 | ||
13802 | wxPyEndAllowThreads(__tstate); | |
13803 | if (PyErr_Occurred()) SWIG_fail; | |
13804 | } | |
13805 | Py_INCREF(Py_None); resultobj = Py_None; | |
13806 | { | |
13807 | if (temp2) | |
13808 | delete arg2; | |
13809 | } | |
13810 | return resultobj; | |
13811 | fail: | |
13812 | { | |
13813 | if (temp2) | |
13814 | delete arg2; | |
13815 | } | |
13816 | return NULL; | |
13817 | } | |
13818 | ||
13819 | ||
13820 | static PyObject *_wrap_FindReplaceData_SetReplaceString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13821 | PyObject *resultobj; | |
13822 | wxFindReplaceData *arg1 = (wxFindReplaceData *) 0 ; | |
13823 | wxString *arg2 = 0 ; | |
e811c8ce | 13824 | bool temp2 = False ; |
d14a1e28 RD |
13825 | PyObject * obj0 = 0 ; |
13826 | PyObject * obj1 = 0 ; | |
13827 | char *kwnames[] = { | |
13828 | (char *) "self",(char *) "str", NULL | |
13829 | }; | |
13830 | ||
13831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceData_SetReplaceString",kwnames,&obj0,&obj1)) goto fail; | |
13832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13833 | { | |
13834 | arg2 = wxString_in_helper(obj1); | |
13835 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13836 | temp2 = True; |
d14a1e28 RD |
13837 | } |
13838 | { | |
13839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13840 | (arg1)->SetReplaceString((wxString const &)*arg2); | |
13841 | ||
13842 | wxPyEndAllowThreads(__tstate); | |
13843 | if (PyErr_Occurred()) SWIG_fail; | |
13844 | } | |
13845 | Py_INCREF(Py_None); resultobj = Py_None; | |
13846 | { | |
13847 | if (temp2) | |
13848 | delete arg2; | |
13849 | } | |
13850 | return resultobj; | |
13851 | fail: | |
13852 | { | |
13853 | if (temp2) | |
13854 | delete arg2; | |
13855 | } | |
13856 | return NULL; | |
13857 | } | |
13858 | ||
13859 | ||
13860 | static PyObject * FindReplaceData_swigregister(PyObject *self, PyObject *args) { | |
13861 | PyObject *obj; | |
13862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13863 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceData, obj); | |
13864 | Py_INCREF(obj); | |
13865 | return Py_BuildValue((char *)""); | |
13866 | } | |
13867 | static PyObject *_wrap_new_FindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13868 | PyObject *resultobj; | |
13869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13870 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
13871 | wxString *arg3 = 0 ; | |
13872 | int arg4 = (int) 0 ; | |
13873 | wxFindReplaceDialog *result; | |
e811c8ce | 13874 | bool temp3 = False ; |
d14a1e28 RD |
13875 | PyObject * obj0 = 0 ; |
13876 | PyObject * obj1 = 0 ; | |
13877 | PyObject * obj2 = 0 ; | |
994141e6 | 13878 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
13879 | char *kwnames[] = { |
13880 | (char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
13881 | }; | |
13882 | ||
994141e6 | 13883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_FindReplaceDialog",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
13884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13885 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13886 | { | |
13887 | arg3 = wxString_in_helper(obj2); | |
13888 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 13889 | temp3 = True; |
d14a1e28 | 13890 | } |
994141e6 RD |
13891 | if (obj3) { |
13892 | { | |
13893 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
13894 | if (PyErr_Occurred()) SWIG_fail; | |
13895 | } | |
13896 | } | |
d14a1e28 RD |
13897 | { |
13898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13899 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(arg1,arg2,(wxString const &)*arg3,arg4); | |
13900 | ||
13901 | wxPyEndAllowThreads(__tstate); | |
13902 | if (PyErr_Occurred()) SWIG_fail; | |
13903 | } | |
13904 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceDialog, 1); | |
13905 | { | |
13906 | if (temp3) | |
13907 | delete arg3; | |
13908 | } | |
13909 | return resultobj; | |
13910 | fail: | |
13911 | { | |
13912 | if (temp3) | |
13913 | delete arg3; | |
13914 | } | |
13915 | return NULL; | |
13916 | } | |
13917 | ||
13918 | ||
13919 | static PyObject *_wrap_new_PreFindReplaceDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13920 | PyObject *resultobj; | |
13921 | wxFindReplaceDialog *result; | |
13922 | char *kwnames[] = { | |
13923 | NULL | |
13924 | }; | |
13925 | ||
13926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreFindReplaceDialog",kwnames)) goto fail; | |
13927 | { | |
13928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13929 | result = (wxFindReplaceDialog *)new wxFindReplaceDialog(); | |
13930 | ||
13931 | wxPyEndAllowThreads(__tstate); | |
13932 | if (PyErr_Occurred()) SWIG_fail; | |
13933 | } | |
13934 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceDialog, 1); | |
13935 | return resultobj; | |
13936 | fail: | |
13937 | return NULL; | |
13938 | } | |
13939 | ||
13940 | ||
13941 | static PyObject *_wrap_FindReplaceDialog_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13942 | PyObject *resultobj; | |
13943 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
13944 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13945 | wxFindReplaceData *arg3 = (wxFindReplaceData *) 0 ; | |
13946 | wxString *arg4 = 0 ; | |
13947 | int arg5 = (int) 0 ; | |
13948 | bool result; | |
e811c8ce | 13949 | bool temp4 = False ; |
d14a1e28 RD |
13950 | PyObject * obj0 = 0 ; |
13951 | PyObject * obj1 = 0 ; | |
13952 | PyObject * obj2 = 0 ; | |
13953 | PyObject * obj3 = 0 ; | |
994141e6 | 13954 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13955 | char *kwnames[] = { |
13956 | (char *) "self",(char *) "parent",(char *) "data",(char *) "title",(char *) "style", NULL | |
13957 | }; | |
13958 | ||
994141e6 | 13959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:FindReplaceDialog_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 RD |
13960 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
13961 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13962 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13963 | { | |
13964 | arg4 = wxString_in_helper(obj3); | |
13965 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 13966 | temp4 = True; |
d14a1e28 | 13967 | } |
994141e6 RD |
13968 | if (obj4) { |
13969 | { | |
13970 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | } | |
d14a1e28 RD |
13974 | { |
13975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13976 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,arg5); | |
13977 | ||
13978 | wxPyEndAllowThreads(__tstate); | |
13979 | if (PyErr_Occurred()) SWIG_fail; | |
13980 | } | |
4d5c3d91 | 13981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
13982 | { |
13983 | if (temp4) | |
13984 | delete arg4; | |
13985 | } | |
13986 | return resultobj; | |
13987 | fail: | |
13988 | { | |
13989 | if (temp4) | |
13990 | delete arg4; | |
13991 | } | |
13992 | return NULL; | |
13993 | } | |
13994 | ||
13995 | ||
13996 | static PyObject *_wrap_FindReplaceDialog_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13997 | PyObject *resultobj; | |
13998 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
13999 | wxFindReplaceData *result; | |
14000 | PyObject * obj0 = 0 ; | |
14001 | char *kwnames[] = { | |
14002 | (char *) "self", NULL | |
14003 | }; | |
14004 | ||
14005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindReplaceDialog_GetData",kwnames,&obj0)) goto fail; | |
14006 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14007 | { | |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | result = (wxFindReplaceData *)(arg1)->GetData(); | |
14010 | ||
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFindReplaceData, 0); | |
14015 | return resultobj; | |
14016 | fail: | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | static PyObject *_wrap_FindReplaceDialog_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14022 | PyObject *resultobj; | |
14023 | wxFindReplaceDialog *arg1 = (wxFindReplaceDialog *) 0 ; | |
14024 | wxFindReplaceData *arg2 = (wxFindReplaceData *) 0 ; | |
14025 | PyObject * obj0 = 0 ; | |
14026 | PyObject * obj1 = 0 ; | |
14027 | char *kwnames[] = { | |
14028 | (char *) "self",(char *) "data", NULL | |
14029 | }; | |
14030 | ||
14031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FindReplaceDialog_SetData",kwnames,&obj0,&obj1)) goto fail; | |
14032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFindReplaceDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14033 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFindReplaceData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14034 | { | |
14035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14036 | (arg1)->SetData(arg2); | |
14037 | ||
14038 | wxPyEndAllowThreads(__tstate); | |
14039 | if (PyErr_Occurred()) SWIG_fail; | |
14040 | } | |
14041 | Py_INCREF(Py_None); resultobj = Py_None; | |
14042 | return resultobj; | |
14043 | fail: | |
14044 | return NULL; | |
14045 | } | |
14046 | ||
14047 | ||
14048 | static PyObject * FindReplaceDialog_swigregister(PyObject *self, PyObject *args) { | |
14049 | PyObject *obj; | |
14050 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14051 | SWIG_TypeClientData(SWIGTYPE_p_wxFindReplaceDialog, obj); | |
14052 | Py_INCREF(obj); | |
14053 | return Py_BuildValue((char *)""); | |
14054 | } | |
14055 | static PyObject *_wrap_new_MDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14056 | PyObject *resultobj; | |
14057 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 14058 | int arg2 ; |
d14a1e28 RD |
14059 | wxString *arg3 = 0 ; |
14060 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14061 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14062 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14063 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14064 | long arg6 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14065 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14066 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14067 | wxMDIParentFrame *result; | |
e811c8ce | 14068 | bool temp3 = False ; |
d14a1e28 RD |
14069 | wxPoint temp4 ; |
14070 | wxSize temp5 ; | |
e811c8ce | 14071 | bool temp7 = False ; |
d14a1e28 | 14072 | PyObject * obj0 = 0 ; |
994141e6 | 14073 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14074 | PyObject * obj2 = 0 ; |
14075 | PyObject * obj3 = 0 ; | |
14076 | PyObject * obj4 = 0 ; | |
994141e6 | 14077 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14078 | PyObject * obj6 = 0 ; |
14079 | char *kwnames[] = { | |
14080 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14081 | }; | |
14082 | ||
994141e6 | 14083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIParentFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 14084 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14085 | { |
14086 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
14087 | if (PyErr_Occurred()) SWIG_fail; | |
14088 | } | |
d14a1e28 RD |
14089 | { |
14090 | arg3 = wxString_in_helper(obj2); | |
14091 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14092 | temp3 = True; |
d14a1e28 RD |
14093 | } |
14094 | if (obj3) { | |
14095 | { | |
14096 | arg4 = &temp4; | |
14097 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14098 | } | |
14099 | } | |
14100 | if (obj4) { | |
14101 | { | |
14102 | arg5 = &temp5; | |
14103 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14104 | } | |
14105 | } | |
994141e6 RD |
14106 | if (obj5) { |
14107 | { | |
14108 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | } | |
14111 | } | |
d14a1e28 RD |
14112 | if (obj6) { |
14113 | { | |
14114 | arg7 = wxString_in_helper(obj6); | |
14115 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14116 | temp7 = True; |
d14a1e28 RD |
14117 | } |
14118 | } | |
14119 | { | |
14120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14121 | result = (wxMDIParentFrame *)new wxMDIParentFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14122 | ||
14123 | wxPyEndAllowThreads(__tstate); | |
14124 | if (PyErr_Occurred()) SWIG_fail; | |
14125 | } | |
14126 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMDIParentFrame, 1); | |
14127 | { | |
14128 | if (temp3) | |
14129 | delete arg3; | |
14130 | } | |
14131 | { | |
14132 | if (temp7) | |
14133 | delete arg7; | |
14134 | } | |
14135 | return resultobj; | |
14136 | fail: | |
14137 | { | |
14138 | if (temp3) | |
14139 | delete arg3; | |
14140 | } | |
14141 | { | |
14142 | if (temp7) | |
14143 | delete arg7; | |
14144 | } | |
14145 | return NULL; | |
14146 | } | |
14147 | ||
14148 | ||
14149 | static PyObject *_wrap_new_PreMDIParentFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14150 | PyObject *resultobj; | |
14151 | wxMDIParentFrame *result; | |
14152 | char *kwnames[] = { | |
14153 | NULL | |
14154 | }; | |
14155 | ||
14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIParentFrame",kwnames)) goto fail; | |
14157 | { | |
14158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14159 | result = (wxMDIParentFrame *)new wxMDIParentFrame(); | |
14160 | ||
14161 | wxPyEndAllowThreads(__tstate); | |
14162 | if (PyErr_Occurred()) SWIG_fail; | |
14163 | } | |
14164 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMDIParentFrame, 1); | |
14165 | return resultobj; | |
14166 | fail: | |
14167 | return NULL; | |
14168 | } | |
14169 | ||
14170 | ||
14171 | static PyObject *_wrap_MDIParentFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14172 | PyObject *resultobj; | |
14173 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14174 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 14175 | int arg3 ; |
d14a1e28 RD |
14176 | wxString *arg4 = 0 ; |
14177 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14178 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14179 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14180 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14181 | long arg7 = (long) wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL ; | |
14182 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14183 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14184 | bool result; | |
e811c8ce | 14185 | bool temp4 = False ; |
d14a1e28 RD |
14186 | wxPoint temp5 ; |
14187 | wxSize temp6 ; | |
e811c8ce | 14188 | bool temp8 = False ; |
d14a1e28 RD |
14189 | PyObject * obj0 = 0 ; |
14190 | PyObject * obj1 = 0 ; | |
994141e6 | 14191 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14192 | PyObject * obj3 = 0 ; |
14193 | PyObject * obj4 = 0 ; | |
14194 | PyObject * obj5 = 0 ; | |
994141e6 | 14195 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14196 | PyObject * obj7 = 0 ; |
14197 | char *kwnames[] = { | |
14198 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14199 | }; | |
14200 | ||
994141e6 | 14201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIParentFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
14202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14203 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
14204 | { |
14205 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
14206 | if (PyErr_Occurred()) SWIG_fail; | |
14207 | } | |
d14a1e28 RD |
14208 | { |
14209 | arg4 = wxString_in_helper(obj3); | |
14210 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14211 | temp4 = True; |
d14a1e28 RD |
14212 | } |
14213 | if (obj4) { | |
14214 | { | |
14215 | arg5 = &temp5; | |
14216 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14217 | } | |
14218 | } | |
14219 | if (obj5) { | |
14220 | { | |
14221 | arg6 = &temp6; | |
14222 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14223 | } | |
14224 | } | |
994141e6 RD |
14225 | if (obj6) { |
14226 | { | |
14227 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
14228 | if (PyErr_Occurred()) SWIG_fail; | |
14229 | } | |
14230 | } | |
d14a1e28 RD |
14231 | if (obj7) { |
14232 | { | |
14233 | arg8 = wxString_in_helper(obj7); | |
14234 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 14235 | temp8 = True; |
d14a1e28 RD |
14236 | } |
14237 | } | |
14238 | { | |
14239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14240 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14241 | ||
14242 | wxPyEndAllowThreads(__tstate); | |
14243 | if (PyErr_Occurred()) SWIG_fail; | |
14244 | } | |
4d5c3d91 | 14245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14246 | { |
14247 | if (temp4) | |
14248 | delete arg4; | |
14249 | } | |
14250 | { | |
14251 | if (temp8) | |
14252 | delete arg8; | |
14253 | } | |
14254 | return resultobj; | |
14255 | fail: | |
14256 | { | |
14257 | if (temp4) | |
14258 | delete arg4; | |
14259 | } | |
14260 | { | |
14261 | if (temp8) | |
14262 | delete arg8; | |
14263 | } | |
14264 | return NULL; | |
14265 | } | |
14266 | ||
14267 | ||
14268 | static PyObject *_wrap_MDIParentFrame_ActivateNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14269 | PyObject *resultobj; | |
14270 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14271 | PyObject * obj0 = 0 ; | |
14272 | char *kwnames[] = { | |
14273 | (char *) "self", NULL | |
14274 | }; | |
14275 | ||
14276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivateNext",kwnames,&obj0)) goto fail; | |
14277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14278 | { | |
14279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14280 | (arg1)->ActivateNext(); | |
14281 | ||
14282 | wxPyEndAllowThreads(__tstate); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | } | |
14285 | Py_INCREF(Py_None); resultobj = Py_None; | |
14286 | return resultobj; | |
14287 | fail: | |
14288 | return NULL; | |
14289 | } | |
14290 | ||
14291 | ||
14292 | static PyObject *_wrap_MDIParentFrame_ActivatePrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14293 | PyObject *resultobj; | |
14294 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14295 | PyObject * obj0 = 0 ; | |
14296 | char *kwnames[] = { | |
14297 | (char *) "self", NULL | |
14298 | }; | |
14299 | ||
14300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ActivatePrevious",kwnames,&obj0)) goto fail; | |
14301 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14302 | { | |
14303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14304 | (arg1)->ActivatePrevious(); | |
14305 | ||
14306 | wxPyEndAllowThreads(__tstate); | |
14307 | if (PyErr_Occurred()) SWIG_fail; | |
14308 | } | |
14309 | Py_INCREF(Py_None); resultobj = Py_None; | |
14310 | return resultobj; | |
14311 | fail: | |
14312 | return NULL; | |
14313 | } | |
14314 | ||
14315 | ||
14316 | static PyObject *_wrap_MDIParentFrame_ArrangeIcons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14317 | PyObject *resultobj; | |
14318 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14319 | PyObject * obj0 = 0 ; | |
14320 | char *kwnames[] = { | |
14321 | (char *) "self", NULL | |
14322 | }; | |
14323 | ||
14324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_ArrangeIcons",kwnames,&obj0)) goto fail; | |
14325 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14326 | { | |
14327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14328 | (arg1)->ArrangeIcons(); | |
14329 | ||
14330 | wxPyEndAllowThreads(__tstate); | |
14331 | if (PyErr_Occurred()) SWIG_fail; | |
14332 | } | |
14333 | Py_INCREF(Py_None); resultobj = Py_None; | |
14334 | return resultobj; | |
14335 | fail: | |
14336 | return NULL; | |
14337 | } | |
14338 | ||
14339 | ||
14340 | static PyObject *_wrap_MDIParentFrame_Cascade(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14341 | PyObject *resultobj; | |
14342 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14343 | PyObject * obj0 = 0 ; | |
14344 | char *kwnames[] = { | |
14345 | (char *) "self", NULL | |
14346 | }; | |
14347 | ||
14348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Cascade",kwnames,&obj0)) goto fail; | |
14349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14350 | { | |
14351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14352 | (arg1)->Cascade(); | |
14353 | ||
14354 | wxPyEndAllowThreads(__tstate); | |
14355 | if (PyErr_Occurred()) SWIG_fail; | |
14356 | } | |
14357 | Py_INCREF(Py_None); resultobj = Py_None; | |
14358 | return resultobj; | |
14359 | fail: | |
14360 | return NULL; | |
14361 | } | |
14362 | ||
14363 | ||
14364 | static PyObject *_wrap_MDIParentFrame_GetActiveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14365 | PyObject *resultobj; | |
14366 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14367 | wxMDIChildFrame *result; | |
14368 | PyObject * obj0 = 0 ; | |
14369 | char *kwnames[] = { | |
14370 | (char *) "self", NULL | |
14371 | }; | |
14372 | ||
14373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetActiveChild",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 | result = (wxMDIChildFrame *)(arg1)->GetActiveChild(); | |
14378 | ||
14379 | wxPyEndAllowThreads(__tstate); | |
14380 | if (PyErr_Occurred()) SWIG_fail; | |
14381 | } | |
14382 | { | |
14383 | resultobj = wxPyMake_wxObject(result); | |
14384 | } | |
14385 | return resultobj; | |
14386 | fail: | |
14387 | return NULL; | |
14388 | } | |
14389 | ||
14390 | ||
14391 | static PyObject *_wrap_MDIParentFrame_GetClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14392 | PyObject *resultobj; | |
14393 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14394 | wxMDIClientWindow *result; | |
14395 | PyObject * obj0 = 0 ; | |
14396 | char *kwnames[] = { | |
14397 | (char *) "self", NULL | |
14398 | }; | |
14399 | ||
14400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetClientWindow",kwnames,&obj0)) goto fail; | |
14401 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14402 | { | |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | result = (wxMDIClientWindow *)(arg1)->GetClientWindow(); | |
14405 | ||
14406 | wxPyEndAllowThreads(__tstate); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | } | |
14409 | { | |
14410 | resultobj = wxPyMake_wxObject(result); | |
14411 | } | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_MDIParentFrame_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14421 | wxWindow *result; | |
14422 | PyObject * obj0 = 0 ; | |
14423 | char *kwnames[] = { | |
14424 | (char *) "self", NULL | |
14425 | }; | |
14426 | ||
14427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_GetToolBar",kwnames,&obj0)) goto fail; | |
14428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14429 | { | |
14430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14431 | result = (wxWindow *)(arg1)->GetToolBar(); | |
14432 | ||
14433 | wxPyEndAllowThreads(__tstate); | |
14434 | if (PyErr_Occurred()) SWIG_fail; | |
14435 | } | |
14436 | { | |
14437 | resultobj = wxPyMake_wxObject(result); | |
14438 | } | |
14439 | return resultobj; | |
14440 | fail: | |
14441 | return NULL; | |
14442 | } | |
14443 | ||
14444 | ||
14445 | static PyObject *_wrap_MDIParentFrame_Tile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14446 | PyObject *resultobj; | |
14447 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14448 | PyObject * obj0 = 0 ; | |
14449 | char *kwnames[] = { | |
14450 | (char *) "self", NULL | |
14451 | }; | |
14452 | ||
14453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIParentFrame_Tile",kwnames,&obj0)) goto fail; | |
14454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14455 | { | |
14456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14457 | (arg1)->Tile(); | |
14458 | ||
14459 | wxPyEndAllowThreads(__tstate); | |
14460 | if (PyErr_Occurred()) SWIG_fail; | |
14461 | } | |
14462 | Py_INCREF(Py_None); resultobj = Py_None; | |
14463 | return resultobj; | |
14464 | fail: | |
14465 | return NULL; | |
14466 | } | |
14467 | ||
14468 | ||
14469 | static PyObject * MDIParentFrame_swigregister(PyObject *self, PyObject *args) { | |
14470 | PyObject *obj; | |
14471 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14472 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIParentFrame, obj); | |
14473 | Py_INCREF(obj); | |
14474 | return Py_BuildValue((char *)""); | |
14475 | } | |
14476 | static PyObject *_wrap_new_MDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14477 | PyObject *resultobj; | |
14478 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
e811c8ce | 14479 | int arg2 ; |
d14a1e28 RD |
14480 | wxString *arg3 = 0 ; |
14481 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14482 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14483 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14484 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14485 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
14486 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
14487 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14488 | wxMDIChildFrame *result; | |
e811c8ce | 14489 | bool temp3 = False ; |
d14a1e28 RD |
14490 | wxPoint temp4 ; |
14491 | wxSize temp5 ; | |
e811c8ce | 14492 | bool temp7 = False ; |
d14a1e28 | 14493 | PyObject * obj0 = 0 ; |
994141e6 | 14494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14495 | PyObject * obj2 = 0 ; |
14496 | PyObject * obj3 = 0 ; | |
14497 | PyObject * obj4 = 0 ; | |
994141e6 | 14498 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14499 | PyObject * obj6 = 0 ; |
14500 | char *kwnames[] = { | |
14501 | (char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14502 | }; | |
14503 | ||
994141e6 | 14504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_MDIChildFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 14505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14506 | { |
14507 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
14508 | if (PyErr_Occurred()) SWIG_fail; | |
14509 | } | |
d14a1e28 RD |
14510 | { |
14511 | arg3 = wxString_in_helper(obj2); | |
14512 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14513 | temp3 = True; |
d14a1e28 RD |
14514 | } |
14515 | if (obj3) { | |
14516 | { | |
14517 | arg4 = &temp4; | |
14518 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14519 | } | |
14520 | } | |
14521 | if (obj4) { | |
14522 | { | |
14523 | arg5 = &temp5; | |
14524 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14525 | } | |
14526 | } | |
994141e6 RD |
14527 | if (obj5) { |
14528 | { | |
14529 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
14530 | if (PyErr_Occurred()) SWIG_fail; | |
14531 | } | |
14532 | } | |
d14a1e28 RD |
14533 | if (obj6) { |
14534 | { | |
14535 | arg7 = wxString_in_helper(obj6); | |
14536 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14537 | temp7 = True; |
d14a1e28 RD |
14538 | } |
14539 | } | |
14540 | { | |
14541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14542 | result = (wxMDIChildFrame *)new wxMDIChildFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14543 | ||
14544 | wxPyEndAllowThreads(__tstate); | |
14545 | if (PyErr_Occurred()) SWIG_fail; | |
14546 | } | |
14547 | { | |
14548 | resultobj = wxPyMake_wxObject(result); | |
14549 | } | |
14550 | { | |
14551 | if (temp3) | |
14552 | delete arg3; | |
14553 | } | |
14554 | { | |
14555 | if (temp7) | |
14556 | delete arg7; | |
14557 | } | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | { | |
14561 | if (temp3) | |
14562 | delete arg3; | |
14563 | } | |
14564 | { | |
14565 | if (temp7) | |
14566 | delete arg7; | |
14567 | } | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
14572 | static PyObject *_wrap_new_PreMDIChildFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14573 | PyObject *resultobj; | |
14574 | wxMDIChildFrame *result; | |
14575 | char *kwnames[] = { | |
14576 | NULL | |
14577 | }; | |
14578 | ||
14579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIChildFrame",kwnames)) goto fail; | |
14580 | { | |
14581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14582 | result = (wxMDIChildFrame *)new wxMDIChildFrame(); | |
14583 | ||
14584 | wxPyEndAllowThreads(__tstate); | |
14585 | if (PyErr_Occurred()) SWIG_fail; | |
14586 | } | |
14587 | { | |
14588 | resultobj = wxPyMake_wxObject(result); | |
14589 | } | |
14590 | return resultobj; | |
14591 | fail: | |
14592 | return NULL; | |
14593 | } | |
14594 | ||
14595 | ||
14596 | static PyObject *_wrap_MDIChildFrame_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14597 | PyObject *resultobj; | |
14598 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14599 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
e811c8ce | 14600 | int arg3 ; |
d14a1e28 RD |
14601 | wxString *arg4 = 0 ; |
14602 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
14603 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
14604 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
14605 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
14606 | long arg7 = (long) wxDEFAULT_FRAME_STYLE ; | |
14607 | wxString const &arg8_defvalue = wxPyFrameNameStr ; | |
14608 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14609 | bool result; | |
e811c8ce | 14610 | bool temp4 = False ; |
d14a1e28 RD |
14611 | wxPoint temp5 ; |
14612 | wxSize temp6 ; | |
e811c8ce | 14613 | bool temp8 = False ; |
d14a1e28 RD |
14614 | PyObject * obj0 = 0 ; |
14615 | PyObject * obj1 = 0 ; | |
994141e6 | 14616 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14617 | PyObject * obj3 = 0 ; |
14618 | PyObject * obj4 = 0 ; | |
14619 | PyObject * obj5 = 0 ; | |
994141e6 | 14620 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
14621 | PyObject * obj7 = 0 ; |
14622 | char *kwnames[] = { | |
14623 | (char *) "self",(char *) "parent",(char *) "id",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14624 | }; | |
14625 | ||
994141e6 | 14626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:MDIChildFrame_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d14a1e28 RD |
14627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14628 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
14629 | { |
14630 | arg3 = (int const) SWIG_PyObj_AsInt(obj2); | |
14631 | if (PyErr_Occurred()) SWIG_fail; | |
14632 | } | |
d14a1e28 RD |
14633 | { |
14634 | arg4 = wxString_in_helper(obj3); | |
14635 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14636 | temp4 = True; |
d14a1e28 RD |
14637 | } |
14638 | if (obj4) { | |
14639 | { | |
14640 | arg5 = &temp5; | |
14641 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
14642 | } | |
14643 | } | |
14644 | if (obj5) { | |
14645 | { | |
14646 | arg6 = &temp6; | |
14647 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
14648 | } | |
14649 | } | |
994141e6 RD |
14650 | if (obj6) { |
14651 | { | |
14652 | arg7 = (long) SWIG_PyObj_AsLong(obj6); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
14655 | } | |
d14a1e28 RD |
14656 | if (obj7) { |
14657 | { | |
14658 | arg8 = wxString_in_helper(obj7); | |
14659 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 14660 | temp8 = True; |
d14a1e28 RD |
14661 | } |
14662 | } | |
14663 | { | |
14664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14665 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
14666 | ||
14667 | wxPyEndAllowThreads(__tstate); | |
14668 | if (PyErr_Occurred()) SWIG_fail; | |
14669 | } | |
4d5c3d91 | 14670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14671 | { |
14672 | if (temp4) | |
14673 | delete arg4; | |
14674 | } | |
14675 | { | |
14676 | if (temp8) | |
14677 | delete arg8; | |
14678 | } | |
14679 | return resultobj; | |
14680 | fail: | |
14681 | { | |
14682 | if (temp4) | |
14683 | delete arg4; | |
14684 | } | |
14685 | { | |
14686 | if (temp8) | |
14687 | delete arg8; | |
14688 | } | |
14689 | return NULL; | |
14690 | } | |
14691 | ||
14692 | ||
14693 | static PyObject *_wrap_MDIChildFrame_Activate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14694 | PyObject *resultobj; | |
14695 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14696 | PyObject * obj0 = 0 ; | |
14697 | char *kwnames[] = { | |
14698 | (char *) "self", NULL | |
14699 | }; | |
14700 | ||
14701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Activate",kwnames,&obj0)) goto fail; | |
14702 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14703 | { | |
14704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14705 | (arg1)->Activate(); | |
14706 | ||
14707 | wxPyEndAllowThreads(__tstate); | |
14708 | if (PyErr_Occurred()) SWIG_fail; | |
14709 | } | |
14710 | Py_INCREF(Py_None); resultobj = Py_None; | |
14711 | return resultobj; | |
14712 | fail: | |
14713 | return NULL; | |
14714 | } | |
14715 | ||
14716 | ||
14717 | static PyObject *_wrap_MDIChildFrame_Maximize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14718 | PyObject *resultobj; | |
14719 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14720 | bool arg2 ; | |
14721 | PyObject * obj0 = 0 ; | |
14722 | PyObject * obj1 = 0 ; | |
14723 | char *kwnames[] = { | |
14724 | (char *) "self",(char *) "maximize", NULL | |
14725 | }; | |
14726 | ||
14727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MDIChildFrame_Maximize",kwnames,&obj0,&obj1)) goto fail; | |
14728 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 14729 | { |
994141e6 | 14730 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
14731 | if (PyErr_Occurred()) SWIG_fail; |
14732 | } | |
d14a1e28 RD |
14733 | { |
14734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14735 | (arg1)->Maximize(arg2); | |
14736 | ||
14737 | wxPyEndAllowThreads(__tstate); | |
14738 | if (PyErr_Occurred()) SWIG_fail; | |
14739 | } | |
14740 | Py_INCREF(Py_None); resultobj = Py_None; | |
14741 | return resultobj; | |
14742 | fail: | |
14743 | return NULL; | |
14744 | } | |
14745 | ||
14746 | ||
14747 | static PyObject *_wrap_MDIChildFrame_Restore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14748 | PyObject *resultobj; | |
14749 | wxMDIChildFrame *arg1 = (wxMDIChildFrame *) 0 ; | |
14750 | PyObject * obj0 = 0 ; | |
14751 | char *kwnames[] = { | |
14752 | (char *) "self", NULL | |
14753 | }; | |
14754 | ||
14755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MDIChildFrame_Restore",kwnames,&obj0)) goto fail; | |
14756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIChildFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14757 | { | |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14759 | (arg1)->Restore(); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
14762 | if (PyErr_Occurred()) SWIG_fail; | |
14763 | } | |
14764 | Py_INCREF(Py_None); resultobj = Py_None; | |
14765 | return resultobj; | |
14766 | fail: | |
14767 | return NULL; | |
14768 | } | |
14769 | ||
14770 | ||
14771 | static PyObject * MDIChildFrame_swigregister(PyObject *self, PyObject *args) { | |
14772 | PyObject *obj; | |
14773 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14774 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIChildFrame, obj); | |
14775 | Py_INCREF(obj); | |
14776 | return Py_BuildValue((char *)""); | |
14777 | } | |
14778 | static PyObject *_wrap_new_MDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14779 | PyObject *resultobj; | |
14780 | wxMDIParentFrame *arg1 = (wxMDIParentFrame *) 0 ; | |
14781 | long arg2 = (long) 0 ; | |
14782 | wxMDIClientWindow *result; | |
14783 | PyObject * obj0 = 0 ; | |
994141e6 | 14784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14785 | char *kwnames[] = { |
14786 | (char *) "parent",(char *) "style", NULL | |
14787 | }; | |
14788 | ||
994141e6 | 14789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_MDIClientWindow",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 14790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14791 | if (obj1) { |
14792 | { | |
14793 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
14794 | if (PyErr_Occurred()) SWIG_fail; | |
14795 | } | |
14796 | } | |
d14a1e28 RD |
14797 | { |
14798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14799 | result = (wxMDIClientWindow *)new wxMDIClientWindow(arg1,arg2); | |
14800 | ||
14801 | wxPyEndAllowThreads(__tstate); | |
14802 | if (PyErr_Occurred()) SWIG_fail; | |
14803 | } | |
14804 | { | |
14805 | resultobj = wxPyMake_wxObject(result); | |
14806 | } | |
14807 | return resultobj; | |
14808 | fail: | |
14809 | return NULL; | |
14810 | } | |
14811 | ||
14812 | ||
14813 | static PyObject *_wrap_new_PreMDIClientWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14814 | PyObject *resultobj; | |
14815 | wxMDIClientWindow *result; | |
14816 | char *kwnames[] = { | |
14817 | NULL | |
14818 | }; | |
14819 | ||
14820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreMDIClientWindow",kwnames)) goto fail; | |
14821 | { | |
14822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14823 | result = (wxMDIClientWindow *)new wxMDIClientWindow(); | |
14824 | ||
14825 | wxPyEndAllowThreads(__tstate); | |
14826 | if (PyErr_Occurred()) SWIG_fail; | |
14827 | } | |
14828 | { | |
14829 | resultobj = wxPyMake_wxObject(result); | |
14830 | } | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject *_wrap_MDIClientWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj; | |
14839 | wxMDIClientWindow *arg1 = (wxMDIClientWindow *) 0 ; | |
14840 | wxMDIParentFrame *arg2 = (wxMDIParentFrame *) 0 ; | |
14841 | long arg3 = (long) 0 ; | |
14842 | bool result; | |
14843 | PyObject * obj0 = 0 ; | |
14844 | PyObject * obj1 = 0 ; | |
994141e6 | 14845 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14846 | char *kwnames[] = { |
14847 | (char *) "self",(char *) "parent",(char *) "style", NULL | |
14848 | }; | |
14849 | ||
994141e6 | 14850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MDIClientWindow_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
14851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMDIClientWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14852 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMDIParentFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
14853 | if (obj2) { |
14854 | { | |
14855 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
14856 | if (PyErr_Occurred()) SWIG_fail; | |
14857 | } | |
14858 | } | |
d14a1e28 RD |
14859 | { |
14860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14861 | result = (bool)(arg1)->Create(arg2,arg3); | |
14862 | ||
14863 | wxPyEndAllowThreads(__tstate); | |
14864 | if (PyErr_Occurred()) SWIG_fail; | |
14865 | } | |
4d5c3d91 | 14866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
14867 | return resultobj; |
14868 | fail: | |
14869 | return NULL; | |
14870 | } | |
14871 | ||
14872 | ||
14873 | static PyObject * MDIClientWindow_swigregister(PyObject *self, PyObject *args) { | |
14874 | PyObject *obj; | |
14875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14876 | SWIG_TypeClientData(SWIGTYPE_p_wxMDIClientWindow, obj); | |
14877 | Py_INCREF(obj); | |
14878 | return Py_BuildValue((char *)""); | |
14879 | } | |
14880 | static PyObject *_wrap_new_PyWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14881 | PyObject *resultobj; | |
14882 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 14883 | int arg2 ; |
d14a1e28 RD |
14884 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14885 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14886 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14887 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14888 | long arg5 = (long) 0 ; | |
14889 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
14890 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14891 | wxPyWindow *result; | |
14892 | wxPoint temp3 ; | |
14893 | wxSize temp4 ; | |
e811c8ce | 14894 | bool temp6 = False ; |
d14a1e28 | 14895 | PyObject * obj0 = 0 ; |
994141e6 | 14896 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14897 | PyObject * obj2 = 0 ; |
14898 | PyObject * obj3 = 0 ; | |
994141e6 | 14899 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14900 | PyObject * obj5 = 0 ; |
14901 | char *kwnames[] = { | |
14902 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14903 | }; | |
14904 | ||
994141e6 | 14905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 14906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
14907 | { |
14908 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
14909 | if (PyErr_Occurred()) SWIG_fail; | |
14910 | } | |
d14a1e28 RD |
14911 | if (obj2) { |
14912 | { | |
14913 | arg3 = &temp3; | |
14914 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14915 | } | |
14916 | } | |
14917 | if (obj3) { | |
14918 | { | |
14919 | arg4 = &temp4; | |
14920 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14921 | } | |
14922 | } | |
994141e6 RD |
14923 | if (obj4) { |
14924 | { | |
14925 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
14928 | } | |
d14a1e28 RD |
14929 | if (obj5) { |
14930 | { | |
14931 | arg6 = wxString_in_helper(obj5); | |
14932 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 14933 | temp6 = True; |
d14a1e28 RD |
14934 | } |
14935 | } | |
14936 | { | |
14937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14938 | result = (wxPyWindow *)new wxPyWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14939 | ||
14940 | wxPyEndAllowThreads(__tstate); | |
14941 | if (PyErr_Occurred()) SWIG_fail; | |
14942 | } | |
14943 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyWindow, 1); | |
14944 | { | |
14945 | if (temp6) | |
14946 | delete arg6; | |
14947 | } | |
14948 | return resultobj; | |
14949 | fail: | |
14950 | { | |
14951 | if (temp6) | |
14952 | delete arg6; | |
14953 | } | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
14958 | static PyObject *_wrap_PyWindow__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14959 | PyObject *resultobj; | |
14960 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14961 | PyObject *arg2 = (PyObject *) 0 ; | |
14962 | PyObject *arg3 = (PyObject *) 0 ; | |
14963 | PyObject * obj0 = 0 ; | |
14964 | PyObject * obj1 = 0 ; | |
14965 | PyObject * obj2 = 0 ; | |
14966 | char *kwnames[] = { | |
14967 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
14968 | }; | |
14969 | ||
14970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14971 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14972 | arg2 = obj1; | |
14973 | arg3 = obj2; | |
14974 | { | |
14975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14976 | (arg1)->_setCallbackInfo(arg2,arg3); | |
14977 | ||
14978 | wxPyEndAllowThreads(__tstate); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
14981 | Py_INCREF(Py_None); resultobj = Py_None; | |
14982 | return resultobj; | |
14983 | fail: | |
14984 | return NULL; | |
14985 | } | |
14986 | ||
14987 | ||
14988 | static PyObject *_wrap_PyWindow_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14989 | PyObject *resultobj; | |
14990 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
14991 | int arg2 ; | |
14992 | int arg3 ; | |
14993 | int arg4 ; | |
14994 | int arg5 ; | |
14995 | PyObject * obj0 = 0 ; | |
994141e6 RD |
14996 | PyObject * obj1 = 0 ; |
14997 | PyObject * obj2 = 0 ; | |
14998 | PyObject * obj3 = 0 ; | |
14999 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
15000 | char *kwnames[] = { |
15001 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15002 | }; | |
15003 | ||
994141e6 | 15004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyWindow_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 15005 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15006 | { |
15007 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15008 | if (PyErr_Occurred()) SWIG_fail; | |
15009 | } | |
15010 | { | |
15011 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
15014 | { | |
15015 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15016 | if (PyErr_Occurred()) SWIG_fail; | |
15017 | } | |
15018 | { | |
15019 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15020 | if (PyErr_Occurred()) SWIG_fail; | |
15021 | } | |
d14a1e28 RD |
15022 | { |
15023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15024 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15025 | ||
15026 | wxPyEndAllowThreads(__tstate); | |
15027 | if (PyErr_Occurred()) SWIG_fail; | |
15028 | } | |
15029 | Py_INCREF(Py_None); resultobj = Py_None; | |
15030 | return resultobj; | |
15031 | fail: | |
15032 | return NULL; | |
15033 | } | |
15034 | ||
15035 | ||
15036 | static PyObject *_wrap_PyWindow_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15037 | PyObject *resultobj; | |
15038 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15039 | int arg2 ; | |
15040 | int arg3 ; | |
15041 | int arg4 ; | |
15042 | int arg5 ; | |
15043 | int arg6 = (int) wxSIZE_AUTO ; | |
15044 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15045 | PyObject * obj1 = 0 ; |
15046 | PyObject * obj2 = 0 ; | |
15047 | PyObject * obj3 = 0 ; | |
15048 | PyObject * obj4 = 0 ; | |
15049 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15050 | char *kwnames[] = { |
15051 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15052 | }; | |
15053 | ||
994141e6 | 15054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyWindow_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 15055 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15056 | { |
15057 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15058 | if (PyErr_Occurred()) SWIG_fail; | |
15059 | } | |
15060 | { | |
15061 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15062 | if (PyErr_Occurred()) SWIG_fail; | |
15063 | } | |
15064 | { | |
15065 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15066 | if (PyErr_Occurred()) SWIG_fail; | |
15067 | } | |
15068 | { | |
15069 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15070 | if (PyErr_Occurred()) SWIG_fail; | |
15071 | } | |
15072 | if (obj5) { | |
15073 | { | |
15074 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15075 | if (PyErr_Occurred()) SWIG_fail; | |
15076 | } | |
15077 | } | |
d14a1e28 RD |
15078 | { |
15079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15080 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15081 | ||
15082 | wxPyEndAllowThreads(__tstate); | |
15083 | if (PyErr_Occurred()) SWIG_fail; | |
15084 | } | |
15085 | Py_INCREF(Py_None); resultobj = Py_None; | |
15086 | return resultobj; | |
15087 | fail: | |
15088 | return NULL; | |
15089 | } | |
15090 | ||
15091 | ||
15092 | static PyObject *_wrap_PyWindow_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15093 | PyObject *resultobj; | |
15094 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15095 | int arg2 ; | |
15096 | int arg3 ; | |
15097 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15098 | PyObject * obj1 = 0 ; |
15099 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15100 | char *kwnames[] = { |
15101 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15102 | }; | |
15103 | ||
994141e6 | 15104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15106 | { |
15107 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
15110 | { | |
15111 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15112 | if (PyErr_Occurred()) SWIG_fail; | |
15113 | } | |
d14a1e28 RD |
15114 | { |
15115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15116 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15117 | ||
15118 | wxPyEndAllowThreads(__tstate); | |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
15120 | } | |
15121 | Py_INCREF(Py_None); resultobj = Py_None; | |
15122 | return resultobj; | |
15123 | fail: | |
15124 | return NULL; | |
15125 | } | |
15126 | ||
15127 | ||
15128 | static PyObject *_wrap_PyWindow_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15129 | PyObject *resultobj; | |
15130 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15131 | int arg2 ; | |
15132 | int arg3 ; | |
15133 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15134 | PyObject * obj1 = 0 ; |
15135 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15136 | char *kwnames[] = { |
15137 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15138 | }; | |
15139 | ||
994141e6 | 15140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyWindow_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15141 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15142 | { |
15143 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15144 | if (PyErr_Occurred()) SWIG_fail; | |
15145 | } | |
15146 | { | |
15147 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15148 | if (PyErr_Occurred()) SWIG_fail; | |
15149 | } | |
d14a1e28 RD |
15150 | { |
15151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15152 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15153 | ||
15154 | wxPyEndAllowThreads(__tstate); | |
15155 | if (PyErr_Occurred()) SWIG_fail; | |
15156 | } | |
15157 | Py_INCREF(Py_None); resultobj = Py_None; | |
15158 | return resultobj; | |
15159 | fail: | |
15160 | return NULL; | |
15161 | } | |
15162 | ||
15163 | ||
15164 | static PyObject *_wrap_PyWindow_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15165 | PyObject *resultobj; | |
15166 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15167 | int *arg2 = (int *) 0 ; | |
15168 | int *arg3 = (int *) 0 ; | |
15169 | int temp2 ; | |
15170 | int temp3 ; | |
15171 | PyObject * obj0 = 0 ; | |
15172 | char *kwnames[] = { | |
15173 | (char *) "self", NULL | |
15174 | }; | |
15175 | ||
15176 | arg2 = &temp2; | |
15177 | arg3 = &temp3; | |
15178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15180 | { | |
15181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15182 | ((wxPyWindow const *)arg1)->base_DoGetSize(arg2,arg3); | |
15183 | ||
15184 | wxPyEndAllowThreads(__tstate); | |
15185 | if (PyErr_Occurred()) SWIG_fail; | |
15186 | } | |
15187 | Py_INCREF(Py_None); resultobj = Py_None; | |
15188 | { | |
15189 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15190 | resultobj = t_output_helper(resultobj,o); | |
15191 | } | |
15192 | { | |
15193 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15194 | resultobj = t_output_helper(resultobj,o); | |
15195 | } | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
15202 | static PyObject *_wrap_PyWindow_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15203 | PyObject *resultobj; | |
15204 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15205 | int *arg2 = (int *) 0 ; | |
15206 | int *arg3 = (int *) 0 ; | |
15207 | int temp2 ; | |
15208 | int temp3 ; | |
15209 | PyObject * obj0 = 0 ; | |
15210 | char *kwnames[] = { | |
15211 | (char *) "self", NULL | |
15212 | }; | |
15213 | ||
15214 | arg2 = &temp2; | |
15215 | arg3 = &temp3; | |
15216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15218 | { | |
15219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15220 | ((wxPyWindow const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15221 | ||
15222 | wxPyEndAllowThreads(__tstate); | |
15223 | if (PyErr_Occurred()) SWIG_fail; | |
15224 | } | |
15225 | Py_INCREF(Py_None); resultobj = Py_None; | |
15226 | { | |
15227 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15228 | resultobj = t_output_helper(resultobj,o); | |
15229 | } | |
15230 | { | |
15231 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15232 | resultobj = t_output_helper(resultobj,o); | |
15233 | } | |
15234 | return resultobj; | |
15235 | fail: | |
15236 | return NULL; | |
15237 | } | |
15238 | ||
15239 | ||
15240 | static PyObject *_wrap_PyWindow_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15241 | PyObject *resultobj; | |
15242 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15243 | int *arg2 = (int *) 0 ; | |
15244 | int *arg3 = (int *) 0 ; | |
15245 | int temp2 ; | |
15246 | int temp3 ; | |
15247 | PyObject * obj0 = 0 ; | |
15248 | char *kwnames[] = { | |
15249 | (char *) "self", NULL | |
15250 | }; | |
15251 | ||
15252 | arg2 = &temp2; | |
15253 | arg3 = &temp3; | |
15254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15256 | { | |
15257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15258 | ((wxPyWindow const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15259 | ||
15260 | wxPyEndAllowThreads(__tstate); | |
15261 | if (PyErr_Occurred()) SWIG_fail; | |
15262 | } | |
15263 | Py_INCREF(Py_None); resultobj = Py_None; | |
15264 | { | |
15265 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15266 | resultobj = t_output_helper(resultobj,o); | |
15267 | } | |
15268 | { | |
15269 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15270 | resultobj = t_output_helper(resultobj,o); | |
15271 | } | |
15272 | return resultobj; | |
15273 | fail: | |
15274 | return NULL; | |
15275 | } | |
15276 | ||
15277 | ||
15278 | static PyObject *_wrap_PyWindow_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15279 | PyObject *resultobj; | |
15280 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15281 | wxSize result; | |
15282 | PyObject * obj0 = 0 ; | |
15283 | char *kwnames[] = { | |
15284 | (char *) "self", NULL | |
15285 | }; | |
15286 | ||
15287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15289 | { | |
15290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15291 | result = ((wxPyWindow const *)arg1)->base_DoGetVirtualSize(); | |
15292 | ||
15293 | wxPyEndAllowThreads(__tstate); | |
15294 | if (PyErr_Occurred()) SWIG_fail; | |
15295 | } | |
15296 | { | |
15297 | wxSize * resultptr; | |
15298 | resultptr = new wxSize((wxSize &) result); | |
15299 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15300 | } | |
15301 | return resultobj; | |
15302 | fail: | |
15303 | return NULL; | |
15304 | } | |
15305 | ||
15306 | ||
15307 | static PyObject *_wrap_PyWindow_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15308 | PyObject *resultobj; | |
15309 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15310 | wxSize result; | |
15311 | PyObject * obj0 = 0 ; | |
15312 | char *kwnames[] = { | |
15313 | (char *) "self", NULL | |
15314 | }; | |
15315 | ||
15316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15317 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15318 | { | |
15319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15320 | result = ((wxPyWindow const *)arg1)->base_DoGetBestSize(); | |
15321 | ||
15322 | wxPyEndAllowThreads(__tstate); | |
15323 | if (PyErr_Occurred()) SWIG_fail; | |
15324 | } | |
15325 | { | |
15326 | wxSize * resultptr; | |
15327 | resultptr = new wxSize((wxSize &) result); | |
15328 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15329 | } | |
15330 | return resultobj; | |
15331 | fail: | |
15332 | return NULL; | |
15333 | } | |
15334 | ||
15335 | ||
15336 | static PyObject *_wrap_PyWindow_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15337 | PyObject *resultobj; | |
15338 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15339 | PyObject * obj0 = 0 ; | |
15340 | char *kwnames[] = { | |
15341 | (char *) "self", NULL | |
15342 | }; | |
15343 | ||
15344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_InitDialog",kwnames,&obj0)) goto fail; | |
15345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15346 | { | |
15347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15348 | (arg1)->base_InitDialog(); | |
15349 | ||
15350 | wxPyEndAllowThreads(__tstate); | |
15351 | if (PyErr_Occurred()) SWIG_fail; | |
15352 | } | |
15353 | Py_INCREF(Py_None); resultobj = Py_None; | |
15354 | return resultobj; | |
15355 | fail: | |
15356 | return NULL; | |
15357 | } | |
15358 | ||
15359 | ||
15360 | static PyObject *_wrap_PyWindow_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15361 | PyObject *resultobj; | |
15362 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15363 | bool result; | |
15364 | PyObject * obj0 = 0 ; | |
15365 | char *kwnames[] = { | |
15366 | (char *) "self", NULL | |
15367 | }; | |
15368 | ||
15369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15371 | { | |
15372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15373 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
15374 | ||
15375 | wxPyEndAllowThreads(__tstate); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
4d5c3d91 | 15378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15379 | return resultobj; |
15380 | fail: | |
15381 | return NULL; | |
15382 | } | |
15383 | ||
15384 | ||
15385 | static PyObject *_wrap_PyWindow_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15386 | PyObject *resultobj; | |
15387 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15388 | bool result; | |
15389 | PyObject * obj0 = 0 ; | |
15390 | char *kwnames[] = { | |
15391 | (char *) "self", NULL | |
15392 | }; | |
15393 | ||
15394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15395 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15396 | { | |
15397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15398 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
15399 | ||
15400 | wxPyEndAllowThreads(__tstate); | |
15401 | if (PyErr_Occurred()) SWIG_fail; | |
15402 | } | |
4d5c3d91 | 15403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15404 | return resultobj; |
15405 | fail: | |
15406 | return NULL; | |
15407 | } | |
15408 | ||
15409 | ||
15410 | static PyObject *_wrap_PyWindow_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15411 | PyObject *resultobj; | |
15412 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15413 | bool result; | |
15414 | PyObject * obj0 = 0 ; | |
15415 | char *kwnames[] = { | |
15416 | (char *) "self", NULL | |
15417 | }; | |
15418 | ||
15419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_Validate",kwnames,&obj0)) goto fail; | |
15420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15421 | { | |
15422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15423 | result = (bool)(arg1)->base_Validate(); | |
15424 | ||
15425 | wxPyEndAllowThreads(__tstate); | |
15426 | if (PyErr_Occurred()) SWIG_fail; | |
15427 | } | |
4d5c3d91 | 15428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15429 | return resultobj; |
15430 | fail: | |
15431 | return NULL; | |
15432 | } | |
15433 | ||
15434 | ||
15435 | static PyObject *_wrap_PyWindow_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15436 | PyObject *resultobj; | |
15437 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15438 | bool result; | |
15439 | PyObject * obj0 = 0 ; | |
15440 | char *kwnames[] = { | |
15441 | (char *) "self", NULL | |
15442 | }; | |
15443 | ||
15444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15446 | { | |
15447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15448 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocus(); | |
15449 | ||
15450 | wxPyEndAllowThreads(__tstate); | |
15451 | if (PyErr_Occurred()) SWIG_fail; | |
15452 | } | |
4d5c3d91 | 15453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15454 | return resultobj; |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
15460 | static PyObject *_wrap_PyWindow_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15461 | PyObject *resultobj; | |
15462 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15463 | bool result; | |
15464 | PyObject * obj0 = 0 ; | |
15465 | char *kwnames[] = { | |
15466 | (char *) "self", NULL | |
15467 | }; | |
15468 | ||
15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15471 | { | |
15472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15473 | result = (bool)((wxPyWindow const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
15474 | ||
15475 | wxPyEndAllowThreads(__tstate); | |
15476 | if (PyErr_Occurred()) SWIG_fail; | |
15477 | } | |
4d5c3d91 | 15478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
15479 | return resultobj; |
15480 | fail: | |
15481 | return NULL; | |
15482 | } | |
15483 | ||
15484 | ||
15485 | static PyObject *_wrap_PyWindow_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15486 | PyObject *resultobj; | |
15487 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15488 | wxSize result; | |
15489 | PyObject * obj0 = 0 ; | |
15490 | char *kwnames[] = { | |
15491 | (char *) "self", NULL | |
15492 | }; | |
15493 | ||
15494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyWindow_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15496 | { | |
15497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15498 | result = ((wxPyWindow const *)arg1)->base_GetMaxSize(); | |
15499 | ||
15500 | wxPyEndAllowThreads(__tstate); | |
15501 | if (PyErr_Occurred()) SWIG_fail; | |
15502 | } | |
15503 | { | |
15504 | wxSize * resultptr; | |
15505 | resultptr = new wxSize((wxSize &) result); | |
15506 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15507 | } | |
15508 | return resultobj; | |
15509 | fail: | |
15510 | return NULL; | |
15511 | } | |
15512 | ||
15513 | ||
15514 | static PyObject *_wrap_PyWindow_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15515 | PyObject *resultobj; | |
15516 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15517 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15518 | PyObject * obj0 = 0 ; | |
15519 | PyObject * obj1 = 0 ; | |
15520 | char *kwnames[] = { | |
15521 | (char *) "self",(char *) "child", NULL | |
15522 | }; | |
15523 | ||
15524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15526 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15527 | { | |
15528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15529 | (arg1)->base_AddChild(arg2); | |
15530 | ||
15531 | wxPyEndAllowThreads(__tstate); | |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
15533 | } | |
15534 | Py_INCREF(Py_None); resultobj = Py_None; | |
15535 | return resultobj; | |
15536 | fail: | |
15537 | return NULL; | |
15538 | } | |
15539 | ||
15540 | ||
15541 | static PyObject *_wrap_PyWindow_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15542 | PyObject *resultobj; | |
15543 | wxPyWindow *arg1 = (wxPyWindow *) 0 ; | |
15544 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15545 | PyObject * obj0 = 0 ; | |
15546 | PyObject * obj1 = 0 ; | |
15547 | char *kwnames[] = { | |
15548 | (char *) "self",(char *) "child", NULL | |
15549 | }; | |
15550 | ||
15551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyWindow_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15553 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15554 | { | |
15555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15556 | (arg1)->base_RemoveChild(arg2); | |
15557 | ||
15558 | wxPyEndAllowThreads(__tstate); | |
15559 | if (PyErr_Occurred()) SWIG_fail; | |
15560 | } | |
15561 | Py_INCREF(Py_None); resultobj = Py_None; | |
15562 | return resultobj; | |
15563 | fail: | |
15564 | return NULL; | |
15565 | } | |
15566 | ||
15567 | ||
15568 | static PyObject * PyWindow_swigregister(PyObject *self, PyObject *args) { | |
15569 | PyObject *obj; | |
15570 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15571 | SWIG_TypeClientData(SWIGTYPE_p_wxPyWindow, obj); | |
15572 | Py_INCREF(obj); | |
15573 | return Py_BuildValue((char *)""); | |
15574 | } | |
15575 | static PyObject *_wrap_new_PyPanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15576 | PyObject *resultobj; | |
15577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 15578 | int arg2 ; |
d14a1e28 RD |
15579 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15580 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15581 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15582 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15583 | long arg5 = (long) 0 ; | |
15584 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
15585 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15586 | wxPyPanel *result; | |
15587 | wxPoint temp3 ; | |
15588 | wxSize temp4 ; | |
e811c8ce | 15589 | bool temp6 = False ; |
d14a1e28 | 15590 | PyObject * obj0 = 0 ; |
994141e6 | 15591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15592 | PyObject * obj2 = 0 ; |
15593 | PyObject * obj3 = 0 ; | |
994141e6 | 15594 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15595 | PyObject * obj5 = 0 ; |
15596 | char *kwnames[] = { | |
15597 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15598 | }; | |
15599 | ||
994141e6 | 15600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PyPanel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 15601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15602 | { |
15603 | arg2 = (int const) SWIG_PyObj_AsInt(obj1); | |
15604 | if (PyErr_Occurred()) SWIG_fail; | |
15605 | } | |
d14a1e28 RD |
15606 | if (obj2) { |
15607 | { | |
15608 | arg3 = &temp3; | |
15609 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15610 | } | |
15611 | } | |
15612 | if (obj3) { | |
15613 | { | |
15614 | arg4 = &temp4; | |
15615 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15616 | } | |
15617 | } | |
994141e6 RD |
15618 | if (obj4) { |
15619 | { | |
15620 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
15621 | if (PyErr_Occurred()) SWIG_fail; | |
15622 | } | |
15623 | } | |
d14a1e28 RD |
15624 | if (obj5) { |
15625 | { | |
15626 | arg6 = wxString_in_helper(obj5); | |
15627 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15628 | temp6 = True; |
d14a1e28 RD |
15629 | } |
15630 | } | |
15631 | { | |
15632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15633 | result = (wxPyPanel *)new wxPyPanel(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15634 | ||
15635 | wxPyEndAllowThreads(__tstate); | |
15636 | if (PyErr_Occurred()) SWIG_fail; | |
15637 | } | |
15638 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPanel, 1); | |
15639 | { | |
15640 | if (temp6) | |
15641 | delete arg6; | |
15642 | } | |
15643 | return resultobj; | |
15644 | fail: | |
15645 | { | |
15646 | if (temp6) | |
15647 | delete arg6; | |
15648 | } | |
15649 | return NULL; | |
15650 | } | |
15651 | ||
15652 | ||
15653 | static PyObject *_wrap_PyPanel__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15654 | PyObject *resultobj; | |
15655 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15656 | PyObject *arg2 = (PyObject *) 0 ; | |
15657 | PyObject *arg3 = (PyObject *) 0 ; | |
15658 | PyObject * obj0 = 0 ; | |
15659 | PyObject * obj1 = 0 ; | |
15660 | PyObject * obj2 = 0 ; | |
15661 | char *kwnames[] = { | |
15662 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
15663 | }; | |
15664 | ||
15665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15667 | arg2 = obj1; | |
15668 | arg3 = obj2; | |
15669 | { | |
15670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15671 | (arg1)->_setCallbackInfo(arg2,arg3); | |
15672 | ||
15673 | wxPyEndAllowThreads(__tstate); | |
15674 | if (PyErr_Occurred()) SWIG_fail; | |
15675 | } | |
15676 | Py_INCREF(Py_None); resultobj = Py_None; | |
15677 | return resultobj; | |
15678 | fail: | |
15679 | return NULL; | |
15680 | } | |
15681 | ||
15682 | ||
15683 | static PyObject *_wrap_PyPanel_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15684 | PyObject *resultobj; | |
15685 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15686 | int arg2 ; | |
15687 | int arg3 ; | |
15688 | int arg4 ; | |
15689 | int arg5 ; | |
15690 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15691 | PyObject * obj1 = 0 ; |
15692 | PyObject * obj2 = 0 ; | |
15693 | PyObject * obj3 = 0 ; | |
15694 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
15695 | char *kwnames[] = { |
15696 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
15697 | }; | |
15698 | ||
994141e6 | 15699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyPanel_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d14a1e28 | 15700 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15701 | { |
15702 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15703 | if (PyErr_Occurred()) SWIG_fail; | |
15704 | } | |
15705 | { | |
15706 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15707 | if (PyErr_Occurred()) SWIG_fail; | |
15708 | } | |
15709 | { | |
15710 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15711 | if (PyErr_Occurred()) SWIG_fail; | |
15712 | } | |
15713 | { | |
15714 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15715 | if (PyErr_Occurred()) SWIG_fail; | |
15716 | } | |
d14a1e28 RD |
15717 | { |
15718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15719 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
15720 | ||
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | Py_INCREF(Py_None); resultobj = Py_None; | |
15725 | return resultobj; | |
15726 | fail: | |
15727 | return NULL; | |
15728 | } | |
15729 | ||
15730 | ||
15731 | static PyObject *_wrap_PyPanel_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15732 | PyObject *resultobj; | |
15733 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15734 | int arg2 ; | |
15735 | int arg3 ; | |
15736 | int arg4 ; | |
15737 | int arg5 ; | |
15738 | int arg6 = (int) wxSIZE_AUTO ; | |
15739 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15740 | PyObject * obj1 = 0 ; |
15741 | PyObject * obj2 = 0 ; | |
15742 | PyObject * obj3 = 0 ; | |
15743 | PyObject * obj4 = 0 ; | |
15744 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
15745 | char *kwnames[] = { |
15746 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
15747 | }; | |
15748 | ||
994141e6 | 15749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyPanel_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 15750 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15751 | { |
15752 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15753 | if (PyErr_Occurred()) SWIG_fail; | |
15754 | } | |
15755 | { | |
15756 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15757 | if (PyErr_Occurred()) SWIG_fail; | |
15758 | } | |
15759 | { | |
15760 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
15761 | if (PyErr_Occurred()) SWIG_fail; | |
15762 | } | |
15763 | { | |
15764 | arg5 = (int) SWIG_PyObj_AsInt(obj4); | |
15765 | if (PyErr_Occurred()) SWIG_fail; | |
15766 | } | |
15767 | if (obj5) { | |
15768 | { | |
15769 | arg6 = (int) SWIG_PyObj_AsInt(obj5); | |
15770 | if (PyErr_Occurred()) SWIG_fail; | |
15771 | } | |
15772 | } | |
d14a1e28 RD |
15773 | { |
15774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15775 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
15776 | ||
15777 | wxPyEndAllowThreads(__tstate); | |
15778 | if (PyErr_Occurred()) SWIG_fail; | |
15779 | } | |
15780 | Py_INCREF(Py_None); resultobj = Py_None; | |
15781 | return resultobj; | |
15782 | fail: | |
15783 | return NULL; | |
15784 | } | |
15785 | ||
15786 | ||
15787 | static PyObject *_wrap_PyPanel_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15788 | PyObject *resultobj; | |
15789 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15790 | int arg2 ; | |
15791 | int arg3 ; | |
15792 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15793 | PyObject * obj1 = 0 ; |
15794 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15795 | char *kwnames[] = { |
15796 | (char *) "self",(char *) "width",(char *) "height", NULL | |
15797 | }; | |
15798 | ||
994141e6 | 15799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15801 | { |
15802 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15803 | if (PyErr_Occurred()) SWIG_fail; | |
15804 | } | |
15805 | { | |
15806 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15807 | if (PyErr_Occurred()) SWIG_fail; | |
15808 | } | |
d14a1e28 RD |
15809 | { |
15810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15811 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
15812 | ||
15813 | wxPyEndAllowThreads(__tstate); | |
15814 | if (PyErr_Occurred()) SWIG_fail; | |
15815 | } | |
15816 | Py_INCREF(Py_None); resultobj = Py_None; | |
15817 | return resultobj; | |
15818 | fail: | |
15819 | return NULL; | |
15820 | } | |
15821 | ||
15822 | ||
15823 | static PyObject *_wrap_PyPanel_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15824 | PyObject *resultobj; | |
15825 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15826 | int arg2 ; | |
15827 | int arg3 ; | |
15828 | PyObject * obj0 = 0 ; | |
994141e6 RD |
15829 | PyObject * obj1 = 0 ; |
15830 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
15831 | char *kwnames[] = { |
15832 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15833 | }; | |
15834 | ||
994141e6 | 15835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPanel_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 15836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
15837 | { |
15838 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
15839 | if (PyErr_Occurred()) SWIG_fail; | |
15840 | } | |
15841 | { | |
15842 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
15843 | if (PyErr_Occurred()) SWIG_fail; | |
15844 | } | |
d14a1e28 RD |
15845 | { |
15846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15847 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
15848 | ||
15849 | wxPyEndAllowThreads(__tstate); | |
15850 | if (PyErr_Occurred()) SWIG_fail; | |
15851 | } | |
15852 | Py_INCREF(Py_None); resultobj = Py_None; | |
15853 | return resultobj; | |
15854 | fail: | |
15855 | return NULL; | |
15856 | } | |
15857 | ||
15858 | ||
15859 | static PyObject *_wrap_PyPanel_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15860 | PyObject *resultobj; | |
15861 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15862 | int *arg2 = (int *) 0 ; | |
15863 | int *arg3 = (int *) 0 ; | |
15864 | int temp2 ; | |
15865 | int temp3 ; | |
15866 | PyObject * obj0 = 0 ; | |
15867 | char *kwnames[] = { | |
15868 | (char *) "self", NULL | |
15869 | }; | |
15870 | ||
15871 | arg2 = &temp2; | |
15872 | arg3 = &temp3; | |
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15875 | { | |
15876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15877 | ((wxPyPanel const *)arg1)->base_DoGetSize(arg2,arg3); | |
15878 | ||
15879 | wxPyEndAllowThreads(__tstate); | |
15880 | if (PyErr_Occurred()) SWIG_fail; | |
15881 | } | |
15882 | Py_INCREF(Py_None); resultobj = Py_None; | |
15883 | { | |
15884 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15885 | resultobj = t_output_helper(resultobj,o); | |
15886 | } | |
15887 | { | |
15888 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15889 | resultobj = t_output_helper(resultobj,o); | |
15890 | } | |
15891 | return resultobj; | |
15892 | fail: | |
15893 | return NULL; | |
15894 | } | |
15895 | ||
15896 | ||
15897 | static PyObject *_wrap_PyPanel_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15898 | PyObject *resultobj; | |
15899 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15900 | int *arg2 = (int *) 0 ; | |
15901 | int *arg3 = (int *) 0 ; | |
15902 | int temp2 ; | |
15903 | int temp3 ; | |
15904 | PyObject * obj0 = 0 ; | |
15905 | char *kwnames[] = { | |
15906 | (char *) "self", NULL | |
15907 | }; | |
15908 | ||
15909 | arg2 = &temp2; | |
15910 | arg3 = &temp3; | |
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15913 | { | |
15914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15915 | ((wxPyPanel const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
15916 | ||
15917 | wxPyEndAllowThreads(__tstate); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
15919 | } | |
15920 | Py_INCREF(Py_None); resultobj = Py_None; | |
15921 | { | |
15922 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15923 | resultobj = t_output_helper(resultobj,o); | |
15924 | } | |
15925 | { | |
15926 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15927 | resultobj = t_output_helper(resultobj,o); | |
15928 | } | |
15929 | return resultobj; | |
15930 | fail: | |
15931 | return NULL; | |
15932 | } | |
15933 | ||
15934 | ||
15935 | static PyObject *_wrap_PyPanel_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15936 | PyObject *resultobj; | |
15937 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15938 | int *arg2 = (int *) 0 ; | |
15939 | int *arg3 = (int *) 0 ; | |
15940 | int temp2 ; | |
15941 | int temp3 ; | |
15942 | PyObject * obj0 = 0 ; | |
15943 | char *kwnames[] = { | |
15944 | (char *) "self", NULL | |
15945 | }; | |
15946 | ||
15947 | arg2 = &temp2; | |
15948 | arg3 = &temp3; | |
15949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15951 | { | |
15952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15953 | ((wxPyPanel const *)arg1)->base_DoGetPosition(arg2,arg3); | |
15954 | ||
15955 | wxPyEndAllowThreads(__tstate); | |
15956 | if (PyErr_Occurred()) SWIG_fail; | |
15957 | } | |
15958 | Py_INCREF(Py_None); resultobj = Py_None; | |
15959 | { | |
15960 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15961 | resultobj = t_output_helper(resultobj,o); | |
15962 | } | |
15963 | { | |
15964 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15965 | resultobj = t_output_helper(resultobj,o); | |
15966 | } | |
15967 | return resultobj; | |
15968 | fail: | |
15969 | return NULL; | |
15970 | } | |
15971 | ||
15972 | ||
15973 | static PyObject *_wrap_PyPanel_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15974 | PyObject *resultobj; | |
15975 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
15976 | wxSize result; | |
15977 | PyObject * obj0 = 0 ; | |
15978 | char *kwnames[] = { | |
15979 | (char *) "self", NULL | |
15980 | }; | |
15981 | ||
15982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15984 | { | |
15985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15986 | result = ((wxPyPanel const *)arg1)->base_DoGetVirtualSize(); | |
15987 | ||
15988 | wxPyEndAllowThreads(__tstate); | |
15989 | if (PyErr_Occurred()) SWIG_fail; | |
15990 | } | |
15991 | { | |
15992 | wxSize * resultptr; | |
15993 | resultptr = new wxSize((wxSize &) result); | |
15994 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15995 | } | |
15996 | return resultobj; | |
15997 | fail: | |
15998 | return NULL; | |
15999 | } | |
16000 | ||
16001 | ||
16002 | static PyObject *_wrap_PyPanel_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16003 | PyObject *resultobj; | |
16004 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16005 | wxSize result; | |
16006 | PyObject * obj0 = 0 ; | |
16007 | char *kwnames[] = { | |
16008 | (char *) "self", NULL | |
16009 | }; | |
16010 | ||
16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
16012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16013 | { | |
16014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16015 | result = ((wxPyPanel const *)arg1)->base_DoGetBestSize(); | |
16016 | ||
16017 | wxPyEndAllowThreads(__tstate); | |
16018 | if (PyErr_Occurred()) SWIG_fail; | |
16019 | } | |
16020 | { | |
16021 | wxSize * resultptr; | |
16022 | resultptr = new wxSize((wxSize &) result); | |
16023 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16024 | } | |
16025 | return resultobj; | |
16026 | fail: | |
16027 | return NULL; | |
16028 | } | |
16029 | ||
16030 | ||
16031 | static PyObject *_wrap_PyPanel_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16032 | PyObject *resultobj; | |
16033 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16034 | PyObject * obj0 = 0 ; | |
16035 | char *kwnames[] = { | |
16036 | (char *) "self", NULL | |
16037 | }; | |
16038 | ||
16039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_InitDialog",kwnames,&obj0)) goto fail; | |
16040 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16041 | { | |
16042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16043 | (arg1)->base_InitDialog(); | |
16044 | ||
16045 | wxPyEndAllowThreads(__tstate); | |
16046 | if (PyErr_Occurred()) SWIG_fail; | |
16047 | } | |
16048 | Py_INCREF(Py_None); resultobj = Py_None; | |
16049 | return resultobj; | |
16050 | fail: | |
16051 | return NULL; | |
16052 | } | |
16053 | ||
16054 | ||
16055 | static PyObject *_wrap_PyPanel_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16056 | PyObject *resultobj; | |
16057 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16058 | bool result; | |
16059 | PyObject * obj0 = 0 ; | |
16060 | char *kwnames[] = { | |
16061 | (char *) "self", NULL | |
16062 | }; | |
16063 | ||
16064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
16065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16066 | { | |
16067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16068 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
16069 | ||
16070 | wxPyEndAllowThreads(__tstate); | |
16071 | if (PyErr_Occurred()) SWIG_fail; | |
16072 | } | |
4d5c3d91 | 16073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16074 | return resultobj; |
16075 | fail: | |
16076 | return NULL; | |
16077 | } | |
16078 | ||
16079 | ||
16080 | static PyObject *_wrap_PyPanel_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16081 | PyObject *resultobj; | |
16082 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16083 | bool result; | |
16084 | PyObject * obj0 = 0 ; | |
16085 | char *kwnames[] = { | |
16086 | (char *) "self", NULL | |
16087 | }; | |
16088 | ||
16089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
16090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16091 | { | |
16092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16093 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
16094 | ||
16095 | wxPyEndAllowThreads(__tstate); | |
16096 | if (PyErr_Occurred()) SWIG_fail; | |
16097 | } | |
4d5c3d91 | 16098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16099 | return resultobj; |
16100 | fail: | |
16101 | return NULL; | |
16102 | } | |
16103 | ||
16104 | ||
16105 | static PyObject *_wrap_PyPanel_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16106 | PyObject *resultobj; | |
16107 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16108 | bool result; | |
16109 | PyObject * obj0 = 0 ; | |
16110 | char *kwnames[] = { | |
16111 | (char *) "self", NULL | |
16112 | }; | |
16113 | ||
16114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_Validate",kwnames,&obj0)) goto fail; | |
16115 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16116 | { | |
16117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16118 | result = (bool)(arg1)->base_Validate(); | |
16119 | ||
16120 | wxPyEndAllowThreads(__tstate); | |
16121 | if (PyErr_Occurred()) SWIG_fail; | |
16122 | } | |
4d5c3d91 | 16123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16124 | return resultobj; |
16125 | fail: | |
16126 | return NULL; | |
16127 | } | |
16128 | ||
16129 | ||
16130 | static PyObject *_wrap_PyPanel_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16131 | PyObject *resultobj; | |
16132 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16133 | bool result; | |
16134 | PyObject * obj0 = 0 ; | |
16135 | char *kwnames[] = { | |
16136 | (char *) "self", NULL | |
16137 | }; | |
16138 | ||
16139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
16140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16141 | { | |
16142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16143 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocus(); | |
16144 | ||
16145 | wxPyEndAllowThreads(__tstate); | |
16146 | if (PyErr_Occurred()) SWIG_fail; | |
16147 | } | |
4d5c3d91 | 16148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16149 | return resultobj; |
16150 | fail: | |
16151 | return NULL; | |
16152 | } | |
16153 | ||
16154 | ||
16155 | static PyObject *_wrap_PyPanel_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16156 | PyObject *resultobj; | |
16157 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16158 | bool result; | |
16159 | PyObject * obj0 = 0 ; | |
16160 | char *kwnames[] = { | |
16161 | (char *) "self", NULL | |
16162 | }; | |
16163 | ||
16164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
16165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16166 | { | |
16167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16168 | result = (bool)((wxPyPanel const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
16169 | ||
16170 | wxPyEndAllowThreads(__tstate); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | } | |
4d5c3d91 | 16173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16174 | return resultobj; |
16175 | fail: | |
16176 | return NULL; | |
16177 | } | |
16178 | ||
16179 | ||
16180 | static PyObject *_wrap_PyPanel_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16181 | PyObject *resultobj; | |
16182 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16183 | wxSize result; | |
16184 | PyObject * obj0 = 0 ; | |
16185 | char *kwnames[] = { | |
16186 | (char *) "self", NULL | |
16187 | }; | |
16188 | ||
16189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPanel_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
16190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16191 | { | |
16192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16193 | result = ((wxPyPanel const *)arg1)->base_GetMaxSize(); | |
16194 | ||
16195 | wxPyEndAllowThreads(__tstate); | |
16196 | if (PyErr_Occurred()) SWIG_fail; | |
16197 | } | |
16198 | { | |
16199 | wxSize * resultptr; | |
16200 | resultptr = new wxSize((wxSize &) result); | |
16201 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
16202 | } | |
16203 | return resultobj; | |
16204 | fail: | |
16205 | return NULL; | |
16206 | } | |
16207 | ||
16208 | ||
16209 | static PyObject *_wrap_PyPanel_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16210 | PyObject *resultobj; | |
16211 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16212 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16213 | PyObject * obj0 = 0 ; | |
16214 | PyObject * obj1 = 0 ; | |
16215 | char *kwnames[] = { | |
16216 | (char *) "self",(char *) "child", NULL | |
16217 | }; | |
16218 | ||
16219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
16220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16221 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16222 | { | |
16223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16224 | (arg1)->base_AddChild(arg2); | |
16225 | ||
16226 | wxPyEndAllowThreads(__tstate); | |
16227 | if (PyErr_Occurred()) SWIG_fail; | |
16228 | } | |
16229 | Py_INCREF(Py_None); resultobj = Py_None; | |
16230 | return resultobj; | |
16231 | fail: | |
16232 | return NULL; | |
16233 | } | |
16234 | ||
16235 | ||
16236 | static PyObject *_wrap_PyPanel_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16237 | PyObject *resultobj; | |
16238 | wxPyPanel *arg1 = (wxPyPanel *) 0 ; | |
16239 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16240 | PyObject * obj0 = 0 ; | |
16241 | PyObject * obj1 = 0 ; | |
16242 | char *kwnames[] = { | |
16243 | (char *) "self",(char *) "child", NULL | |
16244 | }; | |
16245 | ||
16246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPanel_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
16247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPanel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16248 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16249 | { | |
16250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16251 | (arg1)->base_RemoveChild(arg2); | |
16252 | ||
16253 | wxPyEndAllowThreads(__tstate); | |
16254 | if (PyErr_Occurred()) SWIG_fail; | |
16255 | } | |
16256 | Py_INCREF(Py_None); resultobj = Py_None; | |
16257 | return resultobj; | |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
16263 | static PyObject * PyPanel_swigregister(PyObject *self, PyObject *args) { | |
16264 | PyObject *obj; | |
16265 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16266 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPanel, obj); | |
16267 | Py_INCREF(obj); | |
16268 | return Py_BuildValue((char *)""); | |
16269 | } | |
b2dc1044 RD |
16270 | static int _wrap_PrintoutTitleStr_set(PyObject *_val) { |
16271 | PyErr_SetString(PyExc_TypeError,"Variable PrintoutTitleStr is read-only."); | |
16272 | return 1; | |
16273 | } | |
16274 | ||
16275 | ||
16276 | static PyObject *_wrap_PrintoutTitleStr_get() { | |
16277 | PyObject *pyobj; | |
16278 | ||
16279 | { | |
16280 | #if wxUSE_UNICODE | |
16281 | pyobj = PyUnicode_FromWideChar((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
16282 | #else | |
16283 | pyobj = PyString_FromStringAndSize((&wxPyPrintoutTitleStr)->c_str(), (&wxPyPrintoutTitleStr)->Len()); | |
16284 | #endif | |
16285 | } | |
16286 | return pyobj; | |
16287 | } | |
16288 | ||
16289 | ||
16290 | static int _wrap_PreviewCanvasNameStr_set(PyObject *_val) { | |
16291 | PyErr_SetString(PyExc_TypeError,"Variable PreviewCanvasNameStr is read-only."); | |
16292 | return 1; | |
16293 | } | |
16294 | ||
16295 | ||
16296 | static PyObject *_wrap_PreviewCanvasNameStr_get() { | |
16297 | PyObject *pyobj; | |
16298 | ||
16299 | { | |
16300 | #if wxUSE_UNICODE | |
16301 | pyobj = PyUnicode_FromWideChar((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
16302 | #else | |
16303 | pyobj = PyString_FromStringAndSize((&wxPyPreviewCanvasNameStr)->c_str(), (&wxPyPreviewCanvasNameStr)->Len()); | |
16304 | #endif | |
16305 | } | |
16306 | return pyobj; | |
16307 | } | |
16308 | ||
16309 | ||
d14a1e28 RD |
16310 | static PyObject *_wrap_new_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { |
16311 | PyObject *resultobj; | |
16312 | wxPrintData *result; | |
16313 | char *kwnames[] = { | |
16314 | NULL | |
16315 | }; | |
16316 | ||
16317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintData",kwnames)) goto fail; | |
16318 | { | |
16319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16320 | result = (wxPrintData *)new wxPrintData(); | |
16321 | ||
16322 | wxPyEndAllowThreads(__tstate); | |
16323 | if (PyErr_Occurred()) SWIG_fail; | |
16324 | } | |
16325 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 1); | |
16326 | return resultobj; | |
16327 | fail: | |
16328 | return NULL; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | static PyObject *_wrap_delete_PrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16333 | PyObject *resultobj; | |
16334 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16335 | PyObject * obj0 = 0 ; | |
16336 | char *kwnames[] = { | |
16337 | (char *) "self", NULL | |
16338 | }; | |
16339 | ||
16340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintData",kwnames,&obj0)) goto fail; | |
16341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16342 | { | |
16343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16344 | delete arg1; | |
16345 | ||
16346 | wxPyEndAllowThreads(__tstate); | |
16347 | if (PyErr_Occurred()) SWIG_fail; | |
16348 | } | |
16349 | Py_INCREF(Py_None); resultobj = Py_None; | |
16350 | return resultobj; | |
16351 | fail: | |
16352 | return NULL; | |
16353 | } | |
16354 | ||
16355 | ||
16356 | static PyObject *_wrap_PrintData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16357 | PyObject *resultobj; | |
16358 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16359 | int result; | |
16360 | PyObject * obj0 = 0 ; | |
16361 | char *kwnames[] = { | |
16362 | (char *) "self", NULL | |
16363 | }; | |
16364 | ||
16365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetNoCopies",kwnames,&obj0)) goto fail; | |
16366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16367 | { | |
16368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16369 | result = (int)(arg1)->GetNoCopies(); | |
16370 | ||
16371 | wxPyEndAllowThreads(__tstate); | |
16372 | if (PyErr_Occurred()) SWIG_fail; | |
16373 | } | |
994141e6 | 16374 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16375 | return resultobj; |
16376 | fail: | |
16377 | return NULL; | |
16378 | } | |
16379 | ||
16380 | ||
16381 | static PyObject *_wrap_PrintData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16382 | PyObject *resultobj; | |
16383 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16384 | bool result; | |
16385 | PyObject * obj0 = 0 ; | |
16386 | char *kwnames[] = { | |
16387 | (char *) "self", NULL | |
16388 | }; | |
16389 | ||
16390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetCollate",kwnames,&obj0)) goto fail; | |
16391 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16392 | { | |
16393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16394 | result = (bool)(arg1)->GetCollate(); | |
16395 | ||
16396 | wxPyEndAllowThreads(__tstate); | |
16397 | if (PyErr_Occurred()) SWIG_fail; | |
16398 | } | |
4d5c3d91 | 16399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16400 | return resultobj; |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_PrintData_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16407 | PyObject *resultobj; | |
16408 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16409 | int result; | |
16410 | PyObject * obj0 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetOrientation",kwnames,&obj0)) goto fail; | |
16416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16417 | { | |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | result = (int)(arg1)->GetOrientation(); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
994141e6 | 16424 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16425 | return resultobj; |
16426 | fail: | |
16427 | return NULL; | |
16428 | } | |
16429 | ||
16430 | ||
16431 | static PyObject *_wrap_PrintData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16434 | bool result; | |
16435 | PyObject * obj0 = 0 ; | |
16436 | char *kwnames[] = { | |
16437 | (char *) "self", NULL | |
16438 | }; | |
16439 | ||
16440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_Ok",kwnames,&obj0)) goto fail; | |
16441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16442 | { | |
16443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16444 | result = (bool)(arg1)->Ok(); | |
16445 | ||
16446 | wxPyEndAllowThreads(__tstate); | |
16447 | if (PyErr_Occurred()) SWIG_fail; | |
16448 | } | |
4d5c3d91 | 16449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16450 | return resultobj; |
16451 | fail: | |
16452 | return NULL; | |
16453 | } | |
16454 | ||
16455 | ||
16456 | static PyObject *_wrap_PrintData_GetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16457 | PyObject *resultobj; | |
16458 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16459 | wxString *result; | |
16460 | PyObject * obj0 = 0 ; | |
16461 | char *kwnames[] = { | |
16462 | (char *) "self", NULL | |
16463 | }; | |
16464 | ||
16465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterName",kwnames,&obj0)) goto fail; | |
16466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16467 | { | |
16468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16469 | { | |
16470 | wxString const &_result_ref = (arg1)->GetPrinterName(); | |
16471 | result = (wxString *) &_result_ref; | |
16472 | } | |
16473 | ||
16474 | wxPyEndAllowThreads(__tstate); | |
16475 | if (PyErr_Occurred()) SWIG_fail; | |
16476 | } | |
cc6dd355 RD |
16477 | { |
16478 | #if wxUSE_UNICODE | |
16479 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16480 | #else | |
16481 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16482 | #endif | |
16483 | } | |
d14a1e28 RD |
16484 | return resultobj; |
16485 | fail: | |
16486 | return NULL; | |
16487 | } | |
16488 | ||
16489 | ||
16490 | static PyObject *_wrap_PrintData_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16491 | PyObject *resultobj; | |
16492 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16493 | bool result; | |
16494 | PyObject * obj0 = 0 ; | |
16495 | char *kwnames[] = { | |
16496 | (char *) "self", NULL | |
16497 | }; | |
16498 | ||
16499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetColour",kwnames,&obj0)) goto fail; | |
16500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16501 | { | |
16502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16503 | result = (bool)(arg1)->GetColour(); | |
16504 | ||
16505 | wxPyEndAllowThreads(__tstate); | |
16506 | if (PyErr_Occurred()) SWIG_fail; | |
16507 | } | |
4d5c3d91 | 16508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
16509 | return resultobj; |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
16515 | static PyObject *_wrap_PrintData_GetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16516 | PyObject *resultobj; | |
16517 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16518 | int result; | |
16519 | PyObject * obj0 = 0 ; | |
16520 | char *kwnames[] = { | |
16521 | (char *) "self", NULL | |
16522 | }; | |
16523 | ||
16524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetDuplex",kwnames,&obj0)) goto fail; | |
16525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16526 | { | |
16527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16528 | result = (int)(arg1)->GetDuplex(); | |
16529 | ||
16530 | wxPyEndAllowThreads(__tstate); | |
16531 | if (PyErr_Occurred()) SWIG_fail; | |
16532 | } | |
994141e6 | 16533 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16534 | return resultobj; |
16535 | fail: | |
16536 | return NULL; | |
16537 | } | |
16538 | ||
16539 | ||
16540 | static PyObject *_wrap_PrintData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16541 | PyObject *resultobj; | |
16542 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16543 | int result; | |
16544 | PyObject * obj0 = 0 ; | |
16545 | char *kwnames[] = { | |
16546 | (char *) "self", NULL | |
16547 | }; | |
16548 | ||
16549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperId",kwnames,&obj0)) goto fail; | |
16550 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16551 | { | |
16552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16553 | result = (int)(arg1)->GetPaperId(); | |
16554 | ||
16555 | wxPyEndAllowThreads(__tstate); | |
16556 | if (PyErr_Occurred()) SWIG_fail; | |
16557 | } | |
994141e6 | 16558 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16559 | return resultobj; |
16560 | fail: | |
16561 | return NULL; | |
16562 | } | |
16563 | ||
16564 | ||
16565 | static PyObject *_wrap_PrintData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16566 | PyObject *resultobj; | |
16567 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16568 | wxSize *result; | |
16569 | PyObject * obj0 = 0 ; | |
16570 | char *kwnames[] = { | |
16571 | (char *) "self", NULL | |
16572 | }; | |
16573 | ||
16574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPaperSize",kwnames,&obj0)) goto fail; | |
16575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16576 | { | |
16577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16578 | { | |
16579 | wxSize const &_result_ref = (arg1)->GetPaperSize(); | |
16580 | result = (wxSize *) &_result_ref; | |
16581 | } | |
16582 | ||
16583 | wxPyEndAllowThreads(__tstate); | |
16584 | if (PyErr_Occurred()) SWIG_fail; | |
16585 | } | |
16586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0); | |
16587 | return resultobj; | |
16588 | fail: | |
16589 | return NULL; | |
16590 | } | |
16591 | ||
16592 | ||
16593 | static PyObject *_wrap_PrintData_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16594 | PyObject *resultobj; | |
16595 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
b2dc1044 | 16596 | int result; |
d14a1e28 RD |
16597 | PyObject * obj0 = 0 ; |
16598 | char *kwnames[] = { | |
16599 | (char *) "self", NULL | |
16600 | }; | |
16601 | ||
16602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetQuality",kwnames,&obj0)) goto fail; | |
16603 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16604 | { | |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 16606 | result = (int)(arg1)->GetQuality(); |
d14a1e28 RD |
16607 | |
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
994141e6 | 16611 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
16612 | return resultobj; |
16613 | fail: | |
16614 | return NULL; | |
16615 | } | |
16616 | ||
16617 | ||
16618 | static PyObject *_wrap_PrintData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16619 | PyObject *resultobj; | |
16620 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16621 | int arg2 ; | |
16622 | PyObject * obj0 = 0 ; | |
994141e6 | 16623 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16624 | char *kwnames[] = { |
16625 | (char *) "self",(char *) "v", NULL | |
16626 | }; | |
16627 | ||
994141e6 | 16628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16630 | { |
16631 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16632 | if (PyErr_Occurred()) SWIG_fail; | |
16633 | } | |
d14a1e28 RD |
16634 | { |
16635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16636 | (arg1)->SetNoCopies(arg2); | |
16637 | ||
16638 | wxPyEndAllowThreads(__tstate); | |
16639 | if (PyErr_Occurred()) SWIG_fail; | |
16640 | } | |
16641 | Py_INCREF(Py_None); resultobj = Py_None; | |
16642 | return resultobj; | |
16643 | fail: | |
16644 | return NULL; | |
16645 | } | |
16646 | ||
16647 | ||
16648 | static PyObject *_wrap_PrintData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16649 | PyObject *resultobj; | |
16650 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16651 | bool arg2 ; | |
16652 | PyObject * obj0 = 0 ; | |
16653 | PyObject * obj1 = 0 ; | |
16654 | char *kwnames[] = { | |
16655 | (char *) "self",(char *) "flag", NULL | |
16656 | }; | |
16657 | ||
16658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
16659 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 16660 | { |
994141e6 | 16661 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16662 | if (PyErr_Occurred()) SWIG_fail; |
16663 | } | |
d14a1e28 RD |
16664 | { |
16665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16666 | (arg1)->SetCollate(arg2); | |
16667 | ||
16668 | wxPyEndAllowThreads(__tstate); | |
16669 | if (PyErr_Occurred()) SWIG_fail; | |
16670 | } | |
16671 | Py_INCREF(Py_None); resultobj = Py_None; | |
16672 | return resultobj; | |
16673 | fail: | |
16674 | return NULL; | |
16675 | } | |
16676 | ||
16677 | ||
16678 | static PyObject *_wrap_PrintData_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16679 | PyObject *resultobj; | |
16680 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16681 | int arg2 ; | |
16682 | PyObject * obj0 = 0 ; | |
994141e6 | 16683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16684 | char *kwnames[] = { |
16685 | (char *) "self",(char *) "orient", NULL | |
16686 | }; | |
16687 | ||
994141e6 | 16688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16690 | { |
16691 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16692 | if (PyErr_Occurred()) SWIG_fail; | |
16693 | } | |
d14a1e28 RD |
16694 | { |
16695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16696 | (arg1)->SetOrientation(arg2); | |
16697 | ||
16698 | wxPyEndAllowThreads(__tstate); | |
16699 | if (PyErr_Occurred()) SWIG_fail; | |
16700 | } | |
16701 | Py_INCREF(Py_None); resultobj = Py_None; | |
16702 | return resultobj; | |
16703 | fail: | |
16704 | return NULL; | |
16705 | } | |
16706 | ||
16707 | ||
16708 | static PyObject *_wrap_PrintData_SetPrinterName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16709 | PyObject *resultobj; | |
16710 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16711 | wxString *arg2 = 0 ; | |
e811c8ce | 16712 | bool temp2 = False ; |
d14a1e28 RD |
16713 | PyObject * obj0 = 0 ; |
16714 | PyObject * obj1 = 0 ; | |
16715 | char *kwnames[] = { | |
16716 | (char *) "self",(char *) "name", NULL | |
16717 | }; | |
16718 | ||
16719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterName",kwnames,&obj0,&obj1)) goto fail; | |
16720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16721 | { | |
16722 | arg2 = wxString_in_helper(obj1); | |
16723 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16724 | temp2 = True; |
d14a1e28 RD |
16725 | } |
16726 | { | |
16727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16728 | (arg1)->SetPrinterName((wxString const &)*arg2); | |
16729 | ||
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
16733 | Py_INCREF(Py_None); resultobj = Py_None; | |
16734 | { | |
16735 | if (temp2) | |
16736 | delete arg2; | |
16737 | } | |
16738 | return resultobj; | |
16739 | fail: | |
16740 | { | |
16741 | if (temp2) | |
16742 | delete arg2; | |
16743 | } | |
16744 | return NULL; | |
16745 | } | |
16746 | ||
16747 | ||
16748 | static PyObject *_wrap_PrintData_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16749 | PyObject *resultobj; | |
16750 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16751 | bool arg2 ; | |
16752 | PyObject * obj0 = 0 ; | |
16753 | PyObject * obj1 = 0 ; | |
16754 | char *kwnames[] = { | |
16755 | (char *) "self",(char *) "colour", NULL | |
16756 | }; | |
16757 | ||
16758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetColour",kwnames,&obj0,&obj1)) goto fail; | |
16759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 16760 | { |
994141e6 | 16761 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
16762 | if (PyErr_Occurred()) SWIG_fail; |
16763 | } | |
d14a1e28 RD |
16764 | { |
16765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16766 | (arg1)->SetColour(arg2); | |
16767 | ||
16768 | wxPyEndAllowThreads(__tstate); | |
16769 | if (PyErr_Occurred()) SWIG_fail; | |
16770 | } | |
16771 | Py_INCREF(Py_None); resultobj = Py_None; | |
16772 | return resultobj; | |
16773 | fail: | |
16774 | return NULL; | |
16775 | } | |
16776 | ||
16777 | ||
16778 | static PyObject *_wrap_PrintData_SetDuplex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16779 | PyObject *resultobj; | |
16780 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16781 | int arg2 ; | |
16782 | PyObject * obj0 = 0 ; | |
994141e6 | 16783 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16784 | char *kwnames[] = { |
16785 | (char *) "self",(char *) "duplex", NULL | |
16786 | }; | |
16787 | ||
994141e6 | 16788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetDuplex",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16790 | { |
16791 | arg2 = (wxDuplexMode) SWIG_PyObj_AsInt(obj1); | |
16792 | if (PyErr_Occurred()) SWIG_fail; | |
16793 | } | |
d14a1e28 RD |
16794 | { |
16795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16796 | (arg1)->SetDuplex((wxDuplexMode )arg2); | |
16797 | ||
16798 | wxPyEndAllowThreads(__tstate); | |
16799 | if (PyErr_Occurred()) SWIG_fail; | |
16800 | } | |
16801 | Py_INCREF(Py_None); resultobj = Py_None; | |
16802 | return resultobj; | |
16803 | fail: | |
16804 | return NULL; | |
16805 | } | |
16806 | ||
16807 | ||
16808 | static PyObject *_wrap_PrintData_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16809 | PyObject *resultobj; | |
16810 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16811 | int arg2 ; | |
16812 | PyObject * obj0 = 0 ; | |
994141e6 | 16813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16814 | char *kwnames[] = { |
16815 | (char *) "self",(char *) "sizeId", NULL | |
16816 | }; | |
16817 | ||
994141e6 | 16818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16820 | { |
16821 | arg2 = (wxPaperSize) SWIG_PyObj_AsInt(obj1); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
d14a1e28 RD |
16824 | { |
16825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16826 | (arg1)->SetPaperId((wxPaperSize )arg2); | |
16827 | ||
16828 | wxPyEndAllowThreads(__tstate); | |
16829 | if (PyErr_Occurred()) SWIG_fail; | |
16830 | } | |
16831 | Py_INCREF(Py_None); resultobj = Py_None; | |
16832 | return resultobj; | |
16833 | fail: | |
16834 | return NULL; | |
16835 | } | |
16836 | ||
16837 | ||
16838 | static PyObject *_wrap_PrintData_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16839 | PyObject *resultobj; | |
16840 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16841 | wxSize *arg2 = 0 ; | |
16842 | wxSize temp2 ; | |
16843 | PyObject * obj0 = 0 ; | |
16844 | PyObject * obj1 = 0 ; | |
16845 | char *kwnames[] = { | |
16846 | (char *) "self",(char *) "sz", NULL | |
16847 | }; | |
16848 | ||
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPaperSize",kwnames,&obj0,&obj1)) goto fail; | |
16850 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16851 | { | |
16852 | arg2 = &temp2; | |
16853 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
16854 | } | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | (arg1)->SetPaperSize((wxSize const &)*arg2); | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | Py_INCREF(Py_None); resultobj = Py_None; | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject *_wrap_PrintData_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16870 | PyObject *resultobj; | |
16871 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
b2dc1044 | 16872 | int arg2 ; |
d14a1e28 | 16873 | PyObject * obj0 = 0 ; |
994141e6 | 16874 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16875 | char *kwnames[] = { |
16876 | (char *) "self",(char *) "quality", NULL | |
16877 | }; | |
16878 | ||
994141e6 | 16879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetQuality",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 16880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
16881 | { |
16882 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
16883 | if (PyErr_Occurred()) SWIG_fail; | |
16884 | } | |
d14a1e28 RD |
16885 | { |
16886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16887 | (arg1)->SetQuality(arg2); | |
16888 | ||
16889 | wxPyEndAllowThreads(__tstate); | |
16890 | if (PyErr_Occurred()) SWIG_fail; | |
16891 | } | |
16892 | Py_INCREF(Py_None); resultobj = Py_None; | |
16893 | return resultobj; | |
16894 | fail: | |
16895 | return NULL; | |
16896 | } | |
16897 | ||
16898 | ||
16899 | static PyObject *_wrap_PrintData_GetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16900 | PyObject *resultobj; | |
16901 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16902 | wxString *result; | |
16903 | PyObject * obj0 = 0 ; | |
16904 | char *kwnames[] = { | |
16905 | (char *) "self", NULL | |
16906 | }; | |
16907 | ||
16908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterCommand",kwnames,&obj0)) goto fail; | |
16909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16910 | { | |
16911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16912 | { | |
16913 | wxString const &_result_ref = (arg1)->GetPrinterCommand(); | |
16914 | result = (wxString *) &_result_ref; | |
16915 | } | |
16916 | ||
16917 | wxPyEndAllowThreads(__tstate); | |
16918 | if (PyErr_Occurred()) SWIG_fail; | |
16919 | } | |
cc6dd355 RD |
16920 | { |
16921 | #if wxUSE_UNICODE | |
16922 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16923 | #else | |
16924 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16925 | #endif | |
16926 | } | |
d14a1e28 RD |
16927 | return resultobj; |
16928 | fail: | |
16929 | return NULL; | |
16930 | } | |
16931 | ||
16932 | ||
16933 | static PyObject *_wrap_PrintData_GetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16934 | PyObject *resultobj; | |
16935 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16936 | wxString *result; | |
16937 | PyObject * obj0 = 0 ; | |
16938 | char *kwnames[] = { | |
16939 | (char *) "self", NULL | |
16940 | }; | |
16941 | ||
16942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterOptions",kwnames,&obj0)) goto fail; | |
16943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16944 | { | |
16945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16946 | { | |
16947 | wxString const &_result_ref = (arg1)->GetPrinterOptions(); | |
16948 | result = (wxString *) &_result_ref; | |
16949 | } | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
cc6dd355 RD |
16954 | { |
16955 | #if wxUSE_UNICODE | |
16956 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16957 | #else | |
16958 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16959 | #endif | |
16960 | } | |
d14a1e28 RD |
16961 | return resultobj; |
16962 | fail: | |
16963 | return NULL; | |
16964 | } | |
16965 | ||
16966 | ||
16967 | static PyObject *_wrap_PrintData_GetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16968 | PyObject *resultobj; | |
16969 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
16970 | wxString *result; | |
16971 | PyObject * obj0 = 0 ; | |
16972 | char *kwnames[] = { | |
16973 | (char *) "self", NULL | |
16974 | }; | |
16975 | ||
16976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPreviewCommand",kwnames,&obj0)) goto fail; | |
16977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16978 | { | |
16979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16980 | { | |
16981 | wxString const &_result_ref = (arg1)->GetPreviewCommand(); | |
16982 | result = (wxString *) &_result_ref; | |
16983 | } | |
16984 | ||
16985 | wxPyEndAllowThreads(__tstate); | |
16986 | if (PyErr_Occurred()) SWIG_fail; | |
16987 | } | |
cc6dd355 RD |
16988 | { |
16989 | #if wxUSE_UNICODE | |
16990 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16991 | #else | |
16992 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16993 | #endif | |
16994 | } | |
d14a1e28 RD |
16995 | return resultobj; |
16996 | fail: | |
16997 | return NULL; | |
16998 | } | |
16999 | ||
17000 | ||
17001 | static PyObject *_wrap_PrintData_GetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17002 | PyObject *resultobj; | |
17003 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17004 | wxString *result; | |
17005 | PyObject * obj0 = 0 ; | |
17006 | char *kwnames[] = { | |
17007 | (char *) "self", NULL | |
17008 | }; | |
17009 | ||
17010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFilename",kwnames,&obj0)) goto fail; | |
17011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17012 | { | |
17013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17014 | { | |
17015 | wxString const &_result_ref = (arg1)->GetFilename(); | |
17016 | result = (wxString *) &_result_ref; | |
17017 | } | |
17018 | ||
17019 | wxPyEndAllowThreads(__tstate); | |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
17021 | } | |
cc6dd355 RD |
17022 | { |
17023 | #if wxUSE_UNICODE | |
17024 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17025 | #else | |
17026 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17027 | #endif | |
17028 | } | |
d14a1e28 RD |
17029 | return resultobj; |
17030 | fail: | |
17031 | return NULL; | |
17032 | } | |
17033 | ||
17034 | ||
17035 | static PyObject *_wrap_PrintData_GetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17036 | PyObject *resultobj; | |
17037 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17038 | wxString *result; | |
17039 | PyObject * obj0 = 0 ; | |
17040 | char *kwnames[] = { | |
17041 | (char *) "self", NULL | |
17042 | }; | |
17043 | ||
17044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetFontMetricPath",kwnames,&obj0)) goto fail; | |
17045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17046 | { | |
17047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17048 | { | |
17049 | wxString const &_result_ref = (arg1)->GetFontMetricPath(); | |
17050 | result = (wxString *) &_result_ref; | |
17051 | } | |
17052 | ||
17053 | wxPyEndAllowThreads(__tstate); | |
17054 | if (PyErr_Occurred()) SWIG_fail; | |
17055 | } | |
cc6dd355 RD |
17056 | { |
17057 | #if wxUSE_UNICODE | |
17058 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17059 | #else | |
17060 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17061 | #endif | |
17062 | } | |
d14a1e28 RD |
17063 | return resultobj; |
17064 | fail: | |
17065 | return NULL; | |
17066 | } | |
17067 | ||
17068 | ||
17069 | static PyObject *_wrap_PrintData_GetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17070 | PyObject *resultobj; | |
17071 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17072 | double result; | |
17073 | PyObject * obj0 = 0 ; | |
17074 | char *kwnames[] = { | |
17075 | (char *) "self", NULL | |
17076 | }; | |
17077 | ||
17078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleX",kwnames,&obj0)) goto fail; | |
17079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17080 | { | |
17081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17082 | result = (double)(arg1)->GetPrinterScaleX(); | |
17083 | ||
17084 | wxPyEndAllowThreads(__tstate); | |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
17086 | } | |
994141e6 | 17087 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
17088 | return resultobj; |
17089 | fail: | |
17090 | return NULL; | |
17091 | } | |
17092 | ||
17093 | ||
17094 | static PyObject *_wrap_PrintData_GetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17095 | PyObject *resultobj; | |
17096 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17097 | double result; | |
17098 | PyObject * obj0 = 0 ; | |
17099 | char *kwnames[] = { | |
17100 | (char *) "self", NULL | |
17101 | }; | |
17102 | ||
17103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterScaleY",kwnames,&obj0)) goto fail; | |
17104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17105 | { | |
17106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17107 | result = (double)(arg1)->GetPrinterScaleY(); | |
17108 | ||
17109 | wxPyEndAllowThreads(__tstate); | |
17110 | if (PyErr_Occurred()) SWIG_fail; | |
17111 | } | |
994141e6 | 17112 | resultobj = SWIG_PyObj_FromDouble((double)result); |
d14a1e28 RD |
17113 | return resultobj; |
17114 | fail: | |
17115 | return NULL; | |
17116 | } | |
17117 | ||
17118 | ||
17119 | static PyObject *_wrap_PrintData_GetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17120 | PyObject *resultobj; | |
17121 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17122 | long result; | |
17123 | PyObject * obj0 = 0 ; | |
17124 | char *kwnames[] = { | |
17125 | (char *) "self", NULL | |
17126 | }; | |
17127 | ||
17128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateX",kwnames,&obj0)) goto fail; | |
17129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17130 | { | |
17131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17132 | result = (long)(arg1)->GetPrinterTranslateX(); | |
17133 | ||
17134 | wxPyEndAllowThreads(__tstate); | |
17135 | if (PyErr_Occurred()) SWIG_fail; | |
17136 | } | |
994141e6 | 17137 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17138 | return resultobj; |
17139 | fail: | |
17140 | return NULL; | |
17141 | } | |
17142 | ||
17143 | ||
17144 | static PyObject *_wrap_PrintData_GetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17145 | PyObject *resultobj; | |
17146 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17147 | long result; | |
17148 | PyObject * obj0 = 0 ; | |
17149 | char *kwnames[] = { | |
17150 | (char *) "self", NULL | |
17151 | }; | |
17152 | ||
17153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrinterTranslateY",kwnames,&obj0)) goto fail; | |
17154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17155 | { | |
17156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17157 | result = (long)(arg1)->GetPrinterTranslateY(); | |
17158 | ||
17159 | wxPyEndAllowThreads(__tstate); | |
17160 | if (PyErr_Occurred()) SWIG_fail; | |
17161 | } | |
994141e6 | 17162 | resultobj = SWIG_PyObj_FromLong((long)result); |
d14a1e28 RD |
17163 | return resultobj; |
17164 | fail: | |
17165 | return NULL; | |
17166 | } | |
17167 | ||
17168 | ||
17169 | static PyObject *_wrap_PrintData_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17170 | PyObject *resultobj; | |
17171 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17172 | int result; | |
17173 | PyObject * obj0 = 0 ; | |
17174 | char *kwnames[] = { | |
17175 | (char *) "self", NULL | |
17176 | }; | |
17177 | ||
17178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintData_GetPrintMode",kwnames,&obj0)) goto fail; | |
17179 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17180 | { | |
17181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17182 | result = (int)(arg1)->GetPrintMode(); | |
17183 | ||
17184 | wxPyEndAllowThreads(__tstate); | |
17185 | if (PyErr_Occurred()) SWIG_fail; | |
17186 | } | |
994141e6 | 17187 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
17188 | return resultobj; |
17189 | fail: | |
17190 | return NULL; | |
17191 | } | |
17192 | ||
17193 | ||
17194 | static PyObject *_wrap_PrintData_SetPrinterCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17195 | PyObject *resultobj; | |
17196 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17197 | wxString *arg2 = 0 ; | |
e811c8ce | 17198 | bool temp2 = False ; |
d14a1e28 RD |
17199 | PyObject * obj0 = 0 ; |
17200 | PyObject * obj1 = 0 ; | |
17201 | char *kwnames[] = { | |
17202 | (char *) "self",(char *) "command", NULL | |
17203 | }; | |
17204 | ||
17205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterCommand",kwnames,&obj0,&obj1)) goto fail; | |
17206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17207 | { | |
17208 | arg2 = wxString_in_helper(obj1); | |
17209 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17210 | temp2 = True; |
d14a1e28 RD |
17211 | } |
17212 | { | |
17213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17214 | (arg1)->SetPrinterCommand((wxString const &)*arg2); | |
17215 | ||
17216 | wxPyEndAllowThreads(__tstate); | |
17217 | if (PyErr_Occurred()) SWIG_fail; | |
17218 | } | |
17219 | Py_INCREF(Py_None); resultobj = Py_None; | |
17220 | { | |
17221 | if (temp2) | |
17222 | delete arg2; | |
17223 | } | |
17224 | return resultobj; | |
17225 | fail: | |
17226 | { | |
17227 | if (temp2) | |
17228 | delete arg2; | |
17229 | } | |
17230 | return NULL; | |
17231 | } | |
17232 | ||
17233 | ||
17234 | static PyObject *_wrap_PrintData_SetPrinterOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17235 | PyObject *resultobj; | |
17236 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17237 | wxString *arg2 = 0 ; | |
e811c8ce | 17238 | bool temp2 = False ; |
d14a1e28 RD |
17239 | PyObject * obj0 = 0 ; |
17240 | PyObject * obj1 = 0 ; | |
17241 | char *kwnames[] = { | |
17242 | (char *) "self",(char *) "options", NULL | |
17243 | }; | |
17244 | ||
17245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterOptions",kwnames,&obj0,&obj1)) goto fail; | |
17246 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17247 | { | |
17248 | arg2 = wxString_in_helper(obj1); | |
17249 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17250 | temp2 = True; |
d14a1e28 RD |
17251 | } |
17252 | { | |
17253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17254 | (arg1)->SetPrinterOptions((wxString const &)*arg2); | |
17255 | ||
17256 | wxPyEndAllowThreads(__tstate); | |
17257 | if (PyErr_Occurred()) SWIG_fail; | |
17258 | } | |
17259 | Py_INCREF(Py_None); resultobj = Py_None; | |
17260 | { | |
17261 | if (temp2) | |
17262 | delete arg2; | |
17263 | } | |
17264 | return resultobj; | |
17265 | fail: | |
17266 | { | |
17267 | if (temp2) | |
17268 | delete arg2; | |
17269 | } | |
17270 | return NULL; | |
17271 | } | |
17272 | ||
17273 | ||
17274 | static PyObject *_wrap_PrintData_SetPreviewCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17275 | PyObject *resultobj; | |
17276 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17277 | wxString *arg2 = 0 ; | |
e811c8ce | 17278 | bool temp2 = False ; |
d14a1e28 RD |
17279 | PyObject * obj0 = 0 ; |
17280 | PyObject * obj1 = 0 ; | |
17281 | char *kwnames[] = { | |
17282 | (char *) "self",(char *) "command", NULL | |
17283 | }; | |
17284 | ||
17285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPreviewCommand",kwnames,&obj0,&obj1)) goto fail; | |
17286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17287 | { | |
17288 | arg2 = wxString_in_helper(obj1); | |
17289 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17290 | temp2 = True; |
d14a1e28 RD |
17291 | } |
17292 | { | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | (arg1)->SetPreviewCommand((wxString const &)*arg2); | |
17295 | ||
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | Py_INCREF(Py_None); resultobj = Py_None; | |
17300 | { | |
17301 | if (temp2) | |
17302 | delete arg2; | |
17303 | } | |
17304 | return resultobj; | |
17305 | fail: | |
17306 | { | |
17307 | if (temp2) | |
17308 | delete arg2; | |
17309 | } | |
17310 | return NULL; | |
17311 | } | |
17312 | ||
17313 | ||
17314 | static PyObject *_wrap_PrintData_SetFilename(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17315 | PyObject *resultobj; | |
17316 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17317 | wxString *arg2 = 0 ; | |
e811c8ce | 17318 | bool temp2 = False ; |
d14a1e28 RD |
17319 | PyObject * obj0 = 0 ; |
17320 | PyObject * obj1 = 0 ; | |
17321 | char *kwnames[] = { | |
17322 | (char *) "self",(char *) "filename", NULL | |
17323 | }; | |
17324 | ||
17325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFilename",kwnames,&obj0,&obj1)) goto fail; | |
17326 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17327 | { | |
17328 | arg2 = wxString_in_helper(obj1); | |
17329 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17330 | temp2 = True; |
d14a1e28 RD |
17331 | } |
17332 | { | |
17333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17334 | (arg1)->SetFilename((wxString const &)*arg2); | |
17335 | ||
17336 | wxPyEndAllowThreads(__tstate); | |
17337 | if (PyErr_Occurred()) SWIG_fail; | |
17338 | } | |
17339 | Py_INCREF(Py_None); resultobj = Py_None; | |
17340 | { | |
17341 | if (temp2) | |
17342 | delete arg2; | |
17343 | } | |
17344 | return resultobj; | |
17345 | fail: | |
17346 | { | |
17347 | if (temp2) | |
17348 | delete arg2; | |
17349 | } | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
17354 | static PyObject *_wrap_PrintData_SetFontMetricPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17355 | PyObject *resultobj; | |
17356 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17357 | wxString *arg2 = 0 ; | |
e811c8ce | 17358 | bool temp2 = False ; |
d14a1e28 RD |
17359 | PyObject * obj0 = 0 ; |
17360 | PyObject * obj1 = 0 ; | |
17361 | char *kwnames[] = { | |
17362 | (char *) "self",(char *) "path", NULL | |
17363 | }; | |
17364 | ||
17365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetFontMetricPath",kwnames,&obj0,&obj1)) goto fail; | |
17366 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17367 | { | |
17368 | arg2 = wxString_in_helper(obj1); | |
17369 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17370 | temp2 = True; |
d14a1e28 RD |
17371 | } |
17372 | { | |
17373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17374 | (arg1)->SetFontMetricPath((wxString const &)*arg2); | |
17375 | ||
17376 | wxPyEndAllowThreads(__tstate); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | Py_INCREF(Py_None); resultobj = Py_None; | |
17380 | { | |
17381 | if (temp2) | |
17382 | delete arg2; | |
17383 | } | |
17384 | return resultobj; | |
17385 | fail: | |
17386 | { | |
17387 | if (temp2) | |
17388 | delete arg2; | |
17389 | } | |
17390 | return NULL; | |
17391 | } | |
17392 | ||
17393 | ||
17394 | static PyObject *_wrap_PrintData_SetPrinterScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17395 | PyObject *resultobj; | |
17396 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17397 | double arg2 ; | |
17398 | PyObject * obj0 = 0 ; | |
994141e6 | 17399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17400 | char *kwnames[] = { |
17401 | (char *) "self",(char *) "x", NULL | |
17402 | }; | |
17403 | ||
994141e6 | 17404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17406 | { |
17407 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17408 | if (PyErr_Occurred()) SWIG_fail; | |
17409 | } | |
d14a1e28 RD |
17410 | { |
17411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17412 | (arg1)->SetPrinterScaleX(arg2); | |
17413 | ||
17414 | wxPyEndAllowThreads(__tstate); | |
17415 | if (PyErr_Occurred()) SWIG_fail; | |
17416 | } | |
17417 | Py_INCREF(Py_None); resultobj = Py_None; | |
17418 | return resultobj; | |
17419 | fail: | |
17420 | return NULL; | |
17421 | } | |
17422 | ||
17423 | ||
17424 | static PyObject *_wrap_PrintData_SetPrinterScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17425 | PyObject *resultobj; | |
17426 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17427 | double arg2 ; | |
17428 | PyObject * obj0 = 0 ; | |
994141e6 | 17429 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17430 | char *kwnames[] = { |
17431 | (char *) "self",(char *) "y", NULL | |
17432 | }; | |
17433 | ||
994141e6 | 17434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterScaleY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17436 | { |
17437 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17438 | if (PyErr_Occurred()) SWIG_fail; | |
17439 | } | |
d14a1e28 RD |
17440 | { |
17441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17442 | (arg1)->SetPrinterScaleY(arg2); | |
17443 | ||
17444 | wxPyEndAllowThreads(__tstate); | |
17445 | if (PyErr_Occurred()) SWIG_fail; | |
17446 | } | |
17447 | Py_INCREF(Py_None); resultobj = Py_None; | |
17448 | return resultobj; | |
17449 | fail: | |
17450 | return NULL; | |
17451 | } | |
17452 | ||
17453 | ||
17454 | static PyObject *_wrap_PrintData_SetPrinterScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17455 | PyObject *resultobj; | |
17456 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17457 | double arg2 ; | |
17458 | double arg3 ; | |
17459 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17460 | PyObject * obj1 = 0 ; |
17461 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17462 | char *kwnames[] = { |
17463 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17464 | }; | |
17465 | ||
994141e6 | 17466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterScaling",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17467 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17468 | { |
17469 | arg2 = (double) SWIG_PyObj_AsDouble(obj1); | |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
17471 | } | |
17472 | { | |
17473 | arg3 = (double) SWIG_PyObj_AsDouble(obj2); | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | } | |
d14a1e28 RD |
17476 | { |
17477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17478 | (arg1)->SetPrinterScaling(arg2,arg3); | |
17479 | ||
17480 | wxPyEndAllowThreads(__tstate); | |
17481 | if (PyErr_Occurred()) SWIG_fail; | |
17482 | } | |
17483 | Py_INCREF(Py_None); resultobj = Py_None; | |
17484 | return resultobj; | |
17485 | fail: | |
17486 | return NULL; | |
17487 | } | |
17488 | ||
17489 | ||
17490 | static PyObject *_wrap_PrintData_SetPrinterTranslateX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17491 | PyObject *resultobj; | |
17492 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17493 | long arg2 ; | |
17494 | PyObject * obj0 = 0 ; | |
994141e6 | 17495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17496 | char *kwnames[] = { |
17497 | (char *) "self",(char *) "x", NULL | |
17498 | }; | |
17499 | ||
994141e6 | 17500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateX",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17501 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17502 | { |
17503 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17504 | if (PyErr_Occurred()) SWIG_fail; | |
17505 | } | |
d14a1e28 RD |
17506 | { |
17507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17508 | (arg1)->SetPrinterTranslateX(arg2); | |
17509 | ||
17510 | wxPyEndAllowThreads(__tstate); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | } | |
17513 | Py_INCREF(Py_None); resultobj = Py_None; | |
17514 | return resultobj; | |
17515 | fail: | |
17516 | return NULL; | |
17517 | } | |
17518 | ||
17519 | ||
17520 | static PyObject *_wrap_PrintData_SetPrinterTranslateY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17521 | PyObject *resultobj; | |
17522 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17523 | long arg2 ; | |
17524 | PyObject * obj0 = 0 ; | |
994141e6 | 17525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17526 | char *kwnames[] = { |
17527 | (char *) "self",(char *) "y", NULL | |
17528 | }; | |
17529 | ||
994141e6 | 17530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrinterTranslateY",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17531 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17532 | { |
17533 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17534 | if (PyErr_Occurred()) SWIG_fail; | |
17535 | } | |
d14a1e28 RD |
17536 | { |
17537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17538 | (arg1)->SetPrinterTranslateY(arg2); | |
17539 | ||
17540 | wxPyEndAllowThreads(__tstate); | |
17541 | if (PyErr_Occurred()) SWIG_fail; | |
17542 | } | |
17543 | Py_INCREF(Py_None); resultobj = Py_None; | |
17544 | return resultobj; | |
17545 | fail: | |
17546 | return NULL; | |
17547 | } | |
17548 | ||
17549 | ||
17550 | static PyObject *_wrap_PrintData_SetPrinterTranslation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17551 | PyObject *resultobj; | |
17552 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17553 | long arg2 ; | |
17554 | long arg3 ; | |
17555 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17556 | PyObject * obj1 = 0 ; |
17557 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17558 | char *kwnames[] = { |
17559 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17560 | }; | |
17561 | ||
994141e6 | 17562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintData_SetPrinterTranslation",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 17563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17564 | { |
17565 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
17566 | if (PyErr_Occurred()) SWIG_fail; | |
17567 | } | |
17568 | { | |
17569 | arg3 = (long) SWIG_PyObj_AsLong(obj2); | |
17570 | if (PyErr_Occurred()) SWIG_fail; | |
17571 | } | |
d14a1e28 RD |
17572 | { |
17573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17574 | (arg1)->SetPrinterTranslation(arg2,arg3); | |
17575 | ||
17576 | wxPyEndAllowThreads(__tstate); | |
17577 | if (PyErr_Occurred()) SWIG_fail; | |
17578 | } | |
17579 | Py_INCREF(Py_None); resultobj = Py_None; | |
17580 | return resultobj; | |
17581 | fail: | |
17582 | return NULL; | |
17583 | } | |
17584 | ||
17585 | ||
17586 | static PyObject *_wrap_PrintData_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17587 | PyObject *resultobj; | |
17588 | wxPrintData *arg1 = (wxPrintData *) 0 ; | |
17589 | int arg2 ; | |
17590 | PyObject * obj0 = 0 ; | |
994141e6 | 17591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17592 | char *kwnames[] = { |
17593 | (char *) "self",(char *) "printMode", NULL | |
17594 | }; | |
17595 | ||
994141e6 | 17596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintData_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 17597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
17598 | { |
17599 | arg2 = (wxPrintMode) SWIG_PyObj_AsInt(obj1); | |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
17601 | } | |
d14a1e28 RD |
17602 | { |
17603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17604 | (arg1)->SetPrintMode((wxPrintMode )arg2); | |
17605 | ||
17606 | wxPyEndAllowThreads(__tstate); | |
17607 | if (PyErr_Occurred()) SWIG_fail; | |
17608 | } | |
17609 | Py_INCREF(Py_None); resultobj = Py_None; | |
17610 | return resultobj; | |
17611 | fail: | |
17612 | return NULL; | |
17613 | } | |
17614 | ||
17615 | ||
17616 | static PyObject * PrintData_swigregister(PyObject *self, PyObject *args) { | |
17617 | PyObject *obj; | |
17618 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17619 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintData, obj); | |
17620 | Py_INCREF(obj); | |
17621 | return Py_BuildValue((char *)""); | |
17622 | } | |
17623 | static PyObject *_wrap_new_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17624 | PyObject *resultobj; | |
17625 | wxPageSetupDialogData *result; | |
17626 | char *kwnames[] = { | |
17627 | NULL | |
17628 | }; | |
17629 | ||
17630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PageSetupDialogData",kwnames)) goto fail; | |
17631 | { | |
17632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17633 | result = (wxPageSetupDialogData *)new wxPageSetupDialogData(); | |
17634 | ||
17635 | wxPyEndAllowThreads(__tstate); | |
17636 | if (PyErr_Occurred()) SWIG_fail; | |
17637 | } | |
17638 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPageSetupDialogData, 1); | |
17639 | return resultobj; | |
17640 | fail: | |
17641 | return NULL; | |
17642 | } | |
17643 | ||
17644 | ||
17645 | static PyObject *_wrap_delete_PageSetupDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17646 | PyObject *resultobj; | |
17647 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17648 | PyObject * obj0 = 0 ; | |
17649 | char *kwnames[] = { | |
17650 | (char *) "self", NULL | |
17651 | }; | |
17652 | ||
17653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PageSetupDialogData",kwnames,&obj0)) goto fail; | |
17654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17655 | { | |
17656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17657 | delete arg1; | |
17658 | ||
17659 | wxPyEndAllowThreads(__tstate); | |
17660 | if (PyErr_Occurred()) SWIG_fail; | |
17661 | } | |
17662 | Py_INCREF(Py_None); resultobj = Py_None; | |
17663 | return resultobj; | |
17664 | fail: | |
17665 | return NULL; | |
17666 | } | |
17667 | ||
17668 | ||
17669 | static PyObject *_wrap_PageSetupDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17670 | PyObject *resultobj; | |
17671 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17672 | bool arg2 ; | |
17673 | PyObject * obj0 = 0 ; | |
17674 | PyObject * obj1 = 0 ; | |
17675 | char *kwnames[] = { | |
17676 | (char *) "self",(char *) "flag", NULL | |
17677 | }; | |
17678 | ||
17679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
17680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17681 | { |
994141e6 | 17682 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17683 | if (PyErr_Occurred()) SWIG_fail; |
17684 | } | |
d14a1e28 RD |
17685 | { |
17686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17687 | (arg1)->EnableHelp(arg2); | |
17688 | ||
17689 | wxPyEndAllowThreads(__tstate); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
17691 | } | |
17692 | Py_INCREF(Py_None); resultobj = Py_None; | |
17693 | return resultobj; | |
17694 | fail: | |
17695 | return NULL; | |
17696 | } | |
17697 | ||
17698 | ||
17699 | static PyObject *_wrap_PageSetupDialogData_EnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17700 | PyObject *resultobj; | |
17701 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17702 | bool arg2 ; | |
17703 | PyObject * obj0 = 0 ; | |
17704 | PyObject * obj1 = 0 ; | |
17705 | char *kwnames[] = { | |
17706 | (char *) "self",(char *) "flag", NULL | |
17707 | }; | |
17708 | ||
17709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableMargins",kwnames,&obj0,&obj1)) goto fail; | |
17710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17711 | { |
994141e6 | 17712 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17713 | if (PyErr_Occurred()) SWIG_fail; |
17714 | } | |
d14a1e28 RD |
17715 | { |
17716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17717 | (arg1)->EnableMargins(arg2); | |
17718 | ||
17719 | wxPyEndAllowThreads(__tstate); | |
17720 | if (PyErr_Occurred()) SWIG_fail; | |
17721 | } | |
17722 | Py_INCREF(Py_None); resultobj = Py_None; | |
17723 | return resultobj; | |
17724 | fail: | |
17725 | return NULL; | |
17726 | } | |
17727 | ||
17728 | ||
17729 | static PyObject *_wrap_PageSetupDialogData_EnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17730 | PyObject *resultobj; | |
17731 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17732 | bool arg2 ; | |
17733 | PyObject * obj0 = 0 ; | |
17734 | PyObject * obj1 = 0 ; | |
17735 | char *kwnames[] = { | |
17736 | (char *) "self",(char *) "flag", NULL | |
17737 | }; | |
17738 | ||
17739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnableOrientation",kwnames,&obj0,&obj1)) goto fail; | |
17740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17741 | { |
994141e6 | 17742 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17743 | if (PyErr_Occurred()) SWIG_fail; |
17744 | } | |
d14a1e28 RD |
17745 | { |
17746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17747 | (arg1)->EnableOrientation(arg2); | |
17748 | ||
17749 | wxPyEndAllowThreads(__tstate); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | } | |
17752 | Py_INCREF(Py_None); resultobj = Py_None; | |
17753 | return resultobj; | |
17754 | fail: | |
17755 | return NULL; | |
17756 | } | |
17757 | ||
17758 | ||
17759 | static PyObject *_wrap_PageSetupDialogData_EnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17760 | PyObject *resultobj; | |
17761 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17762 | bool arg2 ; | |
17763 | PyObject * obj0 = 0 ; | |
17764 | PyObject * obj1 = 0 ; | |
17765 | char *kwnames[] = { | |
17766 | (char *) "self",(char *) "flag", NULL | |
17767 | }; | |
17768 | ||
17769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePaper",kwnames,&obj0,&obj1)) goto fail; | |
17770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17771 | { |
994141e6 | 17772 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17773 | if (PyErr_Occurred()) SWIG_fail; |
17774 | } | |
d14a1e28 RD |
17775 | { |
17776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17777 | (arg1)->EnablePaper(arg2); | |
17778 | ||
17779 | wxPyEndAllowThreads(__tstate); | |
17780 | if (PyErr_Occurred()) SWIG_fail; | |
17781 | } | |
17782 | Py_INCREF(Py_None); resultobj = Py_None; | |
17783 | return resultobj; | |
17784 | fail: | |
17785 | return NULL; | |
17786 | } | |
17787 | ||
17788 | ||
17789 | static PyObject *_wrap_PageSetupDialogData_EnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17790 | PyObject *resultobj; | |
17791 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17792 | bool arg2 ; | |
17793 | PyObject * obj0 = 0 ; | |
17794 | PyObject * obj1 = 0 ; | |
17795 | char *kwnames[] = { | |
17796 | (char *) "self",(char *) "flag", NULL | |
17797 | }; | |
17798 | ||
17799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_EnablePrinter",kwnames,&obj0,&obj1)) goto fail; | |
17800 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 17801 | { |
994141e6 | 17802 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
17803 | if (PyErr_Occurred()) SWIG_fail; |
17804 | } | |
d14a1e28 RD |
17805 | { |
17806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17807 | (arg1)->EnablePrinter(arg2); | |
17808 | ||
17809 | wxPyEndAllowThreads(__tstate); | |
17810 | if (PyErr_Occurred()) SWIG_fail; | |
17811 | } | |
17812 | Py_INCREF(Py_None); resultobj = Py_None; | |
17813 | return resultobj; | |
17814 | fail: | |
17815 | return NULL; | |
17816 | } | |
17817 | ||
17818 | ||
17819 | static PyObject *_wrap_PageSetupDialogData_GetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17820 | PyObject *resultobj; | |
17821 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17822 | bool result; | |
17823 | PyObject * obj0 = 0 ; | |
17824 | char *kwnames[] = { | |
17825 | (char *) "self", NULL | |
17826 | }; | |
17827 | ||
17828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultMinMargins",kwnames,&obj0)) goto fail; | |
17829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17830 | { | |
17831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17832 | result = (bool)(arg1)->GetDefaultMinMargins(); | |
17833 | ||
17834 | wxPyEndAllowThreads(__tstate); | |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
17836 | } | |
4d5c3d91 | 17837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17838 | return resultobj; |
17839 | fail: | |
17840 | return NULL; | |
17841 | } | |
17842 | ||
17843 | ||
17844 | static PyObject *_wrap_PageSetupDialogData_GetEnableMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17845 | PyObject *resultobj; | |
17846 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17847 | bool result; | |
17848 | PyObject * obj0 = 0 ; | |
17849 | char *kwnames[] = { | |
17850 | (char *) "self", NULL | |
17851 | }; | |
17852 | ||
17853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableMargins",kwnames,&obj0)) goto fail; | |
17854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17855 | { | |
17856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17857 | result = (bool)(arg1)->GetEnableMargins(); | |
17858 | ||
17859 | wxPyEndAllowThreads(__tstate); | |
17860 | if (PyErr_Occurred()) SWIG_fail; | |
17861 | } | |
4d5c3d91 | 17862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17863 | return resultobj; |
17864 | fail: | |
17865 | return NULL; | |
17866 | } | |
17867 | ||
17868 | ||
17869 | static PyObject *_wrap_PageSetupDialogData_GetEnableOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17870 | PyObject *resultobj; | |
17871 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17872 | bool result; | |
17873 | PyObject * obj0 = 0 ; | |
17874 | char *kwnames[] = { | |
17875 | (char *) "self", NULL | |
17876 | }; | |
17877 | ||
17878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableOrientation",kwnames,&obj0)) goto fail; | |
17879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17880 | { | |
17881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17882 | result = (bool)(arg1)->GetEnableOrientation(); | |
17883 | ||
17884 | wxPyEndAllowThreads(__tstate); | |
17885 | if (PyErr_Occurred()) SWIG_fail; | |
17886 | } | |
4d5c3d91 | 17887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17888 | return resultobj; |
17889 | fail: | |
17890 | return NULL; | |
17891 | } | |
17892 | ||
17893 | ||
17894 | static PyObject *_wrap_PageSetupDialogData_GetEnablePaper(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17895 | PyObject *resultobj; | |
17896 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17897 | bool result; | |
17898 | PyObject * obj0 = 0 ; | |
17899 | char *kwnames[] = { | |
17900 | (char *) "self", NULL | |
17901 | }; | |
17902 | ||
17903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePaper",kwnames,&obj0)) goto fail; | |
17904 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17905 | { | |
17906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17907 | result = (bool)(arg1)->GetEnablePaper(); | |
17908 | ||
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
4d5c3d91 | 17912 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17913 | return resultobj; |
17914 | fail: | |
17915 | return NULL; | |
17916 | } | |
17917 | ||
17918 | ||
17919 | static PyObject *_wrap_PageSetupDialogData_GetEnablePrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17920 | PyObject *resultobj; | |
17921 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17922 | bool result; | |
17923 | PyObject * obj0 = 0 ; | |
17924 | char *kwnames[] = { | |
17925 | (char *) "self", NULL | |
17926 | }; | |
17927 | ||
17928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnablePrinter",kwnames,&obj0)) goto fail; | |
17929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17930 | { | |
17931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17932 | result = (bool)(arg1)->GetEnablePrinter(); | |
17933 | ||
17934 | wxPyEndAllowThreads(__tstate); | |
17935 | if (PyErr_Occurred()) SWIG_fail; | |
17936 | } | |
4d5c3d91 | 17937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17938 | return resultobj; |
17939 | fail: | |
17940 | return NULL; | |
17941 | } | |
17942 | ||
17943 | ||
17944 | static PyObject *_wrap_PageSetupDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17945 | PyObject *resultobj; | |
17946 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17947 | bool result; | |
17948 | PyObject * obj0 = 0 ; | |
17949 | char *kwnames[] = { | |
17950 | (char *) "self", NULL | |
17951 | }; | |
17952 | ||
17953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
17954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17955 | { | |
17956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17957 | result = (bool)(arg1)->GetEnableHelp(); | |
17958 | ||
17959 | wxPyEndAllowThreads(__tstate); | |
17960 | if (PyErr_Occurred()) SWIG_fail; | |
17961 | } | |
4d5c3d91 | 17962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17963 | return resultobj; |
17964 | fail: | |
17965 | return NULL; | |
17966 | } | |
17967 | ||
17968 | ||
17969 | static PyObject *_wrap_PageSetupDialogData_GetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17970 | PyObject *resultobj; | |
17971 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17972 | bool result; | |
17973 | PyObject * obj0 = 0 ; | |
17974 | char *kwnames[] = { | |
17975 | (char *) "self", NULL | |
17976 | }; | |
17977 | ||
17978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetDefaultInfo",kwnames,&obj0)) goto fail; | |
17979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17980 | { | |
17981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17982 | result = (bool)(arg1)->GetDefaultInfo(); | |
17983 | ||
17984 | wxPyEndAllowThreads(__tstate); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
4d5c3d91 | 17987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
17988 | return resultobj; |
17989 | fail: | |
17990 | return NULL; | |
17991 | } | |
17992 | ||
17993 | ||
17994 | static PyObject *_wrap_PageSetupDialogData_GetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17995 | PyObject *resultobj; | |
17996 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
17997 | wxPoint result; | |
17998 | PyObject * obj0 = 0 ; | |
17999 | char *kwnames[] = { | |
18000 | (char *) "self", NULL | |
18001 | }; | |
18002 | ||
18003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginTopLeft",kwnames,&obj0)) goto fail; | |
18004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18005 | { | |
18006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18007 | result = (arg1)->GetMarginTopLeft(); | |
18008 | ||
18009 | wxPyEndAllowThreads(__tstate); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | } | |
18012 | { | |
18013 | wxPoint * resultptr; | |
18014 | resultptr = new wxPoint((wxPoint &) result); | |
18015 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18016 | } | |
18017 | return resultobj; | |
18018 | fail: | |
18019 | return NULL; | |
18020 | } | |
18021 | ||
18022 | ||
18023 | static PyObject *_wrap_PageSetupDialogData_GetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18024 | PyObject *resultobj; | |
18025 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18026 | wxPoint result; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | char *kwnames[] = { | |
18029 | (char *) "self", NULL | |
18030 | }; | |
18031 | ||
18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMarginBottomRight",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 = (arg1)->GetMarginBottomRight(); | |
18037 | ||
18038 | wxPyEndAllowThreads(__tstate); | |
18039 | if (PyErr_Occurred()) SWIG_fail; | |
18040 | } | |
18041 | { | |
18042 | wxPoint * resultptr; | |
18043 | resultptr = new wxPoint((wxPoint &) result); | |
18044 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18045 | } | |
18046 | return resultobj; | |
18047 | fail: | |
18048 | return NULL; | |
18049 | } | |
18050 | ||
18051 | ||
18052 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18053 | PyObject *resultobj; | |
18054 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18055 | wxPoint result; | |
18056 | PyObject * obj0 = 0 ; | |
18057 | char *kwnames[] = { | |
18058 | (char *) "self", NULL | |
18059 | }; | |
18060 | ||
18061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginTopLeft",kwnames,&obj0)) goto fail; | |
18062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18063 | { | |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | result = (arg1)->GetMinMarginTopLeft(); | |
18066 | ||
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | { | |
18071 | wxPoint * resultptr; | |
18072 | resultptr = new wxPoint((wxPoint &) result); | |
18073 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18074 | } | |
18075 | return resultobj; | |
18076 | fail: | |
18077 | return NULL; | |
18078 | } | |
18079 | ||
18080 | ||
18081 | static PyObject *_wrap_PageSetupDialogData_GetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18082 | PyObject *resultobj; | |
18083 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18084 | wxPoint result; | |
18085 | PyObject * obj0 = 0 ; | |
18086 | char *kwnames[] = { | |
18087 | (char *) "self", NULL | |
18088 | }; | |
18089 | ||
18090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetMinMarginBottomRight",kwnames,&obj0)) goto fail; | |
18091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18092 | { | |
18093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18094 | result = (arg1)->GetMinMarginBottomRight(); | |
18095 | ||
18096 | wxPyEndAllowThreads(__tstate); | |
18097 | if (PyErr_Occurred()) SWIG_fail; | |
18098 | } | |
18099 | { | |
18100 | wxPoint * resultptr; | |
18101 | resultptr = new wxPoint((wxPoint &) result); | |
18102 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18103 | } | |
18104 | return resultobj; | |
18105 | fail: | |
18106 | return NULL; | |
18107 | } | |
18108 | ||
18109 | ||
18110 | static PyObject *_wrap_PageSetupDialogData_GetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18111 | PyObject *resultobj; | |
18112 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18113 | int result; | |
18114 | PyObject * obj0 = 0 ; | |
18115 | char *kwnames[] = { | |
18116 | (char *) "self", NULL | |
18117 | }; | |
18118 | ||
18119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperId",kwnames,&obj0)) goto fail; | |
18120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18121 | { | |
18122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18123 | result = (int)(arg1)->GetPaperId(); | |
18124 | ||
18125 | wxPyEndAllowThreads(__tstate); | |
18126 | if (PyErr_Occurred()) SWIG_fail; | |
18127 | } | |
994141e6 | 18128 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18129 | return resultobj; |
18130 | fail: | |
18131 | return NULL; | |
18132 | } | |
18133 | ||
18134 | ||
18135 | static PyObject *_wrap_PageSetupDialogData_GetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18136 | PyObject *resultobj; | |
18137 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18138 | wxSize result; | |
18139 | PyObject * obj0 = 0 ; | |
18140 | char *kwnames[] = { | |
18141 | (char *) "self", NULL | |
18142 | }; | |
18143 | ||
18144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPaperSize",kwnames,&obj0)) goto fail; | |
18145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18146 | { | |
18147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18148 | result = (arg1)->GetPaperSize(); | |
18149 | ||
18150 | wxPyEndAllowThreads(__tstate); | |
18151 | if (PyErr_Occurred()) SWIG_fail; | |
18152 | } | |
18153 | { | |
18154 | wxSize * resultptr; | |
18155 | resultptr = new wxSize((wxSize &) result); | |
18156 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
18157 | } | |
18158 | return resultobj; | |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
18164 | static PyObject *_wrap_PageSetupDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18165 | PyObject *resultobj; | |
18166 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18167 | wxPrintData *result; | |
18168 | PyObject * obj0 = 0 ; | |
18169 | char *kwnames[] = { | |
18170 | (char *) "self", NULL | |
18171 | }; | |
18172 | ||
18173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
18174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | { | |
18178 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
18179 | result = (wxPrintData *) &_result_ref; | |
18180 | } | |
18181 | ||
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
18186 | return resultobj; | |
18187 | fail: | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
18192 | static PyObject *_wrap_PageSetupDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18193 | PyObject *resultobj; | |
18194 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18195 | bool result; | |
18196 | PyObject * obj0 = 0 ; | |
18197 | char *kwnames[] = { | |
18198 | (char *) "self", NULL | |
18199 | }; | |
18200 | ||
18201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialogData_Ok",kwnames,&obj0)) goto fail; | |
18202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18203 | { | |
18204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18205 | result = (bool)(arg1)->Ok(); | |
18206 | ||
18207 | wxPyEndAllowThreads(__tstate); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
4d5c3d91 | 18210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18211 | return resultobj; |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
18217 | static PyObject *_wrap_PageSetupDialogData_SetDefaultInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18218 | PyObject *resultobj; | |
18219 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18220 | bool arg2 ; | |
18221 | PyObject * obj0 = 0 ; | |
18222 | PyObject * obj1 = 0 ; | |
18223 | char *kwnames[] = { | |
18224 | (char *) "self",(char *) "flag", NULL | |
18225 | }; | |
18226 | ||
18227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultInfo",kwnames,&obj0,&obj1)) goto fail; | |
18228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 18229 | { |
994141e6 | 18230 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
18231 | if (PyErr_Occurred()) SWIG_fail; |
18232 | } | |
d14a1e28 RD |
18233 | { |
18234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18235 | (arg1)->SetDefaultInfo(arg2); | |
18236 | ||
18237 | wxPyEndAllowThreads(__tstate); | |
18238 | if (PyErr_Occurred()) SWIG_fail; | |
18239 | } | |
18240 | Py_INCREF(Py_None); resultobj = Py_None; | |
18241 | return resultobj; | |
18242 | fail: | |
18243 | return NULL; | |
18244 | } | |
18245 | ||
18246 | ||
18247 | static PyObject *_wrap_PageSetupDialogData_SetDefaultMinMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18248 | PyObject *resultobj; | |
18249 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18250 | bool arg2 ; | |
18251 | PyObject * obj0 = 0 ; | |
18252 | PyObject * obj1 = 0 ; | |
18253 | char *kwnames[] = { | |
18254 | (char *) "self",(char *) "flag", NULL | |
18255 | }; | |
18256 | ||
18257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetDefaultMinMargins",kwnames,&obj0,&obj1)) goto fail; | |
18258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 18259 | { |
994141e6 | 18260 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
18261 | if (PyErr_Occurred()) SWIG_fail; |
18262 | } | |
d14a1e28 RD |
18263 | { |
18264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18265 | (arg1)->SetDefaultMinMargins(arg2); | |
18266 | ||
18267 | wxPyEndAllowThreads(__tstate); | |
18268 | if (PyErr_Occurred()) SWIG_fail; | |
18269 | } | |
18270 | Py_INCREF(Py_None); resultobj = Py_None; | |
18271 | return resultobj; | |
18272 | fail: | |
18273 | return NULL; | |
18274 | } | |
18275 | ||
18276 | ||
18277 | static PyObject *_wrap_PageSetupDialogData_SetMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18278 | PyObject *resultobj; | |
18279 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18280 | wxPoint *arg2 = 0 ; | |
18281 | wxPoint temp2 ; | |
18282 | PyObject * obj0 = 0 ; | |
18283 | PyObject * obj1 = 0 ; | |
18284 | char *kwnames[] = { | |
18285 | (char *) "self",(char *) "pt", NULL | |
18286 | }; | |
18287 | ||
18288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
18289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18290 | { | |
18291 | arg2 = &temp2; | |
18292 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18293 | } | |
18294 | { | |
18295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18296 | (arg1)->SetMarginTopLeft((wxPoint const &)*arg2); | |
18297 | ||
18298 | wxPyEndAllowThreads(__tstate); | |
18299 | if (PyErr_Occurred()) SWIG_fail; | |
18300 | } | |
18301 | Py_INCREF(Py_None); resultobj = Py_None; | |
18302 | return resultobj; | |
18303 | fail: | |
18304 | return NULL; | |
18305 | } | |
18306 | ||
18307 | ||
18308 | static PyObject *_wrap_PageSetupDialogData_SetMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18309 | PyObject *resultobj; | |
18310 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18311 | wxPoint *arg2 = 0 ; | |
18312 | wxPoint temp2 ; | |
18313 | PyObject * obj0 = 0 ; | |
18314 | PyObject * obj1 = 0 ; | |
18315 | char *kwnames[] = { | |
18316 | (char *) "self",(char *) "pt", NULL | |
18317 | }; | |
18318 | ||
18319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
18320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18321 | { | |
18322 | arg2 = &temp2; | |
18323 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18324 | } | |
18325 | { | |
18326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18327 | (arg1)->SetMarginBottomRight((wxPoint const &)*arg2); | |
18328 | ||
18329 | wxPyEndAllowThreads(__tstate); | |
18330 | if (PyErr_Occurred()) SWIG_fail; | |
18331 | } | |
18332 | Py_INCREF(Py_None); resultobj = Py_None; | |
18333 | return resultobj; | |
18334 | fail: | |
18335 | return NULL; | |
18336 | } | |
18337 | ||
18338 | ||
18339 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18340 | PyObject *resultobj; | |
18341 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18342 | wxPoint *arg2 = 0 ; | |
18343 | wxPoint temp2 ; | |
18344 | PyObject * obj0 = 0 ; | |
18345 | PyObject * obj1 = 0 ; | |
18346 | char *kwnames[] = { | |
18347 | (char *) "self",(char *) "pt", NULL | |
18348 | }; | |
18349 | ||
18350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
18351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18352 | { | |
18353 | arg2 = &temp2; | |
18354 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18355 | } | |
18356 | { | |
18357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18358 | (arg1)->SetMinMarginTopLeft((wxPoint const &)*arg2); | |
18359 | ||
18360 | wxPyEndAllowThreads(__tstate); | |
18361 | if (PyErr_Occurred()) SWIG_fail; | |
18362 | } | |
18363 | Py_INCREF(Py_None); resultobj = Py_None; | |
18364 | return resultobj; | |
18365 | fail: | |
18366 | return NULL; | |
18367 | } | |
18368 | ||
18369 | ||
18370 | static PyObject *_wrap_PageSetupDialogData_SetMinMarginBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18371 | PyObject *resultobj; | |
18372 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18373 | wxPoint *arg2 = 0 ; | |
18374 | wxPoint temp2 ; | |
18375 | PyObject * obj0 = 0 ; | |
18376 | PyObject * obj1 = 0 ; | |
18377 | char *kwnames[] = { | |
18378 | (char *) "self",(char *) "pt", NULL | |
18379 | }; | |
18380 | ||
18381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetMinMarginBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
18382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18383 | { | |
18384 | arg2 = &temp2; | |
18385 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18386 | } | |
18387 | { | |
18388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18389 | (arg1)->SetMinMarginBottomRight((wxPoint const &)*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_SetPaperId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18402 | PyObject *resultobj; | |
18403 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18404 | int arg2 ; | |
18405 | PyObject * obj0 = 0 ; | |
994141e6 | 18406 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18407 | char *kwnames[] = { |
18408 | (char *) "self",(char *) "id", NULL | |
18409 | }; | |
18410 | ||
994141e6 | 18411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperId",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18412 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18413 | { |
18414 | arg2 = (wxPaperSize) SWIG_PyObj_AsInt(obj1); | |
18415 | if (PyErr_Occurred()) SWIG_fail; | |
18416 | } | |
d14a1e28 RD |
18417 | { |
18418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18419 | (arg1)->SetPaperId((wxPaperSize )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_SetPaperSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18432 | PyObject *resultobj; | |
18433 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18434 | wxSize *arg2 = 0 ; | |
18435 | wxSize temp2 ; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | PyObject * obj1 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "self",(char *) "size", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPaperSize",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 ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18447 | } | |
18448 | { | |
18449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18450 | (arg1)->SetPaperSize((wxSize 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_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18463 | PyObject *resultobj; | |
18464 | wxPageSetupDialogData *arg1 = (wxPageSetupDialogData *) 0 ; | |
18465 | wxPrintData *arg2 = 0 ; | |
18466 | PyObject * obj0 = 0 ; | |
18467 | PyObject * obj1 = 0 ; | |
18468 | char *kwnames[] = { | |
18469 | (char *) "self",(char *) "printData", NULL | |
18470 | }; | |
18471 | ||
18472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PageSetupDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
18473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18474 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18475 | if (arg2 == NULL) { | |
18476 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18477 | } | |
18478 | { | |
18479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18480 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
18481 | ||
18482 | wxPyEndAllowThreads(__tstate); | |
18483 | if (PyErr_Occurred()) SWIG_fail; | |
18484 | } | |
18485 | Py_INCREF(Py_None); resultobj = Py_None; | |
18486 | return resultobj; | |
18487 | fail: | |
18488 | return NULL; | |
18489 | } | |
18490 | ||
18491 | ||
18492 | static PyObject * PageSetupDialogData_swigregister(PyObject *self, PyObject *args) { | |
18493 | PyObject *obj; | |
18494 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18495 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialogData, obj); | |
18496 | Py_INCREF(obj); | |
18497 | return Py_BuildValue((char *)""); | |
18498 | } | |
18499 | static PyObject *_wrap_new_PageSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18500 | PyObject *resultobj; | |
18501 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18502 | wxPageSetupDialogData *arg2 = (wxPageSetupDialogData *) NULL ; | |
18503 | wxPageSetupDialog *result; | |
18504 | PyObject * obj0 = 0 ; | |
18505 | PyObject * obj1 = 0 ; | |
18506 | char *kwnames[] = { | |
18507 | (char *) "parent",(char *) "data", NULL | |
18508 | }; | |
18509 | ||
18510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PageSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
18511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18512 | if (obj1) { | |
18513 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPageSetupDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18514 | } | |
18515 | { | |
18516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18517 | result = (wxPageSetupDialog *)new wxPageSetupDialog(arg1,arg2); | |
18518 | ||
18519 | wxPyEndAllowThreads(__tstate); | |
18520 | if (PyErr_Occurred()) SWIG_fail; | |
18521 | } | |
18522 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPageSetupDialog, 1); | |
18523 | return resultobj; | |
18524 | fail: | |
18525 | return NULL; | |
18526 | } | |
18527 | ||
18528 | ||
18529 | static PyObject *_wrap_PageSetupDialog_GetPageSetupData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18530 | PyObject *resultobj; | |
18531 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
18532 | wxPageSetupDialogData *result; | |
18533 | PyObject * obj0 = 0 ; | |
18534 | char *kwnames[] = { | |
18535 | (char *) "self", NULL | |
18536 | }; | |
18537 | ||
18538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_GetPageSetupData",kwnames,&obj0)) goto fail; | |
18539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18540 | { | |
18541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18542 | { | |
18543 | wxPageSetupDialogData &_result_ref = (arg1)->GetPageSetupData(); | |
18544 | result = (wxPageSetupDialogData *) &_result_ref; | |
18545 | } | |
18546 | ||
18547 | wxPyEndAllowThreads(__tstate); | |
18548 | if (PyErr_Occurred()) SWIG_fail; | |
18549 | } | |
18550 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPageSetupDialogData, 0); | |
18551 | return resultobj; | |
18552 | fail: | |
18553 | return NULL; | |
18554 | } | |
18555 | ||
18556 | ||
18557 | static PyObject *_wrap_PageSetupDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18558 | PyObject *resultobj; | |
18559 | wxPageSetupDialog *arg1 = (wxPageSetupDialog *) 0 ; | |
18560 | int result; | |
18561 | PyObject * obj0 = 0 ; | |
18562 | char *kwnames[] = { | |
18563 | (char *) "self", NULL | |
18564 | }; | |
18565 | ||
18566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PageSetupDialog_ShowModal",kwnames,&obj0)) goto fail; | |
18567 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPageSetupDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18568 | { | |
18569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18570 | result = (int)(arg1)->ShowModal(); | |
18571 | ||
18572 | wxPyEndAllowThreads(__tstate); | |
18573 | if (PyErr_Occurred()) SWIG_fail; | |
18574 | } | |
994141e6 | 18575 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18576 | return resultobj; |
18577 | fail: | |
18578 | return NULL; | |
18579 | } | |
18580 | ||
18581 | ||
18582 | static PyObject * PageSetupDialog_swigregister(PyObject *self, PyObject *args) { | |
18583 | PyObject *obj; | |
18584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18585 | SWIG_TypeClientData(SWIGTYPE_p_wxPageSetupDialog, obj); | |
18586 | Py_INCREF(obj); | |
18587 | return Py_BuildValue((char *)""); | |
18588 | } | |
18589 | static PyObject *_wrap_new_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18590 | PyObject *resultobj; | |
18591 | wxPrintDialogData *result; | |
18592 | char *kwnames[] = { | |
18593 | NULL | |
18594 | }; | |
18595 | ||
18596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrintDialogData",kwnames)) goto fail; | |
18597 | { | |
18598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18599 | result = (wxPrintDialogData *)new wxPrintDialogData(); | |
18600 | ||
18601 | wxPyEndAllowThreads(__tstate); | |
18602 | if (PyErr_Occurred()) SWIG_fail; | |
18603 | } | |
18604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 1); | |
18605 | return resultobj; | |
18606 | fail: | |
18607 | return NULL; | |
18608 | } | |
18609 | ||
18610 | ||
18611 | static PyObject *_wrap_delete_PrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18612 | PyObject *resultobj; | |
18613 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18614 | PyObject * obj0 = 0 ; | |
18615 | char *kwnames[] = { | |
18616 | (char *) "self", NULL | |
18617 | }; | |
18618 | ||
18619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PrintDialogData",kwnames,&obj0)) goto fail; | |
18620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18621 | { | |
18622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18623 | delete arg1; | |
18624 | ||
18625 | wxPyEndAllowThreads(__tstate); | |
18626 | if (PyErr_Occurred()) SWIG_fail; | |
18627 | } | |
18628 | Py_INCREF(Py_None); resultobj = Py_None; | |
18629 | return resultobj; | |
18630 | fail: | |
18631 | return NULL; | |
18632 | } | |
18633 | ||
18634 | ||
18635 | static PyObject *_wrap_PrintDialogData_GetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18636 | PyObject *resultobj; | |
18637 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18638 | int result; | |
18639 | PyObject * obj0 = 0 ; | |
18640 | char *kwnames[] = { | |
18641 | (char *) "self", NULL | |
18642 | }; | |
18643 | ||
18644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetFromPage",kwnames,&obj0)) goto fail; | |
18645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18646 | { | |
18647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18648 | result = (int)((wxPrintDialogData const *)arg1)->GetFromPage(); | |
18649 | ||
18650 | wxPyEndAllowThreads(__tstate); | |
18651 | if (PyErr_Occurred()) SWIG_fail; | |
18652 | } | |
994141e6 | 18653 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18654 | return resultobj; |
18655 | fail: | |
18656 | return NULL; | |
18657 | } | |
18658 | ||
18659 | ||
18660 | static PyObject *_wrap_PrintDialogData_GetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18661 | PyObject *resultobj; | |
18662 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18663 | int result; | |
18664 | PyObject * obj0 = 0 ; | |
18665 | char *kwnames[] = { | |
18666 | (char *) "self", NULL | |
18667 | }; | |
18668 | ||
18669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetToPage",kwnames,&obj0)) goto fail; | |
18670 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18671 | { | |
18672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18673 | result = (int)((wxPrintDialogData const *)arg1)->GetToPage(); | |
18674 | ||
18675 | wxPyEndAllowThreads(__tstate); | |
18676 | if (PyErr_Occurred()) SWIG_fail; | |
18677 | } | |
994141e6 | 18678 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18679 | return resultobj; |
18680 | fail: | |
18681 | return NULL; | |
18682 | } | |
18683 | ||
18684 | ||
18685 | static PyObject *_wrap_PrintDialogData_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18686 | PyObject *resultobj; | |
18687 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18688 | int result; | |
18689 | PyObject * obj0 = 0 ; | |
18690 | char *kwnames[] = { | |
18691 | (char *) "self", NULL | |
18692 | }; | |
18693 | ||
18694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMinPage",kwnames,&obj0)) goto fail; | |
18695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18696 | { | |
18697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18698 | result = (int)((wxPrintDialogData const *)arg1)->GetMinPage(); | |
18699 | ||
18700 | wxPyEndAllowThreads(__tstate); | |
18701 | if (PyErr_Occurred()) SWIG_fail; | |
18702 | } | |
994141e6 | 18703 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18704 | return resultobj; |
18705 | fail: | |
18706 | return NULL; | |
18707 | } | |
18708 | ||
18709 | ||
18710 | static PyObject *_wrap_PrintDialogData_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18711 | PyObject *resultobj; | |
18712 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18713 | int result; | |
18714 | PyObject * obj0 = 0 ; | |
18715 | char *kwnames[] = { | |
18716 | (char *) "self", NULL | |
18717 | }; | |
18718 | ||
18719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetMaxPage",kwnames,&obj0)) goto fail; | |
18720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18721 | { | |
18722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18723 | result = (int)((wxPrintDialogData const *)arg1)->GetMaxPage(); | |
18724 | ||
18725 | wxPyEndAllowThreads(__tstate); | |
18726 | if (PyErr_Occurred()) SWIG_fail; | |
18727 | } | |
994141e6 | 18728 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18729 | return resultobj; |
18730 | fail: | |
18731 | return NULL; | |
18732 | } | |
18733 | ||
18734 | ||
18735 | static PyObject *_wrap_PrintDialogData_GetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18736 | PyObject *resultobj; | |
18737 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18738 | int result; | |
18739 | PyObject * obj0 = 0 ; | |
18740 | char *kwnames[] = { | |
18741 | (char *) "self", NULL | |
18742 | }; | |
18743 | ||
18744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetNoCopies",kwnames,&obj0)) goto fail; | |
18745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18746 | { | |
18747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18748 | result = (int)((wxPrintDialogData const *)arg1)->GetNoCopies(); | |
18749 | ||
18750 | wxPyEndAllowThreads(__tstate); | |
18751 | if (PyErr_Occurred()) SWIG_fail; | |
18752 | } | |
994141e6 | 18753 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
18754 | return resultobj; |
18755 | fail: | |
18756 | return NULL; | |
18757 | } | |
18758 | ||
18759 | ||
18760 | static PyObject *_wrap_PrintDialogData_GetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18761 | PyObject *resultobj; | |
18762 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18763 | bool result; | |
18764 | PyObject * obj0 = 0 ; | |
18765 | char *kwnames[] = { | |
18766 | (char *) "self", NULL | |
18767 | }; | |
18768 | ||
18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetAllPages",kwnames,&obj0)) goto fail; | |
18770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18771 | { | |
18772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18773 | result = (bool)((wxPrintDialogData const *)arg1)->GetAllPages(); | |
18774 | ||
18775 | wxPyEndAllowThreads(__tstate); | |
18776 | if (PyErr_Occurred()) SWIG_fail; | |
18777 | } | |
4d5c3d91 | 18778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18779 | return resultobj; |
18780 | fail: | |
18781 | return NULL; | |
18782 | } | |
18783 | ||
18784 | ||
18785 | static PyObject *_wrap_PrintDialogData_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18786 | PyObject *resultobj; | |
18787 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18788 | bool result; | |
18789 | PyObject * obj0 = 0 ; | |
18790 | char *kwnames[] = { | |
18791 | (char *) "self", NULL | |
18792 | }; | |
18793 | ||
18794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSelection",kwnames,&obj0)) goto fail; | |
18795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18796 | { | |
18797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18798 | result = (bool)((wxPrintDialogData const *)arg1)->GetSelection(); | |
18799 | ||
18800 | wxPyEndAllowThreads(__tstate); | |
18801 | if (PyErr_Occurred()) SWIG_fail; | |
18802 | } | |
4d5c3d91 | 18803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18804 | return resultobj; |
18805 | fail: | |
18806 | return NULL; | |
18807 | } | |
18808 | ||
18809 | ||
18810 | static PyObject *_wrap_PrintDialogData_GetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18811 | PyObject *resultobj; | |
18812 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18813 | bool result; | |
18814 | PyObject * obj0 = 0 ; | |
18815 | char *kwnames[] = { | |
18816 | (char *) "self", NULL | |
18817 | }; | |
18818 | ||
18819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetCollate",kwnames,&obj0)) goto fail; | |
18820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18821 | { | |
18822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18823 | result = (bool)((wxPrintDialogData const *)arg1)->GetCollate(); | |
18824 | ||
18825 | wxPyEndAllowThreads(__tstate); | |
18826 | if (PyErr_Occurred()) SWIG_fail; | |
18827 | } | |
4d5c3d91 | 18828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18829 | return resultobj; |
18830 | fail: | |
18831 | return NULL; | |
18832 | } | |
18833 | ||
18834 | ||
18835 | static PyObject *_wrap_PrintDialogData_GetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18836 | PyObject *resultobj; | |
18837 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18838 | bool result; | |
18839 | PyObject * obj0 = 0 ; | |
18840 | char *kwnames[] = { | |
18841 | (char *) "self", NULL | |
18842 | }; | |
18843 | ||
18844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintToFile",kwnames,&obj0)) goto fail; | |
18845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18846 | { | |
18847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18848 | result = (bool)((wxPrintDialogData const *)arg1)->GetPrintToFile(); | |
18849 | ||
18850 | wxPyEndAllowThreads(__tstate); | |
18851 | if (PyErr_Occurred()) SWIG_fail; | |
18852 | } | |
4d5c3d91 | 18853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18854 | return resultobj; |
18855 | fail: | |
18856 | return NULL; | |
18857 | } | |
18858 | ||
18859 | ||
18860 | static PyObject *_wrap_PrintDialogData_GetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18861 | PyObject *resultobj; | |
18862 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18863 | bool result; | |
18864 | PyObject * obj0 = 0 ; | |
18865 | char *kwnames[] = { | |
18866 | (char *) "self", NULL | |
18867 | }; | |
18868 | ||
18869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetSetupDialog",kwnames,&obj0)) goto fail; | |
18870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18871 | { | |
18872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18873 | result = (bool)((wxPrintDialogData const *)arg1)->GetSetupDialog(); | |
18874 | ||
18875 | wxPyEndAllowThreads(__tstate); | |
18876 | if (PyErr_Occurred()) SWIG_fail; | |
18877 | } | |
4d5c3d91 | 18878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
18879 | return resultobj; |
18880 | fail: | |
18881 | return NULL; | |
18882 | } | |
18883 | ||
18884 | ||
18885 | static PyObject *_wrap_PrintDialogData_SetFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18886 | PyObject *resultobj; | |
18887 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18888 | int arg2 ; | |
18889 | PyObject * obj0 = 0 ; | |
994141e6 | 18890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18891 | char *kwnames[] = { |
18892 | (char *) "self",(char *) "v", NULL | |
18893 | }; | |
18894 | ||
994141e6 | 18895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetFromPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18897 | { |
18898 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18899 | if (PyErr_Occurred()) SWIG_fail; | |
18900 | } | |
d14a1e28 RD |
18901 | { |
18902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18903 | (arg1)->SetFromPage(arg2); | |
18904 | ||
18905 | wxPyEndAllowThreads(__tstate); | |
18906 | if (PyErr_Occurred()) SWIG_fail; | |
18907 | } | |
18908 | Py_INCREF(Py_None); resultobj = Py_None; | |
18909 | return resultobj; | |
18910 | fail: | |
18911 | return NULL; | |
18912 | } | |
18913 | ||
18914 | ||
18915 | static PyObject *_wrap_PrintDialogData_SetToPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18916 | PyObject *resultobj; | |
18917 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18918 | int arg2 ; | |
18919 | PyObject * obj0 = 0 ; | |
994141e6 | 18920 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18921 | char *kwnames[] = { |
18922 | (char *) "self",(char *) "v", NULL | |
18923 | }; | |
18924 | ||
994141e6 | 18925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetToPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18927 | { |
18928 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18929 | if (PyErr_Occurred()) SWIG_fail; | |
18930 | } | |
d14a1e28 RD |
18931 | { |
18932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18933 | (arg1)->SetToPage(arg2); | |
18934 | ||
18935 | wxPyEndAllowThreads(__tstate); | |
18936 | if (PyErr_Occurred()) SWIG_fail; | |
18937 | } | |
18938 | Py_INCREF(Py_None); resultobj = Py_None; | |
18939 | return resultobj; | |
18940 | fail: | |
18941 | return NULL; | |
18942 | } | |
18943 | ||
18944 | ||
18945 | static PyObject *_wrap_PrintDialogData_SetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18946 | PyObject *resultobj; | |
18947 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18948 | int arg2 ; | |
18949 | PyObject * obj0 = 0 ; | |
994141e6 | 18950 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18951 | char *kwnames[] = { |
18952 | (char *) "self",(char *) "v", NULL | |
18953 | }; | |
18954 | ||
994141e6 | 18955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMinPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18957 | { |
18958 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18959 | if (PyErr_Occurred()) SWIG_fail; | |
18960 | } | |
d14a1e28 RD |
18961 | { |
18962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18963 | (arg1)->SetMinPage(arg2); | |
18964 | ||
18965 | wxPyEndAllowThreads(__tstate); | |
18966 | if (PyErr_Occurred()) SWIG_fail; | |
18967 | } | |
18968 | Py_INCREF(Py_None); resultobj = Py_None; | |
18969 | return resultobj; | |
18970 | fail: | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
18975 | static PyObject *_wrap_PrintDialogData_SetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18976 | PyObject *resultobj; | |
18977 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
18978 | int arg2 ; | |
18979 | PyObject * obj0 = 0 ; | |
994141e6 | 18980 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18981 | char *kwnames[] = { |
18982 | (char *) "self",(char *) "v", NULL | |
18983 | }; | |
18984 | ||
994141e6 | 18985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetMaxPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 18986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
18987 | { |
18988 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
18989 | if (PyErr_Occurred()) SWIG_fail; | |
18990 | } | |
d14a1e28 RD |
18991 | { |
18992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18993 | (arg1)->SetMaxPage(arg2); | |
18994 | ||
18995 | wxPyEndAllowThreads(__tstate); | |
18996 | if (PyErr_Occurred()) SWIG_fail; | |
18997 | } | |
18998 | Py_INCREF(Py_None); resultobj = Py_None; | |
18999 | return resultobj; | |
19000 | fail: | |
19001 | return NULL; | |
19002 | } | |
19003 | ||
19004 | ||
19005 | static PyObject *_wrap_PrintDialogData_SetNoCopies(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19006 | PyObject *resultobj; | |
19007 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19008 | int arg2 ; | |
19009 | PyObject * obj0 = 0 ; | |
994141e6 | 19010 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19011 | char *kwnames[] = { |
19012 | (char *) "self",(char *) "v", NULL | |
19013 | }; | |
19014 | ||
994141e6 | 19015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetNoCopies",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 19016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
19017 | { |
19018 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
19019 | if (PyErr_Occurred()) SWIG_fail; | |
19020 | } | |
d14a1e28 RD |
19021 | { |
19022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19023 | (arg1)->SetNoCopies(arg2); | |
19024 | ||
19025 | wxPyEndAllowThreads(__tstate); | |
19026 | if (PyErr_Occurred()) SWIG_fail; | |
19027 | } | |
19028 | Py_INCREF(Py_None); resultobj = Py_None; | |
19029 | return resultobj; | |
19030 | fail: | |
19031 | return NULL; | |
19032 | } | |
19033 | ||
19034 | ||
19035 | static PyObject *_wrap_PrintDialogData_SetAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19036 | PyObject *resultobj; | |
19037 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19038 | bool arg2 ; | |
19039 | PyObject * obj0 = 0 ; | |
19040 | PyObject * obj1 = 0 ; | |
19041 | char *kwnames[] = { | |
19042 | (char *) "self",(char *) "flag", NULL | |
19043 | }; | |
19044 | ||
19045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetAllPages",kwnames,&obj0,&obj1)) goto fail; | |
19046 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19047 | { |
994141e6 | 19048 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19049 | if (PyErr_Occurred()) SWIG_fail; |
19050 | } | |
d14a1e28 RD |
19051 | { |
19052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19053 | (arg1)->SetAllPages(arg2); | |
19054 | ||
19055 | wxPyEndAllowThreads(__tstate); | |
19056 | if (PyErr_Occurred()) SWIG_fail; | |
19057 | } | |
19058 | Py_INCREF(Py_None); resultobj = Py_None; | |
19059 | return resultobj; | |
19060 | fail: | |
19061 | return NULL; | |
19062 | } | |
19063 | ||
19064 | ||
19065 | static PyObject *_wrap_PrintDialogData_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19066 | PyObject *resultobj; | |
19067 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19068 | bool arg2 ; | |
19069 | PyObject * obj0 = 0 ; | |
19070 | PyObject * obj1 = 0 ; | |
19071 | char *kwnames[] = { | |
19072 | (char *) "self",(char *) "flag", NULL | |
19073 | }; | |
19074 | ||
19075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
19076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19077 | { |
994141e6 | 19078 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19079 | if (PyErr_Occurred()) SWIG_fail; |
19080 | } | |
d14a1e28 RD |
19081 | { |
19082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19083 | (arg1)->SetSelection(arg2); | |
19084 | ||
19085 | wxPyEndAllowThreads(__tstate); | |
19086 | if (PyErr_Occurred()) SWIG_fail; | |
19087 | } | |
19088 | Py_INCREF(Py_None); resultobj = Py_None; | |
19089 | return resultobj; | |
19090 | fail: | |
19091 | return NULL; | |
19092 | } | |
19093 | ||
19094 | ||
19095 | static PyObject *_wrap_PrintDialogData_SetCollate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19096 | PyObject *resultobj; | |
19097 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19098 | bool arg2 ; | |
19099 | PyObject * obj0 = 0 ; | |
19100 | PyObject * obj1 = 0 ; | |
19101 | char *kwnames[] = { | |
19102 | (char *) "self",(char *) "flag", NULL | |
19103 | }; | |
19104 | ||
19105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetCollate",kwnames,&obj0,&obj1)) goto fail; | |
19106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19107 | { |
994141e6 | 19108 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19109 | if (PyErr_Occurred()) SWIG_fail; |
19110 | } | |
d14a1e28 RD |
19111 | { |
19112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19113 | (arg1)->SetCollate(arg2); | |
19114 | ||
19115 | wxPyEndAllowThreads(__tstate); | |
19116 | if (PyErr_Occurred()) SWIG_fail; | |
19117 | } | |
19118 | Py_INCREF(Py_None); resultobj = Py_None; | |
19119 | return resultobj; | |
19120 | fail: | |
19121 | return NULL; | |
19122 | } | |
19123 | ||
19124 | ||
19125 | static PyObject *_wrap_PrintDialogData_SetPrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19126 | PyObject *resultobj; | |
19127 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19128 | bool arg2 ; | |
19129 | PyObject * obj0 = 0 ; | |
19130 | PyObject * obj1 = 0 ; | |
19131 | char *kwnames[] = { | |
19132 | (char *) "self",(char *) "flag", NULL | |
19133 | }; | |
19134 | ||
19135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
19136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19137 | { |
994141e6 | 19138 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19139 | if (PyErr_Occurred()) SWIG_fail; |
19140 | } | |
d14a1e28 RD |
19141 | { |
19142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19143 | (arg1)->SetPrintToFile(arg2); | |
19144 | ||
19145 | wxPyEndAllowThreads(__tstate); | |
19146 | if (PyErr_Occurred()) SWIG_fail; | |
19147 | } | |
19148 | Py_INCREF(Py_None); resultobj = Py_None; | |
19149 | return resultobj; | |
19150 | fail: | |
19151 | return NULL; | |
19152 | } | |
19153 | ||
19154 | ||
19155 | static PyObject *_wrap_PrintDialogData_SetSetupDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19156 | PyObject *resultobj; | |
19157 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19158 | bool arg2 ; | |
19159 | PyObject * obj0 = 0 ; | |
19160 | PyObject * obj1 = 0 ; | |
19161 | char *kwnames[] = { | |
19162 | (char *) "self",(char *) "flag", NULL | |
19163 | }; | |
19164 | ||
19165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetSetupDialog",kwnames,&obj0,&obj1)) goto fail; | |
19166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19167 | { |
994141e6 | 19168 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19169 | if (PyErr_Occurred()) SWIG_fail; |
19170 | } | |
d14a1e28 RD |
19171 | { |
19172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19173 | (arg1)->SetSetupDialog(arg2); | |
19174 | ||
19175 | wxPyEndAllowThreads(__tstate); | |
19176 | if (PyErr_Occurred()) SWIG_fail; | |
19177 | } | |
19178 | Py_INCREF(Py_None); resultobj = Py_None; | |
19179 | return resultobj; | |
19180 | fail: | |
19181 | return NULL; | |
19182 | } | |
19183 | ||
19184 | ||
19185 | static PyObject *_wrap_PrintDialogData_EnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19186 | PyObject *resultobj; | |
19187 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19188 | bool arg2 ; | |
19189 | PyObject * obj0 = 0 ; | |
19190 | PyObject * obj1 = 0 ; | |
19191 | char *kwnames[] = { | |
19192 | (char *) "self",(char *) "flag", NULL | |
19193 | }; | |
19194 | ||
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePrintToFile",kwnames,&obj0,&obj1)) goto fail; | |
19196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19197 | { |
994141e6 | 19198 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19199 | if (PyErr_Occurred()) SWIG_fail; |
19200 | } | |
d14a1e28 RD |
19201 | { |
19202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19203 | (arg1)->EnablePrintToFile(arg2); | |
19204 | ||
19205 | wxPyEndAllowThreads(__tstate); | |
19206 | if (PyErr_Occurred()) SWIG_fail; | |
19207 | } | |
19208 | Py_INCREF(Py_None); resultobj = Py_None; | |
19209 | return resultobj; | |
19210 | fail: | |
19211 | return NULL; | |
19212 | } | |
19213 | ||
19214 | ||
19215 | static PyObject *_wrap_PrintDialogData_EnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19216 | PyObject *resultobj; | |
19217 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19218 | bool arg2 ; | |
19219 | PyObject * obj0 = 0 ; | |
19220 | PyObject * obj1 = 0 ; | |
19221 | char *kwnames[] = { | |
19222 | (char *) "self",(char *) "flag", NULL | |
19223 | }; | |
19224 | ||
19225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableSelection",kwnames,&obj0,&obj1)) goto fail; | |
19226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19227 | { |
994141e6 | 19228 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19229 | if (PyErr_Occurred()) SWIG_fail; |
19230 | } | |
d14a1e28 RD |
19231 | { |
19232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19233 | (arg1)->EnableSelection(arg2); | |
19234 | ||
19235 | wxPyEndAllowThreads(__tstate); | |
19236 | if (PyErr_Occurred()) SWIG_fail; | |
19237 | } | |
19238 | Py_INCREF(Py_None); resultobj = Py_None; | |
19239 | return resultobj; | |
19240 | fail: | |
19241 | return NULL; | |
19242 | } | |
19243 | ||
19244 | ||
19245 | static PyObject *_wrap_PrintDialogData_EnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19246 | PyObject *resultobj; | |
19247 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19248 | bool arg2 ; | |
19249 | PyObject * obj0 = 0 ; | |
19250 | PyObject * obj1 = 0 ; | |
19251 | char *kwnames[] = { | |
19252 | (char *) "self",(char *) "flag", NULL | |
19253 | }; | |
19254 | ||
19255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnablePageNumbers",kwnames,&obj0,&obj1)) goto fail; | |
19256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19257 | { |
994141e6 | 19258 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19259 | if (PyErr_Occurred()) SWIG_fail; |
19260 | } | |
d14a1e28 RD |
19261 | { |
19262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19263 | (arg1)->EnablePageNumbers(arg2); | |
19264 | ||
19265 | wxPyEndAllowThreads(__tstate); | |
19266 | if (PyErr_Occurred()) SWIG_fail; | |
19267 | } | |
19268 | Py_INCREF(Py_None); resultobj = Py_None; | |
19269 | return resultobj; | |
19270 | fail: | |
19271 | return NULL; | |
19272 | } | |
19273 | ||
19274 | ||
19275 | static PyObject *_wrap_PrintDialogData_EnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19276 | PyObject *resultobj; | |
19277 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19278 | bool arg2 ; | |
19279 | PyObject * obj0 = 0 ; | |
19280 | PyObject * obj1 = 0 ; | |
19281 | char *kwnames[] = { | |
19282 | (char *) "self",(char *) "flag", NULL | |
19283 | }; | |
19284 | ||
19285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_EnableHelp",kwnames,&obj0,&obj1)) goto fail; | |
19286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 19287 | { |
994141e6 | 19288 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
19289 | if (PyErr_Occurred()) SWIG_fail; |
19290 | } | |
d14a1e28 RD |
19291 | { |
19292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19293 | (arg1)->EnableHelp(arg2); | |
19294 | ||
19295 | wxPyEndAllowThreads(__tstate); | |
19296 | if (PyErr_Occurred()) SWIG_fail; | |
19297 | } | |
19298 | Py_INCREF(Py_None); resultobj = Py_None; | |
19299 | return resultobj; | |
19300 | fail: | |
19301 | return NULL; | |
19302 | } | |
19303 | ||
19304 | ||
19305 | static PyObject *_wrap_PrintDialogData_GetEnablePrintToFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19306 | PyObject *resultobj; | |
19307 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19308 | bool result; | |
19309 | PyObject * obj0 = 0 ; | |
19310 | char *kwnames[] = { | |
19311 | (char *) "self", NULL | |
19312 | }; | |
19313 | ||
19314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePrintToFile",kwnames,&obj0)) goto fail; | |
19315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19316 | { | |
19317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19318 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePrintToFile(); | |
19319 | ||
19320 | wxPyEndAllowThreads(__tstate); | |
19321 | if (PyErr_Occurred()) SWIG_fail; | |
19322 | } | |
4d5c3d91 | 19323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19324 | return resultobj; |
19325 | fail: | |
19326 | return NULL; | |
19327 | } | |
19328 | ||
19329 | ||
19330 | static PyObject *_wrap_PrintDialogData_GetEnableSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19331 | PyObject *resultobj; | |
19332 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19333 | bool result; | |
19334 | PyObject * obj0 = 0 ; | |
19335 | char *kwnames[] = { | |
19336 | (char *) "self", NULL | |
19337 | }; | |
19338 | ||
19339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableSelection",kwnames,&obj0)) goto fail; | |
19340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19341 | { | |
19342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19343 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableSelection(); | |
19344 | ||
19345 | wxPyEndAllowThreads(__tstate); | |
19346 | if (PyErr_Occurred()) SWIG_fail; | |
19347 | } | |
4d5c3d91 | 19348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19349 | return resultobj; |
19350 | fail: | |
19351 | return NULL; | |
19352 | } | |
19353 | ||
19354 | ||
19355 | static PyObject *_wrap_PrintDialogData_GetEnablePageNumbers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19356 | PyObject *resultobj; | |
19357 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19358 | bool result; | |
19359 | PyObject * obj0 = 0 ; | |
19360 | char *kwnames[] = { | |
19361 | (char *) "self", NULL | |
19362 | }; | |
19363 | ||
19364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnablePageNumbers",kwnames,&obj0)) goto fail; | |
19365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19366 | { | |
19367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19368 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnablePageNumbers(); | |
19369 | ||
19370 | wxPyEndAllowThreads(__tstate); | |
19371 | if (PyErr_Occurred()) SWIG_fail; | |
19372 | } | |
4d5c3d91 | 19373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19374 | return resultobj; |
19375 | fail: | |
19376 | return NULL; | |
19377 | } | |
19378 | ||
19379 | ||
19380 | static PyObject *_wrap_PrintDialogData_GetEnableHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19381 | PyObject *resultobj; | |
19382 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19383 | bool result; | |
19384 | PyObject * obj0 = 0 ; | |
19385 | char *kwnames[] = { | |
19386 | (char *) "self", NULL | |
19387 | }; | |
19388 | ||
19389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetEnableHelp",kwnames,&obj0)) goto fail; | |
19390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19391 | { | |
19392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19393 | result = (bool)((wxPrintDialogData const *)arg1)->GetEnableHelp(); | |
19394 | ||
19395 | wxPyEndAllowThreads(__tstate); | |
19396 | if (PyErr_Occurred()) SWIG_fail; | |
19397 | } | |
4d5c3d91 | 19398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19399 | return resultobj; |
19400 | fail: | |
19401 | return NULL; | |
19402 | } | |
19403 | ||
19404 | ||
19405 | static PyObject *_wrap_PrintDialogData_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19406 | PyObject *resultobj; | |
19407 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19408 | bool result; | |
19409 | PyObject * obj0 = 0 ; | |
19410 | char *kwnames[] = { | |
19411 | (char *) "self", NULL | |
19412 | }; | |
19413 | ||
19414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_Ok",kwnames,&obj0)) goto fail; | |
19415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19416 | { | |
19417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19418 | result = (bool)((wxPrintDialogData const *)arg1)->Ok(); | |
19419 | ||
19420 | wxPyEndAllowThreads(__tstate); | |
19421 | if (PyErr_Occurred()) SWIG_fail; | |
19422 | } | |
4d5c3d91 | 19423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19424 | return resultobj; |
19425 | fail: | |
19426 | return NULL; | |
19427 | } | |
19428 | ||
19429 | ||
19430 | static PyObject *_wrap_PrintDialogData_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19431 | PyObject *resultobj; | |
19432 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19433 | wxPrintData *result; | |
19434 | PyObject * obj0 = 0 ; | |
19435 | char *kwnames[] = { | |
19436 | (char *) "self", NULL | |
19437 | }; | |
19438 | ||
19439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialogData_GetPrintData",kwnames,&obj0)) goto fail; | |
19440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19441 | { | |
19442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19443 | { | |
19444 | wxPrintData &_result_ref = (arg1)->GetPrintData(); | |
19445 | result = (wxPrintData *) &_result_ref; | |
19446 | } | |
19447 | ||
19448 | wxPyEndAllowThreads(__tstate); | |
19449 | if (PyErr_Occurred()) SWIG_fail; | |
19450 | } | |
19451 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0); | |
19452 | return resultobj; | |
19453 | fail: | |
19454 | return NULL; | |
19455 | } | |
19456 | ||
19457 | ||
19458 | static PyObject *_wrap_PrintDialogData_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19459 | PyObject *resultobj; | |
19460 | wxPrintDialogData *arg1 = (wxPrintDialogData *) 0 ; | |
19461 | wxPrintData *arg2 = 0 ; | |
19462 | PyObject * obj0 = 0 ; | |
19463 | PyObject * obj1 = 0 ; | |
19464 | char *kwnames[] = { | |
19465 | (char *) "self",(char *) "printData", NULL | |
19466 | }; | |
19467 | ||
19468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintDialogData_SetPrintData",kwnames,&obj0,&obj1)) goto fail; | |
19469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19470 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19471 | if (arg2 == NULL) { | |
19472 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19473 | } | |
19474 | { | |
19475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19476 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
19477 | ||
19478 | wxPyEndAllowThreads(__tstate); | |
19479 | if (PyErr_Occurred()) SWIG_fail; | |
19480 | } | |
19481 | Py_INCREF(Py_None); resultobj = Py_None; | |
19482 | return resultobj; | |
19483 | fail: | |
19484 | return NULL; | |
19485 | } | |
19486 | ||
19487 | ||
19488 | static PyObject * PrintDialogData_swigregister(PyObject *self, PyObject *args) { | |
19489 | PyObject *obj; | |
19490 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19491 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialogData, obj); | |
19492 | Py_INCREF(obj); | |
19493 | return Py_BuildValue((char *)""); | |
19494 | } | |
19495 | static PyObject *_wrap_new_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19496 | PyObject *resultobj; | |
19497 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19498 | wxPrintDialogData *arg2 = (wxPrintDialogData *) NULL ; | |
19499 | wxPrintDialog *result; | |
19500 | PyObject * obj0 = 0 ; | |
19501 | PyObject * obj1 = 0 ; | |
19502 | char *kwnames[] = { | |
19503 | (char *) "parent",(char *) "data", NULL | |
19504 | }; | |
19505 | ||
19506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
19507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19508 | if (obj1) { | |
19509 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19510 | } | |
19511 | { | |
19512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19513 | result = (wxPrintDialog *)new wxPrintDialog(arg1,arg2); | |
19514 | ||
19515 | wxPyEndAllowThreads(__tstate); | |
19516 | if (PyErr_Occurred()) SWIG_fail; | |
19517 | } | |
19518 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialog, 1); | |
19519 | return resultobj; | |
19520 | fail: | |
19521 | return NULL; | |
19522 | } | |
19523 | ||
19524 | ||
19525 | static PyObject *_wrap_PrintDialog_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19526 | PyObject *resultobj; | |
19527 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19528 | wxPrintDialogData *result; | |
19529 | PyObject * obj0 = 0 ; | |
19530 | char *kwnames[] = { | |
19531 | (char *) "self", NULL | |
19532 | }; | |
19533 | ||
19534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
19535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19536 | { | |
19537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19538 | { | |
19539 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
19540 | result = (wxPrintDialogData *) &_result_ref; | |
19541 | } | |
19542 | ||
19543 | wxPyEndAllowThreads(__tstate); | |
19544 | if (PyErr_Occurred()) SWIG_fail; | |
19545 | } | |
19546 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 0); | |
19547 | return resultobj; | |
19548 | fail: | |
19549 | return NULL; | |
19550 | } | |
19551 | ||
19552 | ||
19553 | static PyObject *_wrap_PrintDialog_GetPrintDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19554 | PyObject *resultobj; | |
19555 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19556 | wxDC *result; | |
19557 | PyObject * obj0 = 0 ; | |
19558 | char *kwnames[] = { | |
19559 | (char *) "self", NULL | |
19560 | }; | |
19561 | ||
19562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_GetPrintDC",kwnames,&obj0)) goto fail; | |
19563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19564 | { | |
19565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19566 | result = (wxDC *)(arg1)->GetPrintDC(); | |
19567 | ||
19568 | wxPyEndAllowThreads(__tstate); | |
19569 | if (PyErr_Occurred()) SWIG_fail; | |
19570 | } | |
19571 | { | |
19572 | resultobj = wxPyMake_wxObject(result); | |
19573 | } | |
19574 | return resultobj; | |
19575 | fail: | |
19576 | return NULL; | |
19577 | } | |
19578 | ||
19579 | ||
19580 | static PyObject *_wrap_PrintDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19581 | PyObject *resultobj; | |
19582 | wxPrintDialog *arg1 = (wxPrintDialog *) 0 ; | |
19583 | int result; | |
19584 | PyObject * obj0 = 0 ; | |
19585 | char *kwnames[] = { | |
19586 | (char *) "self", NULL | |
19587 | }; | |
19588 | ||
19589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintDialog_ShowModal",kwnames,&obj0)) goto fail; | |
19590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialog,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19591 | { | |
19592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19593 | result = (int)(arg1)->ShowModal(); | |
19594 | ||
19595 | wxPyEndAllowThreads(__tstate); | |
19596 | if (PyErr_Occurred()) SWIG_fail; | |
19597 | } | |
994141e6 | 19598 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19599 | return resultobj; |
19600 | fail: | |
19601 | return NULL; | |
19602 | } | |
19603 | ||
19604 | ||
19605 | static PyObject * PrintDialog_swigregister(PyObject *self, PyObject *args) { | |
19606 | PyObject *obj; | |
19607 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19608 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintDialog, obj); | |
19609 | Py_INCREF(obj); | |
19610 | return Py_BuildValue((char *)""); | |
19611 | } | |
19612 | static PyObject *_wrap_new_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19613 | PyObject *resultobj; | |
19614 | wxPrintDialogData *arg1 = (wxPrintDialogData *) NULL ; | |
19615 | wxPrinter *result; | |
19616 | PyObject * obj0 = 0 ; | |
19617 | char *kwnames[] = { | |
19618 | (char *) "data", NULL | |
19619 | }; | |
19620 | ||
19621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printer",kwnames,&obj0)) goto fail; | |
19622 | if (obj0) { | |
19623 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintDialogData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19624 | } | |
19625 | { | |
19626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19627 | result = (wxPrinter *)new wxPrinter(arg1); | |
19628 | ||
19629 | wxPyEndAllowThreads(__tstate); | |
19630 | if (PyErr_Occurred()) SWIG_fail; | |
19631 | } | |
19632 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinter, 1); | |
19633 | return resultobj; | |
19634 | fail: | |
19635 | return NULL; | |
19636 | } | |
19637 | ||
19638 | ||
19639 | static PyObject *_wrap_delete_Printer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19640 | PyObject *resultobj; | |
19641 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19642 | PyObject * obj0 = 0 ; | |
19643 | char *kwnames[] = { | |
19644 | (char *) "self", NULL | |
19645 | }; | |
19646 | ||
19647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Printer",kwnames,&obj0)) goto fail; | |
19648 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19649 | { | |
19650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19651 | delete arg1; | |
19652 | ||
19653 | wxPyEndAllowThreads(__tstate); | |
19654 | if (PyErr_Occurred()) SWIG_fail; | |
19655 | } | |
19656 | Py_INCREF(Py_None); resultobj = Py_None; | |
19657 | return resultobj; | |
19658 | fail: | |
19659 | return NULL; | |
19660 | } | |
19661 | ||
19662 | ||
19663 | static PyObject *_wrap_Printer_CreateAbortWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19664 | PyObject *resultobj; | |
19665 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19667 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
19668 | PyObject * obj0 = 0 ; | |
19669 | PyObject * obj1 = 0 ; | |
19670 | PyObject * obj2 = 0 ; | |
19671 | char *kwnames[] = { | |
19672 | (char *) "self",(char *) "parent",(char *) "printout", NULL | |
19673 | }; | |
19674 | ||
19675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printer_CreateAbortWindow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19677 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19678 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19679 | { | |
19680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19681 | (arg1)->CreateAbortWindow(arg2,arg3); | |
19682 | ||
19683 | wxPyEndAllowThreads(__tstate); | |
19684 | if (PyErr_Occurred()) SWIG_fail; | |
19685 | } | |
19686 | Py_INCREF(Py_None); resultobj = Py_None; | |
19687 | return resultobj; | |
19688 | fail: | |
19689 | return NULL; | |
19690 | } | |
19691 | ||
19692 | ||
19693 | static PyObject *_wrap_Printer_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19694 | PyObject *resultobj; | |
19695 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19696 | wxPrintDialogData *result; | |
19697 | PyObject * obj0 = 0 ; | |
19698 | char *kwnames[] = { | |
19699 | (char *) "self", NULL | |
19700 | }; | |
19701 | ||
19702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
19703 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19704 | { | |
19705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19706 | { | |
19707 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
19708 | result = (wxPrintDialogData *) &_result_ref; | |
19709 | } | |
19710 | ||
19711 | wxPyEndAllowThreads(__tstate); | |
19712 | if (PyErr_Occurred()) SWIG_fail; | |
19713 | } | |
19714 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 0); | |
19715 | return resultobj; | |
19716 | fail: | |
19717 | return NULL; | |
19718 | } | |
19719 | ||
19720 | ||
19721 | static PyObject *_wrap_Printer_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19722 | PyObject *resultobj; | |
19723 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19724 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19725 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
e811c8ce | 19726 | int arg4 = (int) True ; |
d14a1e28 RD |
19727 | bool result; |
19728 | PyObject * obj0 = 0 ; | |
19729 | PyObject * obj1 = 0 ; | |
19730 | PyObject * obj2 = 0 ; | |
994141e6 | 19731 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
19732 | char *kwnames[] = { |
19733 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "prompt", NULL | |
19734 | }; | |
19735 | ||
994141e6 | 19736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Printer_Print",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
19737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
19738 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19739 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994141e6 RD |
19740 | if (obj3) { |
19741 | { | |
19742 | arg4 = (int) SWIG_PyObj_AsInt(obj3); | |
19743 | if (PyErr_Occurred()) SWIG_fail; | |
19744 | } | |
19745 | } | |
d14a1e28 RD |
19746 | { |
19747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19748 | result = (bool)(arg1)->Print(arg2,arg3,arg4); | |
19749 | ||
19750 | wxPyEndAllowThreads(__tstate); | |
19751 | if (PyErr_Occurred()) SWIG_fail; | |
19752 | } | |
4d5c3d91 | 19753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19754 | return resultobj; |
19755 | fail: | |
19756 | return NULL; | |
19757 | } | |
19758 | ||
19759 | ||
19760 | static PyObject *_wrap_Printer_PrintDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19761 | PyObject *resultobj; | |
19762 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19763 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19764 | wxDC *result; | |
19765 | PyObject * obj0 = 0 ; | |
19766 | PyObject * obj1 = 0 ; | |
19767 | char *kwnames[] = { | |
19768 | (char *) "self",(char *) "parent", NULL | |
19769 | }; | |
19770 | ||
19771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_PrintDialog",kwnames,&obj0,&obj1)) goto fail; | |
19772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19773 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19774 | { | |
19775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19776 | result = (wxDC *)(arg1)->PrintDialog(arg2); | |
19777 | ||
19778 | wxPyEndAllowThreads(__tstate); | |
19779 | if (PyErr_Occurred()) SWIG_fail; | |
19780 | } | |
19781 | { | |
19782 | resultobj = wxPyMake_wxObject(result); | |
19783 | } | |
19784 | return resultobj; | |
19785 | fail: | |
19786 | return NULL; | |
19787 | } | |
19788 | ||
19789 | ||
19790 | static PyObject *_wrap_Printer_ReportError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19791 | PyObject *resultobj; | |
19792 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19793 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19794 | wxPyPrintout *arg3 = (wxPyPrintout *) 0 ; | |
19795 | wxString *arg4 = 0 ; | |
e811c8ce | 19796 | bool temp4 = False ; |
d14a1e28 RD |
19797 | PyObject * obj0 = 0 ; |
19798 | PyObject * obj1 = 0 ; | |
19799 | PyObject * obj2 = 0 ; | |
19800 | PyObject * obj3 = 0 ; | |
19801 | char *kwnames[] = { | |
19802 | (char *) "self",(char *) "parent",(char *) "printout",(char *) "message", NULL | |
19803 | }; | |
19804 | ||
19805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Printer_ReportError",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
19806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19807 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19808 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19809 | { | |
19810 | arg4 = wxString_in_helper(obj3); | |
19811 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 19812 | temp4 = True; |
d14a1e28 RD |
19813 | } |
19814 | { | |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | (arg1)->ReportError(arg2,arg3,(wxString const &)*arg4); | |
19817 | ||
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
19821 | Py_INCREF(Py_None); resultobj = Py_None; | |
19822 | { | |
19823 | if (temp4) | |
19824 | delete arg4; | |
19825 | } | |
19826 | return resultobj; | |
19827 | fail: | |
19828 | { | |
19829 | if (temp4) | |
19830 | delete arg4; | |
19831 | } | |
19832 | return NULL; | |
19833 | } | |
19834 | ||
19835 | ||
19836 | static PyObject *_wrap_Printer_Setup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19837 | PyObject *resultobj; | |
19838 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19839 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19840 | bool result; | |
19841 | PyObject * obj0 = 0 ; | |
19842 | PyObject * obj1 = 0 ; | |
19843 | char *kwnames[] = { | |
19844 | (char *) "self",(char *) "parent", NULL | |
19845 | }; | |
19846 | ||
19847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printer_Setup",kwnames,&obj0,&obj1)) goto fail; | |
19848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19849 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19850 | { | |
19851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19852 | result = (bool)(arg1)->Setup(arg2); | |
19853 | ||
19854 | wxPyEndAllowThreads(__tstate); | |
19855 | if (PyErr_Occurred()) SWIG_fail; | |
19856 | } | |
4d5c3d91 | 19857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19858 | return resultobj; |
19859 | fail: | |
19860 | return NULL; | |
19861 | } | |
19862 | ||
19863 | ||
19864 | static PyObject *_wrap_Printer_GetAbort(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19865 | PyObject *resultobj; | |
19866 | wxPrinter *arg1 = (wxPrinter *) 0 ; | |
19867 | bool result; | |
19868 | PyObject * obj0 = 0 ; | |
19869 | char *kwnames[] = { | |
19870 | (char *) "self", NULL | |
19871 | }; | |
19872 | ||
19873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printer_GetAbort",kwnames,&obj0)) goto fail; | |
19874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrinter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19875 | { | |
19876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19877 | result = (bool)(arg1)->GetAbort(); | |
19878 | ||
19879 | wxPyEndAllowThreads(__tstate); | |
19880 | if (PyErr_Occurred()) SWIG_fail; | |
19881 | } | |
4d5c3d91 | 19882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
19883 | return resultobj; |
19884 | fail: | |
19885 | return NULL; | |
19886 | } | |
19887 | ||
19888 | ||
19889 | static PyObject *_wrap_Printer_GetLastError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19890 | PyObject *resultobj; | |
19891 | int result; | |
19892 | char *kwnames[] = { | |
19893 | NULL | |
19894 | }; | |
19895 | ||
19896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Printer_GetLastError",kwnames)) goto fail; | |
19897 | { | |
19898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19899 | result = (int)wxPrinter::GetLastError(); | |
19900 | ||
19901 | wxPyEndAllowThreads(__tstate); | |
19902 | if (PyErr_Occurred()) SWIG_fail; | |
19903 | } | |
994141e6 | 19904 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
19905 | return resultobj; |
19906 | fail: | |
19907 | return NULL; | |
19908 | } | |
19909 | ||
19910 | ||
19911 | static PyObject * Printer_swigregister(PyObject *self, PyObject *args) { | |
19912 | PyObject *obj; | |
19913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19914 | SWIG_TypeClientData(SWIGTYPE_p_wxPrinter, obj); | |
19915 | Py_INCREF(obj); | |
19916 | return Py_BuildValue((char *)""); | |
19917 | } | |
19918 | static PyObject *_wrap_new_Printout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19919 | PyObject *resultobj; | |
19920 | wxString const &arg1_defvalue = wxPyPrintoutTitleStr ; | |
19921 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
19922 | wxPyPrintout *result; | |
e811c8ce | 19923 | bool temp1 = False ; |
d14a1e28 RD |
19924 | PyObject * obj0 = 0 ; |
19925 | char *kwnames[] = { | |
19926 | (char *) "title", NULL | |
19927 | }; | |
19928 | ||
19929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Printout",kwnames,&obj0)) goto fail; | |
19930 | if (obj0) { | |
19931 | { | |
19932 | arg1 = wxString_in_helper(obj0); | |
19933 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 19934 | temp1 = True; |
d14a1e28 RD |
19935 | } |
19936 | } | |
19937 | { | |
19938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19939 | result = (wxPyPrintout *)new wxPyPrintout((wxString const &)*arg1); | |
19940 | ||
19941 | wxPyEndAllowThreads(__tstate); | |
19942 | if (PyErr_Occurred()) SWIG_fail; | |
19943 | } | |
19944 | { | |
19945 | resultobj = wxPyMake_wxObject(result); | |
19946 | } | |
19947 | { | |
19948 | if (temp1) | |
19949 | delete arg1; | |
19950 | } | |
19951 | return resultobj; | |
19952 | fail: | |
19953 | { | |
19954 | if (temp1) | |
19955 | delete arg1; | |
19956 | } | |
19957 | return NULL; | |
19958 | } | |
19959 | ||
19960 | ||
19961 | static PyObject *_wrap_Printout__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19962 | PyObject *resultobj; | |
19963 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
19964 | PyObject *arg2 = (PyObject *) 0 ; | |
19965 | PyObject *arg3 = (PyObject *) 0 ; | |
19966 | PyObject * obj0 = 0 ; | |
19967 | PyObject * obj1 = 0 ; | |
19968 | PyObject * obj2 = 0 ; | |
19969 | char *kwnames[] = { | |
19970 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19971 | }; | |
19972 | ||
19973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19975 | arg2 = obj1; | |
19976 | arg3 = obj2; | |
19977 | { | |
19978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19979 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19980 | ||
19981 | wxPyEndAllowThreads(__tstate); | |
19982 | if (PyErr_Occurred()) SWIG_fail; | |
19983 | } | |
19984 | Py_INCREF(Py_None); resultobj = Py_None; | |
19985 | return resultobj; | |
19986 | fail: | |
19987 | return NULL; | |
19988 | } | |
19989 | ||
19990 | ||
19991 | static PyObject *_wrap_Printout_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19992 | PyObject *resultobj; | |
19993 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
19994 | wxString result; | |
19995 | PyObject * obj0 = 0 ; | |
19996 | char *kwnames[] = { | |
19997 | (char *) "self", NULL | |
19998 | }; | |
19999 | ||
20000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetTitle",kwnames,&obj0)) goto fail; | |
20001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20002 | { | |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | result = ((wxPyPrintout const *)arg1)->GetTitle(); | |
20005 | ||
20006 | wxPyEndAllowThreads(__tstate); | |
20007 | if (PyErr_Occurred()) SWIG_fail; | |
20008 | } | |
20009 | { | |
20010 | #if wxUSE_UNICODE | |
20011 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20012 | #else | |
20013 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20014 | #endif | |
20015 | } | |
20016 | return resultobj; | |
20017 | fail: | |
20018 | return NULL; | |
20019 | } | |
20020 | ||
20021 | ||
20022 | static PyObject *_wrap_Printout_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20023 | PyObject *resultobj; | |
20024 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20025 | wxDC *result; | |
20026 | PyObject * obj0 = 0 ; | |
20027 | char *kwnames[] = { | |
20028 | (char *) "self", NULL | |
20029 | }; | |
20030 | ||
20031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetDC",kwnames,&obj0)) goto fail; | |
20032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20033 | { | |
20034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20035 | result = (wxDC *)(arg1)->GetDC(); | |
20036 | ||
20037 | wxPyEndAllowThreads(__tstate); | |
20038 | if (PyErr_Occurred()) SWIG_fail; | |
20039 | } | |
20040 | { | |
20041 | resultobj = wxPyMake_wxObject(result); | |
20042 | } | |
20043 | return resultobj; | |
20044 | fail: | |
20045 | return NULL; | |
20046 | } | |
20047 | ||
20048 | ||
20049 | static PyObject *_wrap_Printout_SetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20050 | PyObject *resultobj; | |
20051 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20052 | wxDC *arg2 = (wxDC *) 0 ; | |
20053 | PyObject * obj0 = 0 ; | |
20054 | PyObject * obj1 = 0 ; | |
20055 | char *kwnames[] = { | |
20056 | (char *) "self",(char *) "dc", NULL | |
20057 | }; | |
20058 | ||
20059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetDC",kwnames,&obj0,&obj1)) goto fail; | |
20060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20062 | { | |
20063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20064 | (arg1)->SetDC(arg2); | |
20065 | ||
20066 | wxPyEndAllowThreads(__tstate); | |
20067 | if (PyErr_Occurred()) SWIG_fail; | |
20068 | } | |
20069 | Py_INCREF(Py_None); resultobj = Py_None; | |
20070 | return resultobj; | |
20071 | fail: | |
20072 | return NULL; | |
20073 | } | |
20074 | ||
20075 | ||
322913ce | 20076 | static PyObject *_wrap_Printout_SetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20077 | PyObject *resultobj; |
20078 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
322913ce RD |
20079 | int arg2 ; |
20080 | int arg3 ; | |
d14a1e28 | 20081 | PyObject * obj0 = 0 ; |
994141e6 RD |
20082 | PyObject * obj1 = 0 ; |
20083 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20084 | char *kwnames[] = { |
322913ce | 20085 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
20086 | }; |
20087 | ||
994141e6 | 20088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizePixels",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20089 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20090 | { |
20091 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20092 | if (PyErr_Occurred()) SWIG_fail; | |
20093 | } | |
20094 | { | |
20095 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20096 | if (PyErr_Occurred()) SWIG_fail; | |
20097 | } | |
d14a1e28 RD |
20098 | { |
20099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 20100 | (arg1)->SetPageSizePixels(arg2,arg3); |
d14a1e28 RD |
20101 | |
20102 | wxPyEndAllowThreads(__tstate); | |
20103 | if (PyErr_Occurred()) SWIG_fail; | |
20104 | } | |
20105 | Py_INCREF(Py_None); resultobj = Py_None; | |
d14a1e28 RD |
20106 | return resultobj; |
20107 | fail: | |
20108 | return NULL; | |
20109 | } | |
20110 | ||
20111 | ||
322913ce | 20112 | static PyObject *_wrap_Printout_GetPageSizePixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20113 | PyObject *resultobj; |
20114 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
322913ce RD |
20115 | int *arg2 = (int *) 0 ; |
20116 | int *arg3 = (int *) 0 ; | |
20117 | int temp2 ; | |
20118 | int temp3 ; | |
d14a1e28 RD |
20119 | PyObject * obj0 = 0 ; |
20120 | char *kwnames[] = { | |
322913ce | 20121 | (char *) "self", NULL |
d14a1e28 RD |
20122 | }; |
20123 | ||
322913ce RD |
20124 | arg2 = &temp2; |
20125 | arg3 = &temp3; | |
20126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizePixels",kwnames,&obj0)) goto fail; | |
d14a1e28 RD |
20127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20128 | { | |
20129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
322913ce | 20130 | (arg1)->GetPageSizePixels(arg2,arg3); |
d14a1e28 RD |
20131 | |
20132 | wxPyEndAllowThreads(__tstate); | |
20133 | if (PyErr_Occurred()) SWIG_fail; | |
20134 | } | |
20135 | Py_INCREF(Py_None); resultobj = Py_None; | |
322913ce RD |
20136 | { |
20137 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20138 | resultobj = t_output_helper(resultobj,o); | |
20139 | } | |
20140 | { | |
20141 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20142 | resultobj = t_output_helper(resultobj,o); | |
20143 | } | |
d14a1e28 RD |
20144 | return resultobj; |
20145 | fail: | |
20146 | return NULL; | |
20147 | } | |
20148 | ||
20149 | ||
20150 | static PyObject *_wrap_Printout_SetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20151 | PyObject *resultobj; | |
20152 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20153 | int arg2 ; | |
20154 | int arg3 ; | |
20155 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20156 | PyObject * obj1 = 0 ; |
20157 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20158 | char *kwnames[] = { |
20159 | (char *) "self",(char *) "w",(char *) "h", NULL | |
20160 | }; | |
20161 | ||
994141e6 | 20162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPageSizeMM",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20164 | { |
20165 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20166 | if (PyErr_Occurred()) SWIG_fail; | |
20167 | } | |
20168 | { | |
20169 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20170 | if (PyErr_Occurred()) SWIG_fail; | |
20171 | } | |
d14a1e28 RD |
20172 | { |
20173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20174 | (arg1)->SetPageSizeMM(arg2,arg3); | |
20175 | ||
20176 | wxPyEndAllowThreads(__tstate); | |
20177 | if (PyErr_Occurred()) SWIG_fail; | |
20178 | } | |
20179 | Py_INCREF(Py_None); resultobj = Py_None; | |
20180 | return resultobj; | |
20181 | fail: | |
20182 | return NULL; | |
20183 | } | |
20184 | ||
20185 | ||
20186 | static PyObject *_wrap_Printout_GetPageSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20187 | PyObject *resultobj; | |
20188 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20189 | int *arg2 = (int *) 0 ; | |
20190 | int *arg3 = (int *) 0 ; | |
20191 | int temp2 ; | |
20192 | int temp3 ; | |
20193 | PyObject * obj0 = 0 ; | |
20194 | char *kwnames[] = { | |
20195 | (char *) "self", NULL | |
20196 | }; | |
20197 | ||
20198 | arg2 = &temp2; | |
20199 | arg3 = &temp3; | |
20200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPageSizeMM",kwnames,&obj0)) goto fail; | |
20201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20202 | { | |
20203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20204 | (arg1)->GetPageSizeMM(arg2,arg3); | |
20205 | ||
20206 | wxPyEndAllowThreads(__tstate); | |
20207 | if (PyErr_Occurred()) SWIG_fail; | |
20208 | } | |
20209 | Py_INCREF(Py_None); resultobj = Py_None; | |
20210 | { | |
20211 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20212 | resultobj = t_output_helper(resultobj,o); | |
20213 | } | |
20214 | { | |
20215 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20216 | resultobj = t_output_helper(resultobj,o); | |
20217 | } | |
20218 | return resultobj; | |
20219 | fail: | |
20220 | return NULL; | |
20221 | } | |
20222 | ||
20223 | ||
20224 | static PyObject *_wrap_Printout_SetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20225 | PyObject *resultobj; | |
20226 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20227 | int arg2 ; | |
20228 | int arg3 ; | |
20229 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20230 | PyObject * obj1 = 0 ; |
20231 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20232 | char *kwnames[] = { |
20233 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20234 | }; | |
20235 | ||
994141e6 | 20236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIScreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20238 | { |
20239 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20240 | if (PyErr_Occurred()) SWIG_fail; | |
20241 | } | |
20242 | { | |
20243 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20244 | if (PyErr_Occurred()) SWIG_fail; | |
20245 | } | |
d14a1e28 RD |
20246 | { |
20247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20248 | (arg1)->SetPPIScreen(arg2,arg3); | |
20249 | ||
20250 | wxPyEndAllowThreads(__tstate); | |
20251 | if (PyErr_Occurred()) SWIG_fail; | |
20252 | } | |
20253 | Py_INCREF(Py_None); resultobj = Py_None; | |
20254 | return resultobj; | |
20255 | fail: | |
20256 | return NULL; | |
20257 | } | |
20258 | ||
20259 | ||
20260 | static PyObject *_wrap_Printout_GetPPIScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20261 | PyObject *resultobj; | |
20262 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20263 | int *arg2 = (int *) 0 ; | |
20264 | int *arg3 = (int *) 0 ; | |
20265 | int temp2 ; | |
20266 | int temp3 ; | |
20267 | PyObject * obj0 = 0 ; | |
20268 | char *kwnames[] = { | |
20269 | (char *) "self", NULL | |
20270 | }; | |
20271 | ||
20272 | arg2 = &temp2; | |
20273 | arg3 = &temp3; | |
20274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIScreen",kwnames,&obj0)) goto fail; | |
20275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20276 | { | |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | (arg1)->GetPPIScreen(arg2,arg3); | |
20279 | ||
20280 | wxPyEndAllowThreads(__tstate); | |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
20282 | } | |
20283 | Py_INCREF(Py_None); resultobj = Py_None; | |
20284 | { | |
20285 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20286 | resultobj = t_output_helper(resultobj,o); | |
20287 | } | |
20288 | { | |
20289 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20290 | resultobj = t_output_helper(resultobj,o); | |
20291 | } | |
20292 | return resultobj; | |
20293 | fail: | |
20294 | return NULL; | |
20295 | } | |
20296 | ||
20297 | ||
20298 | static PyObject *_wrap_Printout_SetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20299 | PyObject *resultobj; | |
20300 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20301 | int arg2 ; | |
20302 | int arg3 ; | |
20303 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20304 | PyObject * obj1 = 0 ; |
20305 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20306 | char *kwnames[] = { |
20307 | (char *) "self",(char *) "x",(char *) "y", NULL | |
20308 | }; | |
20309 | ||
994141e6 | 20310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_SetPPIPrinter",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20312 | { |
20313 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20314 | if (PyErr_Occurred()) SWIG_fail; | |
20315 | } | |
20316 | { | |
20317 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20318 | if (PyErr_Occurred()) SWIG_fail; | |
20319 | } | |
d14a1e28 RD |
20320 | { |
20321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20322 | (arg1)->SetPPIPrinter(arg2,arg3); | |
20323 | ||
20324 | wxPyEndAllowThreads(__tstate); | |
20325 | if (PyErr_Occurred()) SWIG_fail; | |
20326 | } | |
20327 | Py_INCREF(Py_None); resultobj = Py_None; | |
20328 | return resultobj; | |
20329 | fail: | |
20330 | return NULL; | |
20331 | } | |
20332 | ||
20333 | ||
20334 | static PyObject *_wrap_Printout_GetPPIPrinter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20335 | PyObject *resultobj; | |
20336 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20337 | int *arg2 = (int *) 0 ; | |
20338 | int *arg3 = (int *) 0 ; | |
20339 | int temp2 ; | |
20340 | int temp3 ; | |
20341 | PyObject * obj0 = 0 ; | |
20342 | char *kwnames[] = { | |
20343 | (char *) "self", NULL | |
20344 | }; | |
20345 | ||
20346 | arg2 = &temp2; | |
20347 | arg3 = &temp3; | |
20348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_GetPPIPrinter",kwnames,&obj0)) goto fail; | |
20349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20350 | { | |
20351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20352 | (arg1)->GetPPIPrinter(arg2,arg3); | |
20353 | ||
20354 | wxPyEndAllowThreads(__tstate); | |
20355 | if (PyErr_Occurred()) SWIG_fail; | |
20356 | } | |
20357 | Py_INCREF(Py_None); resultobj = Py_None; | |
20358 | { | |
20359 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20360 | resultobj = t_output_helper(resultobj,o); | |
20361 | } | |
20362 | { | |
20363 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20364 | resultobj = t_output_helper(resultobj,o); | |
20365 | } | |
20366 | return resultobj; | |
20367 | fail: | |
20368 | return NULL; | |
20369 | } | |
20370 | ||
20371 | ||
20372 | static PyObject *_wrap_Printout_IsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20373 | PyObject *resultobj; | |
20374 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20375 | bool result; | |
20376 | PyObject * obj0 = 0 ; | |
20377 | char *kwnames[] = { | |
20378 | (char *) "self", NULL | |
20379 | }; | |
20380 | ||
20381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_IsPreview",kwnames,&obj0)) goto fail; | |
20382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20383 | { | |
20384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20385 | result = (bool)(arg1)->IsPreview(); | |
20386 | ||
20387 | wxPyEndAllowThreads(__tstate); | |
20388 | if (PyErr_Occurred()) SWIG_fail; | |
20389 | } | |
4d5c3d91 | 20390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20391 | return resultobj; |
20392 | fail: | |
20393 | return NULL; | |
20394 | } | |
20395 | ||
20396 | ||
20397 | static PyObject *_wrap_Printout_SetIsPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20398 | PyObject *resultobj; | |
20399 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20400 | bool arg2 ; | |
20401 | PyObject * obj0 = 0 ; | |
20402 | PyObject * obj1 = 0 ; | |
20403 | char *kwnames[] = { | |
20404 | (char *) "self",(char *) "p", NULL | |
20405 | }; | |
20406 | ||
20407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_SetIsPreview",kwnames,&obj0,&obj1)) goto fail; | |
20408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 20409 | { |
994141e6 | 20410 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
20411 | if (PyErr_Occurred()) SWIG_fail; |
20412 | } | |
d14a1e28 RD |
20413 | { |
20414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20415 | (arg1)->SetIsPreview(arg2); | |
20416 | ||
20417 | wxPyEndAllowThreads(__tstate); | |
20418 | if (PyErr_Occurred()) SWIG_fail; | |
20419 | } | |
20420 | Py_INCREF(Py_None); resultobj = Py_None; | |
20421 | return resultobj; | |
20422 | fail: | |
20423 | return NULL; | |
20424 | } | |
20425 | ||
20426 | ||
20427 | static PyObject *_wrap_Printout_base_OnBeginDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20428 | PyObject *resultobj; | |
20429 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20430 | int arg2 ; | |
20431 | int arg3 ; | |
20432 | bool result; | |
20433 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20434 | PyObject * obj1 = 0 ; |
20435 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20436 | char *kwnames[] = { |
20437 | (char *) "self",(char *) "startPage",(char *) "endPage", NULL | |
20438 | }; | |
20439 | ||
994141e6 | 20440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Printout_base_OnBeginDocument",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 | 20441 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20442 | { |
20443 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
20446 | { | |
20447 | arg3 = (int) SWIG_PyObj_AsInt(obj2); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | } | |
d14a1e28 RD |
20450 | { |
20451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20452 | result = (bool)(arg1)->base_OnBeginDocument(arg2,arg3); | |
20453 | ||
20454 | wxPyEndAllowThreads(__tstate); | |
20455 | if (PyErr_Occurred()) SWIG_fail; | |
20456 | } | |
4d5c3d91 | 20457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
20458 | return resultobj; |
20459 | fail: | |
20460 | return NULL; | |
20461 | } | |
20462 | ||
20463 | ||
20464 | static PyObject *_wrap_Printout_base_OnEndDocument(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20465 | PyObject *resultobj; | |
20466 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20467 | PyObject * obj0 = 0 ; | |
20468 | char *kwnames[] = { | |
20469 | (char *) "self", NULL | |
20470 | }; | |
20471 | ||
20472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndDocument",kwnames,&obj0)) goto fail; | |
20473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20474 | { | |
20475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20476 | (arg1)->base_OnEndDocument(); | |
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_base_OnBeginPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20489 | PyObject *resultobj; | |
20490 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20491 | PyObject * obj0 = 0 ; | |
20492 | char *kwnames[] = { | |
20493 | (char *) "self", NULL | |
20494 | }; | |
20495 | ||
20496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnBeginPrinting",kwnames,&obj0)) goto fail; | |
20497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20498 | { | |
20499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20500 | (arg1)->base_OnBeginPrinting(); | |
20501 | ||
20502 | wxPyEndAllowThreads(__tstate); | |
20503 | if (PyErr_Occurred()) SWIG_fail; | |
20504 | } | |
20505 | Py_INCREF(Py_None); resultobj = Py_None; | |
20506 | return resultobj; | |
20507 | fail: | |
20508 | return NULL; | |
20509 | } | |
20510 | ||
20511 | ||
20512 | static PyObject *_wrap_Printout_base_OnEndPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20513 | PyObject *resultobj; | |
20514 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20515 | PyObject * obj0 = 0 ; | |
20516 | char *kwnames[] = { | |
20517 | (char *) "self", NULL | |
20518 | }; | |
20519 | ||
20520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnEndPrinting",kwnames,&obj0)) goto fail; | |
20521 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20522 | { | |
20523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20524 | (arg1)->base_OnEndPrinting(); | |
20525 | ||
20526 | wxPyEndAllowThreads(__tstate); | |
20527 | if (PyErr_Occurred()) SWIG_fail; | |
20528 | } | |
20529 | Py_INCREF(Py_None); resultobj = Py_None; | |
20530 | return resultobj; | |
20531 | fail: | |
20532 | return NULL; | |
20533 | } | |
20534 | ||
20535 | ||
20536 | static PyObject *_wrap_Printout_base_OnPreparePrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20537 | PyObject *resultobj; | |
20538 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20539 | PyObject * obj0 = 0 ; | |
20540 | char *kwnames[] = { | |
20541 | (char *) "self", NULL | |
20542 | }; | |
20543 | ||
20544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_OnPreparePrinting",kwnames,&obj0)) goto fail; | |
20545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20546 | { | |
20547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20548 | (arg1)->base_OnPreparePrinting(); | |
20549 | ||
20550 | wxPyEndAllowThreads(__tstate); | |
20551 | if (PyErr_Occurred()) SWIG_fail; | |
20552 | } | |
20553 | Py_INCREF(Py_None); resultobj = Py_None; | |
20554 | return resultobj; | |
20555 | fail: | |
20556 | return NULL; | |
20557 | } | |
20558 | ||
20559 | ||
322913ce RD |
20560 | static PyObject *_wrap_Printout_base_HasPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
20561 | PyObject *resultobj; | |
20562 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20563 | int arg2 ; | |
20564 | bool result; | |
20565 | PyObject * obj0 = 0 ; | |
994141e6 | 20566 | PyObject * obj1 = 0 ; |
322913ce RD |
20567 | char *kwnames[] = { |
20568 | (char *) "self",(char *) "page", NULL | |
20569 | }; | |
20570 | ||
994141e6 | 20571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Printout_base_HasPage",kwnames,&obj0,&obj1)) goto fail; |
322913ce | 20572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20573 | { |
20574 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
20575 | if (PyErr_Occurred()) SWIG_fail; | |
20576 | } | |
322913ce RD |
20577 | { |
20578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20579 | result = (bool)(arg1)->base_HasPage(arg2); | |
20580 | ||
20581 | wxPyEndAllowThreads(__tstate); | |
20582 | if (PyErr_Occurred()) SWIG_fail; | |
20583 | } | |
4d5c3d91 | 20584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
322913ce RD |
20585 | return resultobj; |
20586 | fail: | |
20587 | return NULL; | |
20588 | } | |
20589 | ||
20590 | ||
d14a1e28 RD |
20591 | static PyObject *_wrap_Printout_base_GetPageInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
20592 | PyObject *resultobj; | |
20593 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
20594 | int *arg2 = (int *) 0 ; | |
20595 | int *arg3 = (int *) 0 ; | |
20596 | int *arg4 = (int *) 0 ; | |
20597 | int *arg5 = (int *) 0 ; | |
20598 | int temp2 ; | |
20599 | int temp3 ; | |
20600 | int temp4 ; | |
20601 | int temp5 ; | |
20602 | PyObject * obj0 = 0 ; | |
20603 | char *kwnames[] = { | |
20604 | (char *) "self", NULL | |
20605 | }; | |
20606 | ||
20607 | arg2 = &temp2; | |
20608 | arg3 = &temp3; | |
20609 | arg4 = &temp4; | |
20610 | arg5 = &temp5; | |
20611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Printout_base_GetPageInfo",kwnames,&obj0)) goto fail; | |
20612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20613 | { | |
20614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20615 | (arg1)->base_GetPageInfo(arg2,arg3,arg4,arg5); | |
20616 | ||
20617 | wxPyEndAllowThreads(__tstate); | |
20618 | if (PyErr_Occurred()) SWIG_fail; | |
20619 | } | |
20620 | Py_INCREF(Py_None); resultobj = Py_None; | |
20621 | { | |
20622 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
20623 | resultobj = t_output_helper(resultobj,o); | |
20624 | } | |
20625 | { | |
20626 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
20627 | resultobj = t_output_helper(resultobj,o); | |
20628 | } | |
20629 | { | |
20630 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
20631 | resultobj = t_output_helper(resultobj,o); | |
20632 | } | |
20633 | { | |
20634 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
20635 | resultobj = t_output_helper(resultobj,o); | |
20636 | } | |
20637 | return resultobj; | |
20638 | fail: | |
20639 | return NULL; | |
20640 | } | |
20641 | ||
20642 | ||
d14a1e28 RD |
20643 | static PyObject * Printout_swigregister(PyObject *self, PyObject *args) { |
20644 | PyObject *obj; | |
20645 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20646 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintout, obj); | |
20647 | Py_INCREF(obj); | |
20648 | return Py_BuildValue((char *)""); | |
20649 | } | |
20650 | static PyObject *_wrap_new_PreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20651 | PyObject *resultobj; | |
20652 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20653 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20654 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20655 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20656 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20657 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20658 | long arg5 = (long) 0 ; | |
20659 | wxString const &arg6_defvalue = wxPyPreviewCanvasNameStr ; | |
20660 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
20661 | wxPreviewCanvas *result; | |
20662 | wxPoint temp3 ; | |
20663 | wxSize temp4 ; | |
e811c8ce | 20664 | bool temp6 = False ; |
d14a1e28 RD |
20665 | PyObject * obj0 = 0 ; |
20666 | PyObject * obj1 = 0 ; | |
20667 | PyObject * obj2 = 0 ; | |
20668 | PyObject * obj3 = 0 ; | |
994141e6 | 20669 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20670 | PyObject * obj5 = 0 ; |
20671 | char *kwnames[] = { | |
20672 | (char *) "preview",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20673 | }; | |
20674 | ||
994141e6 | 20675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_PreviewCanvas",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 RD |
20676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20677 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20678 | if (obj2) { | |
20679 | { | |
20680 | arg3 = &temp3; | |
20681 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20682 | } | |
20683 | } | |
20684 | if (obj3) { | |
20685 | { | |
20686 | arg4 = &temp4; | |
20687 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20688 | } | |
20689 | } | |
994141e6 RD |
20690 | if (obj4) { |
20691 | { | |
20692 | arg5 = (long) SWIG_PyObj_AsLong(obj4); | |
20693 | if (PyErr_Occurred()) SWIG_fail; | |
20694 | } | |
20695 | } | |
d14a1e28 RD |
20696 | if (obj5) { |
20697 | { | |
20698 | arg6 = wxString_in_helper(obj5); | |
20699 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 20700 | temp6 = True; |
d14a1e28 RD |
20701 | } |
20702 | } | |
20703 | { | |
20704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20705 | result = (wxPreviewCanvas *)new wxPreviewCanvas(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
20706 | ||
20707 | wxPyEndAllowThreads(__tstate); | |
20708 | if (PyErr_Occurred()) SWIG_fail; | |
20709 | } | |
20710 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewCanvas, 1); | |
20711 | { | |
20712 | if (temp6) | |
20713 | delete arg6; | |
20714 | } | |
20715 | return resultobj; | |
20716 | fail: | |
20717 | { | |
20718 | if (temp6) | |
20719 | delete arg6; | |
20720 | } | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
20725 | static PyObject * PreviewCanvas_swigregister(PyObject *self, PyObject *args) { | |
20726 | PyObject *obj; | |
20727 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20728 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewCanvas, obj); | |
20729 | Py_INCREF(obj); | |
20730 | return Py_BuildValue((char *)""); | |
20731 | } | |
20732 | static PyObject *_wrap_new_PreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj; | |
20734 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20735 | wxFrame *arg2 = (wxFrame *) 0 ; | |
20736 | wxString *arg3 = 0 ; | |
20737 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20738 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20739 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20740 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20741 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
20742 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
20743 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20744 | wxPreviewFrame *result; | |
e811c8ce | 20745 | bool temp3 = False ; |
d14a1e28 RD |
20746 | wxPoint temp4 ; |
20747 | wxSize temp5 ; | |
e811c8ce | 20748 | bool temp7 = False ; |
d14a1e28 RD |
20749 | PyObject * obj0 = 0 ; |
20750 | PyObject * obj1 = 0 ; | |
20751 | PyObject * obj2 = 0 ; | |
20752 | PyObject * obj3 = 0 ; | |
20753 | PyObject * obj4 = 0 ; | |
994141e6 | 20754 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20755 | PyObject * obj6 = 0 ; |
20756 | char *kwnames[] = { | |
20757 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20758 | }; | |
20759 | ||
994141e6 | 20760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
20761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20762 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20763 | { | |
20764 | arg3 = wxString_in_helper(obj2); | |
20765 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 20766 | temp3 = True; |
d14a1e28 RD |
20767 | } |
20768 | if (obj3) { | |
20769 | { | |
20770 | arg4 = &temp4; | |
20771 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20772 | } | |
20773 | } | |
20774 | if (obj4) { | |
20775 | { | |
20776 | arg5 = &temp5; | |
20777 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20778 | } | |
20779 | } | |
994141e6 RD |
20780 | if (obj5) { |
20781 | { | |
20782 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20783 | if (PyErr_Occurred()) SWIG_fail; | |
20784 | } | |
20785 | } | |
d14a1e28 RD |
20786 | if (obj6) { |
20787 | { | |
20788 | arg7 = wxString_in_helper(obj6); | |
20789 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20790 | temp7 = True; |
d14a1e28 RD |
20791 | } |
20792 | } | |
20793 | { | |
20794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20795 | result = (wxPreviewFrame *)new wxPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20796 | ||
20797 | wxPyEndAllowThreads(__tstate); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
20800 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewFrame, 1); | |
20801 | { | |
20802 | if (temp3) | |
20803 | delete arg3; | |
20804 | } | |
20805 | { | |
20806 | if (temp7) | |
20807 | delete arg7; | |
20808 | } | |
20809 | return resultobj; | |
20810 | fail: | |
20811 | { | |
20812 | if (temp3) | |
20813 | delete arg3; | |
20814 | } | |
20815 | { | |
20816 | if (temp7) | |
20817 | delete arg7; | |
20818 | } | |
20819 | return NULL; | |
20820 | } | |
20821 | ||
20822 | ||
20823 | static PyObject *_wrap_PreviewFrame_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20824 | PyObject *resultobj; | |
20825 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20826 | PyObject * obj0 = 0 ; | |
20827 | char *kwnames[] = { | |
20828 | (char *) "self", NULL | |
20829 | }; | |
20830 | ||
20831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_Initialize",kwnames,&obj0)) goto fail; | |
20832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20833 | { | |
20834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20835 | (arg1)->Initialize(); | |
20836 | ||
20837 | wxPyEndAllowThreads(__tstate); | |
20838 | if (PyErr_Occurred()) SWIG_fail; | |
20839 | } | |
20840 | Py_INCREF(Py_None); resultobj = Py_None; | |
20841 | return resultobj; | |
20842 | fail: | |
20843 | return NULL; | |
20844 | } | |
20845 | ||
20846 | ||
20847 | static PyObject *_wrap_PreviewFrame_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20848 | PyObject *resultobj; | |
20849 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20850 | PyObject * obj0 = 0 ; | |
20851 | char *kwnames[] = { | |
20852 | (char *) "self", NULL | |
20853 | }; | |
20854 | ||
20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateControlBar",kwnames,&obj0)) goto fail; | |
20856 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | (arg1)->CreateControlBar(); | |
20860 | ||
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
20864 | Py_INCREF(Py_None); resultobj = Py_None; | |
20865 | return resultobj; | |
20866 | fail: | |
20867 | return NULL; | |
20868 | } | |
20869 | ||
20870 | ||
20871 | static PyObject *_wrap_PreviewFrame_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20872 | PyObject *resultobj; | |
20873 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20874 | PyObject * obj0 = 0 ; | |
20875 | char *kwnames[] = { | |
20876 | (char *) "self", NULL | |
20877 | }; | |
20878 | ||
20879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_CreateCanvas",kwnames,&obj0)) goto fail; | |
20880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20881 | { | |
20882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20883 | (arg1)->CreateCanvas(); | |
20884 | ||
20885 | wxPyEndAllowThreads(__tstate); | |
20886 | if (PyErr_Occurred()) SWIG_fail; | |
20887 | } | |
20888 | Py_INCREF(Py_None); resultobj = Py_None; | |
20889 | return resultobj; | |
20890 | fail: | |
20891 | return NULL; | |
20892 | } | |
20893 | ||
20894 | ||
20895 | static PyObject *_wrap_PreviewFrame_GetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20896 | PyObject *resultobj; | |
20897 | wxPreviewFrame *arg1 = (wxPreviewFrame *) 0 ; | |
20898 | wxPreviewControlBar *result; | |
20899 | PyObject * obj0 = 0 ; | |
20900 | char *kwnames[] = { | |
20901 | (char *) "self", NULL | |
20902 | }; | |
20903 | ||
20904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewFrame_GetControlBar",kwnames,&obj0)) goto fail; | |
20905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20906 | { | |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | result = (wxPreviewControlBar *)((wxPreviewFrame const *)arg1)->GetControlBar(); | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
20913 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewControlBar, 0); | |
20914 | return resultobj; | |
20915 | fail: | |
20916 | return NULL; | |
20917 | } | |
20918 | ||
20919 | ||
20920 | static PyObject * PreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
20921 | PyObject *obj; | |
20922 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20923 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewFrame, obj); | |
20924 | Py_INCREF(obj); | |
20925 | return Py_BuildValue((char *)""); | |
20926 | } | |
20927 | static PyObject *_wrap_new_PreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20928 | PyObject *resultobj; | |
20929 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
20930 | long arg2 ; | |
20931 | wxWindow *arg3 = (wxWindow *) 0 ; | |
20932 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20933 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20934 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20935 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20936 | long arg6 = (long) wxTAB_TRAVERSAL ; | |
20937 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
20938 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20939 | wxPreviewControlBar *result; | |
20940 | wxPoint temp4 ; | |
20941 | wxSize temp5 ; | |
e811c8ce | 20942 | bool temp7 = False ; |
d14a1e28 | 20943 | PyObject * obj0 = 0 ; |
994141e6 | 20944 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20945 | PyObject * obj2 = 0 ; |
20946 | PyObject * obj3 = 0 ; | |
20947 | PyObject * obj4 = 0 ; | |
994141e6 | 20948 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20949 | PyObject * obj6 = 0 ; |
20950 | char *kwnames[] = { | |
20951 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
20952 | }; | |
20953 | ||
994141e6 | 20954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 20955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
20956 | { |
20957 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
20958 | if (PyErr_Occurred()) SWIG_fail; | |
20959 | } | |
d14a1e28 RD |
20960 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
20961 | if (obj3) { | |
20962 | { | |
20963 | arg4 = &temp4; | |
20964 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20965 | } | |
20966 | } | |
20967 | if (obj4) { | |
20968 | { | |
20969 | arg5 = &temp5; | |
20970 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20971 | } | |
20972 | } | |
994141e6 RD |
20973 | if (obj5) { |
20974 | { | |
20975 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
20976 | if (PyErr_Occurred()) SWIG_fail; | |
20977 | } | |
20978 | } | |
d14a1e28 RD |
20979 | if (obj6) { |
20980 | { | |
20981 | arg7 = wxString_in_helper(obj6); | |
20982 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20983 | temp7 = True; |
d14a1e28 RD |
20984 | } |
20985 | } | |
20986 | { | |
20987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20988 | result = (wxPreviewControlBar *)new wxPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
20989 | ||
20990 | wxPyEndAllowThreads(__tstate); | |
20991 | if (PyErr_Occurred()) SWIG_fail; | |
20992 | } | |
20993 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewControlBar, 1); | |
20994 | { | |
20995 | if (temp7) | |
20996 | delete arg7; | |
20997 | } | |
20998 | return resultobj; | |
20999 | fail: | |
21000 | { | |
21001 | if (temp7) | |
21002 | delete arg7; | |
21003 | } | |
21004 | return NULL; | |
21005 | } | |
21006 | ||
21007 | ||
21008 | static PyObject *_wrap_PreviewControlBar_GetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21009 | PyObject *resultobj; | |
21010 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21011 | int result; | |
21012 | PyObject * obj0 = 0 ; | |
21013 | char *kwnames[] = { | |
21014 | (char *) "self", NULL | |
21015 | }; | |
21016 | ||
21017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetZoomControl",kwnames,&obj0)) goto fail; | |
21018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21019 | { | |
21020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21021 | result = (int)(arg1)->GetZoomControl(); | |
21022 | ||
21023 | wxPyEndAllowThreads(__tstate); | |
21024 | if (PyErr_Occurred()) SWIG_fail; | |
21025 | } | |
994141e6 | 21026 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21027 | return resultobj; |
21028 | fail: | |
21029 | return NULL; | |
21030 | } | |
21031 | ||
21032 | ||
21033 | static PyObject *_wrap_PreviewControlBar_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21034 | PyObject *resultobj; | |
21035 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21036 | int arg2 ; | |
21037 | PyObject * obj0 = 0 ; | |
994141e6 | 21038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21039 | char *kwnames[] = { |
21040 | (char *) "self",(char *) "zoom", NULL | |
21041 | }; | |
21042 | ||
994141e6 | 21043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PreviewControlBar_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21045 | { |
21046 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21047 | if (PyErr_Occurred()) SWIG_fail; | |
21048 | } | |
d14a1e28 RD |
21049 | { |
21050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21051 | (arg1)->SetZoomControl(arg2); | |
21052 | ||
21053 | wxPyEndAllowThreads(__tstate); | |
21054 | if (PyErr_Occurred()) SWIG_fail; | |
21055 | } | |
21056 | Py_INCREF(Py_None); resultobj = Py_None; | |
21057 | return resultobj; | |
21058 | fail: | |
21059 | return NULL; | |
21060 | } | |
21061 | ||
21062 | ||
21063 | static PyObject *_wrap_PreviewControlBar_GetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21064 | PyObject *resultobj; | |
21065 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21066 | wxPrintPreview *result; | |
21067 | PyObject * obj0 = 0 ; | |
21068 | char *kwnames[] = { | |
21069 | (char *) "self", NULL | |
21070 | }; | |
21071 | ||
21072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_GetPrintPreview",kwnames,&obj0)) goto fail; | |
21073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21074 | { | |
21075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21076 | result = (wxPrintPreview *)(arg1)->GetPrintPreview(); | |
21077 | ||
21078 | wxPyEndAllowThreads(__tstate); | |
21079 | if (PyErr_Occurred()) SWIG_fail; | |
21080 | } | |
21081 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintPreview, 0); | |
21082 | return resultobj; | |
21083 | fail: | |
21084 | return NULL; | |
21085 | } | |
21086 | ||
21087 | ||
21088 | static PyObject *_wrap_PreviewControlBar_OnNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21089 | PyObject *resultobj; | |
21090 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21091 | PyObject * obj0 = 0 ; | |
21092 | char *kwnames[] = { | |
21093 | (char *) "self", NULL | |
21094 | }; | |
21095 | ||
21096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnNext",kwnames,&obj0)) goto fail; | |
21097 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21098 | { | |
21099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21100 | (arg1)->OnNext(); | |
21101 | ||
21102 | wxPyEndAllowThreads(__tstate); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | Py_INCREF(Py_None); resultobj = Py_None; | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static PyObject *_wrap_PreviewControlBar_OnPrevious(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21113 | PyObject *resultobj; | |
21114 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21115 | PyObject * obj0 = 0 ; | |
21116 | char *kwnames[] = { | |
21117 | (char *) "self", NULL | |
21118 | }; | |
21119 | ||
21120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnPrevious",kwnames,&obj0)) goto fail; | |
21121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21122 | { | |
21123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21124 | (arg1)->OnPrevious(); | |
21125 | ||
21126 | wxPyEndAllowThreads(__tstate); | |
21127 | if (PyErr_Occurred()) SWIG_fail; | |
21128 | } | |
21129 | Py_INCREF(Py_None); resultobj = Py_None; | |
21130 | return resultobj; | |
21131 | fail: | |
21132 | return NULL; | |
21133 | } | |
21134 | ||
21135 | ||
21136 | static PyObject *_wrap_PreviewControlBar_OnFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21137 | PyObject *resultobj; | |
21138 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21139 | PyObject * obj0 = 0 ; | |
21140 | char *kwnames[] = { | |
21141 | (char *) "self", NULL | |
21142 | }; | |
21143 | ||
21144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnFirst",kwnames,&obj0)) goto fail; | |
21145 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21146 | { | |
21147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21148 | (arg1)->OnFirst(); | |
21149 | ||
21150 | wxPyEndAllowThreads(__tstate); | |
21151 | if (PyErr_Occurred()) SWIG_fail; | |
21152 | } | |
21153 | Py_INCREF(Py_None); resultobj = Py_None; | |
21154 | return resultobj; | |
21155 | fail: | |
21156 | return NULL; | |
21157 | } | |
21158 | ||
21159 | ||
21160 | static PyObject *_wrap_PreviewControlBar_OnLast(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21161 | PyObject *resultobj; | |
21162 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21163 | PyObject * obj0 = 0 ; | |
21164 | char *kwnames[] = { | |
21165 | (char *) "self", NULL | |
21166 | }; | |
21167 | ||
21168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnLast",kwnames,&obj0)) goto fail; | |
21169 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21170 | { | |
21171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21172 | (arg1)->OnLast(); | |
21173 | ||
21174 | wxPyEndAllowThreads(__tstate); | |
21175 | if (PyErr_Occurred()) SWIG_fail; | |
21176 | } | |
21177 | Py_INCREF(Py_None); resultobj = Py_None; | |
21178 | return resultobj; | |
21179 | fail: | |
21180 | return NULL; | |
21181 | } | |
21182 | ||
21183 | ||
21184 | static PyObject *_wrap_PreviewControlBar_OnGoto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21185 | PyObject *resultobj; | |
21186 | wxPreviewControlBar *arg1 = (wxPreviewControlBar *) 0 ; | |
21187 | PyObject * obj0 = 0 ; | |
21188 | char *kwnames[] = { | |
21189 | (char *) "self", NULL | |
21190 | }; | |
21191 | ||
21192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PreviewControlBar_OnGoto",kwnames,&obj0)) goto fail; | |
21193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21194 | { | |
21195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21196 | (arg1)->OnGoto(); | |
21197 | ||
21198 | wxPyEndAllowThreads(__tstate); | |
21199 | if (PyErr_Occurred()) SWIG_fail; | |
21200 | } | |
21201 | Py_INCREF(Py_None); resultobj = Py_None; | |
21202 | return resultobj; | |
21203 | fail: | |
21204 | return NULL; | |
21205 | } | |
21206 | ||
21207 | ||
21208 | static PyObject * PreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
21209 | PyObject *obj; | |
21210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21211 | SWIG_TypeClientData(SWIGTYPE_p_wxPreviewControlBar, obj); | |
21212 | Py_INCREF(obj); | |
21213 | return Py_BuildValue((char *)""); | |
21214 | } | |
21215 | static PyObject *_wrap_new_PrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21216 | PyObject *resultobj; | |
21217 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21218 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21219 | wxPrintData *arg3 = (wxPrintData *) NULL ; | |
21220 | wxPrintPreview *result; | |
21221 | PyObject * obj0 = 0 ; | |
21222 | PyObject * obj1 = 0 ; | |
21223 | PyObject * obj2 = 0 ; | |
21224 | char *kwnames[] = { | |
21225 | (char *) "printout",(char *) "printoutForPrinting",(char *) "data", NULL | |
21226 | }; | |
21227 | ||
21228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_PrintPreview",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21229 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21230 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21231 | if (obj2) { | |
21232 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21233 | } | |
21234 | { | |
21235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21236 | result = (wxPrintPreview *)new wxPrintPreview(arg1,arg2,arg3); | |
21237 | ||
21238 | wxPyEndAllowThreads(__tstate); | |
21239 | if (PyErr_Occurred()) SWIG_fail; | |
21240 | } | |
21241 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintPreview, 1); | |
21242 | return resultobj; | |
21243 | fail: | |
21244 | return NULL; | |
21245 | } | |
21246 | ||
21247 | ||
21248 | static PyObject *_wrap_PrintPreview_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21249 | PyObject *resultobj; | |
21250 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21251 | int arg2 ; | |
21252 | bool result; | |
21253 | PyObject * obj0 = 0 ; | |
994141e6 | 21254 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21255 | char *kwnames[] = { |
21256 | (char *) "self",(char *) "pageNum", NULL | |
21257 | }; | |
21258 | ||
994141e6 | 21259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21261 | { |
21262 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21263 | if (PyErr_Occurred()) SWIG_fail; | |
21264 | } | |
d14a1e28 RD |
21265 | { |
21266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21267 | result = (bool)(arg1)->SetCurrentPage(arg2); | |
21268 | ||
21269 | wxPyEndAllowThreads(__tstate); | |
21270 | if (PyErr_Occurred()) SWIG_fail; | |
21271 | } | |
4d5c3d91 | 21272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21273 | return resultobj; |
21274 | fail: | |
21275 | return NULL; | |
21276 | } | |
21277 | ||
21278 | ||
21279 | static PyObject *_wrap_PrintPreview_GetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21280 | PyObject *resultobj; | |
21281 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21282 | int result; | |
21283 | PyObject * obj0 = 0 ; | |
21284 | char *kwnames[] = { | |
21285 | (char *) "self", NULL | |
21286 | }; | |
21287 | ||
21288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCurrentPage",kwnames,&obj0)) goto fail; | |
21289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21290 | { | |
21291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21292 | result = (int)(arg1)->GetCurrentPage(); | |
21293 | ||
21294 | wxPyEndAllowThreads(__tstate); | |
21295 | if (PyErr_Occurred()) SWIG_fail; | |
21296 | } | |
994141e6 | 21297 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21298 | return resultobj; |
21299 | fail: | |
21300 | return NULL; | |
21301 | } | |
21302 | ||
21303 | ||
21304 | static PyObject *_wrap_PrintPreview_SetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21305 | PyObject *resultobj; | |
21306 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21307 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21308 | PyObject * obj0 = 0 ; | |
21309 | PyObject * obj1 = 0 ; | |
21310 | char *kwnames[] = { | |
21311 | (char *) "self",(char *) "printout", NULL | |
21312 | }; | |
21313 | ||
21314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetPrintout",kwnames,&obj0,&obj1)) goto fail; | |
21315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21316 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21317 | { | |
21318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21319 | (arg1)->SetPrintout(arg2); | |
21320 | ||
21321 | wxPyEndAllowThreads(__tstate); | |
21322 | if (PyErr_Occurred()) SWIG_fail; | |
21323 | } | |
21324 | Py_INCREF(Py_None); resultobj = Py_None; | |
21325 | return resultobj; | |
21326 | fail: | |
21327 | return NULL; | |
21328 | } | |
21329 | ||
21330 | ||
21331 | static PyObject *_wrap_PrintPreview_GetPrintout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21332 | PyObject *resultobj; | |
21333 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21334 | wxPyPrintout *result; | |
21335 | PyObject * obj0 = 0 ; | |
21336 | char *kwnames[] = { | |
21337 | (char *) "self", NULL | |
21338 | }; | |
21339 | ||
21340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintout",kwnames,&obj0)) goto fail; | |
21341 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21342 | { | |
21343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21344 | result = (wxPyPrintout *)(arg1)->GetPrintout(); | |
21345 | ||
21346 | wxPyEndAllowThreads(__tstate); | |
21347 | if (PyErr_Occurred()) SWIG_fail; | |
21348 | } | |
21349 | { | |
21350 | resultobj = wxPyMake_wxObject(result); | |
21351 | } | |
21352 | return resultobj; | |
21353 | fail: | |
21354 | return NULL; | |
21355 | } | |
21356 | ||
21357 | ||
21358 | static PyObject *_wrap_PrintPreview_GetPrintoutForPrinting(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21359 | PyObject *resultobj; | |
21360 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21361 | wxPyPrintout *result; | |
21362 | PyObject * obj0 = 0 ; | |
21363 | char *kwnames[] = { | |
21364 | (char *) "self", NULL | |
21365 | }; | |
21366 | ||
21367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintoutForPrinting",kwnames,&obj0)) goto fail; | |
21368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21369 | { | |
21370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21371 | result = (wxPyPrintout *)(arg1)->GetPrintoutForPrinting(); | |
21372 | ||
21373 | wxPyEndAllowThreads(__tstate); | |
21374 | if (PyErr_Occurred()) SWIG_fail; | |
21375 | } | |
21376 | { | |
21377 | resultobj = wxPyMake_wxObject(result); | |
21378 | } | |
21379 | return resultobj; | |
21380 | fail: | |
21381 | return NULL; | |
21382 | } | |
21383 | ||
21384 | ||
21385 | static PyObject *_wrap_PrintPreview_SetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21386 | PyObject *resultobj; | |
21387 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21388 | wxFrame *arg2 = (wxFrame *) 0 ; | |
21389 | PyObject * obj0 = 0 ; | |
21390 | PyObject * obj1 = 0 ; | |
21391 | char *kwnames[] = { | |
21392 | (char *) "self",(char *) "frame", NULL | |
21393 | }; | |
21394 | ||
21395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetFrame",kwnames,&obj0,&obj1)) goto fail; | |
21396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21397 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21398 | { | |
21399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21400 | (arg1)->SetFrame(arg2); | |
21401 | ||
21402 | wxPyEndAllowThreads(__tstate); | |
21403 | if (PyErr_Occurred()) SWIG_fail; | |
21404 | } | |
21405 | Py_INCREF(Py_None); resultobj = Py_None; | |
21406 | return resultobj; | |
21407 | fail: | |
21408 | return NULL; | |
21409 | } | |
21410 | ||
21411 | ||
21412 | static PyObject *_wrap_PrintPreview_SetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21413 | PyObject *resultobj; | |
21414 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21415 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21416 | PyObject * obj0 = 0 ; | |
21417 | PyObject * obj1 = 0 ; | |
21418 | char *kwnames[] = { | |
21419 | (char *) "self",(char *) "canvas", NULL | |
21420 | }; | |
21421 | ||
21422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetCanvas",kwnames,&obj0,&obj1)) goto fail; | |
21423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21424 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21425 | { | |
21426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21427 | (arg1)->SetCanvas(arg2); | |
21428 | ||
21429 | wxPyEndAllowThreads(__tstate); | |
21430 | if (PyErr_Occurred()) SWIG_fail; | |
21431 | } | |
21432 | Py_INCREF(Py_None); resultobj = Py_None; | |
21433 | return resultobj; | |
21434 | fail: | |
21435 | return NULL; | |
21436 | } | |
21437 | ||
21438 | ||
21439 | static PyObject *_wrap_PrintPreview_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21440 | PyObject *resultobj; | |
21441 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21442 | wxFrame *result; | |
21443 | PyObject * obj0 = 0 ; | |
21444 | char *kwnames[] = { | |
21445 | (char *) "self", NULL | |
21446 | }; | |
21447 | ||
21448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetFrame",kwnames,&obj0)) goto fail; | |
21449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21450 | { | |
21451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21452 | result = (wxFrame *)(arg1)->GetFrame(); | |
21453 | ||
21454 | wxPyEndAllowThreads(__tstate); | |
21455 | if (PyErr_Occurred()) SWIG_fail; | |
21456 | } | |
21457 | { | |
21458 | resultobj = wxPyMake_wxObject(result); | |
21459 | } | |
21460 | return resultobj; | |
21461 | fail: | |
21462 | return NULL; | |
21463 | } | |
21464 | ||
21465 | ||
21466 | static PyObject *_wrap_PrintPreview_GetCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21467 | PyObject *resultobj; | |
21468 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21469 | wxPreviewCanvas *result; | |
21470 | PyObject * obj0 = 0 ; | |
21471 | char *kwnames[] = { | |
21472 | (char *) "self", NULL | |
21473 | }; | |
21474 | ||
21475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetCanvas",kwnames,&obj0)) goto fail; | |
21476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21477 | { | |
21478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21479 | result = (wxPreviewCanvas *)(arg1)->GetCanvas(); | |
21480 | ||
21481 | wxPyEndAllowThreads(__tstate); | |
21482 | if (PyErr_Occurred()) SWIG_fail; | |
21483 | } | |
21484 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPreviewCanvas, 0); | |
21485 | return resultobj; | |
21486 | fail: | |
21487 | return NULL; | |
21488 | } | |
21489 | ||
21490 | ||
21491 | static PyObject *_wrap_PrintPreview_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21492 | PyObject *resultobj; | |
21493 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21494 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21495 | wxDC *arg3 = 0 ; | |
21496 | bool result; | |
21497 | PyObject * obj0 = 0 ; | |
21498 | PyObject * obj1 = 0 ; | |
21499 | PyObject * obj2 = 0 ; | |
21500 | char *kwnames[] = { | |
21501 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
21502 | }; | |
21503 | ||
21504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21506 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21507 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21508 | if (arg3 == NULL) { | |
21509 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21510 | } | |
21511 | { | |
21512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21513 | result = (bool)(arg1)->PaintPage(arg2,*arg3); | |
21514 | ||
21515 | wxPyEndAllowThreads(__tstate); | |
21516 | if (PyErr_Occurred()) SWIG_fail; | |
21517 | } | |
4d5c3d91 | 21518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21519 | return resultobj; |
21520 | fail: | |
21521 | return NULL; | |
21522 | } | |
21523 | ||
21524 | ||
21525 | static PyObject *_wrap_PrintPreview_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21526 | PyObject *resultobj; | |
21527 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21528 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21529 | wxDC *arg3 = 0 ; | |
21530 | bool result; | |
21531 | PyObject * obj0 = 0 ; | |
21532 | PyObject * obj1 = 0 ; | |
21533 | PyObject * obj2 = 0 ; | |
21534 | char *kwnames[] = { | |
21535 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
21536 | }; | |
21537 | ||
21538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PrintPreview_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21540 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21541 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21542 | if (arg3 == NULL) { | |
21543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21544 | } | |
21545 | { | |
21546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21547 | result = (bool)(arg1)->DrawBlankPage(arg2,*arg3); | |
21548 | ||
21549 | wxPyEndAllowThreads(__tstate); | |
21550 | if (PyErr_Occurred()) SWIG_fail; | |
21551 | } | |
4d5c3d91 | 21552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21553 | return resultobj; |
21554 | fail: | |
21555 | return NULL; | |
21556 | } | |
21557 | ||
21558 | ||
21559 | static PyObject *_wrap_PrintPreview_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21560 | PyObject *resultobj; | |
21561 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21562 | int arg2 ; | |
21563 | bool result; | |
21564 | PyObject * obj0 = 0 ; | |
994141e6 | 21565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21566 | char *kwnames[] = { |
21567 | (char *) "self",(char *) "pageNum", NULL | |
21568 | }; | |
21569 | ||
994141e6 | 21570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_RenderPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21572 | { |
21573 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21574 | if (PyErr_Occurred()) SWIG_fail; | |
21575 | } | |
d14a1e28 RD |
21576 | { |
21577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21578 | result = (bool)(arg1)->RenderPage(arg2); | |
21579 | ||
21580 | wxPyEndAllowThreads(__tstate); | |
21581 | if (PyErr_Occurred()) SWIG_fail; | |
21582 | } | |
4d5c3d91 | 21583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21584 | return resultobj; |
21585 | fail: | |
21586 | return NULL; | |
21587 | } | |
21588 | ||
21589 | ||
21590 | static PyObject *_wrap_PrintPreview_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21591 | PyObject *resultobj; | |
21592 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21593 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21594 | PyObject * obj0 = 0 ; | |
21595 | PyObject * obj1 = 0 ; | |
21596 | char *kwnames[] = { | |
21597 | (char *) "self",(char *) "canvas", NULL | |
21598 | }; | |
21599 | ||
21600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_AdjustScrollbars",kwnames,&obj0,&obj1)) goto fail; | |
21601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21602 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21603 | { | |
21604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21605 | (arg1)->AdjustScrollbars(arg2); | |
21606 | ||
21607 | wxPyEndAllowThreads(__tstate); | |
21608 | if (PyErr_Occurred()) SWIG_fail; | |
21609 | } | |
21610 | Py_INCREF(Py_None); resultobj = Py_None; | |
21611 | return resultobj; | |
21612 | fail: | |
21613 | return NULL; | |
21614 | } | |
21615 | ||
21616 | ||
21617 | static PyObject *_wrap_PrintPreview_GetPrintDialogData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21618 | PyObject *resultobj; | |
21619 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21620 | wxPrintDialogData *result; | |
21621 | PyObject * obj0 = 0 ; | |
21622 | char *kwnames[] = { | |
21623 | (char *) "self", NULL | |
21624 | }; | |
21625 | ||
21626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetPrintDialogData",kwnames,&obj0)) goto fail; | |
21627 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21628 | { | |
21629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21630 | { | |
21631 | wxPrintDialogData &_result_ref = (arg1)->GetPrintDialogData(); | |
21632 | result = (wxPrintDialogData *) &_result_ref; | |
21633 | } | |
21634 | ||
21635 | wxPyEndAllowThreads(__tstate); | |
21636 | if (PyErr_Occurred()) SWIG_fail; | |
21637 | } | |
21638 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintDialogData, 0); | |
21639 | return resultobj; | |
21640 | fail: | |
21641 | return NULL; | |
21642 | } | |
21643 | ||
21644 | ||
21645 | static PyObject *_wrap_PrintPreview_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21646 | PyObject *resultobj; | |
21647 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21648 | int arg2 ; | |
21649 | PyObject * obj0 = 0 ; | |
994141e6 | 21650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21651 | char *kwnames[] = { |
21652 | (char *) "self",(char *) "percent", NULL | |
21653 | }; | |
21654 | ||
994141e6 | 21655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetZoom",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21657 | { |
21658 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21659 | if (PyErr_Occurred()) SWIG_fail; | |
21660 | } | |
d14a1e28 RD |
21661 | { |
21662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21663 | (arg1)->SetZoom(arg2); | |
21664 | ||
21665 | wxPyEndAllowThreads(__tstate); | |
21666 | if (PyErr_Occurred()) SWIG_fail; | |
21667 | } | |
21668 | Py_INCREF(Py_None); resultobj = Py_None; | |
21669 | return resultobj; | |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
21675 | static PyObject *_wrap_PrintPreview_GetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21676 | PyObject *resultobj; | |
21677 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21678 | int result; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetZoom",kwnames,&obj0)) goto fail; | |
21685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21686 | { | |
21687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21688 | result = (int)(arg1)->GetZoom(); | |
21689 | ||
21690 | wxPyEndAllowThreads(__tstate); | |
21691 | if (PyErr_Occurred()) SWIG_fail; | |
21692 | } | |
994141e6 | 21693 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21694 | return resultobj; |
21695 | fail: | |
21696 | return NULL; | |
21697 | } | |
21698 | ||
21699 | ||
21700 | static PyObject *_wrap_PrintPreview_GetMaxPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21701 | PyObject *resultobj; | |
21702 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21703 | int result; | |
21704 | PyObject * obj0 = 0 ; | |
21705 | char *kwnames[] = { | |
21706 | (char *) "self", NULL | |
21707 | }; | |
21708 | ||
21709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMaxPage",kwnames,&obj0)) goto fail; | |
21710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21711 | { | |
21712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21713 | result = (int)(arg1)->GetMaxPage(); | |
21714 | ||
21715 | wxPyEndAllowThreads(__tstate); | |
21716 | if (PyErr_Occurred()) SWIG_fail; | |
21717 | } | |
994141e6 | 21718 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21719 | return resultobj; |
21720 | fail: | |
21721 | return NULL; | |
21722 | } | |
21723 | ||
21724 | ||
21725 | static PyObject *_wrap_PrintPreview_GetMinPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21726 | PyObject *resultobj; | |
21727 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21728 | int result; | |
21729 | PyObject * obj0 = 0 ; | |
21730 | char *kwnames[] = { | |
21731 | (char *) "self", NULL | |
21732 | }; | |
21733 | ||
21734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_GetMinPage",kwnames,&obj0)) goto fail; | |
21735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21736 | { | |
21737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21738 | result = (int)(arg1)->GetMinPage(); | |
21739 | ||
21740 | wxPyEndAllowThreads(__tstate); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
21742 | } | |
994141e6 | 21743 | resultobj = SWIG_PyObj_FromInt((int)result); |
d14a1e28 RD |
21744 | return resultobj; |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
21750 | static PyObject *_wrap_PrintPreview_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21751 | PyObject *resultobj; | |
21752 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21753 | bool result; | |
21754 | PyObject * obj0 = 0 ; | |
21755 | char *kwnames[] = { | |
21756 | (char *) "self", NULL | |
21757 | }; | |
21758 | ||
21759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_Ok",kwnames,&obj0)) goto fail; | |
21760 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21761 | { | |
21762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21763 | result = (bool)(arg1)->Ok(); | |
21764 | ||
21765 | wxPyEndAllowThreads(__tstate); | |
21766 | if (PyErr_Occurred()) SWIG_fail; | |
21767 | } | |
4d5c3d91 | 21768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21769 | return resultobj; |
21770 | fail: | |
21771 | return NULL; | |
21772 | } | |
21773 | ||
21774 | ||
21775 | static PyObject *_wrap_PrintPreview_SetOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21776 | PyObject *resultobj; | |
21777 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21778 | bool arg2 ; | |
21779 | PyObject * obj0 = 0 ; | |
21780 | PyObject * obj1 = 0 ; | |
21781 | char *kwnames[] = { | |
21782 | (char *) "self",(char *) "ok", NULL | |
21783 | }; | |
21784 | ||
21785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_SetOk",kwnames,&obj0,&obj1)) goto fail; | |
21786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 21787 | { |
994141e6 | 21788 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
21789 | if (PyErr_Occurred()) SWIG_fail; |
21790 | } | |
d14a1e28 RD |
21791 | { |
21792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21793 | (arg1)->SetOk(arg2); | |
21794 | ||
21795 | wxPyEndAllowThreads(__tstate); | |
21796 | if (PyErr_Occurred()) SWIG_fail; | |
21797 | } | |
21798 | Py_INCREF(Py_None); resultobj = Py_None; | |
21799 | return resultobj; | |
21800 | fail: | |
21801 | return NULL; | |
21802 | } | |
21803 | ||
21804 | ||
21805 | static PyObject *_wrap_PrintPreview_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21806 | PyObject *resultobj; | |
21807 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21808 | bool arg2 ; | |
21809 | bool result; | |
21810 | PyObject * obj0 = 0 ; | |
21811 | PyObject * obj1 = 0 ; | |
21812 | char *kwnames[] = { | |
21813 | (char *) "self",(char *) "interactive", NULL | |
21814 | }; | |
21815 | ||
21816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PrintPreview_Print",kwnames,&obj0,&obj1)) goto fail; | |
21817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 21818 | { |
994141e6 | 21819 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
21820 | if (PyErr_Occurred()) SWIG_fail; |
21821 | } | |
d14a1e28 RD |
21822 | { |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21824 | result = (bool)(arg1)->Print(arg2); | |
21825 | ||
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
4d5c3d91 | 21829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21830 | return resultobj; |
21831 | fail: | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
21836 | static PyObject *_wrap_PrintPreview_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21837 | PyObject *resultobj; | |
21838 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
21839 | PyObject * obj0 = 0 ; | |
21840 | char *kwnames[] = { | |
21841 | (char *) "self", NULL | |
21842 | }; | |
21843 | ||
21844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PrintPreview_DetermineScaling",kwnames,&obj0)) goto fail; | |
21845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21846 | { | |
21847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21848 | (arg1)->DetermineScaling(); | |
21849 | ||
21850 | wxPyEndAllowThreads(__tstate); | |
21851 | if (PyErr_Occurred()) SWIG_fail; | |
21852 | } | |
21853 | Py_INCREF(Py_None); resultobj = Py_None; | |
21854 | return resultobj; | |
21855 | fail: | |
21856 | return NULL; | |
21857 | } | |
21858 | ||
21859 | ||
21860 | static PyObject * PrintPreview_swigregister(PyObject *self, PyObject *args) { | |
21861 | PyObject *obj; | |
21862 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21863 | SWIG_TypeClientData(SWIGTYPE_p_wxPrintPreview, obj); | |
21864 | Py_INCREF(obj); | |
21865 | return Py_BuildValue((char *)""); | |
21866 | } | |
21867 | static PyObject *_wrap_new_PyPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21868 | PyObject *resultobj; | |
21869 | wxPyPrintout *arg1 = (wxPyPrintout *) 0 ; | |
21870 | wxPyPrintout *arg2 = (wxPyPrintout *) 0 ; | |
21871 | wxPrintData *arg3 = (wxPrintData *) NULL ; | |
21872 | wxPyPrintPreview *result; | |
21873 | PyObject * obj0 = 0 ; | |
21874 | PyObject * obj1 = 0 ; | |
21875 | PyObject * obj2 = 0 ; | |
21876 | char *kwnames[] = { | |
21877 | (char *) "printout",(char *) "printoutForPrinting",(char *) "data", NULL | |
21878 | }; | |
21879 | ||
21880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_PyPrintPreview",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21882 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyPrintout,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21883 | if (obj2) { | |
21884 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21885 | } | |
21886 | { | |
21887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21888 | result = (wxPyPrintPreview *)new wxPyPrintPreview(arg1,arg2,arg3); | |
21889 | ||
21890 | wxPyEndAllowThreads(__tstate); | |
21891 | if (PyErr_Occurred()) SWIG_fail; | |
21892 | } | |
21893 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPrintPreview, 1); | |
21894 | return resultobj; | |
21895 | fail: | |
21896 | return NULL; | |
21897 | } | |
21898 | ||
21899 | ||
21900 | static PyObject *_wrap_PyPrintPreview__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21901 | PyObject *resultobj; | |
21902 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
21903 | PyObject *arg2 = (PyObject *) 0 ; | |
21904 | PyObject *arg3 = (PyObject *) 0 ; | |
21905 | PyObject * obj0 = 0 ; | |
21906 | PyObject * obj1 = 0 ; | |
21907 | PyObject * obj2 = 0 ; | |
21908 | char *kwnames[] = { | |
21909 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21910 | }; | |
21911 | ||
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21914 | arg2 = obj1; | |
21915 | arg3 = obj2; | |
21916 | { | |
21917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21918 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21919 | ||
21920 | wxPyEndAllowThreads(__tstate); | |
21921 | if (PyErr_Occurred()) SWIG_fail; | |
21922 | } | |
21923 | Py_INCREF(Py_None); resultobj = Py_None; | |
21924 | return resultobj; | |
21925 | fail: | |
21926 | return NULL; | |
21927 | } | |
21928 | ||
21929 | ||
21930 | static PyObject *_wrap_PyPrintPreview_base_SetCurrentPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21931 | PyObject *resultobj; | |
21932 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
21933 | int arg2 ; | |
21934 | bool result; | |
21935 | PyObject * obj0 = 0 ; | |
994141e6 | 21936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21937 | char *kwnames[] = { |
21938 | (char *) "self",(char *) "pageNum", NULL | |
21939 | }; | |
21940 | ||
994141e6 | 21941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetCurrentPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 21942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
21943 | { |
21944 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
21945 | if (PyErr_Occurred()) SWIG_fail; | |
21946 | } | |
d14a1e28 RD |
21947 | { |
21948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21949 | result = (bool)(arg1)->base_SetCurrentPage(arg2); | |
21950 | ||
21951 | wxPyEndAllowThreads(__tstate); | |
21952 | if (PyErr_Occurred()) SWIG_fail; | |
21953 | } | |
4d5c3d91 | 21954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21955 | return resultobj; |
21956 | fail: | |
21957 | return NULL; | |
21958 | } | |
21959 | ||
21960 | ||
21961 | static PyObject *_wrap_PyPrintPreview_base_PaintPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21962 | PyObject *resultobj; | |
21963 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
21964 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21965 | wxDC *arg3 = 0 ; | |
21966 | bool result; | |
21967 | PyObject * obj0 = 0 ; | |
21968 | PyObject * obj1 = 0 ; | |
21969 | PyObject * obj2 = 0 ; | |
21970 | char *kwnames[] = { | |
21971 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
21972 | }; | |
21973 | ||
21974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_PaintPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21975 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21976 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21977 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21978 | if (arg3 == NULL) { | |
21979 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21980 | } | |
21981 | { | |
21982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21983 | result = (bool)(arg1)->base_PaintPage(arg2,*arg3); | |
21984 | ||
21985 | wxPyEndAllowThreads(__tstate); | |
21986 | if (PyErr_Occurred()) SWIG_fail; | |
21987 | } | |
4d5c3d91 | 21988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
21989 | return resultobj; |
21990 | fail: | |
21991 | return NULL; | |
21992 | } | |
21993 | ||
21994 | ||
21995 | static PyObject *_wrap_PyPrintPreview_base_DrawBlankPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21996 | PyObject *resultobj; | |
21997 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
21998 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
21999 | wxDC *arg3 = 0 ; | |
22000 | bool result; | |
22001 | PyObject * obj0 = 0 ; | |
22002 | PyObject * obj1 = 0 ; | |
22003 | PyObject * obj2 = 0 ; | |
22004 | char *kwnames[] = { | |
22005 | (char *) "self",(char *) "canvas",(char *) "dc", NULL | |
22006 | }; | |
22007 | ||
22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPrintPreview_base_DrawBlankPage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22010 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22011 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22012 | if (arg3 == NULL) { | |
22013 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22014 | } | |
22015 | { | |
22016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22017 | result = (bool)(arg1)->base_DrawBlankPage(arg2,*arg3); | |
22018 | ||
22019 | wxPyEndAllowThreads(__tstate); | |
22020 | if (PyErr_Occurred()) SWIG_fail; | |
22021 | } | |
4d5c3d91 | 22022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22023 | return resultobj; |
22024 | fail: | |
22025 | return NULL; | |
22026 | } | |
22027 | ||
22028 | ||
22029 | static PyObject *_wrap_PyPrintPreview_base_RenderPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22030 | PyObject *resultobj; | |
22031 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22032 | int arg2 ; | |
22033 | bool result; | |
22034 | PyObject * obj0 = 0 ; | |
994141e6 | 22035 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22036 | char *kwnames[] = { |
22037 | (char *) "self",(char *) "pageNum", NULL | |
22038 | }; | |
22039 | ||
994141e6 | 22040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_RenderPage",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22042 | { |
22043 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | } | |
d14a1e28 RD |
22046 | { |
22047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22048 | result = (bool)(arg1)->base_RenderPage(arg2); | |
22049 | ||
22050 | wxPyEndAllowThreads(__tstate); | |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
22052 | } | |
4d5c3d91 | 22053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22054 | return resultobj; |
22055 | fail: | |
22056 | return NULL; | |
22057 | } | |
22058 | ||
22059 | ||
22060 | static PyObject *_wrap_PyPrintPreview_base_SetZoom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22061 | PyObject *resultobj; | |
22062 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22063 | int arg2 ; | |
22064 | PyObject * obj0 = 0 ; | |
994141e6 | 22065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22066 | char *kwnames[] = { |
22067 | (char *) "self",(char *) "percent", NULL | |
22068 | }; | |
22069 | ||
994141e6 | 22070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_SetZoom",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22072 | { |
22073 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22074 | if (PyErr_Occurred()) SWIG_fail; | |
22075 | } | |
d14a1e28 RD |
22076 | { |
22077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22078 | (arg1)->base_SetZoom(arg2); | |
22079 | ||
22080 | wxPyEndAllowThreads(__tstate); | |
22081 | if (PyErr_Occurred()) SWIG_fail; | |
22082 | } | |
22083 | Py_INCREF(Py_None); resultobj = Py_None; | |
22084 | return resultobj; | |
22085 | fail: | |
22086 | return NULL; | |
22087 | } | |
22088 | ||
22089 | ||
22090 | static PyObject *_wrap_PyPrintPreview_base_Print(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22091 | PyObject *resultobj; | |
22092 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22093 | bool arg2 ; | |
22094 | bool result; | |
22095 | PyObject * obj0 = 0 ; | |
22096 | PyObject * obj1 = 0 ; | |
22097 | char *kwnames[] = { | |
22098 | (char *) "self",(char *) "interactive", NULL | |
22099 | }; | |
22100 | ||
22101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPrintPreview_base_Print",kwnames,&obj0,&obj1)) goto fail; | |
22102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 | 22103 | { |
994141e6 | 22104 | arg2 = (bool) SWIG_PyObj_AsBool(obj1); |
a41e16b6 RD |
22105 | if (PyErr_Occurred()) SWIG_fail; |
22106 | } | |
d14a1e28 RD |
22107 | { |
22108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22109 | result = (bool)(arg1)->base_Print(arg2); | |
22110 | ||
22111 | wxPyEndAllowThreads(__tstate); | |
22112 | if (PyErr_Occurred()) SWIG_fail; | |
22113 | } | |
4d5c3d91 | 22114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
d14a1e28 RD |
22115 | return resultobj; |
22116 | fail: | |
22117 | return NULL; | |
22118 | } | |
22119 | ||
22120 | ||
22121 | static PyObject *_wrap_PyPrintPreview_base_DetermineScaling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22122 | PyObject *resultobj; | |
22123 | wxPyPrintPreview *arg1 = (wxPyPrintPreview *) 0 ; | |
22124 | PyObject * obj0 = 0 ; | |
22125 | char *kwnames[] = { | |
22126 | (char *) "self", NULL | |
22127 | }; | |
22128 | ||
22129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPrintPreview_base_DetermineScaling",kwnames,&obj0)) goto fail; | |
22130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22131 | { | |
22132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22133 | (arg1)->base_DetermineScaling(); | |
22134 | ||
22135 | wxPyEndAllowThreads(__tstate); | |
22136 | if (PyErr_Occurred()) SWIG_fail; | |
22137 | } | |
22138 | Py_INCREF(Py_None); resultobj = Py_None; | |
22139 | return resultobj; | |
22140 | fail: | |
22141 | return NULL; | |
22142 | } | |
22143 | ||
22144 | ||
22145 | static PyObject * PyPrintPreview_swigregister(PyObject *self, PyObject *args) { | |
22146 | PyObject *obj; | |
22147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22148 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPrintPreview, obj); | |
22149 | Py_INCREF(obj); | |
22150 | return Py_BuildValue((char *)""); | |
22151 | } | |
22152 | static PyObject *_wrap_new_PyPreviewFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22153 | PyObject *resultobj; | |
22154 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22155 | wxFrame *arg2 = (wxFrame *) 0 ; | |
22156 | wxString *arg3 = 0 ; | |
22157 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22158 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22159 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22160 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22161 | long arg6 = (long) wxDEFAULT_FRAME_STYLE ; | |
22162 | wxString const &arg7_defvalue = wxPyFrameNameStr ; | |
22163 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22164 | wxPyPreviewFrame *result; | |
e811c8ce | 22165 | bool temp3 = False ; |
d14a1e28 RD |
22166 | wxPoint temp4 ; |
22167 | wxSize temp5 ; | |
e811c8ce | 22168 | bool temp7 = False ; |
d14a1e28 RD |
22169 | PyObject * obj0 = 0 ; |
22170 | PyObject * obj1 = 0 ; | |
22171 | PyObject * obj2 = 0 ; | |
22172 | PyObject * obj3 = 0 ; | |
22173 | PyObject * obj4 = 0 ; | |
994141e6 | 22174 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22175 | PyObject * obj6 = 0 ; |
22176 | char *kwnames[] = { | |
22177 | (char *) "preview",(char *) "parent",(char *) "title",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22178 | }; | |
22179 | ||
994141e6 | 22180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewFrame",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 RD |
22181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22182 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22183 | { | |
22184 | arg3 = wxString_in_helper(obj2); | |
22185 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22186 | temp3 = True; |
d14a1e28 RD |
22187 | } |
22188 | if (obj3) { | |
22189 | { | |
22190 | arg4 = &temp4; | |
22191 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22192 | } | |
22193 | } | |
22194 | if (obj4) { | |
22195 | { | |
22196 | arg5 = &temp5; | |
22197 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22198 | } | |
22199 | } | |
994141e6 RD |
22200 | if (obj5) { |
22201 | { | |
22202 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22203 | if (PyErr_Occurred()) SWIG_fail; | |
22204 | } | |
22205 | } | |
d14a1e28 RD |
22206 | if (obj6) { |
22207 | { | |
22208 | arg7 = wxString_in_helper(obj6); | |
22209 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 22210 | temp7 = True; |
d14a1e28 RD |
22211 | } |
22212 | } | |
22213 | { | |
22214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22215 | result = (wxPyPreviewFrame *)new wxPyPreviewFrame(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22216 | ||
22217 | wxPyEndAllowThreads(__tstate); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | } | |
22220 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPreviewFrame, 1); | |
22221 | { | |
22222 | if (temp3) | |
22223 | delete arg3; | |
22224 | } | |
22225 | { | |
22226 | if (temp7) | |
22227 | delete arg7; | |
22228 | } | |
22229 | return resultobj; | |
22230 | fail: | |
22231 | { | |
22232 | if (temp3) | |
22233 | delete arg3; | |
22234 | } | |
22235 | { | |
22236 | if (temp7) | |
22237 | delete arg7; | |
22238 | } | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
22243 | static PyObject *_wrap_PyPreviewFrame__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22244 | PyObject *resultobj; | |
22245 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22246 | PyObject *arg2 = (PyObject *) 0 ; | |
22247 | PyObject *arg3 = (PyObject *) 0 ; | |
22248 | PyObject * obj0 = 0 ; | |
22249 | PyObject * obj1 = 0 ; | |
22250 | PyObject * obj2 = 0 ; | |
22251 | char *kwnames[] = { | |
22252 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22253 | }; | |
22254 | ||
22255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewFrame__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22257 | arg2 = obj1; | |
22258 | arg3 = obj2; | |
22259 | { | |
22260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22261 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22262 | ||
22263 | wxPyEndAllowThreads(__tstate); | |
22264 | if (PyErr_Occurred()) SWIG_fail; | |
22265 | } | |
22266 | Py_INCREF(Py_None); resultobj = Py_None; | |
22267 | return resultobj; | |
22268 | fail: | |
22269 | return NULL; | |
22270 | } | |
22271 | ||
22272 | ||
22273 | static PyObject *_wrap_PyPreviewFrame_SetPreviewCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22274 | PyObject *resultobj; | |
22275 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22276 | wxPreviewCanvas *arg2 = (wxPreviewCanvas *) 0 ; | |
22277 | PyObject * obj0 = 0 ; | |
22278 | PyObject * obj1 = 0 ; | |
22279 | char *kwnames[] = { | |
22280 | (char *) "self",(char *) "canvas", NULL | |
22281 | }; | |
22282 | ||
22283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetPreviewCanvas",kwnames,&obj0,&obj1)) goto fail; | |
22284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22285 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewCanvas,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22286 | { | |
22287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22288 | (arg1)->SetPreviewCanvas(arg2); | |
22289 | ||
22290 | wxPyEndAllowThreads(__tstate); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | } | |
22293 | Py_INCREF(Py_None); resultobj = Py_None; | |
22294 | return resultobj; | |
22295 | fail: | |
22296 | return NULL; | |
22297 | } | |
22298 | ||
22299 | ||
22300 | static PyObject *_wrap_PyPreviewFrame_SetControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22301 | PyObject *resultobj; | |
22302 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22303 | wxPreviewControlBar *arg2 = (wxPreviewControlBar *) 0 ; | |
22304 | PyObject * obj0 = 0 ; | |
22305 | PyObject * obj1 = 0 ; | |
22306 | char *kwnames[] = { | |
22307 | (char *) "self",(char *) "bar", NULL | |
22308 | }; | |
22309 | ||
22310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewFrame_SetControlBar",kwnames,&obj0,&obj1)) goto fail; | |
22311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22312 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22313 | { | |
22314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22315 | (arg1)->SetControlBar(arg2); | |
22316 | ||
22317 | wxPyEndAllowThreads(__tstate); | |
22318 | if (PyErr_Occurred()) SWIG_fail; | |
22319 | } | |
22320 | Py_INCREF(Py_None); resultobj = Py_None; | |
22321 | return resultobj; | |
22322 | fail: | |
22323 | return NULL; | |
22324 | } | |
22325 | ||
22326 | ||
22327 | static PyObject *_wrap_PyPreviewFrame_base_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22328 | PyObject *resultobj; | |
22329 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22330 | PyObject * obj0 = 0 ; | |
22331 | char *kwnames[] = { | |
22332 | (char *) "self", NULL | |
22333 | }; | |
22334 | ||
22335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_Initialize",kwnames,&obj0)) goto fail; | |
22336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22337 | { | |
22338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22339 | (arg1)->base_Initialize(); | |
22340 | ||
22341 | wxPyEndAllowThreads(__tstate); | |
22342 | if (PyErr_Occurred()) SWIG_fail; | |
22343 | } | |
22344 | Py_INCREF(Py_None); resultobj = Py_None; | |
22345 | return resultobj; | |
22346 | fail: | |
22347 | return NULL; | |
22348 | } | |
22349 | ||
22350 | ||
22351 | static PyObject *_wrap_PyPreviewFrame_base_CreateCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22352 | PyObject *resultobj; | |
22353 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22354 | PyObject * obj0 = 0 ; | |
22355 | char *kwnames[] = { | |
22356 | (char *) "self", NULL | |
22357 | }; | |
22358 | ||
22359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateCanvas",kwnames,&obj0)) goto fail; | |
22360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22361 | { | |
22362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22363 | (arg1)->base_CreateCanvas(); | |
22364 | ||
22365 | wxPyEndAllowThreads(__tstate); | |
22366 | if (PyErr_Occurred()) SWIG_fail; | |
22367 | } | |
22368 | Py_INCREF(Py_None); resultobj = Py_None; | |
22369 | return resultobj; | |
22370 | fail: | |
22371 | return NULL; | |
22372 | } | |
22373 | ||
22374 | ||
22375 | static PyObject *_wrap_PyPreviewFrame_base_CreateControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22376 | PyObject *resultobj; | |
22377 | wxPyPreviewFrame *arg1 = (wxPyPreviewFrame *) 0 ; | |
22378 | PyObject * obj0 = 0 ; | |
22379 | char *kwnames[] = { | |
22380 | (char *) "self", NULL | |
22381 | }; | |
22382 | ||
22383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewFrame_base_CreateControlBar",kwnames,&obj0)) goto fail; | |
22384 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22385 | { | |
22386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22387 | (arg1)->base_CreateControlBar(); | |
22388 | ||
22389 | wxPyEndAllowThreads(__tstate); | |
22390 | if (PyErr_Occurred()) SWIG_fail; | |
22391 | } | |
22392 | Py_INCREF(Py_None); resultobj = Py_None; | |
22393 | return resultobj; | |
22394 | fail: | |
22395 | return NULL; | |
22396 | } | |
22397 | ||
22398 | ||
22399 | static PyObject * PyPreviewFrame_swigregister(PyObject *self, PyObject *args) { | |
22400 | PyObject *obj; | |
22401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22402 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewFrame, obj); | |
22403 | Py_INCREF(obj); | |
22404 | return Py_BuildValue((char *)""); | |
22405 | } | |
22406 | static PyObject *_wrap_new_PyPreviewControlBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22407 | PyObject *resultobj; | |
22408 | wxPrintPreview *arg1 = (wxPrintPreview *) 0 ; | |
22409 | long arg2 ; | |
22410 | wxWindow *arg3 = (wxWindow *) 0 ; | |
22411 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22412 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22413 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22414 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22415 | long arg6 = (long) 0 ; | |
22416 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22417 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22418 | wxPyPreviewControlBar *result; | |
22419 | wxPoint temp4 ; | |
22420 | wxSize temp5 ; | |
e811c8ce | 22421 | bool temp7 = False ; |
d14a1e28 | 22422 | PyObject * obj0 = 0 ; |
994141e6 | 22423 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22424 | PyObject * obj2 = 0 ; |
22425 | PyObject * obj3 = 0 ; | |
22426 | PyObject * obj4 = 0 ; | |
994141e6 | 22427 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22428 | PyObject * obj6 = 0 ; |
22429 | char *kwnames[] = { | |
22430 | (char *) "preview",(char *) "buttons",(char *) "parent",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22431 | }; | |
22432 | ||
994141e6 | 22433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_PyPreviewControlBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d14a1e28 | 22434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22435 | { |
22436 | arg2 = (long) SWIG_PyObj_AsLong(obj1); | |
22437 | if (PyErr_Occurred()) SWIG_fail; | |
22438 | } | |
d14a1e28 RD |
22439 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
22440 | if (obj3) { | |
22441 | { | |
22442 | arg4 = &temp4; | |
22443 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22444 | } | |
22445 | } | |
22446 | if (obj4) { | |
22447 | { | |
22448 | arg5 = &temp5; | |
22449 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22450 | } | |
22451 | } | |
994141e6 RD |
22452 | if (obj5) { |
22453 | { | |
22454 | arg6 = (long) SWIG_PyObj_AsLong(obj5); | |
22455 | if (PyErr_Occurred()) SWIG_fail; | |
22456 | } | |
22457 | } | |
d14a1e28 RD |
22458 | if (obj6) { |
22459 | { | |
22460 | arg7 = wxString_in_helper(obj6); | |
22461 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 22462 | temp7 = True; |
d14a1e28 RD |
22463 | } |
22464 | } | |
22465 | { | |
22466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22467 | result = (wxPyPreviewControlBar *)new wxPyPreviewControlBar(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22468 | ||
22469 | wxPyEndAllowThreads(__tstate); | |
22470 | if (PyErr_Occurred()) SWIG_fail; | |
22471 | } | |
22472 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPreviewControlBar, 1); | |
22473 | { | |
22474 | if (temp7) | |
22475 | delete arg7; | |
22476 | } | |
22477 | return resultobj; | |
22478 | fail: | |
22479 | { | |
22480 | if (temp7) | |
22481 | delete arg7; | |
22482 | } | |
22483 | return NULL; | |
22484 | } | |
22485 | ||
22486 | ||
22487 | static PyObject *_wrap_PyPreviewControlBar__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22488 | PyObject *resultobj; | |
22489 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22490 | PyObject *arg2 = (PyObject *) 0 ; | |
22491 | PyObject *arg3 = (PyObject *) 0 ; | |
22492 | PyObject * obj0 = 0 ; | |
22493 | PyObject * obj1 = 0 ; | |
22494 | PyObject * obj2 = 0 ; | |
22495 | char *kwnames[] = { | |
22496 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
22497 | }; | |
22498 | ||
22499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyPreviewControlBar__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22501 | arg2 = obj1; | |
22502 | arg3 = obj2; | |
22503 | { | |
22504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22505 | (arg1)->_setCallbackInfo(arg2,arg3); | |
22506 | ||
22507 | wxPyEndAllowThreads(__tstate); | |
22508 | if (PyErr_Occurred()) SWIG_fail; | |
22509 | } | |
22510 | Py_INCREF(Py_None); resultobj = Py_None; | |
22511 | return resultobj; | |
22512 | fail: | |
22513 | return NULL; | |
22514 | } | |
22515 | ||
22516 | ||
22517 | static PyObject *_wrap_PyPreviewControlBar_SetPrintPreview(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22518 | PyObject *resultobj; | |
22519 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22520 | wxPrintPreview *arg2 = (wxPrintPreview *) 0 ; | |
22521 | PyObject * obj0 = 0 ; | |
22522 | PyObject * obj1 = 0 ; | |
22523 | char *kwnames[] = { | |
22524 | (char *) "self",(char *) "preview", NULL | |
22525 | }; | |
22526 | ||
22527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_SetPrintPreview",kwnames,&obj0,&obj1)) goto fail; | |
22528 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22529 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintPreview,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22530 | { | |
22531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22532 | (arg1)->SetPrintPreview(arg2); | |
22533 | ||
22534 | wxPyEndAllowThreads(__tstate); | |
22535 | if (PyErr_Occurred()) SWIG_fail; | |
22536 | } | |
22537 | Py_INCREF(Py_None); resultobj = Py_None; | |
22538 | return resultobj; | |
22539 | fail: | |
22540 | return NULL; | |
22541 | } | |
22542 | ||
22543 | ||
22544 | static PyObject *_wrap_PyPreviewControlBar_base_CreateButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22545 | PyObject *resultobj; | |
22546 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22547 | PyObject * obj0 = 0 ; | |
22548 | char *kwnames[] = { | |
22549 | (char *) "self", NULL | |
22550 | }; | |
22551 | ||
22552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyPreviewControlBar_base_CreateButtons",kwnames,&obj0)) goto fail; | |
22553 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22554 | { | |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | (arg1)->base_CreateButtons(); | |
22557 | ||
22558 | wxPyEndAllowThreads(__tstate); | |
22559 | if (PyErr_Occurred()) SWIG_fail; | |
22560 | } | |
22561 | Py_INCREF(Py_None); resultobj = Py_None; | |
22562 | return resultobj; | |
22563 | fail: | |
22564 | return NULL; | |
22565 | } | |
22566 | ||
22567 | ||
22568 | static PyObject *_wrap_PyPreviewControlBar_base_SetZoomControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22569 | PyObject *resultobj; | |
22570 | wxPyPreviewControlBar *arg1 = (wxPyPreviewControlBar *) 0 ; | |
22571 | int arg2 ; | |
22572 | PyObject * obj0 = 0 ; | |
994141e6 | 22573 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22574 | char *kwnames[] = { |
22575 | (char *) "self",(char *) "zoom", NULL | |
22576 | }; | |
22577 | ||
994141e6 | 22578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPreviewControlBar_base_SetZoomControl",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 | 22579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPreviewControlBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
994141e6 RD |
22580 | { |
22581 | arg2 = (int) SWIG_PyObj_AsInt(obj1); | |
22582 | if (PyErr_Occurred()) SWIG_fail; | |
22583 | } | |
d14a1e28 RD |
22584 | { |
22585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22586 | (arg1)->base_SetZoomControl(arg2); | |
22587 | ||
22588 | wxPyEndAllowThreads(__tstate); | |
22589 | if (PyErr_Occurred()) SWIG_fail; | |
22590 | } | |
22591 | Py_INCREF(Py_None); resultobj = Py_None; | |
22592 | return resultobj; | |
22593 | fail: | |
22594 | return NULL; | |
22595 | } | |
22596 | ||
22597 | ||
22598 | static PyObject * PyPreviewControlBar_swigregister(PyObject *self, PyObject *args) { | |
22599 | PyObject *obj; | |
22600 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22601 | SWIG_TypeClientData(SWIGTYPE_p_wxPyPreviewControlBar, obj); | |
22602 | Py_INCREF(obj); | |
22603 | return Py_BuildValue((char *)""); | |
22604 | } | |
22605 | static PyMethodDef SwigMethods[] = { | |
22606 | { (char *)"new_Panel", (PyCFunction) _wrap_new_Panel, METH_VARARGS | METH_KEYWORDS }, | |
22607 | { (char *)"new_PrePanel", (PyCFunction) _wrap_new_PrePanel, METH_VARARGS | METH_KEYWORDS }, | |
22608 | { (char *)"Panel_Create", (PyCFunction) _wrap_Panel_Create, METH_VARARGS | METH_KEYWORDS }, | |
22609 | { (char *)"Panel_InitDialog", (PyCFunction) _wrap_Panel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
22610 | { (char *)"Panel_swigregister", Panel_swigregister, METH_VARARGS }, | |
22611 | { (char *)"new_ScrolledWindow", (PyCFunction) _wrap_new_ScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22612 | { (char *)"new_PreScrolledWindow", (PyCFunction) _wrap_new_PreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22613 | { (char *)"ScrolledWindow_Create", (PyCFunction) _wrap_ScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22614 | { (char *)"ScrolledWindow_SetScrollbars", (PyCFunction) _wrap_ScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
22615 | { (char *)"ScrolledWindow_Scroll", (PyCFunction) _wrap_ScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
22616 | { (char *)"ScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
22617 | { (char *)"ScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_ScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, | |
22618 | { (char *)"ScrolledWindow_SetScrollRate", (PyCFunction) _wrap_ScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, | |
22619 | { (char *)"ScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_ScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
22620 | { (char *)"ScrolledWindow_EnableScrolling", (PyCFunction) _wrap_ScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
22621 | { (char *)"ScrolledWindow_GetViewStart", (PyCFunction) _wrap_ScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, | |
22622 | { (char *)"ScrolledWindow_SetScale", (PyCFunction) _wrap_ScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
22623 | { (char *)"ScrolledWindow_GetScaleX", (PyCFunction) _wrap_ScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
22624 | { (char *)"ScrolledWindow_GetScaleY", (PyCFunction) _wrap_ScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
22625 | { (char *)"ScrolledWindow_CalcScrolledPosition", _wrap_ScrolledWindow_CalcScrolledPosition, METH_VARARGS }, | |
22626 | { (char *)"ScrolledWindow_CalcUnscrolledPosition", _wrap_ScrolledWindow_CalcUnscrolledPosition, METH_VARARGS }, | |
22627 | { (char *)"ScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_ScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
22628 | { (char *)"ScrolledWindow_CalcScrollInc", (PyCFunction) _wrap_ScrolledWindow_CalcScrollInc, METH_VARARGS | METH_KEYWORDS }, | |
22629 | { (char *)"ScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
22630 | { (char *)"ScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_ScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, | |
22631 | { (char *)"ScrolledWindow_swigregister", ScrolledWindow_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
22632 | { (char *)"TopLevelWindow_Maximize", (PyCFunction) _wrap_TopLevelWindow_Maximize, METH_VARARGS | METH_KEYWORDS }, |
22633 | { (char *)"TopLevelWindow_Restore", (PyCFunction) _wrap_TopLevelWindow_Restore, METH_VARARGS | METH_KEYWORDS }, | |
22634 | { (char *)"TopLevelWindow_Iconize", (PyCFunction) _wrap_TopLevelWindow_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
22635 | { (char *)"TopLevelWindow_IsMaximized", (PyCFunction) _wrap_TopLevelWindow_IsMaximized, METH_VARARGS | METH_KEYWORDS }, | |
22636 | { (char *)"TopLevelWindow_IsIconized", (PyCFunction) _wrap_TopLevelWindow_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
22637 | { (char *)"TopLevelWindow_GetIcon", (PyCFunction) _wrap_TopLevelWindow_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22638 | { (char *)"TopLevelWindow_SetIcon", (PyCFunction) _wrap_TopLevelWindow_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22639 | { (char *)"TopLevelWindow_SetIcons", (PyCFunction) _wrap_TopLevelWindow_SetIcons, METH_VARARGS | METH_KEYWORDS }, | |
22640 | { (char *)"TopLevelWindow_ShowFullScreen", (PyCFunction) _wrap_TopLevelWindow_ShowFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
22641 | { (char *)"TopLevelWindow_IsFullScreen", (PyCFunction) _wrap_TopLevelWindow_IsFullScreen, METH_VARARGS | METH_KEYWORDS }, | |
22642 | { (char *)"TopLevelWindow_SetTitle", (PyCFunction) _wrap_TopLevelWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
22643 | { (char *)"TopLevelWindow_GetTitle", (PyCFunction) _wrap_TopLevelWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
22644 | { (char *)"TopLevelWindow_SetShape", (PyCFunction) _wrap_TopLevelWindow_SetShape, METH_VARARGS | METH_KEYWORDS }, | |
22645 | { (char *)"TopLevelWindow_swigregister", TopLevelWindow_swigregister, METH_VARARGS }, | |
22646 | { (char *)"new_Frame", (PyCFunction) _wrap_new_Frame, METH_VARARGS | METH_KEYWORDS }, | |
22647 | { (char *)"new_PreFrame", (PyCFunction) _wrap_new_PreFrame, METH_VARARGS | METH_KEYWORDS }, | |
22648 | { (char *)"Frame_Create", (PyCFunction) _wrap_Frame_Create, METH_VARARGS | METH_KEYWORDS }, | |
22649 | { (char *)"Frame_GetClientAreaOrigin", (PyCFunction) _wrap_Frame_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
22650 | { (char *)"Frame_SendSizeEvent", (PyCFunction) _wrap_Frame_SendSizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
22651 | { (char *)"Frame_SetMenuBar", (PyCFunction) _wrap_Frame_SetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
22652 | { (char *)"Frame_GetMenuBar", (PyCFunction) _wrap_Frame_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
22653 | { (char *)"Frame_ProcessCommand", (PyCFunction) _wrap_Frame_ProcessCommand, METH_VARARGS | METH_KEYWORDS }, | |
22654 | { (char *)"Frame_CreateStatusBar", (PyCFunction) _wrap_Frame_CreateStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22655 | { (char *)"Frame_GetStatusBar", (PyCFunction) _wrap_Frame_GetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22656 | { (char *)"Frame_SetStatusBar", (PyCFunction) _wrap_Frame_SetStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22657 | { (char *)"Frame_SetStatusText", (PyCFunction) _wrap_Frame_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22658 | { (char *)"Frame_SetStatusWidths", (PyCFunction) _wrap_Frame_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
22659 | { (char *)"Frame_PushStatusText", (PyCFunction) _wrap_Frame_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22660 | { (char *)"Frame_PopStatusText", (PyCFunction) _wrap_Frame_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22661 | { (char *)"Frame_SetStatusBarPane", (PyCFunction) _wrap_Frame_SetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
22662 | { (char *)"Frame_GetStatusBarPane", (PyCFunction) _wrap_Frame_GetStatusBarPane, METH_VARARGS | METH_KEYWORDS }, | |
22663 | { (char *)"Frame_CreateToolBar", (PyCFunction) _wrap_Frame_CreateToolBar, METH_VARARGS | METH_KEYWORDS }, | |
22664 | { (char *)"Frame_GetToolBar", (PyCFunction) _wrap_Frame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
22665 | { (char *)"Frame_SetToolBar", (PyCFunction) _wrap_Frame_SetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
22666 | { (char *)"Frame_DoGiveHelp", (PyCFunction) _wrap_Frame_DoGiveHelp, METH_VARARGS | METH_KEYWORDS }, | |
22667 | { (char *)"Frame_DoMenuUpdates", (PyCFunction) _wrap_Frame_DoMenuUpdates, METH_VARARGS | METH_KEYWORDS }, | |
22668 | { (char *)"Frame_swigregister", Frame_swigregister, METH_VARARGS }, | |
22669 | { (char *)"new_Dialog", (PyCFunction) _wrap_new_Dialog, METH_VARARGS | METH_KEYWORDS }, | |
22670 | { (char *)"new_PreDialog", (PyCFunction) _wrap_new_PreDialog, METH_VARARGS | METH_KEYWORDS }, | |
22671 | { (char *)"Dialog_Create", (PyCFunction) _wrap_Dialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
22672 | { (char *)"Dialog_SetReturnCode", (PyCFunction) _wrap_Dialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
22673 | { (char *)"Dialog_GetReturnCode", (PyCFunction) _wrap_Dialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
22674 | { (char *)"Dialog_CreateTextSizer", (PyCFunction) _wrap_Dialog_CreateTextSizer, METH_VARARGS | METH_KEYWORDS }, | |
22675 | { (char *)"Dialog_CreateButtonSizer", (PyCFunction) _wrap_Dialog_CreateButtonSizer, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
22676 | { (char *)"Dialog_IsModal", (PyCFunction) _wrap_Dialog_IsModal, METH_VARARGS | METH_KEYWORDS }, |
22677 | { (char *)"Dialog_ShowModal", (PyCFunction) _wrap_Dialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22678 | { (char *)"Dialog_EndModal", (PyCFunction) _wrap_Dialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
22679 | { (char *)"Dialog_IsModalShowing", (PyCFunction) _wrap_Dialog_IsModalShowing, METH_VARARGS | METH_KEYWORDS }, | |
22680 | { (char *)"Dialog_swigregister", Dialog_swigregister, METH_VARARGS }, | |
22681 | { (char *)"new_MiniFrame", (PyCFunction) _wrap_new_MiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
22682 | { (char *)"new_PreMiniFrame", (PyCFunction) _wrap_new_PreMiniFrame, METH_VARARGS | METH_KEYWORDS }, | |
22683 | { (char *)"MiniFrame_Create", (PyCFunction) _wrap_MiniFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
22684 | { (char *)"MiniFrame_swigregister", MiniFrame_swigregister, METH_VARARGS }, | |
22685 | { (char *)"new_SplashScreenWindow", (PyCFunction) _wrap_new_SplashScreenWindow, METH_VARARGS | METH_KEYWORDS }, | |
22686 | { (char *)"SplashScreenWindow_SetBitmap", (PyCFunction) _wrap_SplashScreenWindow_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
22687 | { (char *)"SplashScreenWindow_GetBitmap", (PyCFunction) _wrap_SplashScreenWindow_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
22688 | { (char *)"SplashScreenWindow_swigregister", SplashScreenWindow_swigregister, METH_VARARGS }, | |
22689 | { (char *)"new_SplashScreen", (PyCFunction) _wrap_new_SplashScreen, METH_VARARGS | METH_KEYWORDS }, | |
22690 | { (char *)"SplashScreen_GetSplashStyle", (PyCFunction) _wrap_SplashScreen_GetSplashStyle, METH_VARARGS | METH_KEYWORDS }, | |
22691 | { (char *)"SplashScreen_GetSplashWindow", (PyCFunction) _wrap_SplashScreen_GetSplashWindow, METH_VARARGS | METH_KEYWORDS }, | |
22692 | { (char *)"SplashScreen_GetTimeout", (PyCFunction) _wrap_SplashScreen_GetTimeout, METH_VARARGS | METH_KEYWORDS }, | |
22693 | { (char *)"SplashScreen_swigregister", SplashScreen_swigregister, METH_VARARGS }, | |
22694 | { (char *)"new_StatusBar", (PyCFunction) _wrap_new_StatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22695 | { (char *)"new_PreStatusBar", (PyCFunction) _wrap_new_PreStatusBar, METH_VARARGS | METH_KEYWORDS }, | |
22696 | { (char *)"StatusBar_Create", (PyCFunction) _wrap_StatusBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
22697 | { (char *)"StatusBar_SetFieldsCount", (PyCFunction) _wrap_StatusBar_SetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
22698 | { (char *)"StatusBar_GetFieldsCount", (PyCFunction) _wrap_StatusBar_GetFieldsCount, METH_VARARGS | METH_KEYWORDS }, | |
22699 | { (char *)"StatusBar_SetStatusText", (PyCFunction) _wrap_StatusBar_SetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22700 | { (char *)"StatusBar_GetStatusText", (PyCFunction) _wrap_StatusBar_GetStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22701 | { (char *)"StatusBar_PushStatusText", (PyCFunction) _wrap_StatusBar_PushStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22702 | { (char *)"StatusBar_PopStatusText", (PyCFunction) _wrap_StatusBar_PopStatusText, METH_VARARGS | METH_KEYWORDS }, | |
22703 | { (char *)"StatusBar_SetStatusWidths", (PyCFunction) _wrap_StatusBar_SetStatusWidths, METH_VARARGS | METH_KEYWORDS }, | |
22704 | { (char *)"StatusBar_GetFieldRect", (PyCFunction) _wrap_StatusBar_GetFieldRect, METH_VARARGS | METH_KEYWORDS }, | |
22705 | { (char *)"StatusBar_SetMinHeight", (PyCFunction) _wrap_StatusBar_SetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
22706 | { (char *)"StatusBar_GetBorderX", (PyCFunction) _wrap_StatusBar_GetBorderX, METH_VARARGS | METH_KEYWORDS }, | |
22707 | { (char *)"StatusBar_GetBorderY", (PyCFunction) _wrap_StatusBar_GetBorderY, METH_VARARGS | METH_KEYWORDS }, | |
22708 | { (char *)"StatusBar_swigregister", StatusBar_swigregister, METH_VARARGS }, | |
22709 | { (char *)"new_SplitterWindow", (PyCFunction) _wrap_new_SplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
22710 | { (char *)"new_PreSplitterWindow", (PyCFunction) _wrap_new_PreSplitterWindow, METH_VARARGS | METH_KEYWORDS }, | |
22711 | { (char *)"SplitterWindow_Create", (PyCFunction) _wrap_SplitterWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22712 | { (char *)"SplitterWindow_GetWindow1", (PyCFunction) _wrap_SplitterWindow_GetWindow1, METH_VARARGS | METH_KEYWORDS }, | |
22713 | { (char *)"SplitterWindow_GetWindow2", (PyCFunction) _wrap_SplitterWindow_GetWindow2, METH_VARARGS | METH_KEYWORDS }, | |
22714 | { (char *)"SplitterWindow_SetSplitMode", (PyCFunction) _wrap_SplitterWindow_SetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
22715 | { (char *)"SplitterWindow_GetSplitMode", (PyCFunction) _wrap_SplitterWindow_GetSplitMode, METH_VARARGS | METH_KEYWORDS }, | |
22716 | { (char *)"SplitterWindow_Initialize", (PyCFunction) _wrap_SplitterWindow_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
22717 | { (char *)"SplitterWindow_SplitVertically", (PyCFunction) _wrap_SplitterWindow_SplitVertically, METH_VARARGS | METH_KEYWORDS }, | |
22718 | { (char *)"SplitterWindow_SplitHorizontally", (PyCFunction) _wrap_SplitterWindow_SplitHorizontally, METH_VARARGS | METH_KEYWORDS }, | |
22719 | { (char *)"SplitterWindow_Unsplit", (PyCFunction) _wrap_SplitterWindow_Unsplit, METH_VARARGS | METH_KEYWORDS }, | |
22720 | { (char *)"SplitterWindow_ReplaceWindow", (PyCFunction) _wrap_SplitterWindow_ReplaceWindow, METH_VARARGS | METH_KEYWORDS }, | |
22721 | { (char *)"SplitterWindow_IsSplit", (PyCFunction) _wrap_SplitterWindow_IsSplit, METH_VARARGS | METH_KEYWORDS }, | |
22722 | { (char *)"SplitterWindow_SetSashSize", (PyCFunction) _wrap_SplitterWindow_SetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
22723 | { (char *)"SplitterWindow_SetBorderSize", (PyCFunction) _wrap_SplitterWindow_SetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22724 | { (char *)"SplitterWindow_GetSashSize", (PyCFunction) _wrap_SplitterWindow_GetSashSize, METH_VARARGS | METH_KEYWORDS }, | |
22725 | { (char *)"SplitterWindow_GetBorderSize", (PyCFunction) _wrap_SplitterWindow_GetBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22726 | { (char *)"SplitterWindow_SetSashPosition", (PyCFunction) _wrap_SplitterWindow_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22727 | { (char *)"SplitterWindow_GetSashPosition", (PyCFunction) _wrap_SplitterWindow_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22728 | { (char *)"SplitterWindow_SetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_SetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
22729 | { (char *)"SplitterWindow_GetMinimumPaneSize", (PyCFunction) _wrap_SplitterWindow_GetMinimumPaneSize, METH_VARARGS | METH_KEYWORDS }, | |
22730 | { (char *)"SplitterWindow_SashHitTest", (PyCFunction) _wrap_SplitterWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
22731 | { (char *)"SplitterWindow_SizeWindows", (PyCFunction) _wrap_SplitterWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
22732 | { (char *)"SplitterWindow_SetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_SetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
22733 | { (char *)"SplitterWindow_GetNeedUpdating", (PyCFunction) _wrap_SplitterWindow_GetNeedUpdating, METH_VARARGS | METH_KEYWORDS }, | |
22734 | { (char *)"SplitterWindow_swigregister", SplitterWindow_swigregister, METH_VARARGS }, | |
22735 | { (char *)"new_SplitterEvent", (PyCFunction) _wrap_new_SplitterEvent, METH_VARARGS | METH_KEYWORDS }, | |
22736 | { (char *)"SplitterEvent_SetSashPosition", (PyCFunction) _wrap_SplitterEvent_SetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22737 | { (char *)"SplitterEvent_GetSashPosition", (PyCFunction) _wrap_SplitterEvent_GetSashPosition, METH_VARARGS | METH_KEYWORDS }, | |
22738 | { (char *)"SplitterEvent_GetWindowBeingRemoved", (PyCFunction) _wrap_SplitterEvent_GetWindowBeingRemoved, METH_VARARGS | METH_KEYWORDS }, | |
22739 | { (char *)"SplitterEvent_GetX", (PyCFunction) _wrap_SplitterEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
22740 | { (char *)"SplitterEvent_GetY", (PyCFunction) _wrap_SplitterEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
22741 | { (char *)"SplitterEvent_swigregister", SplitterEvent_swigregister, METH_VARARGS }, | |
22742 | { (char *)"new_SashWindow", (PyCFunction) _wrap_new_SashWindow, METH_VARARGS | METH_KEYWORDS }, | |
22743 | { (char *)"new_PreSashWindow", (PyCFunction) _wrap_new_PreSashWindow, METH_VARARGS | METH_KEYWORDS }, | |
22744 | { (char *)"SashWindow_Create", (PyCFunction) _wrap_SashWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22745 | { (char *)"SashWindow_SetSashVisible", (PyCFunction) _wrap_SashWindow_SetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
22746 | { (char *)"SashWindow_GetSashVisible", (PyCFunction) _wrap_SashWindow_GetSashVisible, METH_VARARGS | METH_KEYWORDS }, | |
22747 | { (char *)"SashWindow_SetSashBorder", (PyCFunction) _wrap_SashWindow_SetSashBorder, METH_VARARGS | METH_KEYWORDS }, | |
22748 | { (char *)"SashWindow_HasBorder", (PyCFunction) _wrap_SashWindow_HasBorder, METH_VARARGS | METH_KEYWORDS }, | |
22749 | { (char *)"SashWindow_GetEdgeMargin", (PyCFunction) _wrap_SashWindow_GetEdgeMargin, METH_VARARGS | METH_KEYWORDS }, | |
22750 | { (char *)"SashWindow_SetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_SetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22751 | { (char *)"SashWindow_GetDefaultBorderSize", (PyCFunction) _wrap_SashWindow_GetDefaultBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22752 | { (char *)"SashWindow_SetExtraBorderSize", (PyCFunction) _wrap_SashWindow_SetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22753 | { (char *)"SashWindow_GetExtraBorderSize", (PyCFunction) _wrap_SashWindow_GetExtraBorderSize, METH_VARARGS | METH_KEYWORDS }, | |
22754 | { (char *)"SashWindow_SetMinimumSizeX", (PyCFunction) _wrap_SashWindow_SetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22755 | { (char *)"SashWindow_SetMinimumSizeY", (PyCFunction) _wrap_SashWindow_SetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22756 | { (char *)"SashWindow_GetMinimumSizeX", (PyCFunction) _wrap_SashWindow_GetMinimumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22757 | { (char *)"SashWindow_GetMinimumSizeY", (PyCFunction) _wrap_SashWindow_GetMinimumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22758 | { (char *)"SashWindow_SetMaximumSizeX", (PyCFunction) _wrap_SashWindow_SetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22759 | { (char *)"SashWindow_SetMaximumSizeY", (PyCFunction) _wrap_SashWindow_SetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22760 | { (char *)"SashWindow_GetMaximumSizeX", (PyCFunction) _wrap_SashWindow_GetMaximumSizeX, METH_VARARGS | METH_KEYWORDS }, | |
22761 | { (char *)"SashWindow_GetMaximumSizeY", (PyCFunction) _wrap_SashWindow_GetMaximumSizeY, METH_VARARGS | METH_KEYWORDS }, | |
22762 | { (char *)"SashWindow_SashHitTest", (PyCFunction) _wrap_SashWindow_SashHitTest, METH_VARARGS | METH_KEYWORDS }, | |
22763 | { (char *)"SashWindow_SizeWindows", (PyCFunction) _wrap_SashWindow_SizeWindows, METH_VARARGS | METH_KEYWORDS }, | |
22764 | { (char *)"SashWindow_swigregister", SashWindow_swigregister, METH_VARARGS }, | |
22765 | { (char *)"new_SashEvent", (PyCFunction) _wrap_new_SashEvent, METH_VARARGS | METH_KEYWORDS }, | |
22766 | { (char *)"SashEvent_SetEdge", (PyCFunction) _wrap_SashEvent_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
22767 | { (char *)"SashEvent_GetEdge", (PyCFunction) _wrap_SashEvent_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
22768 | { (char *)"SashEvent_SetDragRect", (PyCFunction) _wrap_SashEvent_SetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
22769 | { (char *)"SashEvent_GetDragRect", (PyCFunction) _wrap_SashEvent_GetDragRect, METH_VARARGS | METH_KEYWORDS }, | |
22770 | { (char *)"SashEvent_SetDragStatus", (PyCFunction) _wrap_SashEvent_SetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
22771 | { (char *)"SashEvent_GetDragStatus", (PyCFunction) _wrap_SashEvent_GetDragStatus, METH_VARARGS | METH_KEYWORDS }, | |
22772 | { (char *)"SashEvent_swigregister", SashEvent_swigregister, METH_VARARGS }, | |
22773 | { (char *)"new_QueryLayoutInfoEvent", (PyCFunction) _wrap_new_QueryLayoutInfoEvent, METH_VARARGS | METH_KEYWORDS }, | |
22774 | { (char *)"QueryLayoutInfoEvent_SetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
22775 | { (char *)"QueryLayoutInfoEvent_GetRequestedLength", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetRequestedLength, METH_VARARGS | METH_KEYWORDS }, | |
22776 | { (char *)"QueryLayoutInfoEvent_SetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22777 | { (char *)"QueryLayoutInfoEvent_GetFlags", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22778 | { (char *)"QueryLayoutInfoEvent_SetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
22779 | { (char *)"QueryLayoutInfoEvent_GetSize", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
22780 | { (char *)"QueryLayoutInfoEvent_SetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22781 | { (char *)"QueryLayoutInfoEvent_GetOrientation", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22782 | { (char *)"QueryLayoutInfoEvent_SetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22783 | { (char *)"QueryLayoutInfoEvent_GetAlignment", (PyCFunction) _wrap_QueryLayoutInfoEvent_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22784 | { (char *)"QueryLayoutInfoEvent_swigregister", QueryLayoutInfoEvent_swigregister, METH_VARARGS }, | |
22785 | { (char *)"new_CalculateLayoutEvent", (PyCFunction) _wrap_new_CalculateLayoutEvent, METH_VARARGS | METH_KEYWORDS }, | |
22786 | { (char *)"CalculateLayoutEvent_SetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22787 | { (char *)"CalculateLayoutEvent_GetFlags", (PyCFunction) _wrap_CalculateLayoutEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22788 | { (char *)"CalculateLayoutEvent_SetRect", (PyCFunction) _wrap_CalculateLayoutEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
22789 | { (char *)"CalculateLayoutEvent_GetRect", (PyCFunction) _wrap_CalculateLayoutEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
22790 | { (char *)"CalculateLayoutEvent_swigregister", CalculateLayoutEvent_swigregister, METH_VARARGS }, | |
22791 | { (char *)"new_SashLayoutWindow", (PyCFunction) _wrap_new_SashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
22792 | { (char *)"new_PreSashLayoutWindow", (PyCFunction) _wrap_new_PreSashLayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
22793 | { (char *)"SashLayoutWindow_Create", (PyCFunction) _wrap_SashLayoutWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22794 | { (char *)"SashLayoutWindow_GetAlignment", (PyCFunction) _wrap_SashLayoutWindow_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22795 | { (char *)"SashLayoutWindow_GetOrientation", (PyCFunction) _wrap_SashLayoutWindow_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22796 | { (char *)"SashLayoutWindow_SetAlignment", (PyCFunction) _wrap_SashLayoutWindow_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
22797 | { (char *)"SashLayoutWindow_SetDefaultSize", (PyCFunction) _wrap_SashLayoutWindow_SetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22798 | { (char *)"SashLayoutWindow_SetOrientation", (PyCFunction) _wrap_SashLayoutWindow_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
22799 | { (char *)"SashLayoutWindow_swigregister", SashLayoutWindow_swigregister, METH_VARARGS }, | |
22800 | { (char *)"new_LayoutAlgorithm", (PyCFunction) _wrap_new_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
22801 | { (char *)"delete_LayoutAlgorithm", (PyCFunction) _wrap_delete_LayoutAlgorithm, METH_VARARGS | METH_KEYWORDS }, | |
22802 | { (char *)"LayoutAlgorithm_LayoutMDIFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutMDIFrame, METH_VARARGS | METH_KEYWORDS }, | |
22803 | { (char *)"LayoutAlgorithm_LayoutFrame", (PyCFunction) _wrap_LayoutAlgorithm_LayoutFrame, METH_VARARGS | METH_KEYWORDS }, | |
22804 | { (char *)"LayoutAlgorithm_LayoutWindow", (PyCFunction) _wrap_LayoutAlgorithm_LayoutWindow, METH_VARARGS | METH_KEYWORDS }, | |
22805 | { (char *)"LayoutAlgorithm_swigregister", LayoutAlgorithm_swigregister, METH_VARARGS }, | |
22806 | { (char *)"new_PopupWindow", (PyCFunction) _wrap_new_PopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
22807 | { (char *)"new_PrePopupWindow", (PyCFunction) _wrap_new_PrePopupWindow, METH_VARARGS | METH_KEYWORDS }, | |
22808 | { (char *)"PopupWindow_Create", (PyCFunction) _wrap_PopupWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22809 | { (char *)"PopupWindow_Position", (PyCFunction) _wrap_PopupWindow_Position, METH_VARARGS | METH_KEYWORDS }, | |
22810 | { (char *)"PopupWindow_swigregister", PopupWindow_swigregister, METH_VARARGS }, | |
22811 | { (char *)"new_PopupTransientWindow", (PyCFunction) _wrap_new_PopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
22812 | { (char *)"new_PrePopupTransientWindow", (PyCFunction) _wrap_new_PrePopupTransientWindow, METH_VARARGS | METH_KEYWORDS }, | |
22813 | { (char *)"PopupTransientWindow__setCallbackInfo", (PyCFunction) _wrap_PopupTransientWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
22814 | { (char *)"PopupTransientWindow_Popup", (PyCFunction) _wrap_PopupTransientWindow_Popup, METH_VARARGS | METH_KEYWORDS }, | |
22815 | { (char *)"PopupTransientWindow_Dismiss", (PyCFunction) _wrap_PopupTransientWindow_Dismiss, METH_VARARGS | METH_KEYWORDS }, | |
22816 | { (char *)"PopupTransientWindow_swigregister", PopupTransientWindow_swigregister, METH_VARARGS }, | |
22817 | { (char *)"new_TipWindow", (PyCFunction) _wrap_new_TipWindow, METH_VARARGS | METH_KEYWORDS }, | |
22818 | { (char *)"TipWindow_SetBoundingRect", (PyCFunction) _wrap_TipWindow_SetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
22819 | { (char *)"TipWindow_Close", (PyCFunction) _wrap_TipWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
22820 | { (char *)"TipWindow_swigregister", TipWindow_swigregister, METH_VARARGS }, | |
22821 | { (char *)"new_VScrolledWindow", (PyCFunction) _wrap_new_VScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22822 | { (char *)"new_PreVScrolledWindow", (PyCFunction) _wrap_new_PreVScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
22823 | { (char *)"VScrolledWindow__setCallbackInfo", (PyCFunction) _wrap_VScrolledWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
22824 | { (char *)"VScrolledWindow_Create", (PyCFunction) _wrap_VScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
22825 | { (char *)"VScrolledWindow_SetLineCount", (PyCFunction) _wrap_VScrolledWindow_SetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
22826 | { (char *)"VScrolledWindow_ScrollToLine", (PyCFunction) _wrap_VScrolledWindow_ScrollToLine, METH_VARARGS | METH_KEYWORDS }, | |
22827 | { (char *)"VScrolledWindow_ScrollLines", (PyCFunction) _wrap_VScrolledWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
22828 | { (char *)"VScrolledWindow_ScrollPages", (PyCFunction) _wrap_VScrolledWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
22829 | { (char *)"VScrolledWindow_RefreshLine", (PyCFunction) _wrap_VScrolledWindow_RefreshLine, METH_VARARGS | METH_KEYWORDS }, | |
22830 | { (char *)"VScrolledWindow_RefreshLines", (PyCFunction) _wrap_VScrolledWindow_RefreshLines, METH_VARARGS | METH_KEYWORDS }, | |
22831 | { (char *)"VScrolledWindow_HitTestXT", (PyCFunction) _wrap_VScrolledWindow_HitTestXT, METH_VARARGS | METH_KEYWORDS }, | |
22832 | { (char *)"VScrolledWindow_HitTest", (PyCFunction) _wrap_VScrolledWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
22833 | { (char *)"VScrolledWindow_RefreshAll", (PyCFunction) _wrap_VScrolledWindow_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
22834 | { (char *)"VScrolledWindow_GetLineCount", (PyCFunction) _wrap_VScrolledWindow_GetLineCount, METH_VARARGS | METH_KEYWORDS }, | |
22835 | { (char *)"VScrolledWindow_GetFirstVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetFirstVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
22836 | { (char *)"VScrolledWindow_GetLastVisibleLine", (PyCFunction) _wrap_VScrolledWindow_GetLastVisibleLine, METH_VARARGS | METH_KEYWORDS }, | |
22837 | { (char *)"VScrolledWindow_IsVisible", (PyCFunction) _wrap_VScrolledWindow_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
22838 | { (char *)"VScrolledWindow_swigregister", VScrolledWindow_swigregister, METH_VARARGS }, | |
22839 | { (char *)"new_VListBox", (PyCFunction) _wrap_new_VListBox, METH_VARARGS | METH_KEYWORDS }, | |
22840 | { (char *)"new_PreVListBox", (PyCFunction) _wrap_new_PreVListBox, METH_VARARGS | METH_KEYWORDS }, | |
22841 | { (char *)"VListBox__setCallbackInfo", (PyCFunction) _wrap_VListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
22842 | { (char *)"VListBox_Create", (PyCFunction) _wrap_VListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
22843 | { (char *)"VListBox_GetItemCount", (PyCFunction) _wrap_VListBox_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
22844 | { (char *)"VListBox_HasMultipleSelection", (PyCFunction) _wrap_VListBox_HasMultipleSelection, METH_VARARGS | METH_KEYWORDS }, | |
22845 | { (char *)"VListBox_GetSelection", (PyCFunction) _wrap_VListBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22846 | { (char *)"VListBox_IsCurrent", (PyCFunction) _wrap_VListBox_IsCurrent, METH_VARARGS | METH_KEYWORDS }, | |
22847 | { (char *)"VListBox_IsSelected", (PyCFunction) _wrap_VListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
22848 | { (char *)"VListBox_GetSelectedCount", (PyCFunction) _wrap_VListBox_GetSelectedCount, METH_VARARGS | METH_KEYWORDS }, | |
22849 | { (char *)"VListBox_GetFirstSelected", (PyCFunction) _wrap_VListBox_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
22850 | { (char *)"VListBox_GetNextSelected", (PyCFunction) _wrap_VListBox_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
22851 | { (char *)"VListBox_GetMargins", (PyCFunction) _wrap_VListBox_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
22852 | { (char *)"VListBox_GetSelectionBackground", (PyCFunction) _wrap_VListBox_GetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
22853 | { (char *)"VListBox_SetItemCount", (PyCFunction) _wrap_VListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
22854 | { (char *)"VListBox_Clear", (PyCFunction) _wrap_VListBox_Clear, METH_VARARGS | METH_KEYWORDS }, | |
22855 | { (char *)"VListBox_SetSelection", (PyCFunction) _wrap_VListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22856 | { (char *)"VListBox_Select", (PyCFunction) _wrap_VListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
22857 | { (char *)"VListBox_SelectRange", (PyCFunction) _wrap_VListBox_SelectRange, METH_VARARGS | METH_KEYWORDS }, | |
22858 | { (char *)"VListBox_Toggle", (PyCFunction) _wrap_VListBox_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
22859 | { (char *)"VListBox_SelectAll", (PyCFunction) _wrap_VListBox_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
22860 | { (char *)"VListBox_DeselectAll", (PyCFunction) _wrap_VListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
22861 | { (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
22862 | { (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
22863 | { (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS }, | |
22864 | { (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS }, | |
22865 | { (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
22866 | { (char *)"new_PreHtmlListBox", (PyCFunction) _wrap_new_PreHtmlListBox, METH_VARARGS | METH_KEYWORDS }, | |
22867 | { (char *)"HtmlListBox__setCallbackInfo", (PyCFunction) _wrap_HtmlListBox__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
22868 | { (char *)"HtmlListBox_Create", (PyCFunction) _wrap_HtmlListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
22869 | { (char *)"HtmlListBox_RefreshAll", (PyCFunction) _wrap_HtmlListBox_RefreshAll, METH_VARARGS | METH_KEYWORDS }, | |
22870 | { (char *)"HtmlListBox_SetItemCount", (PyCFunction) _wrap_HtmlListBox_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
22871 | { (char *)"HtmlListBox_swigregister", HtmlListBox_swigregister, METH_VARARGS }, | |
22872 | { (char *)"new_TaskBarIcon", (PyCFunction) _wrap_new_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
22873 | { (char *)"delete_TaskBarIcon", (PyCFunction) _wrap_delete_TaskBarIcon, METH_VARARGS | METH_KEYWORDS }, | |
22874 | { (char *)"TaskBarIcon_IsOk", (PyCFunction) _wrap_TaskBarIcon_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
22875 | { (char *)"TaskBarIcon_IsIconInstalled", (PyCFunction) _wrap_TaskBarIcon_IsIconInstalled, METH_VARARGS | METH_KEYWORDS }, | |
22876 | { (char *)"TaskBarIcon_SetIcon", (PyCFunction) _wrap_TaskBarIcon_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22877 | { (char *)"TaskBarIcon_RemoveIcon", (PyCFunction) _wrap_TaskBarIcon_RemoveIcon, METH_VARARGS | METH_KEYWORDS }, | |
22878 | { (char *)"TaskBarIcon_PopupMenu", (PyCFunction) _wrap_TaskBarIcon_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
22879 | { (char *)"TaskBarIcon_swigregister", TaskBarIcon_swigregister, METH_VARARGS }, | |
22880 | { (char *)"new_TaskBarIconEvent", (PyCFunction) _wrap_new_TaskBarIconEvent, METH_VARARGS | METH_KEYWORDS }, | |
22881 | { (char *)"TaskBarIconEvent_swigregister", TaskBarIconEvent_swigregister, METH_VARARGS }, | |
22882 | { (char *)"new_ColourData", (PyCFunction) _wrap_new_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
22883 | { (char *)"delete_ColourData", (PyCFunction) _wrap_delete_ColourData, METH_VARARGS | METH_KEYWORDS }, | |
22884 | { (char *)"ColourData_GetChooseFull", (PyCFunction) _wrap_ColourData_GetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
22885 | { (char *)"ColourData_GetColour", (PyCFunction) _wrap_ColourData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
22886 | { (char *)"ColourData_GetCustomColour", (PyCFunction) _wrap_ColourData_GetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
22887 | { (char *)"ColourData_SetChooseFull", (PyCFunction) _wrap_ColourData_SetChooseFull, METH_VARARGS | METH_KEYWORDS }, | |
22888 | { (char *)"ColourData_SetColour", (PyCFunction) _wrap_ColourData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
22889 | { (char *)"ColourData_SetCustomColour", (PyCFunction) _wrap_ColourData_SetCustomColour, METH_VARARGS | METH_KEYWORDS }, | |
22890 | { (char *)"ColourData_swigregister", ColourData_swigregister, METH_VARARGS }, | |
22891 | { (char *)"new_ColourDialog", (PyCFunction) _wrap_new_ColourDialog, METH_VARARGS | METH_KEYWORDS }, | |
22892 | { (char *)"ColourDialog_GetColourData", (PyCFunction) _wrap_ColourDialog_GetColourData, METH_VARARGS | METH_KEYWORDS }, | |
22893 | { (char *)"ColourDialog_ShowModal", (PyCFunction) _wrap_ColourDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22894 | { (char *)"ColourDialog_swigregister", ColourDialog_swigregister, METH_VARARGS }, | |
22895 | { (char *)"new_DirDialog", (PyCFunction) _wrap_new_DirDialog, METH_VARARGS | METH_KEYWORDS }, | |
22896 | { (char *)"DirDialog_GetPath", (PyCFunction) _wrap_DirDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
22897 | { (char *)"DirDialog_GetMessage", (PyCFunction) _wrap_DirDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
22898 | { (char *)"DirDialog_GetStyle", (PyCFunction) _wrap_DirDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
22899 | { (char *)"DirDialog_SetMessage", (PyCFunction) _wrap_DirDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
22900 | { (char *)"DirDialog_SetPath", (PyCFunction) _wrap_DirDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
22901 | { (char *)"DirDialog_ShowModal", (PyCFunction) _wrap_DirDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22902 | { (char *)"DirDialog_swigregister", DirDialog_swigregister, METH_VARARGS }, | |
22903 | { (char *)"new_FileDialog", (PyCFunction) _wrap_new_FileDialog, METH_VARARGS | METH_KEYWORDS }, | |
22904 | { (char *)"FileDialog_SetMessage", (PyCFunction) _wrap_FileDialog_SetMessage, METH_VARARGS | METH_KEYWORDS }, | |
22905 | { (char *)"FileDialog_SetPath", (PyCFunction) _wrap_FileDialog_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
22906 | { (char *)"FileDialog_SetDirectory", (PyCFunction) _wrap_FileDialog_SetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
22907 | { (char *)"FileDialog_SetFilename", (PyCFunction) _wrap_FileDialog_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
22908 | { (char *)"FileDialog_SetWildcard", (PyCFunction) _wrap_FileDialog_SetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
22909 | { (char *)"FileDialog_SetStyle", (PyCFunction) _wrap_FileDialog_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
22910 | { (char *)"FileDialog_SetFilterIndex", (PyCFunction) _wrap_FileDialog_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
22911 | { (char *)"FileDialog_GetMessage", (PyCFunction) _wrap_FileDialog_GetMessage, METH_VARARGS | METH_KEYWORDS }, | |
22912 | { (char *)"FileDialog_GetPath", (PyCFunction) _wrap_FileDialog_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
22913 | { (char *)"FileDialog_GetDirectory", (PyCFunction) _wrap_FileDialog_GetDirectory, METH_VARARGS | METH_KEYWORDS }, | |
22914 | { (char *)"FileDialog_GetFilename", (PyCFunction) _wrap_FileDialog_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
22915 | { (char *)"FileDialog_GetWildcard", (PyCFunction) _wrap_FileDialog_GetWildcard, METH_VARARGS | METH_KEYWORDS }, | |
22916 | { (char *)"FileDialog_GetStyle", (PyCFunction) _wrap_FileDialog_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
22917 | { (char *)"FileDialog_GetFilterIndex", (PyCFunction) _wrap_FileDialog_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
22918 | { (char *)"FileDialog_GetFilenames", (PyCFunction) _wrap_FileDialog_GetFilenames, METH_VARARGS | METH_KEYWORDS }, | |
22919 | { (char *)"FileDialog_GetPaths", (PyCFunction) _wrap_FileDialog_GetPaths, METH_VARARGS | METH_KEYWORDS }, | |
22920 | { (char *)"FileDialog_swigregister", FileDialog_swigregister, METH_VARARGS }, | |
22921 | { (char *)"new_MultiChoiceDialog", (PyCFunction) _wrap_new_MultiChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
22922 | { (char *)"MultiChoiceDialog_SetSelections", (PyCFunction) _wrap_MultiChoiceDialog_SetSelections, METH_VARARGS | METH_KEYWORDS }, | |
22923 | { (char *)"MultiChoiceDialog_GetSelections", (PyCFunction) _wrap_MultiChoiceDialog_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
22924 | { (char *)"MultiChoiceDialog_swigregister", MultiChoiceDialog_swigregister, METH_VARARGS }, | |
22925 | { (char *)"new_SingleChoiceDialog", (PyCFunction) _wrap_new_SingleChoiceDialog, METH_VARARGS | METH_KEYWORDS }, | |
22926 | { (char *)"SingleChoiceDialog_GetSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22927 | { (char *)"SingleChoiceDialog_GetStringSelection", (PyCFunction) _wrap_SingleChoiceDialog_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
22928 | { (char *)"SingleChoiceDialog_SetSelection", (PyCFunction) _wrap_SingleChoiceDialog_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22929 | { (char *)"SingleChoiceDialog_ShowModal", (PyCFunction) _wrap_SingleChoiceDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22930 | { (char *)"SingleChoiceDialog_swigregister", SingleChoiceDialog_swigregister, METH_VARARGS }, | |
22931 | { (char *)"new_TextEntryDialog", (PyCFunction) _wrap_new_TextEntryDialog, METH_VARARGS | METH_KEYWORDS }, | |
22932 | { (char *)"TextEntryDialog_GetValue", (PyCFunction) _wrap_TextEntryDialog_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
22933 | { (char *)"TextEntryDialog_SetValue", (PyCFunction) _wrap_TextEntryDialog_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
22934 | { (char *)"TextEntryDialog_ShowModal", (PyCFunction) _wrap_TextEntryDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22935 | { (char *)"TextEntryDialog_swigregister", TextEntryDialog_swigregister, METH_VARARGS }, | |
22936 | { (char *)"new_FontData", (PyCFunction) _wrap_new_FontData, METH_VARARGS | METH_KEYWORDS }, | |
22937 | { (char *)"delete_FontData", (PyCFunction) _wrap_delete_FontData, METH_VARARGS | METH_KEYWORDS }, | |
22938 | { (char *)"FontData_EnableEffects", (PyCFunction) _wrap_FontData_EnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
22939 | { (char *)"FontData_GetAllowSymbols", (PyCFunction) _wrap_FontData_GetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
22940 | { (char *)"FontData_GetColour", (PyCFunction) _wrap_FontData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
22941 | { (char *)"FontData_GetChosenFont", (PyCFunction) _wrap_FontData_GetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
22942 | { (char *)"FontData_GetEnableEffects", (PyCFunction) _wrap_FontData_GetEnableEffects, METH_VARARGS | METH_KEYWORDS }, | |
22943 | { (char *)"FontData_GetInitialFont", (PyCFunction) _wrap_FontData_GetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
22944 | { (char *)"FontData_GetShowHelp", (PyCFunction) _wrap_FontData_GetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
22945 | { (char *)"FontData_SetAllowSymbols", (PyCFunction) _wrap_FontData_SetAllowSymbols, METH_VARARGS | METH_KEYWORDS }, | |
22946 | { (char *)"FontData_SetChosenFont", (PyCFunction) _wrap_FontData_SetChosenFont, METH_VARARGS | METH_KEYWORDS }, | |
22947 | { (char *)"FontData_SetColour", (PyCFunction) _wrap_FontData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
22948 | { (char *)"FontData_SetInitialFont", (PyCFunction) _wrap_FontData_SetInitialFont, METH_VARARGS | METH_KEYWORDS }, | |
22949 | { (char *)"FontData_SetRange", (PyCFunction) _wrap_FontData_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
22950 | { (char *)"FontData_SetShowHelp", (PyCFunction) _wrap_FontData_SetShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
22951 | { (char *)"FontData_swigregister", FontData_swigregister, METH_VARARGS }, | |
22952 | { (char *)"new_FontDialog", (PyCFunction) _wrap_new_FontDialog, METH_VARARGS | METH_KEYWORDS }, | |
22953 | { (char *)"FontDialog_GetFontData", (PyCFunction) _wrap_FontDialog_GetFontData, METH_VARARGS | METH_KEYWORDS }, | |
22954 | { (char *)"FontDialog_ShowModal", (PyCFunction) _wrap_FontDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22955 | { (char *)"FontDialog_swigregister", FontDialog_swigregister, METH_VARARGS }, | |
22956 | { (char *)"new_MessageDialog", (PyCFunction) _wrap_new_MessageDialog, METH_VARARGS | METH_KEYWORDS }, | |
22957 | { (char *)"MessageDialog_ShowModal", (PyCFunction) _wrap_MessageDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
22958 | { (char *)"MessageDialog_swigregister", MessageDialog_swigregister, METH_VARARGS }, | |
22959 | { (char *)"new_ProgressDialog", (PyCFunction) _wrap_new_ProgressDialog, METH_VARARGS | METH_KEYWORDS }, | |
22960 | { (char *)"ProgressDialog_Update", (PyCFunction) _wrap_ProgressDialog_Update, METH_VARARGS | METH_KEYWORDS }, | |
22961 | { (char *)"ProgressDialog_Resume", (PyCFunction) _wrap_ProgressDialog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
22962 | { (char *)"ProgressDialog_swigregister", ProgressDialog_swigregister, METH_VARARGS }, | |
22963 | { (char *)"new_FindDialogEvent", (PyCFunction) _wrap_new_FindDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
22964 | { (char *)"FindDialogEvent_GetFlags", (PyCFunction) _wrap_FindDialogEvent_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22965 | { (char *)"FindDialogEvent_GetFindString", (PyCFunction) _wrap_FindDialogEvent_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
22966 | { (char *)"FindDialogEvent_GetReplaceString", (PyCFunction) _wrap_FindDialogEvent_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
22967 | { (char *)"FindDialogEvent_GetDialog", (PyCFunction) _wrap_FindDialogEvent_GetDialog, METH_VARARGS | METH_KEYWORDS }, | |
22968 | { (char *)"FindDialogEvent_SetFlags", (PyCFunction) _wrap_FindDialogEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22969 | { (char *)"FindDialogEvent_SetFindString", (PyCFunction) _wrap_FindDialogEvent_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
22970 | { (char *)"FindDialogEvent_SetReplaceString", (PyCFunction) _wrap_FindDialogEvent_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
22971 | { (char *)"FindDialogEvent_swigregister", FindDialogEvent_swigregister, METH_VARARGS }, | |
22972 | { (char *)"new_FindReplaceData", (PyCFunction) _wrap_new_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
22973 | { (char *)"delete_FindReplaceData", (PyCFunction) _wrap_delete_FindReplaceData, METH_VARARGS | METH_KEYWORDS }, | |
22974 | { (char *)"FindReplaceData_GetFindString", (PyCFunction) _wrap_FindReplaceData_GetFindString, METH_VARARGS | METH_KEYWORDS }, | |
22975 | { (char *)"FindReplaceData_GetReplaceString", (PyCFunction) _wrap_FindReplaceData_GetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
22976 | { (char *)"FindReplaceData_GetFlags", (PyCFunction) _wrap_FindReplaceData_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22977 | { (char *)"FindReplaceData_SetFlags", (PyCFunction) _wrap_FindReplaceData_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
22978 | { (char *)"FindReplaceData_SetFindString", (PyCFunction) _wrap_FindReplaceData_SetFindString, METH_VARARGS | METH_KEYWORDS }, | |
22979 | { (char *)"FindReplaceData_SetReplaceString", (PyCFunction) _wrap_FindReplaceData_SetReplaceString, METH_VARARGS | METH_KEYWORDS }, | |
22980 | { (char *)"FindReplaceData_swigregister", FindReplaceData_swigregister, METH_VARARGS }, | |
22981 | { (char *)"new_FindReplaceDialog", (PyCFunction) _wrap_new_FindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
22982 | { (char *)"new_PreFindReplaceDialog", (PyCFunction) _wrap_new_PreFindReplaceDialog, METH_VARARGS | METH_KEYWORDS }, | |
22983 | { (char *)"FindReplaceDialog_Create", (PyCFunction) _wrap_FindReplaceDialog_Create, METH_VARARGS | METH_KEYWORDS }, | |
22984 | { (char *)"FindReplaceDialog_GetData", (PyCFunction) _wrap_FindReplaceDialog_GetData, METH_VARARGS | METH_KEYWORDS }, | |
22985 | { (char *)"FindReplaceDialog_SetData", (PyCFunction) _wrap_FindReplaceDialog_SetData, METH_VARARGS | METH_KEYWORDS }, | |
22986 | { (char *)"FindReplaceDialog_swigregister", FindReplaceDialog_swigregister, METH_VARARGS }, | |
22987 | { (char *)"new_MDIParentFrame", (PyCFunction) _wrap_new_MDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
22988 | { (char *)"new_PreMDIParentFrame", (PyCFunction) _wrap_new_PreMDIParentFrame, METH_VARARGS | METH_KEYWORDS }, | |
22989 | { (char *)"MDIParentFrame_Create", (PyCFunction) _wrap_MDIParentFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
22990 | { (char *)"MDIParentFrame_ActivateNext", (PyCFunction) _wrap_MDIParentFrame_ActivateNext, METH_VARARGS | METH_KEYWORDS }, | |
22991 | { (char *)"MDIParentFrame_ActivatePrevious", (PyCFunction) _wrap_MDIParentFrame_ActivatePrevious, METH_VARARGS | METH_KEYWORDS }, | |
22992 | { (char *)"MDIParentFrame_ArrangeIcons", (PyCFunction) _wrap_MDIParentFrame_ArrangeIcons, METH_VARARGS | METH_KEYWORDS }, | |
22993 | { (char *)"MDIParentFrame_Cascade", (PyCFunction) _wrap_MDIParentFrame_Cascade, METH_VARARGS | METH_KEYWORDS }, | |
22994 | { (char *)"MDIParentFrame_GetActiveChild", (PyCFunction) _wrap_MDIParentFrame_GetActiveChild, METH_VARARGS | METH_KEYWORDS }, | |
22995 | { (char *)"MDIParentFrame_GetClientWindow", (PyCFunction) _wrap_MDIParentFrame_GetClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
22996 | { (char *)"MDIParentFrame_GetToolBar", (PyCFunction) _wrap_MDIParentFrame_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
22997 | { (char *)"MDIParentFrame_Tile", (PyCFunction) _wrap_MDIParentFrame_Tile, METH_VARARGS | METH_KEYWORDS }, | |
22998 | { (char *)"MDIParentFrame_swigregister", MDIParentFrame_swigregister, METH_VARARGS }, | |
22999 | { (char *)"new_MDIChildFrame", (PyCFunction) _wrap_new_MDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
23000 | { (char *)"new_PreMDIChildFrame", (PyCFunction) _wrap_new_PreMDIChildFrame, METH_VARARGS | METH_KEYWORDS }, | |
23001 | { (char *)"MDIChildFrame_Create", (PyCFunction) _wrap_MDIChildFrame_Create, METH_VARARGS | METH_KEYWORDS }, | |
23002 | { (char *)"MDIChildFrame_Activate", (PyCFunction) _wrap_MDIChildFrame_Activate, METH_VARARGS | METH_KEYWORDS }, | |
23003 | { (char *)"MDIChildFrame_Maximize", (PyCFunction) _wrap_MDIChildFrame_Maximize, METH_VARARGS | METH_KEYWORDS }, | |
23004 | { (char *)"MDIChildFrame_Restore", (PyCFunction) _wrap_MDIChildFrame_Restore, METH_VARARGS | METH_KEYWORDS }, | |
23005 | { (char *)"MDIChildFrame_swigregister", MDIChildFrame_swigregister, METH_VARARGS }, | |
23006 | { (char *)"new_MDIClientWindow", (PyCFunction) _wrap_new_MDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
23007 | { (char *)"new_PreMDIClientWindow", (PyCFunction) _wrap_new_PreMDIClientWindow, METH_VARARGS | METH_KEYWORDS }, | |
23008 | { (char *)"MDIClientWindow_Create", (PyCFunction) _wrap_MDIClientWindow_Create, METH_VARARGS | METH_KEYWORDS }, | |
23009 | { (char *)"MDIClientWindow_swigregister", MDIClientWindow_swigregister, METH_VARARGS }, | |
23010 | { (char *)"new_PyWindow", (PyCFunction) _wrap_new_PyWindow, METH_VARARGS | METH_KEYWORDS }, | |
23011 | { (char *)"PyWindow__setCallbackInfo", (PyCFunction) _wrap_PyWindow__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23012 | { (char *)"PyWindow_base_DoMoveWindow", (PyCFunction) _wrap_PyWindow_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
23013 | { (char *)"PyWindow_base_DoSetSize", (PyCFunction) _wrap_PyWindow_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
23014 | { (char *)"PyWindow_base_DoSetClientSize", (PyCFunction) _wrap_PyWindow_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23015 | { (char *)"PyWindow_base_DoSetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23016 | { (char *)"PyWindow_base_DoGetSize", (PyCFunction) _wrap_PyWindow_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
23017 | { (char *)"PyWindow_base_DoGetClientSize", (PyCFunction) _wrap_PyWindow_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23018 | { (char *)"PyWindow_base_DoGetPosition", (PyCFunction) _wrap_PyWindow_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
23019 | { (char *)"PyWindow_base_DoGetVirtualSize", (PyCFunction) _wrap_PyWindow_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23020 | { (char *)"PyWindow_base_DoGetBestSize", (PyCFunction) _wrap_PyWindow_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
23021 | { (char *)"PyWindow_base_InitDialog", (PyCFunction) _wrap_PyWindow_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23022 | { (char *)"PyWindow_base_TransferDataToWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
23023 | { (char *)"PyWindow_base_TransferDataFromWindow", (PyCFunction) _wrap_PyWindow_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
23024 | { (char *)"PyWindow_base_Validate", (PyCFunction) _wrap_PyWindow_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
23025 | { (char *)"PyWindow_base_AcceptsFocus", (PyCFunction) _wrap_PyWindow_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
23026 | { (char *)"PyWindow_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyWindow_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
23027 | { (char *)"PyWindow_base_GetMaxSize", (PyCFunction) _wrap_PyWindow_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
23028 | { (char *)"PyWindow_base_AddChild", (PyCFunction) _wrap_PyWindow_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
23029 | { (char *)"PyWindow_base_RemoveChild", (PyCFunction) _wrap_PyWindow_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
23030 | { (char *)"PyWindow_swigregister", PyWindow_swigregister, METH_VARARGS }, | |
23031 | { (char *)"new_PyPanel", (PyCFunction) _wrap_new_PyPanel, METH_VARARGS | METH_KEYWORDS }, | |
23032 | { (char *)"PyPanel__setCallbackInfo", (PyCFunction) _wrap_PyPanel__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23033 | { (char *)"PyPanel_base_DoMoveWindow", (PyCFunction) _wrap_PyPanel_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
23034 | { (char *)"PyPanel_base_DoSetSize", (PyCFunction) _wrap_PyPanel_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
23035 | { (char *)"PyPanel_base_DoSetClientSize", (PyCFunction) _wrap_PyPanel_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23036 | { (char *)"PyPanel_base_DoSetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23037 | { (char *)"PyPanel_base_DoGetSize", (PyCFunction) _wrap_PyPanel_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
23038 | { (char *)"PyPanel_base_DoGetClientSize", (PyCFunction) _wrap_PyPanel_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
23039 | { (char *)"PyPanel_base_DoGetPosition", (PyCFunction) _wrap_PyPanel_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
23040 | { (char *)"PyPanel_base_DoGetVirtualSize", (PyCFunction) _wrap_PyPanel_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
23041 | { (char *)"PyPanel_base_DoGetBestSize", (PyCFunction) _wrap_PyPanel_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
23042 | { (char *)"PyPanel_base_InitDialog", (PyCFunction) _wrap_PyPanel_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23043 | { (char *)"PyPanel_base_TransferDataToWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
23044 | { (char *)"PyPanel_base_TransferDataFromWindow", (PyCFunction) _wrap_PyPanel_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
23045 | { (char *)"PyPanel_base_Validate", (PyCFunction) _wrap_PyPanel_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
23046 | { (char *)"PyPanel_base_AcceptsFocus", (PyCFunction) _wrap_PyPanel_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
23047 | { (char *)"PyPanel_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyPanel_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
23048 | { (char *)"PyPanel_base_GetMaxSize", (PyCFunction) _wrap_PyPanel_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
23049 | { (char *)"PyPanel_base_AddChild", (PyCFunction) _wrap_PyPanel_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
23050 | { (char *)"PyPanel_base_RemoveChild", (PyCFunction) _wrap_PyPanel_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
23051 | { (char *)"PyPanel_swigregister", PyPanel_swigregister, METH_VARARGS }, | |
23052 | { (char *)"new_PrintData", (PyCFunction) _wrap_new_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
23053 | { (char *)"delete_PrintData", (PyCFunction) _wrap_delete_PrintData, METH_VARARGS | METH_KEYWORDS }, | |
23054 | { (char *)"PrintData_GetNoCopies", (PyCFunction) _wrap_PrintData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23055 | { (char *)"PrintData_GetCollate", (PyCFunction) _wrap_PrintData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23056 | { (char *)"PrintData_GetOrientation", (PyCFunction) _wrap_PrintData_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23057 | { (char *)"PrintData_Ok", (PyCFunction) _wrap_PrintData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23058 | { (char *)"PrintData_GetPrinterName", (PyCFunction) _wrap_PrintData_GetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
23059 | { (char *)"PrintData_GetColour", (PyCFunction) _wrap_PrintData_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
23060 | { (char *)"PrintData_GetDuplex", (PyCFunction) _wrap_PrintData_GetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
23061 | { (char *)"PrintData_GetPaperId", (PyCFunction) _wrap_PrintData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23062 | { (char *)"PrintData_GetPaperSize", (PyCFunction) _wrap_PrintData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23063 | { (char *)"PrintData_GetQuality", (PyCFunction) _wrap_PrintData_GetQuality, METH_VARARGS | METH_KEYWORDS }, | |
23064 | { (char *)"PrintData_SetNoCopies", (PyCFunction) _wrap_PrintData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23065 | { (char *)"PrintData_SetCollate", (PyCFunction) _wrap_PrintData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23066 | { (char *)"PrintData_SetOrientation", (PyCFunction) _wrap_PrintData_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23067 | { (char *)"PrintData_SetPrinterName", (PyCFunction) _wrap_PrintData_SetPrinterName, METH_VARARGS | METH_KEYWORDS }, | |
23068 | { (char *)"PrintData_SetColour", (PyCFunction) _wrap_PrintData_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
23069 | { (char *)"PrintData_SetDuplex", (PyCFunction) _wrap_PrintData_SetDuplex, METH_VARARGS | METH_KEYWORDS }, | |
23070 | { (char *)"PrintData_SetPaperId", (PyCFunction) _wrap_PrintData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23071 | { (char *)"PrintData_SetPaperSize", (PyCFunction) _wrap_PrintData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23072 | { (char *)"PrintData_SetQuality", (PyCFunction) _wrap_PrintData_SetQuality, METH_VARARGS | METH_KEYWORDS }, | |
23073 | { (char *)"PrintData_GetPrinterCommand", (PyCFunction) _wrap_PrintData_GetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
23074 | { (char *)"PrintData_GetPrinterOptions", (PyCFunction) _wrap_PrintData_GetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
23075 | { (char *)"PrintData_GetPreviewCommand", (PyCFunction) _wrap_PrintData_GetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
23076 | { (char *)"PrintData_GetFilename", (PyCFunction) _wrap_PrintData_GetFilename, METH_VARARGS | METH_KEYWORDS }, | |
23077 | { (char *)"PrintData_GetFontMetricPath", (PyCFunction) _wrap_PrintData_GetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
23078 | { (char *)"PrintData_GetPrinterScaleX", (PyCFunction) _wrap_PrintData_GetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
23079 | { (char *)"PrintData_GetPrinterScaleY", (PyCFunction) _wrap_PrintData_GetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
23080 | { (char *)"PrintData_GetPrinterTranslateX", (PyCFunction) _wrap_PrintData_GetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
23081 | { (char *)"PrintData_GetPrinterTranslateY", (PyCFunction) _wrap_PrintData_GetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
23082 | { (char *)"PrintData_GetPrintMode", (PyCFunction) _wrap_PrintData_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
23083 | { (char *)"PrintData_SetPrinterCommand", (PyCFunction) _wrap_PrintData_SetPrinterCommand, METH_VARARGS | METH_KEYWORDS }, | |
23084 | { (char *)"PrintData_SetPrinterOptions", (PyCFunction) _wrap_PrintData_SetPrinterOptions, METH_VARARGS | METH_KEYWORDS }, | |
23085 | { (char *)"PrintData_SetPreviewCommand", (PyCFunction) _wrap_PrintData_SetPreviewCommand, METH_VARARGS | METH_KEYWORDS }, | |
23086 | { (char *)"PrintData_SetFilename", (PyCFunction) _wrap_PrintData_SetFilename, METH_VARARGS | METH_KEYWORDS }, | |
23087 | { (char *)"PrintData_SetFontMetricPath", (PyCFunction) _wrap_PrintData_SetFontMetricPath, METH_VARARGS | METH_KEYWORDS }, | |
23088 | { (char *)"PrintData_SetPrinterScaleX", (PyCFunction) _wrap_PrintData_SetPrinterScaleX, METH_VARARGS | METH_KEYWORDS }, | |
23089 | { (char *)"PrintData_SetPrinterScaleY", (PyCFunction) _wrap_PrintData_SetPrinterScaleY, METH_VARARGS | METH_KEYWORDS }, | |
23090 | { (char *)"PrintData_SetPrinterScaling", (PyCFunction) _wrap_PrintData_SetPrinterScaling, METH_VARARGS | METH_KEYWORDS }, | |
23091 | { (char *)"PrintData_SetPrinterTranslateX", (PyCFunction) _wrap_PrintData_SetPrinterTranslateX, METH_VARARGS | METH_KEYWORDS }, | |
23092 | { (char *)"PrintData_SetPrinterTranslateY", (PyCFunction) _wrap_PrintData_SetPrinterTranslateY, METH_VARARGS | METH_KEYWORDS }, | |
23093 | { (char *)"PrintData_SetPrinterTranslation", (PyCFunction) _wrap_PrintData_SetPrinterTranslation, METH_VARARGS | METH_KEYWORDS }, | |
23094 | { (char *)"PrintData_SetPrintMode", (PyCFunction) _wrap_PrintData_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
23095 | { (char *)"PrintData_swigregister", PrintData_swigregister, METH_VARARGS }, | |
23096 | { (char *)"new_PageSetupDialogData", (PyCFunction) _wrap_new_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23097 | { (char *)"delete_PageSetupDialogData", (PyCFunction) _wrap_delete_PageSetupDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23098 | { (char *)"PageSetupDialogData_EnableHelp", (PyCFunction) _wrap_PageSetupDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23099 | { (char *)"PageSetupDialogData_EnableMargins", (PyCFunction) _wrap_PageSetupDialogData_EnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
23100 | { (char *)"PageSetupDialogData_EnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_EnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23101 | { (char *)"PageSetupDialogData_EnablePaper", (PyCFunction) _wrap_PageSetupDialogData_EnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
23102 | { (char *)"PageSetupDialogData_EnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_EnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
23103 | { (char *)"PageSetupDialogData_GetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
23104 | { (char *)"PageSetupDialogData_GetEnableMargins", (PyCFunction) _wrap_PageSetupDialogData_GetEnableMargins, METH_VARARGS | METH_KEYWORDS }, | |
23105 | { (char *)"PageSetupDialogData_GetEnableOrientation", (PyCFunction) _wrap_PageSetupDialogData_GetEnableOrientation, METH_VARARGS | METH_KEYWORDS }, | |
23106 | { (char *)"PageSetupDialogData_GetEnablePaper", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePaper, METH_VARARGS | METH_KEYWORDS }, | |
23107 | { (char *)"PageSetupDialogData_GetEnablePrinter", (PyCFunction) _wrap_PageSetupDialogData_GetEnablePrinter, METH_VARARGS | METH_KEYWORDS }, | |
23108 | { (char *)"PageSetupDialogData_GetEnableHelp", (PyCFunction) _wrap_PageSetupDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23109 | { (char *)"PageSetupDialogData_GetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_GetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
23110 | { (char *)"PageSetupDialogData_GetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23111 | { (char *)"PageSetupDialogData_GetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23112 | { (char *)"PageSetupDialogData_GetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23113 | { (char *)"PageSetupDialogData_GetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_GetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23114 | { (char *)"PageSetupDialogData_GetPaperId", (PyCFunction) _wrap_PageSetupDialogData_GetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23115 | { (char *)"PageSetupDialogData_GetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_GetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23116 | { (char *)"PageSetupDialogData_GetPrintData", (PyCFunction) _wrap_PageSetupDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23117 | { (char *)"PageSetupDialogData_Ok", (PyCFunction) _wrap_PageSetupDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23118 | { (char *)"PageSetupDialogData_SetDefaultInfo", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultInfo, METH_VARARGS | METH_KEYWORDS }, | |
23119 | { (char *)"PageSetupDialogData_SetDefaultMinMargins", (PyCFunction) _wrap_PageSetupDialogData_SetDefaultMinMargins, METH_VARARGS | METH_KEYWORDS }, | |
23120 | { (char *)"PageSetupDialogData_SetMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23121 | { (char *)"PageSetupDialogData_SetMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23122 | { (char *)"PageSetupDialogData_SetMinMarginTopLeft", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
23123 | { (char *)"PageSetupDialogData_SetMinMarginBottomRight", (PyCFunction) _wrap_PageSetupDialogData_SetMinMarginBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
23124 | { (char *)"PageSetupDialogData_SetPaperId", (PyCFunction) _wrap_PageSetupDialogData_SetPaperId, METH_VARARGS | METH_KEYWORDS }, | |
23125 | { (char *)"PageSetupDialogData_SetPaperSize", (PyCFunction) _wrap_PageSetupDialogData_SetPaperSize, METH_VARARGS | METH_KEYWORDS }, | |
23126 | { (char *)"PageSetupDialogData_SetPrintData", (PyCFunction) _wrap_PageSetupDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23127 | { (char *)"PageSetupDialogData_swigregister", PageSetupDialogData_swigregister, METH_VARARGS }, | |
23128 | { (char *)"new_PageSetupDialog", (PyCFunction) _wrap_new_PageSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
23129 | { (char *)"PageSetupDialog_GetPageSetupData", (PyCFunction) _wrap_PageSetupDialog_GetPageSetupData, METH_VARARGS | METH_KEYWORDS }, | |
23130 | { (char *)"PageSetupDialog_ShowModal", (PyCFunction) _wrap_PageSetupDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23131 | { (char *)"PageSetupDialog_swigregister", PageSetupDialog_swigregister, METH_VARARGS }, | |
23132 | { (char *)"new_PrintDialogData", (PyCFunction) _wrap_new_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23133 | { (char *)"delete_PrintDialogData", (PyCFunction) _wrap_delete_PrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23134 | { (char *)"PrintDialogData_GetFromPage", (PyCFunction) _wrap_PrintDialogData_GetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
23135 | { (char *)"PrintDialogData_GetToPage", (PyCFunction) _wrap_PrintDialogData_GetToPage, METH_VARARGS | METH_KEYWORDS }, | |
23136 | { (char *)"PrintDialogData_GetMinPage", (PyCFunction) _wrap_PrintDialogData_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
23137 | { (char *)"PrintDialogData_GetMaxPage", (PyCFunction) _wrap_PrintDialogData_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
23138 | { (char *)"PrintDialogData_GetNoCopies", (PyCFunction) _wrap_PrintDialogData_GetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23139 | { (char *)"PrintDialogData_GetAllPages", (PyCFunction) _wrap_PrintDialogData_GetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
23140 | { (char *)"PrintDialogData_GetSelection", (PyCFunction) _wrap_PrintDialogData_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23141 | { (char *)"PrintDialogData_GetCollate", (PyCFunction) _wrap_PrintDialogData_GetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23142 | { (char *)"PrintDialogData_GetPrintToFile", (PyCFunction) _wrap_PrintDialogData_GetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23143 | { (char *)"PrintDialogData_GetSetupDialog", (PyCFunction) _wrap_PrintDialogData_GetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
23144 | { (char *)"PrintDialogData_SetFromPage", (PyCFunction) _wrap_PrintDialogData_SetFromPage, METH_VARARGS | METH_KEYWORDS }, | |
23145 | { (char *)"PrintDialogData_SetToPage", (PyCFunction) _wrap_PrintDialogData_SetToPage, METH_VARARGS | METH_KEYWORDS }, | |
23146 | { (char *)"PrintDialogData_SetMinPage", (PyCFunction) _wrap_PrintDialogData_SetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
23147 | { (char *)"PrintDialogData_SetMaxPage", (PyCFunction) _wrap_PrintDialogData_SetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
23148 | { (char *)"PrintDialogData_SetNoCopies", (PyCFunction) _wrap_PrintDialogData_SetNoCopies, METH_VARARGS | METH_KEYWORDS }, | |
23149 | { (char *)"PrintDialogData_SetAllPages", (PyCFunction) _wrap_PrintDialogData_SetAllPages, METH_VARARGS | METH_KEYWORDS }, | |
23150 | { (char *)"PrintDialogData_SetSelection", (PyCFunction) _wrap_PrintDialogData_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
23151 | { (char *)"PrintDialogData_SetCollate", (PyCFunction) _wrap_PrintDialogData_SetCollate, METH_VARARGS | METH_KEYWORDS }, | |
23152 | { (char *)"PrintDialogData_SetPrintToFile", (PyCFunction) _wrap_PrintDialogData_SetPrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23153 | { (char *)"PrintDialogData_SetSetupDialog", (PyCFunction) _wrap_PrintDialogData_SetSetupDialog, METH_VARARGS | METH_KEYWORDS }, | |
23154 | { (char *)"PrintDialogData_EnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_EnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23155 | { (char *)"PrintDialogData_EnableSelection", (PyCFunction) _wrap_PrintDialogData_EnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
23156 | { (char *)"PrintDialogData_EnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_EnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
23157 | { (char *)"PrintDialogData_EnableHelp", (PyCFunction) _wrap_PrintDialogData_EnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23158 | { (char *)"PrintDialogData_GetEnablePrintToFile", (PyCFunction) _wrap_PrintDialogData_GetEnablePrintToFile, METH_VARARGS | METH_KEYWORDS }, | |
23159 | { (char *)"PrintDialogData_GetEnableSelection", (PyCFunction) _wrap_PrintDialogData_GetEnableSelection, METH_VARARGS | METH_KEYWORDS }, | |
23160 | { (char *)"PrintDialogData_GetEnablePageNumbers", (PyCFunction) _wrap_PrintDialogData_GetEnablePageNumbers, METH_VARARGS | METH_KEYWORDS }, | |
23161 | { (char *)"PrintDialogData_GetEnableHelp", (PyCFunction) _wrap_PrintDialogData_GetEnableHelp, METH_VARARGS | METH_KEYWORDS }, | |
23162 | { (char *)"PrintDialogData_Ok", (PyCFunction) _wrap_PrintDialogData_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23163 | { (char *)"PrintDialogData_GetPrintData", (PyCFunction) _wrap_PrintDialogData_GetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23164 | { (char *)"PrintDialogData_SetPrintData", (PyCFunction) _wrap_PrintDialogData_SetPrintData, METH_VARARGS | METH_KEYWORDS }, | |
23165 | { (char *)"PrintDialogData_swigregister", PrintDialogData_swigregister, METH_VARARGS }, | |
23166 | { (char *)"new_PrintDialog", (PyCFunction) _wrap_new_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
23167 | { (char *)"PrintDialog_GetPrintDialogData", (PyCFunction) _wrap_PrintDialog_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23168 | { (char *)"PrintDialog_GetPrintDC", (PyCFunction) _wrap_PrintDialog_GetPrintDC, METH_VARARGS | METH_KEYWORDS }, | |
23169 | { (char *)"PrintDialog_ShowModal", (PyCFunction) _wrap_PrintDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
23170 | { (char *)"PrintDialog_swigregister", PrintDialog_swigregister, METH_VARARGS }, | |
23171 | { (char *)"new_Printer", (PyCFunction) _wrap_new_Printer, METH_VARARGS | METH_KEYWORDS }, | |
23172 | { (char *)"delete_Printer", (PyCFunction) _wrap_delete_Printer, METH_VARARGS | METH_KEYWORDS }, | |
23173 | { (char *)"Printer_CreateAbortWindow", (PyCFunction) _wrap_Printer_CreateAbortWindow, METH_VARARGS | METH_KEYWORDS }, | |
23174 | { (char *)"Printer_GetPrintDialogData", (PyCFunction) _wrap_Printer_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23175 | { (char *)"Printer_Print", (PyCFunction) _wrap_Printer_Print, METH_VARARGS | METH_KEYWORDS }, | |
23176 | { (char *)"Printer_PrintDialog", (PyCFunction) _wrap_Printer_PrintDialog, METH_VARARGS | METH_KEYWORDS }, | |
23177 | { (char *)"Printer_ReportError", (PyCFunction) _wrap_Printer_ReportError, METH_VARARGS | METH_KEYWORDS }, | |
23178 | { (char *)"Printer_Setup", (PyCFunction) _wrap_Printer_Setup, METH_VARARGS | METH_KEYWORDS }, | |
23179 | { (char *)"Printer_GetAbort", (PyCFunction) _wrap_Printer_GetAbort, METH_VARARGS | METH_KEYWORDS }, | |
23180 | { (char *)"Printer_GetLastError", (PyCFunction) _wrap_Printer_GetLastError, METH_VARARGS | METH_KEYWORDS }, | |
23181 | { (char *)"Printer_swigregister", Printer_swigregister, METH_VARARGS }, | |
23182 | { (char *)"new_Printout", (PyCFunction) _wrap_new_Printout, METH_VARARGS | METH_KEYWORDS }, | |
23183 | { (char *)"Printout__setCallbackInfo", (PyCFunction) _wrap_Printout__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23184 | { (char *)"Printout_GetTitle", (PyCFunction) _wrap_Printout_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
23185 | { (char *)"Printout_GetDC", (PyCFunction) _wrap_Printout_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
23186 | { (char *)"Printout_SetDC", (PyCFunction) _wrap_Printout_SetDC, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 23187 | { (char *)"Printout_SetPageSizePixels", (PyCFunction) _wrap_Printout_SetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 23188 | { (char *)"Printout_GetPageSizePixels", (PyCFunction) _wrap_Printout_GetPageSizePixels, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
23189 | { (char *)"Printout_SetPageSizeMM", (PyCFunction) _wrap_Printout_SetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, |
23190 | { (char *)"Printout_GetPageSizeMM", (PyCFunction) _wrap_Printout_GetPageSizeMM, METH_VARARGS | METH_KEYWORDS }, | |
23191 | { (char *)"Printout_SetPPIScreen", (PyCFunction) _wrap_Printout_SetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
23192 | { (char *)"Printout_GetPPIScreen", (PyCFunction) _wrap_Printout_GetPPIScreen, METH_VARARGS | METH_KEYWORDS }, | |
23193 | { (char *)"Printout_SetPPIPrinter", (PyCFunction) _wrap_Printout_SetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
23194 | { (char *)"Printout_GetPPIPrinter", (PyCFunction) _wrap_Printout_GetPPIPrinter, METH_VARARGS | METH_KEYWORDS }, | |
23195 | { (char *)"Printout_IsPreview", (PyCFunction) _wrap_Printout_IsPreview, METH_VARARGS | METH_KEYWORDS }, | |
23196 | { (char *)"Printout_SetIsPreview", (PyCFunction) _wrap_Printout_SetIsPreview, METH_VARARGS | METH_KEYWORDS }, | |
23197 | { (char *)"Printout_base_OnBeginDocument", (PyCFunction) _wrap_Printout_base_OnBeginDocument, METH_VARARGS | METH_KEYWORDS }, | |
23198 | { (char *)"Printout_base_OnEndDocument", (PyCFunction) _wrap_Printout_base_OnEndDocument, METH_VARARGS | METH_KEYWORDS }, | |
23199 | { (char *)"Printout_base_OnBeginPrinting", (PyCFunction) _wrap_Printout_base_OnBeginPrinting, METH_VARARGS | METH_KEYWORDS }, | |
23200 | { (char *)"Printout_base_OnEndPrinting", (PyCFunction) _wrap_Printout_base_OnEndPrinting, METH_VARARGS | METH_KEYWORDS }, | |
23201 | { (char *)"Printout_base_OnPreparePrinting", (PyCFunction) _wrap_Printout_base_OnPreparePrinting, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 23202 | { (char *)"Printout_base_HasPage", (PyCFunction) _wrap_Printout_base_HasPage, METH_VARARGS | METH_KEYWORDS }, |
322913ce | 23203 | { (char *)"Printout_base_GetPageInfo", (PyCFunction) _wrap_Printout_base_GetPageInfo, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
23204 | { (char *)"Printout_swigregister", Printout_swigregister, METH_VARARGS }, |
23205 | { (char *)"new_PreviewCanvas", (PyCFunction) _wrap_new_PreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23206 | { (char *)"PreviewCanvas_swigregister", PreviewCanvas_swigregister, METH_VARARGS }, | |
23207 | { (char *)"new_PreviewFrame", (PyCFunction) _wrap_new_PreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
23208 | { (char *)"PreviewFrame_Initialize", (PyCFunction) _wrap_PreviewFrame_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
23209 | { (char *)"PreviewFrame_CreateControlBar", (PyCFunction) _wrap_PreviewFrame_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23210 | { (char *)"PreviewFrame_CreateCanvas", (PyCFunction) _wrap_PreviewFrame_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23211 | { (char *)"PreviewFrame_GetControlBar", (PyCFunction) _wrap_PreviewFrame_GetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23212 | { (char *)"PreviewFrame_swigregister", PreviewFrame_swigregister, METH_VARARGS }, | |
23213 | { (char *)"new_PreviewControlBar", (PyCFunction) _wrap_new_PreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23214 | { (char *)"PreviewControlBar_GetZoomControl", (PyCFunction) _wrap_PreviewControlBar_GetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
23215 | { (char *)"PreviewControlBar_SetZoomControl", (PyCFunction) _wrap_PreviewControlBar_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
23216 | { (char *)"PreviewControlBar_GetPrintPreview", (PyCFunction) _wrap_PreviewControlBar_GetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23217 | { (char *)"PreviewControlBar_OnNext", (PyCFunction) _wrap_PreviewControlBar_OnNext, METH_VARARGS | METH_KEYWORDS }, | |
23218 | { (char *)"PreviewControlBar_OnPrevious", (PyCFunction) _wrap_PreviewControlBar_OnPrevious, METH_VARARGS | METH_KEYWORDS }, | |
23219 | { (char *)"PreviewControlBar_OnFirst", (PyCFunction) _wrap_PreviewControlBar_OnFirst, METH_VARARGS | METH_KEYWORDS }, | |
23220 | { (char *)"PreviewControlBar_OnLast", (PyCFunction) _wrap_PreviewControlBar_OnLast, METH_VARARGS | METH_KEYWORDS }, | |
23221 | { (char *)"PreviewControlBar_OnGoto", (PyCFunction) _wrap_PreviewControlBar_OnGoto, METH_VARARGS | METH_KEYWORDS }, | |
23222 | { (char *)"PreviewControlBar_swigregister", PreviewControlBar_swigregister, METH_VARARGS }, | |
23223 | { (char *)"new_PrintPreview", (PyCFunction) _wrap_new_PrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23224 | { (char *)"PrintPreview_SetCurrentPage", (PyCFunction) _wrap_PrintPreview_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
23225 | { (char *)"PrintPreview_GetCurrentPage", (PyCFunction) _wrap_PrintPreview_GetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
23226 | { (char *)"PrintPreview_SetPrintout", (PyCFunction) _wrap_PrintPreview_SetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
23227 | { (char *)"PrintPreview_GetPrintout", (PyCFunction) _wrap_PrintPreview_GetPrintout, METH_VARARGS | METH_KEYWORDS }, | |
23228 | { (char *)"PrintPreview_GetPrintoutForPrinting", (PyCFunction) _wrap_PrintPreview_GetPrintoutForPrinting, METH_VARARGS | METH_KEYWORDS }, | |
23229 | { (char *)"PrintPreview_SetFrame", (PyCFunction) _wrap_PrintPreview_SetFrame, METH_VARARGS | METH_KEYWORDS }, | |
23230 | { (char *)"PrintPreview_SetCanvas", (PyCFunction) _wrap_PrintPreview_SetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23231 | { (char *)"PrintPreview_GetFrame", (PyCFunction) _wrap_PrintPreview_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
23232 | { (char *)"PrintPreview_GetCanvas", (PyCFunction) _wrap_PrintPreview_GetCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23233 | { (char *)"PrintPreview_PaintPage", (PyCFunction) _wrap_PrintPreview_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
23234 | { (char *)"PrintPreview_DrawBlankPage", (PyCFunction) _wrap_PrintPreview_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
23235 | { (char *)"PrintPreview_RenderPage", (PyCFunction) _wrap_PrintPreview_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
23236 | { (char *)"PrintPreview_AdjustScrollbars", (PyCFunction) _wrap_PrintPreview_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
23237 | { (char *)"PrintPreview_GetPrintDialogData", (PyCFunction) _wrap_PrintPreview_GetPrintDialogData, METH_VARARGS | METH_KEYWORDS }, | |
23238 | { (char *)"PrintPreview_SetZoom", (PyCFunction) _wrap_PrintPreview_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
23239 | { (char *)"PrintPreview_GetZoom", (PyCFunction) _wrap_PrintPreview_GetZoom, METH_VARARGS | METH_KEYWORDS }, | |
23240 | { (char *)"PrintPreview_GetMaxPage", (PyCFunction) _wrap_PrintPreview_GetMaxPage, METH_VARARGS | METH_KEYWORDS }, | |
23241 | { (char *)"PrintPreview_GetMinPage", (PyCFunction) _wrap_PrintPreview_GetMinPage, METH_VARARGS | METH_KEYWORDS }, | |
23242 | { (char *)"PrintPreview_Ok", (PyCFunction) _wrap_PrintPreview_Ok, METH_VARARGS | METH_KEYWORDS }, | |
23243 | { (char *)"PrintPreview_SetOk", (PyCFunction) _wrap_PrintPreview_SetOk, METH_VARARGS | METH_KEYWORDS }, | |
23244 | { (char *)"PrintPreview_Print", (PyCFunction) _wrap_PrintPreview_Print, METH_VARARGS | METH_KEYWORDS }, | |
23245 | { (char *)"PrintPreview_DetermineScaling", (PyCFunction) _wrap_PrintPreview_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
23246 | { (char *)"PrintPreview_swigregister", PrintPreview_swigregister, METH_VARARGS }, | |
23247 | { (char *)"new_PyPrintPreview", (PyCFunction) _wrap_new_PyPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23248 | { (char *)"PyPrintPreview__setCallbackInfo", (PyCFunction) _wrap_PyPrintPreview__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23249 | { (char *)"PyPrintPreview_base_SetCurrentPage", (PyCFunction) _wrap_PyPrintPreview_base_SetCurrentPage, METH_VARARGS | METH_KEYWORDS }, | |
23250 | { (char *)"PyPrintPreview_base_PaintPage", (PyCFunction) _wrap_PyPrintPreview_base_PaintPage, METH_VARARGS | METH_KEYWORDS }, | |
23251 | { (char *)"PyPrintPreview_base_DrawBlankPage", (PyCFunction) _wrap_PyPrintPreview_base_DrawBlankPage, METH_VARARGS | METH_KEYWORDS }, | |
23252 | { (char *)"PyPrintPreview_base_RenderPage", (PyCFunction) _wrap_PyPrintPreview_base_RenderPage, METH_VARARGS | METH_KEYWORDS }, | |
23253 | { (char *)"PyPrintPreview_base_SetZoom", (PyCFunction) _wrap_PyPrintPreview_base_SetZoom, METH_VARARGS | METH_KEYWORDS }, | |
23254 | { (char *)"PyPrintPreview_base_Print", (PyCFunction) _wrap_PyPrintPreview_base_Print, METH_VARARGS | METH_KEYWORDS }, | |
23255 | { (char *)"PyPrintPreview_base_DetermineScaling", (PyCFunction) _wrap_PyPrintPreview_base_DetermineScaling, METH_VARARGS | METH_KEYWORDS }, | |
23256 | { (char *)"PyPrintPreview_swigregister", PyPrintPreview_swigregister, METH_VARARGS }, | |
23257 | { (char *)"new_PyPreviewFrame", (PyCFunction) _wrap_new_PyPreviewFrame, METH_VARARGS | METH_KEYWORDS }, | |
23258 | { (char *)"PyPreviewFrame__setCallbackInfo", (PyCFunction) _wrap_PyPreviewFrame__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23259 | { (char *)"PyPreviewFrame_SetPreviewCanvas", (PyCFunction) _wrap_PyPreviewFrame_SetPreviewCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23260 | { (char *)"PyPreviewFrame_SetControlBar", (PyCFunction) _wrap_PyPreviewFrame_SetControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23261 | { (char *)"PyPreviewFrame_base_Initialize", (PyCFunction) _wrap_PyPreviewFrame_base_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
23262 | { (char *)"PyPreviewFrame_base_CreateCanvas", (PyCFunction) _wrap_PyPreviewFrame_base_CreateCanvas, METH_VARARGS | METH_KEYWORDS }, | |
23263 | { (char *)"PyPreviewFrame_base_CreateControlBar", (PyCFunction) _wrap_PyPreviewFrame_base_CreateControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23264 | { (char *)"PyPreviewFrame_swigregister", PyPreviewFrame_swigregister, METH_VARARGS }, | |
23265 | { (char *)"new_PyPreviewControlBar", (PyCFunction) _wrap_new_PyPreviewControlBar, METH_VARARGS | METH_KEYWORDS }, | |
23266 | { (char *)"PyPreviewControlBar__setCallbackInfo", (PyCFunction) _wrap_PyPreviewControlBar__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
23267 | { (char *)"PyPreviewControlBar_SetPrintPreview", (PyCFunction) _wrap_PyPreviewControlBar_SetPrintPreview, METH_VARARGS | METH_KEYWORDS }, | |
23268 | { (char *)"PyPreviewControlBar_base_CreateButtons", (PyCFunction) _wrap_PyPreviewControlBar_base_CreateButtons, METH_VARARGS | METH_KEYWORDS }, | |
23269 | { (char *)"PyPreviewControlBar_base_SetZoomControl", (PyCFunction) _wrap_PyPreviewControlBar_base_SetZoomControl, METH_VARARGS | METH_KEYWORDS }, | |
23270 | { (char *)"PyPreviewControlBar_swigregister", PyPreviewControlBar_swigregister, METH_VARARGS }, | |
23271 | { NULL, NULL } | |
23272 | }; | |
23273 | ||
23274 | ||
23275 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
23276 | ||
23277 | static void *_p_wxPyPreviewFrameTo_p_wxPreviewFrame(void *x) { | |
23278 | return (void *)((wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23279 | } | |
23280 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
23281 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
23282 | } | |
23283 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
23284 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
23285 | } | |
23286 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
23287 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
23288 | } | |
23289 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
23290 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
23291 | } | |
23292 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
23293 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
23294 | } | |
23295 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
23296 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
23297 | } | |
23298 | static void *_p_wxSplitterEventTo_p_wxEvent(void *x) { | |
23299 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23300 | } | |
23301 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
23302 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
23303 | } | |
23304 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
23305 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
23306 | } | |
23307 | static void *_p_wxFindDialogEventTo_p_wxEvent(void *x) { | |
23308 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
23309 | } | |
23310 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
23311 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
23312 | } | |
23313 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
23314 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
23315 | } | |
23316 | static void *_p_wxCalculateLayoutEventTo_p_wxEvent(void *x) { | |
23317 | return (void *)((wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
23318 | } | |
23319 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
23320 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
23321 | } | |
23322 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
23323 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
23324 | } | |
23325 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
23326 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
23327 | } | |
23328 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
23329 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
23330 | } | |
23331 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
23332 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
23333 | } | |
23334 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
23335 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
23336 | } | |
23337 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
23338 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
23339 | } | |
23340 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
23341 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
23342 | } | |
23343 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
23344 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
23345 | } | |
23346 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
23347 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
23348 | } | |
23349 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
23350 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
23351 | } | |
23352 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
23353 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
23354 | } | |
23355 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
23356 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
23357 | } | |
23358 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
23359 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
23360 | } | |
23361 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
23362 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
23363 | } | |
23364 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
23365 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
23366 | } | |
23367 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
23368 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
23369 | } | |
23370 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
23371 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
23372 | } | |
23373 | static void *_p_wxSashEventTo_p_wxEvent(void *x) { | |
23374 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxSashEvent *) x)); | |
23375 | } | |
23376 | static void *_p_wxQueryLayoutInfoEventTo_p_wxEvent(void *x) { | |
23377 | return (void *)((wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
23378 | } | |
23379 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
23380 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
23381 | } | |
23382 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
23383 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
23384 | } | |
23385 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
23386 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
23387 | } | |
23388 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
23389 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
23390 | } | |
23391 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
23392 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
23393 | } | |
23394 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
23395 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
23396 | } | |
23397 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
23398 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
23399 | } | |
23400 | static void *_p_wxTaskBarIconEventTo_p_wxEvent(void *x) { | |
23401 | return (void *)((wxEvent *) ((wxTaskBarIconEvent *) x)); | |
23402 | } | |
23403 | static void *_p_wxSplitterEventTo_p_wxNotifyEvent(void *x) { | |
23404 | return (void *)((wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23405 | } | |
23406 | static void *_p_wxSplashScreenTo_p_wxEvtHandler(void *x) { | |
23407 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
23408 | } | |
23409 | static void *_p_wxMiniFrameTo_p_wxEvtHandler(void *x) { | |
23410 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
23411 | } | |
23412 | static void *_p_wxPyPanelTo_p_wxEvtHandler(void *x) { | |
23413 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
23414 | } | |
23415 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
23416 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
23417 | } | |
23418 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
23419 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
23420 | } | |
23421 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
23422 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
23423 | } | |
23424 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
23425 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
23426 | } | |
23427 | static void *_p_wxTextEntryDialogTo_p_wxEvtHandler(void *x) { | |
23428 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
23429 | } | |
23430 | static void *_p_wxSingleChoiceDialogTo_p_wxEvtHandler(void *x) { | |
23431 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
23432 | } | |
23433 | static void *_p_wxMultiChoiceDialogTo_p_wxEvtHandler(void *x) { | |
23434 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
23435 | } | |
23436 | static void *_p_wxFileDialogTo_p_wxEvtHandler(void *x) { | |
23437 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
23438 | } | |
23439 | static void *_p_wxMessageDialogTo_p_wxEvtHandler(void *x) { | |
23440 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
23441 | } | |
23442 | static void *_p_wxProgressDialogTo_p_wxEvtHandler(void *x) { | |
23443 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
23444 | } | |
23445 | static void *_p_wxFindReplaceDialogTo_p_wxEvtHandler(void *x) { | |
23446 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
23447 | } | |
23448 | static void *_p_wxPanelTo_p_wxEvtHandler(void *x) { | |
23449 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPanel *) x)); | |
23450 | } | |
23451 | static void *_p_wxStatusBarTo_p_wxEvtHandler(void *x) { | |
23452 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxStatusBar *) x)); | |
23453 | } | |
23454 | static void *_p_wxPyVScrolledWindowTo_p_wxEvtHandler(void *x) { | |
23455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
23456 | } | |
23457 | static void *_p_wxTipWindowTo_p_wxEvtHandler(void *x) { | |
23458 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
23459 | } | |
23460 | static void *_p_wxPyPopupTransientWindowTo_p_wxEvtHandler(void *x) { | |
23461 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
23462 | } | |
23463 | static void *_p_wxPopupWindowTo_p_wxEvtHandler(void *x) { | |
23464 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPopupWindow *) x)); | |
23465 | } | |
23466 | static void *_p_wxSashLayoutWindowTo_p_wxEvtHandler(void *x) { | |
23467 | return (void *)((wxEvtHandler *) (wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
23468 | } | |
23469 | static void *_p_wxSashWindowTo_p_wxEvtHandler(void *x) { | |
23470 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSashWindow *) x)); | |
23471 | } | |
23472 | static void *_p_wxSplitterWindowTo_p_wxEvtHandler(void *x) { | |
23473 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplitterWindow *) x)); | |
23474 | } | |
23475 | static void *_p_wxSplashScreenWindowTo_p_wxEvtHandler(void *x) { | |
23476 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxSplashScreenWindow *) x)); | |
23477 | } | |
23478 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
23479 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
23480 | } | |
23481 | static void *_p_wxScrolledWindowTo_p_wxEvtHandler(void *x) { | |
23482 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
23483 | } | |
23484 | static void *_p_wxTopLevelWindowTo_p_wxEvtHandler(void *x) { | |
23485 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxTopLevelWindow *) x)); | |
23486 | } | |
23487 | static void *_p_wxMDIClientWindowTo_p_wxEvtHandler(void *x) { | |
23488 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMDIClientWindow *) x)); | |
23489 | } | |
23490 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
23491 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
23492 | } | |
23493 | static void *_p_wxPreviewFrameTo_p_wxEvtHandler(void *x) { | |
23494 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
23495 | } | |
23496 | static void *_p_wxPyPreviewFrameTo_p_wxEvtHandler(void *x) { | |
23497 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23498 | } | |
23499 | static void *_p_wxMDIChildFrameTo_p_wxEvtHandler(void *x) { | |
23500 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
23501 | } | |
23502 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
23503 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
23504 | } | |
23505 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
23506 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
23507 | } | |
23508 | static void *_p_wxPyWindowTo_p_wxEvtHandler(void *x) { | |
23509 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxPyWindow *) x)); | |
23510 | } | |
23511 | static void *_p_wxPreviewCanvasTo_p_wxEvtHandler(void *x) { | |
23512 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
23513 | } | |
23514 | static void *_p_wxPyHtmlListBoxTo_p_wxEvtHandler(void *x) { | |
23515 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23516 | } | |
23517 | static void *_p_wxPyVListBoxTo_p_wxEvtHandler(void *x) { | |
23518 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
23519 | } | |
23520 | static void *_p_wxPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
23521 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
23522 | } | |
23523 | static void *_p_wxPyPreviewControlBarTo_p_wxEvtHandler(void *x) { | |
23524 | return (void *)((wxEvtHandler *) (wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
23525 | } | |
23526 | static void *_p_wxTaskBarIconTo_p_wxEvtHandler(void *x) { | |
23527 | return (void *)((wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
23528 | } | |
23529 | static void *_p_wxFrameTo_p_wxEvtHandler(void *x) { | |
23530 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
23531 | } | |
23532 | static void *_p_wxFontDialogTo_p_wxEvtHandler(void *x) { | |
23533 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
23534 | } | |
23535 | static void *_p_wxDirDialogTo_p_wxEvtHandler(void *x) { | |
23536 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
23537 | } | |
23538 | static void *_p_wxColourDialogTo_p_wxEvtHandler(void *x) { | |
23539 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
23540 | } | |
23541 | static void *_p_wxDialogTo_p_wxEvtHandler(void *x) { | |
23542 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
23543 | } | |
23544 | static void *_p_wxPageSetupDialogTo_p_wxEvtHandler(void *x) { | |
23545 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
23546 | } | |
23547 | static void *_p_wxPrintDialogTo_p_wxEvtHandler(void *x) { | |
23548 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
23549 | } | |
23550 | static void *_p_wxMDIParentFrameTo_p_wxEvtHandler(void *x) { | |
23551 | return (void *)((wxEvtHandler *) (wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
23552 | } | |
23553 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVListBox(void *x) { | |
23554 | return (void *)((wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23555 | } | |
23556 | static void *_p_wxMDIChildFrameTo_p_wxFrame(void *x) { | |
23557 | return (void *)((wxFrame *) ((wxMDIChildFrame *) x)); | |
23558 | } | |
23559 | static void *_p_wxProgressDialogTo_p_wxFrame(void *x) { | |
23560 | return (void *)((wxFrame *) ((wxProgressDialog *) x)); | |
23561 | } | |
23562 | static void *_p_wxPreviewFrameTo_p_wxFrame(void *x) { | |
23563 | return (void *)((wxFrame *) ((wxPreviewFrame *) x)); | |
23564 | } | |
23565 | static void *_p_wxPyPreviewFrameTo_p_wxFrame(void *x) { | |
23566 | return (void *)((wxFrame *) (wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23567 | } | |
23568 | static void *_p_wxMiniFrameTo_p_wxFrame(void *x) { | |
23569 | return (void *)((wxFrame *) ((wxMiniFrame *) x)); | |
23570 | } | |
23571 | static void *_p_wxSplashScreenTo_p_wxFrame(void *x) { | |
23572 | return (void *)((wxFrame *) ((wxSplashScreen *) x)); | |
23573 | } | |
23574 | static void *_p_wxMDIParentFrameTo_p_wxFrame(void *x) { | |
23575 | return (void *)((wxFrame *) ((wxMDIParentFrame *) x)); | |
23576 | } | |
23577 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
23578 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
23579 | } | |
23580 | static void *_p_wxQueryLayoutInfoEventTo_p_wxObject(void *x) { | |
23581 | return (void *)((wxObject *) (wxEvent *) ((wxQueryLayoutInfoEvent *) x)); | |
23582 | } | |
23583 | static void *_p_wxPreviewFrameTo_p_wxObject(void *x) { | |
23584 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
23585 | } | |
23586 | static void *_p_wxPyPreviewFrameTo_p_wxObject(void *x) { | |
23587 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
23588 | } | |
23589 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
23590 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
23591 | } | |
23592 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
23593 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
23594 | } | |
23595 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
23596 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
23597 | } | |
23598 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
23599 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
23600 | } | |
23601 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
23602 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
23603 | } | |
23604 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
23605 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
23606 | } | |
23607 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
23608 | return (void *)((wxObject *) ((wxSizer *) x)); | |
23609 | } | |
23610 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
23611 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
23612 | } | |
23613 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
23614 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
23615 | } | |
23616 | static void *_p_wxPyPanelTo_p_wxObject(void *x) { | |
23617 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyPanel *) x)); | |
23618 | } | |
23619 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
23620 | return (void *)((wxObject *) ((wxEvent *) x)); | |
23621 | } | |
23622 | static void *_p_wxFontDataTo_p_wxObject(void *x) { | |
23623 | return (void *)((wxObject *) ((wxFontData *) x)); | |
23624 | } | |
23625 | static void *_p_wxPrintDataTo_p_wxObject(void *x) { | |
23626 | return (void *)((wxObject *) ((wxPrintData *) x)); | |
23627 | } | |
23628 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
23629 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
23630 | } | |
23631 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
23632 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
23633 | } | |
23634 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
23635 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
23636 | } | |
23637 | static void *_p_wxLayoutAlgorithmTo_p_wxObject(void *x) { | |
23638 | return (void *)((wxObject *) ((wxLayoutAlgorithm *) x)); | |
23639 | } | |
23640 | static void *_p_wxTaskBarIconTo_p_wxObject(void *x) { | |
23641 | return (void *)((wxObject *) (wxEvtHandler *) ((wxTaskBarIcon *) x)); | |
23642 | } | |
23643 | static void *_p_wxFindDialogEventTo_p_wxObject(void *x) { | |
23644 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
23645 | } | |
23646 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
23647 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
23648 | } | |
23649 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
23650 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
23651 | } | |
23652 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
23653 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
23654 | } | |
23655 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
23656 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
23657 | } | |
23658 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
23659 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
23660 | } | |
23661 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
23662 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
23663 | } | |
23664 | static void *_p_wxPreviewCanvasTo_p_wxObject(void *x) { | |
23665 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
23666 | } | |
23667 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
23668 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
23669 | } | |
23670 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
23671 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
23672 | } | |
23673 | static void *_p_wxSplitterEventTo_p_wxObject(void *x) { | |
23674 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
23675 | } | |
23676 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
23677 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
23678 | } | |
23679 | static void *_p_wxFindReplaceDataTo_p_wxObject(void *x) { | |
23680 | return (void *)((wxObject *) ((wxFindReplaceData *) x)); | |
23681 | } | |
23682 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
23683 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
23684 | } | |
23685 | static void *_p_wxMDIChildFrameTo_p_wxObject(void *x) { | |
23686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
23687 | } | |
23688 | static void *_p_wxColourDataTo_p_wxObject(void *x) { | |
23689 | return (void *)((wxObject *) ((wxColourData *) x)); | |
23690 | } | |
23691 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
23692 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
23693 | } | |
23694 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
23695 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
23696 | } | |
23697 | static void *_p_wxPyWindowTo_p_wxObject(void *x) { | |
23698 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPyWindow *) x)); | |
23699 | } | |
23700 | static void *_p_wxSplashScreenTo_p_wxObject(void *x) { | |
23701 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
23702 | } | |
23703 | static void *_p_wxFileDialogTo_p_wxObject(void *x) { | |
23704 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
23705 | } | |
23706 | static void *_p_wxMultiChoiceDialogTo_p_wxObject(void *x) { | |
23707 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
23708 | } | |
23709 | static void *_p_wxSingleChoiceDialogTo_p_wxObject(void *x) { | |
23710 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
23711 | } | |
23712 | static void *_p_wxTextEntryDialogTo_p_wxObject(void *x) { | |
23713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
23714 | } | |
23715 | static void *_p_wxMessageDialogTo_p_wxObject(void *x) { | |
23716 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
23717 | } | |
23718 | static void *_p_wxProgressDialogTo_p_wxObject(void *x) { | |
23719 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
23720 | } | |
23721 | static void *_p_wxFindReplaceDialogTo_p_wxObject(void *x) { | |
23722 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
23723 | } | |
23724 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
23725 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
23726 | } | |
23727 | static void *_p_wxPrinterTo_p_wxObject(void *x) { | |
23728 | return (void *)((wxObject *) ((wxPrinter *) x)); | |
23729 | } | |
23730 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
23731 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
23732 | } | |
23733 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
23734 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
23735 | } | |
23736 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
23737 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
23738 | } | |
23739 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
23740 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
23741 | } | |
23742 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
23743 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
23744 | } | |
23745 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
23746 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
23747 | } | |
23748 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
23749 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
23750 | } | |
23751 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
23752 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
23753 | } | |
23754 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
23755 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
23756 | } | |
23757 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
23758 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
23759 | } | |
23760 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
23761 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
23762 | } | |
23763 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
23764 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
23765 | } | |
23766 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
23767 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
23768 | } | |
23769 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
23770 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
23771 | } | |
23772 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
23773 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
23774 | } | |
23775 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
23776 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
23777 | } | |
23778 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
23779 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
23780 | } | |
23781 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
23782 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
23783 | } | |
23784 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
23785 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
23786 | } | |
23787 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
23788 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
23789 | } | |
23790 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
23791 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
23792 | } | |
23793 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
23794 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
23795 | } | |
23796 | static void *_p_wxCalculateLayoutEventTo_p_wxObject(void *x) { | |
23797 | return (void *)((wxObject *) (wxEvent *) ((wxCalculateLayoutEvent *) x)); | |
23798 | } | |
23799 | static void *_p_wxPyVListBoxTo_p_wxObject(void *x) { | |
23800 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
23801 | } | |
23802 | static void *_p_wxPyHtmlListBoxTo_p_wxObject(void *x) { | |
23803 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23804 | } | |
23805 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
23806 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
23807 | } | |
23808 | static void *_p_wxMiniFrameTo_p_wxObject(void *x) { | |
23809 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
23810 | } | |
23811 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
23812 | return (void *)((wxObject *) ((wxImage *) x)); | |
23813 | } | |
23814 | static void *_p_wxFrameTo_p_wxObject(void *x) { | |
23815 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxFrame *) x)); | |
23816 | } | |
23817 | static void *_p_wxPyPrintoutTo_p_wxObject(void *x) { | |
23818 | return (void *)((wxObject *) ((wxPyPrintout *) x)); | |
23819 | } | |
23820 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
23821 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
23822 | } | |
23823 | static void *_p_wxTaskBarIconEventTo_p_wxObject(void *x) { | |
23824 | return (void *)((wxObject *) (wxEvent *) ((wxTaskBarIconEvent *) x)); | |
23825 | } | |
23826 | static void *_p_wxStatusBarTo_p_wxObject(void *x) { | |
23827 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxStatusBar *) x)); | |
23828 | } | |
23829 | static void *_p_wxMDIParentFrameTo_p_wxObject(void *x) { | |
23830 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
23831 | } | |
23832 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
23833 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
23834 | } | |
23835 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
23836 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
23837 | } | |
23838 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
23839 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
23840 | } | |
d14a1e28 RD |
23841 | static void *_p_wxWindowTo_p_wxObject(void *x) { |
23842 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
23843 | } | |
23844 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
23845 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
23846 | } | |
23847 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
23848 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
23849 | } | |
1e0c8722 RD |
23850 | static void *_p_wxScrolledWindowTo_p_wxObject(void *x) { |
23851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxScrolledWindow *) x)); | |
23852 | } | |
d14a1e28 RD |
23853 | static void *_p_wxTopLevelWindowTo_p_wxObject(void *x) { |
23854 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxTopLevelWindow *) x)); | |
23855 | } | |
23856 | static void *_p_wxSplashScreenWindowTo_p_wxObject(void *x) { | |
23857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplashScreenWindow *) x)); | |
23858 | } | |
23859 | static void *_p_wxSplitterWindowTo_p_wxObject(void *x) { | |
23860 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSplitterWindow *) x)); | |
23861 | } | |
23862 | static void *_p_wxSashWindowTo_p_wxObject(void *x) { | |
23863 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxSashWindow *) x)); | |
23864 | } | |
23865 | static void *_p_wxSashLayoutWindowTo_p_wxObject(void *x) { | |
23866 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
23867 | } | |
23868 | static void *_p_wxPopupWindowTo_p_wxObject(void *x) { | |
23869 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPopupWindow *) x)); | |
23870 | } | |
23871 | static void *_p_wxPyPopupTransientWindowTo_p_wxObject(void *x) { | |
23872 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
23873 | } | |
23874 | static void *_p_wxTipWindowTo_p_wxObject(void *x) { | |
23875 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
23876 | } | |
23877 | static void *_p_wxPyVScrolledWindowTo_p_wxObject(void *x) { | |
23878 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPyVScrolledWindow *) x)); | |
23879 | } | |
23880 | static void *_p_wxMDIClientWindowTo_p_wxObject(void *x) { | |
23881 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMDIClientWindow *) x)); | |
23882 | } | |
23883 | static void *_p_wxSashEventTo_p_wxObject(void *x) { | |
23884 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxSashEvent *) x)); | |
23885 | } | |
23886 | static void *_p_wxPrintPreviewTo_p_wxObject(void *x) { | |
23887 | return (void *)((wxObject *) ((wxPrintPreview *) x)); | |
23888 | } | |
23889 | static void *_p_wxPyPrintPreviewTo_p_wxObject(void *x) { | |
23890 | return (void *)((wxObject *) (wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
23891 | } | |
23892 | static void *_p_wxPanelTo_p_wxObject(void *x) { | |
23893 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxPanel *) x)); | |
23894 | } | |
23895 | static void *_p_wxDialogTo_p_wxObject(void *x) { | |
23896 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *) ((wxDialog *) x)); | |
23897 | } | |
23898 | static void *_p_wxColourDialogTo_p_wxObject(void *x) { | |
23899 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
23900 | } | |
23901 | static void *_p_wxDirDialogTo_p_wxObject(void *x) { | |
23902 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
23903 | } | |
23904 | static void *_p_wxFontDialogTo_p_wxObject(void *x) { | |
23905 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
23906 | } | |
23907 | static void *_p_wxPageSetupDialogTo_p_wxObject(void *x) { | |
23908 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
23909 | } | |
23910 | static void *_p_wxPrintDialogTo_p_wxObject(void *x) { | |
23911 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
23912 | } | |
23913 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
23914 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
23915 | } | |
23916 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
23917 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
23918 | } | |
23919 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
23920 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
23921 | } | |
23922 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
23923 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
23924 | } | |
23925 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
23926 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
23927 | } | |
23928 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
23929 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
23930 | } | |
23931 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
23932 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
23933 | } | |
23934 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
23935 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
23936 | } | |
23937 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
23938 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
23939 | } | |
23940 | static void *_p_wxPreviewControlBarTo_p_wxObject(void *x) { | |
23941 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *) ((wxPreviewControlBar *) x)); | |
23942 | } | |
23943 | static void *_p_wxPyPreviewControlBarTo_p_wxObject(void *x) { | |
23944 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
23945 | } | |
23946 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
23947 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
23948 | } | |
23949 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
23950 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
23951 | } | |
23952 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
23953 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
23954 | } | |
23955 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
23956 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
23957 | } | |
23958 | static void *_p_wxPageSetupDialogDataTo_p_wxObject(void *x) { | |
23959 | return (void *)((wxObject *) ((wxPageSetupDialogData *) x)); | |
23960 | } | |
23961 | static void *_p_wxPrintDialogDataTo_p_wxObject(void *x) { | |
23962 | return (void *)((wxObject *) ((wxPrintDialogData *) x)); | |
23963 | } | |
23964 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
23965 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
23966 | } | |
23967 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
23968 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
23969 | } | |
23970 | static void *_p_wxPyVListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
23971 | return (void *)((wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
23972 | } | |
23973 | static void *_p_wxPyHtmlListBoxTo_p_wxPyVScrolledWindow(void *x) { | |
23974 | return (void *)((wxPyVScrolledWindow *) (wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
23975 | } | |
23976 | static void *_p_wxTipWindowTo_p_wxPyPopupTransientWindow(void *x) { | |
23977 | return (void *)((wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
23978 | } | |
23979 | static void *_p_wxPyPopupTransientWindowTo_p_wxPopupWindow(void *x) { | |
23980 | return (void *)((wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
23981 | } | |
23982 | static void *_p_wxTipWindowTo_p_wxPopupWindow(void *x) { | |
23983 | return (void *)((wxPopupWindow *) (wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
23984 | } | |
23985 | static void *_p_wxSashLayoutWindowTo_p_wxSashWindow(void *x) { | |
23986 | return (void *)((wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
23987 | } | |
23988 | static void *_p_wxFrameTo_p_wxTopLevelWindow(void *x) { | |
23989 | return (void *)((wxTopLevelWindow *) ((wxFrame *) x)); | |
23990 | } | |
23991 | static void *_p_wxMiniFrameTo_p_wxTopLevelWindow(void *x) { | |
23992 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMiniFrame *) x)); | |
23993 | } | |
23994 | static void *_p_wxFontDialogTo_p_wxTopLevelWindow(void *x) { | |
23995 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFontDialog *) x)); | |
23996 | } | |
23997 | static void *_p_wxDirDialogTo_p_wxTopLevelWindow(void *x) { | |
23998 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxDirDialog *) x)); | |
23999 | } | |
24000 | static void *_p_wxColourDialogTo_p_wxTopLevelWindow(void *x) { | |
24001 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxColourDialog *) x)); | |
24002 | } | |
24003 | static void *_p_wxDialogTo_p_wxTopLevelWindow(void *x) { | |
24004 | return (void *)((wxTopLevelWindow *) ((wxDialog *) x)); | |
24005 | } | |
24006 | static void *_p_wxPageSetupDialogTo_p_wxTopLevelWindow(void *x) { | |
24007 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPageSetupDialog *) x)); | |
24008 | } | |
24009 | static void *_p_wxPrintDialogTo_p_wxTopLevelWindow(void *x) { | |
24010 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxPrintDialog *) x)); | |
24011 | } | |
24012 | static void *_p_wxSplashScreenTo_p_wxTopLevelWindow(void *x) { | |
24013 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxSplashScreen *) x)); | |
24014 | } | |
24015 | static void *_p_wxMDIParentFrameTo_p_wxTopLevelWindow(void *x) { | |
24016 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIParentFrame *) x)); | |
24017 | } | |
24018 | static void *_p_wxMDIChildFrameTo_p_wxTopLevelWindow(void *x) { | |
24019 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxMDIChildFrame *) x)); | |
24020 | } | |
24021 | static void *_p_wxFindReplaceDialogTo_p_wxTopLevelWindow(void *x) { | |
24022 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFindReplaceDialog *) x)); | |
24023 | } | |
24024 | static void *_p_wxProgressDialogTo_p_wxTopLevelWindow(void *x) { | |
24025 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxProgressDialog *) x)); | |
24026 | } | |
24027 | static void *_p_wxMessageDialogTo_p_wxTopLevelWindow(void *x) { | |
24028 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMessageDialog *) x)); | |
24029 | } | |
24030 | static void *_p_wxTextEntryDialogTo_p_wxTopLevelWindow(void *x) { | |
24031 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxTextEntryDialog *) x)); | |
24032 | } | |
24033 | static void *_p_wxSingleChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
24034 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24035 | } | |
24036 | static void *_p_wxMultiChoiceDialogTo_p_wxTopLevelWindow(void *x) { | |
24037 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24038 | } | |
24039 | static void *_p_wxFileDialogTo_p_wxTopLevelWindow(void *x) { | |
24040 | return (void *)((wxTopLevelWindow *) (wxDialog *) ((wxFileDialog *) x)); | |
24041 | } | |
24042 | static void *_p_wxPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
24043 | return (void *)((wxTopLevelWindow *) (wxFrame *) ((wxPreviewFrame *) x)); | |
24044 | } | |
24045 | static void *_p_wxPyPreviewFrameTo_p_wxTopLevelWindow(void *x) { | |
24046 | return (void *)((wxTopLevelWindow *) (wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
24047 | } | |
24048 | static void *_p_wxSplashScreenTo_p_wxWindow(void *x) { | |
24049 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxSplashScreen *) x)); | |
24050 | } | |
24051 | static void *_p_wxMiniFrameTo_p_wxWindow(void *x) { | |
24052 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMiniFrame *) x)); | |
24053 | } | |
24054 | static void *_p_wxPyPanelTo_p_wxWindow(void *x) { | |
24055 | return (void *)((wxWindow *) (wxPanel *) ((wxPyPanel *) x)); | |
24056 | } | |
24057 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
24058 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
24059 | } | |
24060 | static void *_p_wxFindReplaceDialogTo_p_wxWindow(void *x) { | |
24061 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFindReplaceDialog *) x)); | |
24062 | } | |
24063 | static void *_p_wxProgressDialogTo_p_wxWindow(void *x) { | |
24064 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxProgressDialog *) x)); | |
24065 | } | |
24066 | static void *_p_wxMessageDialogTo_p_wxWindow(void *x) { | |
24067 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMessageDialog *) x)); | |
24068 | } | |
24069 | static void *_p_wxTextEntryDialogTo_p_wxWindow(void *x) { | |
24070 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxTextEntryDialog *) x)); | |
24071 | } | |
24072 | static void *_p_wxSingleChoiceDialogTo_p_wxWindow(void *x) { | |
24073 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24074 | } | |
24075 | static void *_p_wxMultiChoiceDialogTo_p_wxWindow(void *x) { | |
24076 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24077 | } | |
24078 | static void *_p_wxFileDialogTo_p_wxWindow(void *x) { | |
24079 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFileDialog *) x)); | |
24080 | } | |
24081 | static void *_p_wxPanelTo_p_wxWindow(void *x) { | |
24082 | return (void *)((wxWindow *) ((wxPanel *) x)); | |
24083 | } | |
24084 | static void *_p_wxStatusBarTo_p_wxWindow(void *x) { | |
24085 | return (void *)((wxWindow *) ((wxStatusBar *) x)); | |
24086 | } | |
24087 | static void *_p_wxMDIClientWindowTo_p_wxWindow(void *x) { | |
24088 | return (void *)((wxWindow *) ((wxMDIClientWindow *) x)); | |
24089 | } | |
24090 | static void *_p_wxPyVScrolledWindowTo_p_wxWindow(void *x) { | |
24091 | return (void *)((wxWindow *) (wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24092 | } | |
24093 | static void *_p_wxTipWindowTo_p_wxWindow(void *x) { | |
24094 | return (void *)((wxWindow *) (wxPopupWindow *)(wxPyPopupTransientWindow *) ((wxTipWindow *) x)); | |
24095 | } | |
24096 | static void *_p_wxPyPopupTransientWindowTo_p_wxWindow(void *x) { | |
24097 | return (void *)((wxWindow *) (wxPopupWindow *) ((wxPyPopupTransientWindow *) x)); | |
24098 | } | |
24099 | static void *_p_wxPopupWindowTo_p_wxWindow(void *x) { | |
24100 | return (void *)((wxWindow *) ((wxPopupWindow *) x)); | |
24101 | } | |
24102 | static void *_p_wxSashLayoutWindowTo_p_wxWindow(void *x) { | |
24103 | return (void *)((wxWindow *) (wxSashWindow *) ((wxSashLayoutWindow *) x)); | |
24104 | } | |
24105 | static void *_p_wxScrolledWindowTo_p_wxWindow(void *x) { | |
24106 | return (void *)((wxWindow *) (wxPanel *) ((wxScrolledWindow *) x)); | |
24107 | } | |
24108 | static void *_p_wxTopLevelWindowTo_p_wxWindow(void *x) { | |
24109 | return (void *)((wxWindow *) ((wxTopLevelWindow *) x)); | |
24110 | } | |
24111 | static void *_p_wxSplashScreenWindowTo_p_wxWindow(void *x) { | |
24112 | return (void *)((wxWindow *) ((wxSplashScreenWindow *) x)); | |
24113 | } | |
24114 | static void *_p_wxSplitterWindowTo_p_wxWindow(void *x) { | |
24115 | return (void *)((wxWindow *) ((wxSplitterWindow *) x)); | |
24116 | } | |
24117 | static void *_p_wxSashWindowTo_p_wxWindow(void *x) { | |
24118 | return (void *)((wxWindow *) ((wxSashWindow *) x)); | |
24119 | } | |
24120 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
24121 | return (void *)((wxWindow *) ((wxControl *) x)); | |
24122 | } | |
24123 | static void *_p_wxPreviewFrameTo_p_wxWindow(void *x) { | |
24124 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxPreviewFrame *) x)); | |
24125 | } | |
24126 | static void *_p_wxPyPreviewFrameTo_p_wxWindow(void *x) { | |
24127 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *)(wxPreviewFrame *) ((wxPyPreviewFrame *) x)); | |
24128 | } | |
24129 | static void *_p_wxMDIChildFrameTo_p_wxWindow(void *x) { | |
24130 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIChildFrame *) x)); | |
24131 | } | |
24132 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
24133 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
24134 | } | |
24135 | static void *_p_wxPyWindowTo_p_wxWindow(void *x) { | |
24136 | return (void *)((wxWindow *) ((wxPyWindow *) x)); | |
24137 | } | |
24138 | static void *_p_wxPreviewCanvasTo_p_wxWindow(void *x) { | |
24139 | return (void *)((wxWindow *) (wxPanel *)(wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24140 | } | |
24141 | static void *_p_wxPyHtmlListBoxTo_p_wxWindow(void *x) { | |
24142 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24143 | } | |
24144 | static void *_p_wxPyVListBoxTo_p_wxWindow(void *x) { | |
24145 | return (void *)((wxWindow *) (wxPanel *)(wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24146 | } | |
24147 | static void *_p_wxPreviewControlBarTo_p_wxWindow(void *x) { | |
24148 | return (void *)((wxWindow *) (wxPanel *) ((wxPreviewControlBar *) x)); | |
24149 | } | |
24150 | static void *_p_wxPyPreviewControlBarTo_p_wxWindow(void *x) { | |
24151 | return (void *)((wxWindow *) (wxPanel *)(wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24152 | } | |
24153 | static void *_p_wxFrameTo_p_wxWindow(void *x) { | |
24154 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxFrame *) x)); | |
24155 | } | |
24156 | static void *_p_wxFontDialogTo_p_wxWindow(void *x) { | |
24157 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxFontDialog *) x)); | |
24158 | } | |
24159 | static void *_p_wxDirDialogTo_p_wxWindow(void *x) { | |
24160 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxDirDialog *) x)); | |
24161 | } | |
24162 | static void *_p_wxColourDialogTo_p_wxWindow(void *x) { | |
24163 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxColourDialog *) x)); | |
24164 | } | |
24165 | static void *_p_wxDialogTo_p_wxWindow(void *x) { | |
24166 | return (void *)((wxWindow *) (wxTopLevelWindow *) ((wxDialog *) x)); | |
24167 | } | |
24168 | static void *_p_wxPageSetupDialogTo_p_wxWindow(void *x) { | |
24169 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPageSetupDialog *) x)); | |
24170 | } | |
24171 | static void *_p_wxPrintDialogTo_p_wxWindow(void *x) { | |
24172 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxDialog *) ((wxPrintDialog *) x)); | |
24173 | } | |
24174 | static void *_p_wxMDIParentFrameTo_p_wxWindow(void *x) { | |
24175 | return (void *)((wxWindow *) (wxTopLevelWindow *)(wxFrame *) ((wxMDIParentFrame *) x)); | |
24176 | } | |
24177 | static void *_p_wxPreviewCanvasTo_p_wxScrolledWindow(void *x) { | |
24178 | return (void *)((wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24179 | } | |
24180 | static void *_p_wxPyPrintPreviewTo_p_wxPrintPreview(void *x) { | |
24181 | return (void *)((wxPrintPreview *) ((wxPyPrintPreview *) x)); | |
24182 | } | |
24183 | static void *_p_wxColourDialogTo_p_wxDialog(void *x) { | |
24184 | return (void *)((wxDialog *) ((wxColourDialog *) x)); | |
24185 | } | |
24186 | static void *_p_wxDirDialogTo_p_wxDialog(void *x) { | |
24187 | return (void *)((wxDialog *) ((wxDirDialog *) x)); | |
24188 | } | |
24189 | static void *_p_wxFontDialogTo_p_wxDialog(void *x) { | |
24190 | return (void *)((wxDialog *) ((wxFontDialog *) x)); | |
24191 | } | |
24192 | static void *_p_wxPageSetupDialogTo_p_wxDialog(void *x) { | |
24193 | return (void *)((wxDialog *) ((wxPageSetupDialog *) x)); | |
24194 | } | |
24195 | static void *_p_wxPrintDialogTo_p_wxDialog(void *x) { | |
24196 | return (void *)((wxDialog *) ((wxPrintDialog *) x)); | |
24197 | } | |
24198 | static void *_p_wxFileDialogTo_p_wxDialog(void *x) { | |
24199 | return (void *)((wxDialog *) ((wxFileDialog *) x)); | |
24200 | } | |
24201 | static void *_p_wxMultiChoiceDialogTo_p_wxDialog(void *x) { | |
24202 | return (void *)((wxDialog *) ((wxMultiChoiceDialog *) x)); | |
24203 | } | |
24204 | static void *_p_wxSingleChoiceDialogTo_p_wxDialog(void *x) { | |
24205 | return (void *)((wxDialog *) ((wxSingleChoiceDialog *) x)); | |
24206 | } | |
24207 | static void *_p_wxTextEntryDialogTo_p_wxDialog(void *x) { | |
24208 | return (void *)((wxDialog *) ((wxTextEntryDialog *) x)); | |
24209 | } | |
24210 | static void *_p_wxMessageDialogTo_p_wxDialog(void *x) { | |
24211 | return (void *)((wxDialog *) ((wxMessageDialog *) x)); | |
24212 | } | |
24213 | static void *_p_wxFindReplaceDialogTo_p_wxDialog(void *x) { | |
24214 | return (void *)((wxDialog *) ((wxFindReplaceDialog *) x)); | |
24215 | } | |
24216 | static void *_p_wxScrolledWindowTo_p_wxPanel(void *x) { | |
24217 | return (void *)((wxPanel *) ((wxScrolledWindow *) x)); | |
24218 | } | |
24219 | static void *_p_wxPyVScrolledWindowTo_p_wxPanel(void *x) { | |
24220 | return (void *)((wxPanel *) ((wxPyVScrolledWindow *) x)); | |
24221 | } | |
24222 | static void *_p_wxPyVListBoxTo_p_wxPanel(void *x) { | |
24223 | return (void *)((wxPanel *) (wxPyVScrolledWindow *) ((wxPyVListBox *) x)); | |
24224 | } | |
24225 | static void *_p_wxPyHtmlListBoxTo_p_wxPanel(void *x) { | |
24226 | return (void *)((wxPanel *) (wxPyVScrolledWindow *)(wxPyVListBox *) ((wxPyHtmlListBox *) x)); | |
24227 | } | |
24228 | static void *_p_wxPyPanelTo_p_wxPanel(void *x) { | |
24229 | return (void *)((wxPanel *) ((wxPyPanel *) x)); | |
24230 | } | |
24231 | static void *_p_wxPreviewCanvasTo_p_wxPanel(void *x) { | |
24232 | return (void *)((wxPanel *) (wxScrolledWindow *) ((wxPreviewCanvas *) x)); | |
24233 | } | |
24234 | static void *_p_wxPreviewControlBarTo_p_wxPanel(void *x) { | |
24235 | return (void *)((wxPanel *) ((wxPreviewControlBar *) x)); | |
24236 | } | |
24237 | static void *_p_wxPyPreviewControlBarTo_p_wxPanel(void *x) { | |
24238 | return (void *)((wxPanel *) (wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24239 | } | |
24240 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
24241 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
24242 | } | |
24243 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
24244 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
24245 | } | |
24246 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
24247 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
24248 | } | |
24249 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
24250 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
24251 | } | |
24252 | static void *_p_wxFindDialogEventTo_p_wxCommandEvent(void *x) { | |
24253 | return (void *)((wxCommandEvent *) ((wxFindDialogEvent *) x)); | |
24254 | } | |
24255 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
24256 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
24257 | } | |
24258 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
24259 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
24260 | } | |
24261 | static void *_p_wxSplitterEventTo_p_wxCommandEvent(void *x) { | |
24262 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSplitterEvent *) x)); | |
24263 | } | |
24264 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
24265 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
24266 | } | |
24267 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
24268 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
24269 | } | |
24270 | static void *_p_wxSashEventTo_p_wxCommandEvent(void *x) { | |
24271 | return (void *)((wxCommandEvent *) ((wxSashEvent *) x)); | |
24272 | } | |
24273 | static void *_p_wxPyPreviewControlBarTo_p_wxPreviewControlBar(void *x) { | |
24274 | return (void *)((wxPreviewControlBar *) ((wxPyPreviewControlBar *) x)); | |
24275 | } | |
24276 | static swig_type_info _swigt__p_wxQueryLayoutInfoEvent[] = {{"_p_wxQueryLayoutInfoEvent", 0, "wxQueryLayoutInfoEvent *", 0},{"_p_wxQueryLayoutInfoEvent"},{0}}; | |
24277 | static swig_type_info _swigt__p_wxPreviewFrame[] = {{"_p_wxPreviewFrame", 0, "wxPreviewFrame *", 0},{"_p_wxPreviewFrame"},{"_p_wxPyPreviewFrame", _p_wxPyPreviewFrameTo_p_wxPreviewFrame},{0}}; | |
24278 | static swig_type_info _swigt__p_wxPyPreviewFrame[] = {{"_p_wxPyPreviewFrame", 0, "wxPyPreviewFrame *", 0},{"_p_wxPyPreviewFrame"},{0}}; | |
d14a1e28 RD |
24279 | static swig_type_info _swigt__p_wxPyPanel[] = {{"_p_wxPyPanel", 0, "wxPyPanel *", 0},{"_p_wxPyPanel"},{0}}; |
24280 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}}; | |
24281 | static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}}; | |
24282 | static swig_type_info _swigt__p_wxFontData[] = {{"_p_wxFontData", 0, "wxFontData *", 0},{"_p_wxFontData"},{0}}; | |
24283 | 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}}; | |
24284 | static swig_type_info _swigt__p_wxTaskBarIcon[] = {{"_p_wxTaskBarIcon", 0, "wxTaskBarIcon *", 0},{"_p_wxTaskBarIcon"},{0}}; | |
24285 | static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}}; | |
24286 | static swig_type_info _swigt__p_wxLayoutAlgorithm[] = {{"_p_wxLayoutAlgorithm", 0, "wxLayoutAlgorithm *", 0},{"_p_wxLayoutAlgorithm"},{0}}; | |
24287 | static swig_type_info _swigt__p_wxFindDialogEvent[] = {{"_p_wxFindDialogEvent", 0, "wxFindDialogEvent *", 0},{"_p_wxFindDialogEvent"},{0}}; | |
24288 | static swig_type_info _swigt__p_wxPreviewCanvas[] = {{"_p_wxPreviewCanvas", 0, "wxPreviewCanvas *", 0},{"_p_wxPreviewCanvas"},{0}}; | |
24289 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
24290 | static swig_type_info _swigt__p_wxSplitterEvent[] = {{"_p_wxSplitterEvent", 0, "wxSplitterEvent *", 0},{"_p_wxSplitterEvent"},{0}}; | |
24291 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}}; | |
24292 | static swig_type_info _swigt__p_wxFindReplaceData[] = {{"_p_wxFindReplaceData", 0, "wxFindReplaceData *", 0},{"_p_wxFindReplaceData"},{0}}; | |
24293 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
24294 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
24295 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; | |
24296 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
24297 | static swig_type_info _swigt__p_wxMDIChildFrame[] = {{"_p_wxMDIChildFrame", 0, "wxMDIChildFrame *", 0},{"_p_wxMDIChildFrame"},{0}}; | |
24298 | static swig_type_info _swigt__p_wxColourData[] = {{"_p_wxColourData", 0, "wxColourData *", 0},{"_p_wxColourData"},{0}}; | |
24299 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxSplitterEvent", _p_wxSplitterEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}}; | |
24300 | static swig_type_info _swigt__p_wxPyWindow[] = {{"_p_wxPyWindow", 0, "wxPyWindow *", 0},{"_p_wxPyWindow"},{0}}; | |
24301 | static swig_type_info _swigt__p_wxSplashScreen[] = {{"_p_wxSplashScreen", 0, "wxSplashScreen *", 0},{"_p_wxSplashScreen"},{0}}; | |
24302 | static swig_type_info _swigt__p_wxFindReplaceDialog[] = {{"_p_wxFindReplaceDialog", 0, "wxFindReplaceDialog *", 0},{"_p_wxFindReplaceDialog"},{0}}; | |
24303 | static swig_type_info _swigt__p_wxProgressDialog[] = {{"_p_wxProgressDialog", 0, "wxProgressDialog *", 0},{"_p_wxProgressDialog"},{0}}; | |
24304 | static swig_type_info _swigt__p_wxMessageDialog[] = {{"_p_wxMessageDialog", 0, "wxMessageDialog *", 0},{"_p_wxMessageDialog"},{0}}; | |
24305 | static swig_type_info _swigt__p_wxTextEntryDialog[] = {{"_p_wxTextEntryDialog", 0, "wxTextEntryDialog *", 0},{"_p_wxTextEntryDialog"},{0}}; | |
24306 | static swig_type_info _swigt__p_wxSingleChoiceDialog[] = {{"_p_wxSingleChoiceDialog", 0, "wxSingleChoiceDialog *", 0},{"_p_wxSingleChoiceDialog"},{0}}; | |
24307 | static swig_type_info _swigt__p_wxMultiChoiceDialog[] = {{"_p_wxMultiChoiceDialog", 0, "wxMultiChoiceDialog *", 0},{"_p_wxMultiChoiceDialog"},{0}}; | |
24308 | static swig_type_info _swigt__p_wxFileDialog[] = {{"_p_wxFileDialog", 0, "wxFileDialog *", 0},{"_p_wxFileDialog"},{0}}; | |
24309 | static swig_type_info _swigt__p_wxPrinter[] = {{"_p_wxPrinter", 0, "wxPrinter *", 0},{"_p_wxPrinter"},{0}}; | |
d14a1e28 RD |
24310 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; |
24311 | 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}}; | |
24312 | static swig_type_info _swigt__p_wxCalculateLayoutEvent[] = {{"_p_wxCalculateLayoutEvent", 0, "wxCalculateLayoutEvent *", 0},{"_p_wxCalculateLayoutEvent"},{0}}; | |
24313 | static swig_type_info _swigt__p_wxPyHtmlListBox[] = {{"_p_wxPyHtmlListBox", 0, "wxPyHtmlListBox *", 0},{"_p_wxPyHtmlListBox"},{0}}; | |
24314 | static swig_type_info _swigt__p_wxPyVListBox[] = {{"_p_wxPyVListBox", 0, "wxPyVListBox *", 0},{"_p_wxPyVListBox"},{"_p_wxPyHtmlListBox", _p_wxPyHtmlListBoxTo_p_wxPyVListBox},{0}}; | |
24315 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
994141e6 | 24316 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}}; |
d14a1e28 RD |
24317 | static swig_type_info _swigt__p_wxMiniFrame[] = {{"_p_wxMiniFrame", 0, "wxMiniFrame *", 0},{"_p_wxMiniFrame"},{0}}; |
24318 | 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}}; | |
24319 | static swig_type_info _swigt__p_wxPyPrintout[] = {{"_p_wxPyPrintout", 0, "wxPyPrintout *", 0},{"_p_wxPyPrintout"},{0}}; | |
24320 | static swig_type_info _swigt__p_wxTaskBarIconEvent[] = {{"_p_wxTaskBarIconEvent", 0, "wxTaskBarIconEvent *", 0},{"_p_wxTaskBarIconEvent"},{0}}; | |
24321 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}}; | |
24322 | static swig_type_info _swigt__p_wxStatusBar[] = {{"_p_wxStatusBar", 0, "wxStatusBar *", 0},{"_p_wxStatusBar"},{0}}; | |
24323 | static swig_type_info _swigt__p_wxMDIParentFrame[] = {{"_p_wxMDIParentFrame", 0, "wxMDIParentFrame *", 0},{"_p_wxMDIParentFrame"},{0}}; | |
24324 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
24325 | 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}}; | |
24326 | static swig_type_info _swigt__p_unsigned_long[] = {{"_p_unsigned_long", 0, "unsigned long *", 0},{"_p_unsigned_long"},{0}}; | |
24327 | static swig_type_info _swigt__p_wxMDIClientWindow[] = {{"_p_wxMDIClientWindow", 0, "wxMDIClientWindow *", 0},{"_p_wxMDIClientWindow"},{0}}; | |
24328 | static swig_type_info _swigt__p_wxTipWindow[] = {{"_p_wxTipWindow", 0, "wxTipWindow *", 0},{"_p_wxTipWindow"},{0}}; | |
24329 | static swig_type_info _swigt__p_wxSashLayoutWindow[] = {{"_p_wxSashLayoutWindow", 0, "wxSashLayoutWindow *", 0},{"_p_wxSashLayoutWindow"},{0}}; | |
24330 | static swig_type_info _swigt__p_wxSplitterWindow[] = {{"_p_wxSplitterWindow", 0, "wxSplitterWindow *", 0},{"_p_wxSplitterWindow"},{0}}; | |
d14a1e28 RD |
24331 | 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}}; |
24332 | static swig_type_info _swigt__p_wxPyPopupTransientWindow[] = {{"_p_wxPyPopupTransientWindow", 0, "wxPyPopupTransientWindow *", 0},{"_p_wxPyPopupTransientWindow"},{"_p_wxTipWindow", _p_wxTipWindowTo_p_wxPyPopupTransientWindow},{0}}; | |
24333 | 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}}; | |
24334 | static swig_type_info _swigt__p_wxSashWindow[] = {{"_p_wxSashWindow", 0, "wxSashWindow *", 0},{"_p_wxSashWindow"},{"_p_wxSashLayoutWindow", _p_wxSashLayoutWindowTo_p_wxSashWindow},{0}}; | |
24335 | 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}}; | |
24336 | 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}}; | |
24337 | static swig_type_info _swigt__p_wxScrolledWindow[] = {{"_p_wxScrolledWindow", 0, "wxScrolledWindow *", 0},{"_p_wxScrolledWindow"},{"_p_wxPreviewCanvas", _p_wxPreviewCanvasTo_p_wxScrolledWindow},{0}}; | |
1e0c8722 | 24338 | static swig_type_info _swigt__p_wxSplashScreenWindow[] = {{"_p_wxSplashScreenWindow", 0, "wxSplashScreenWindow *", 0},{"_p_wxSplashScreenWindow"},{0}}; |
d14a1e28 RD |
24339 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}}; |
24340 | static swig_type_info _swigt__p_wxPrintPreview[] = {{"_p_wxPrintPreview", 0, "wxPrintPreview *", 0},{"_p_wxPrintPreview"},{"_p_wxPyPrintPreview", _p_wxPyPrintPreviewTo_p_wxPrintPreview},{0}}; | |
24341 | static swig_type_info _swigt__p_wxSashEvent[] = {{"_p_wxSashEvent", 0, "wxSashEvent *", 0},{"_p_wxSashEvent"},{0}}; | |
24342 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
24343 | static swig_type_info _swigt__p_wxPyPrintPreview[] = {{"_p_wxPyPrintPreview", 0, "wxPyPrintPreview *", 0},{"_p_wxPyPrintPreview"},{0}}; | |
1e0c8722 | 24344 | static swig_type_info _swigt__p_wxPageSetupDialog[] = {{"_p_wxPageSetupDialog", 0, "wxPageSetupDialog *", 0},{"_p_wxPageSetupDialog"},{0}}; |
d14a1e28 RD |
24345 | static swig_type_info _swigt__p_wxFontDialog[] = {{"_p_wxFontDialog", 0, "wxFontDialog *", 0},{"_p_wxFontDialog"},{0}}; |
24346 | static swig_type_info _swigt__p_wxDirDialog[] = {{"_p_wxDirDialog", 0, "wxDirDialog *", 0},{"_p_wxDirDialog"},{0}}; | |
24347 | static swig_type_info _swigt__p_wxColourDialog[] = {{"_p_wxColourDialog", 0, "wxColourDialog *", 0},{"_p_wxColourDialog"},{0}}; | |
24348 | 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}}; | |
24349 | 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 |
24350 | static swig_type_info _swigt__p_wxPrintDialog[] = {{"_p_wxPrintDialog", 0, "wxPrintDialog *", 0},{"_p_wxPrintDialog"},{0}}; |
24351 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
24352 | 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 |
24353 | static swig_type_info _swigt__p_wxPreviewControlBar[] = {{"_p_wxPreviewControlBar", 0, "wxPreviewControlBar *", 0},{"_p_wxPreviewControlBar"},{"_p_wxPyPreviewControlBar", _p_wxPyPreviewControlBarTo_p_wxPreviewControlBar},{0}}; |
24354 | static swig_type_info _swigt__p_wxPyPreviewControlBar[] = {{"_p_wxPyPreviewControlBar", 0, "wxPyPreviewControlBar *", 0},{"_p_wxPyPreviewControlBar"},{0}}; | |
24355 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
24356 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
b2dc1044 | 24357 | static swig_type_info _swigt__p_wxPageSetupDialogData[] = {{"_p_wxPageSetupDialogData", 0, "wxPageSetupDialogData *", 0},{"_p_wxPageSetupDialogData"},{0}}; |
994141e6 | 24358 | static swig_type_info _swigt__p_wxPrintDialogData[] = {{"_p_wxPrintDialogData", 0, "wxPrintDialogData *", 0},{"_p_wxPrintDialogData"},{0}}; |
d14a1e28 RD |
24359 | |
24360 | static swig_type_info *swig_types_initial[] = { | |
24361 | _swigt__p_wxQueryLayoutInfoEvent, | |
24362 | _swigt__p_wxPreviewFrame, | |
24363 | _swigt__p_wxPyPreviewFrame, | |
d14a1e28 RD |
24364 | _swigt__p_wxPyPanel, |
24365 | _swigt__p_wxMenu, | |
24366 | _swigt__p_wxPrintData, | |
24367 | _swigt__p_wxFontData, | |
24368 | _swigt__p_wxEvent, | |
24369 | _swigt__p_wxTaskBarIcon, | |
24370 | _swigt__p_wxIconBundle, | |
24371 | _swigt__p_wxLayoutAlgorithm, | |
24372 | _swigt__p_wxFindDialogEvent, | |
24373 | _swigt__p_wxPreviewCanvas, | |
24374 | _swigt__p_wxFont, | |
24375 | _swigt__p_wxSplitterEvent, | |
24376 | _swigt__p_wxRegion, | |
24377 | _swigt__p_wxFindReplaceData, | |
24378 | _swigt__p_int, | |
24379 | _swigt__p_wxSize, | |
24380 | _swigt__p_wxDC, | |
24381 | _swigt__p_wxIcon, | |
24382 | _swigt__p_wxMDIChildFrame, | |
24383 | _swigt__p_wxColourData, | |
24384 | _swigt__p_wxNotifyEvent, | |
24385 | _swigt__p_wxPyWindow, | |
24386 | _swigt__p_wxSplashScreen, | |
24387 | _swigt__p_wxFindReplaceDialog, | |
24388 | _swigt__p_wxProgressDialog, | |
24389 | _swigt__p_wxMessageDialog, | |
24390 | _swigt__p_wxTextEntryDialog, | |
24391 | _swigt__p_wxSingleChoiceDialog, | |
24392 | _swigt__p_wxMultiChoiceDialog, | |
24393 | _swigt__p_wxFileDialog, | |
24394 | _swigt__p_wxPrinter, | |
d14a1e28 RD |
24395 | _swigt__p_wxArrayInt, |
24396 | _swigt__p_wxEvtHandler, | |
24397 | _swigt__p_wxCalculateLayoutEvent, | |
24398 | _swigt__p_wxPyHtmlListBox, | |
24399 | _swigt__p_wxPyVListBox, | |
24400 | _swigt__p_wxRect, | |
994141e6 | 24401 | _swigt__p_char, |
d14a1e28 RD |
24402 | _swigt__p_wxMiniFrame, |
24403 | _swigt__p_wxFrame, | |
24404 | _swigt__p_wxPyPrintout, | |
24405 | _swigt__p_wxTaskBarIconEvent, | |
24406 | _swigt__p_wxScrollWinEvent, | |
24407 | _swigt__p_wxStatusBar, | |
24408 | _swigt__p_wxMDIParentFrame, | |
24409 | _swigt__p_wxPoint, | |
24410 | _swigt__p_wxObject, | |
24411 | _swigt__p_unsigned_long, | |
24412 | _swigt__p_wxMDIClientWindow, | |
24413 | _swigt__p_wxTipWindow, | |
24414 | _swigt__p_wxSashLayoutWindow, | |
24415 | _swigt__p_wxSplitterWindow, | |
d14a1e28 RD |
24416 | _swigt__p_wxPyVScrolledWindow, |
24417 | _swigt__p_wxPyPopupTransientWindow, | |
24418 | _swigt__p_wxPopupWindow, | |
24419 | _swigt__p_wxSashWindow, | |
24420 | _swigt__p_wxTopLevelWindow, | |
24421 | _swigt__p_wxWindow, | |
24422 | _swigt__p_wxScrolledWindow, | |
1e0c8722 | 24423 | _swigt__p_wxSplashScreenWindow, |
d14a1e28 RD |
24424 | _swigt__p_wxMenuBar, |
24425 | _swigt__p_wxPrintPreview, | |
24426 | _swigt__p_wxSashEvent, | |
24427 | _swigt__p_wxString, | |
24428 | _swigt__p_wxPyPrintPreview, | |
1e0c8722 | 24429 | _swigt__p_wxPageSetupDialog, |
d14a1e28 RD |
24430 | _swigt__p_wxFontDialog, |
24431 | _swigt__p_wxDirDialog, | |
24432 | _swigt__p_wxColourDialog, | |
24433 | _swigt__p_wxDialog, | |
24434 | _swigt__p_wxPanel, | |
d14a1e28 RD |
24435 | _swigt__p_wxPrintDialog, |
24436 | _swigt__p_wxBitmap, | |
24437 | _swigt__p_wxCommandEvent, | |
d14a1e28 RD |
24438 | _swigt__p_wxPreviewControlBar, |
24439 | _swigt__p_wxPyPreviewControlBar, | |
24440 | _swigt__p_wxColour, | |
24441 | _swigt__p_wxToolBar, | |
b2dc1044 | 24442 | _swigt__p_wxPageSetupDialogData, |
994141e6 | 24443 | _swigt__p_wxPrintDialogData, |
d14a1e28 RD |
24444 | 0 |
24445 | }; | |
24446 | ||
24447 | ||
24448 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
24449 | ||
24450 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
24451 | {0}}; |
24452 | ||
24453 | #ifdef __cplusplus | |
24454 | } | |
24455 | #endif | |
24456 | ||
24457 | #ifdef __cplusplus | |
24458 | extern "C" | |
24459 | #endif | |
24460 | SWIGEXPORT(void) SWIG_init(void) { | |
24461 | static PyObject *SWIG_globals = 0; | |
24462 | static int typeinit = 0; | |
24463 | PyObject *m, *d; | |
24464 | int i; | |
24465 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
24466 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
24467 | d = PyModule_GetDict(m); | |
24468 | ||
24469 | if (!typeinit) { | |
24470 | for (i = 0; swig_types_initial[i]; i++) { | |
24471 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
24472 | } | |
24473 | typeinit = 1; | |
24474 | } | |
24475 | SWIG_InstallConstants(d,swig_const_table); | |
24476 | ||
b2dc1044 RD |
24477 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
24478 | SWIG_addvarlink(SWIG_globals,(char*)"FrameNameStr",_wrap_FrameNameStr_get, _wrap_FrameNameStr_set); | |
24479 | SWIG_addvarlink(SWIG_globals,(char*)"DialogNameStr",_wrap_DialogNameStr_get, _wrap_DialogNameStr_set); | |
24480 | SWIG_addvarlink(SWIG_globals,(char*)"StatusLineNameStr",_wrap_StatusLineNameStr_get, _wrap_StatusLineNameStr_set); | |
24481 | SWIG_addvarlink(SWIG_globals,(char*)"ToolBarNameStr",_wrap_ToolBarNameStr_get, _wrap_ToolBarNameStr_set); | |
994141e6 RD |
24482 | PyDict_SetItemString(d,"FULLSCREEN_NOMENUBAR", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOMENUBAR)); |
24483 | PyDict_SetItemString(d,"FULLSCREEN_NOTOOLBAR", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOTOOLBAR)); | |
24484 | PyDict_SetItemString(d,"FULLSCREEN_NOSTATUSBAR", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOSTATUSBAR)); | |
24485 | PyDict_SetItemString(d,"FULLSCREEN_NOBORDER", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOBORDER)); | |
24486 | PyDict_SetItemString(d,"FULLSCREEN_NOCAPTION", SWIG_PyObj_FromInt((int)wxFULLSCREEN_NOCAPTION)); | |
24487 | PyDict_SetItemString(d,"FULLSCREEN_ALL", SWIG_PyObj_FromInt((int)wxFULLSCREEN_ALL)); | |
24488 | PyDict_SetItemString(d,"TOPLEVEL_EX_DIALOG", SWIG_PyObj_FromInt((int)wxTOPLEVEL_EX_DIALOG)); | |
24489 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_PARENT", SWIG_PyObj_FromInt((int)wxSPLASH_CENTRE_ON_PARENT)); | |
24490 | PyDict_SetItemString(d,"SPLASH_CENTRE_ON_SCREEN", SWIG_PyObj_FromInt((int)wxSPLASH_CENTRE_ON_SCREEN)); | |
24491 | PyDict_SetItemString(d,"SPLASH_NO_CENTRE", SWIG_PyObj_FromInt((int)wxSPLASH_NO_CENTRE)); | |
24492 | PyDict_SetItemString(d,"SPLASH_TIMEOUT", SWIG_PyObj_FromInt((int)wxSPLASH_TIMEOUT)); | |
24493 | PyDict_SetItemString(d,"SPLASH_NO_TIMEOUT", SWIG_PyObj_FromInt((int)wxSPLASH_NO_TIMEOUT)); | |
b2dc1044 | 24494 | SWIG_addvarlink(SWIG_globals,(char*)"SplitterNameStr",_wrap_SplitterNameStr_get, _wrap_SplitterNameStr_set); |
994141e6 RD |
24495 | PyDict_SetItemString(d,"SP_NOBORDER", SWIG_PyObj_FromInt((int)wxSP_NOBORDER)); |
24496 | PyDict_SetItemString(d,"SP_NOSASH", SWIG_PyObj_FromInt((int)wxSP_NOSASH)); | |
24497 | PyDict_SetItemString(d,"SP_PERMIT_UNSPLIT", SWIG_PyObj_FromInt((int)wxSP_PERMIT_UNSPLIT)); | |
24498 | PyDict_SetItemString(d,"SP_LIVE_UPDATE", SWIG_PyObj_FromInt((int)wxSP_LIVE_UPDATE)); | |
24499 | PyDict_SetItemString(d,"SP_3DSASH", SWIG_PyObj_FromInt((int)wxSP_3DSASH)); | |
24500 | PyDict_SetItemString(d,"SP_3DBORDER", SWIG_PyObj_FromInt((int)wxSP_3DBORDER)); | |
24501 | PyDict_SetItemString(d,"SP_BORDER", SWIG_PyObj_FromInt((int)wxSP_BORDER)); | |
24502 | PyDict_SetItemString(d,"SP_3D", SWIG_PyObj_FromInt((int)wxSP_3D)); | |
24503 | PyDict_SetItemString(d,"SPLIT_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSPLIT_HORIZONTAL)); | |
24504 | PyDict_SetItemString(d,"SPLIT_VERTICAL", SWIG_PyObj_FromInt((int)wxSPLIT_VERTICAL)); | |
24505 | PyDict_SetItemString(d,"SPLIT_DRAG_NONE", SWIG_PyObj_FromInt((int)wxSPLIT_DRAG_NONE)); | |
24506 | PyDict_SetItemString(d,"SPLIT_DRAG_DRAGGING", SWIG_PyObj_FromInt((int)wxSPLIT_DRAG_DRAGGING)); | |
24507 | PyDict_SetItemString(d,"SPLIT_DRAG_LEFT_DOWN", SWIG_PyObj_FromInt((int)wxSPLIT_DRAG_LEFT_DOWN)); | |
d14a1e28 RD |
24508 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED)); |
24509 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING)); | |
24510 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED)); | |
24511 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPLITTER_UNSPLIT", PyInt_FromLong(wxEVT_COMMAND_SPLITTER_UNSPLIT)); | |
b2dc1044 RD |
24512 | SWIG_addvarlink(SWIG_globals,(char*)"SashNameStr",_wrap_SashNameStr_get, _wrap_SashNameStr_set); |
24513 | SWIG_addvarlink(SWIG_globals,(char*)"SashLayoutNameStr",_wrap_SashLayoutNameStr_get, _wrap_SashLayoutNameStr_set); | |
994141e6 RD |
24514 | PyDict_SetItemString(d,"SASH_DRAG_NONE", SWIG_PyObj_FromInt((int)wxSASH_DRAG_NONE)); |
24515 | PyDict_SetItemString(d,"SASH_DRAG_DRAGGING", SWIG_PyObj_FromInt((int)wxSASH_DRAG_DRAGGING)); | |
24516 | PyDict_SetItemString(d,"SASH_DRAG_LEFT_DOWN", SWIG_PyObj_FromInt((int)wxSASH_DRAG_LEFT_DOWN)); | |
24517 | PyDict_SetItemString(d,"SW_NOBORDER", SWIG_PyObj_FromInt((int)wxSW_NOBORDER)); | |
24518 | PyDict_SetItemString(d,"SW_BORDER", SWIG_PyObj_FromInt((int)wxSW_BORDER)); | |
24519 | PyDict_SetItemString(d,"SW_3DSASH", SWIG_PyObj_FromInt((int)wxSW_3DSASH)); | |
24520 | PyDict_SetItemString(d,"SW_3DBORDER", SWIG_PyObj_FromInt((int)wxSW_3DBORDER)); | |
24521 | PyDict_SetItemString(d,"SW_3D", SWIG_PyObj_FromInt((int)wxSW_3D)); | |
24522 | PyDict_SetItemString(d,"SASH_TOP", SWIG_PyObj_FromInt((int)wxSASH_TOP)); | |
24523 | PyDict_SetItemString(d,"SASH_RIGHT", SWIG_PyObj_FromInt((int)wxSASH_RIGHT)); | |
24524 | PyDict_SetItemString(d,"SASH_BOTTOM", SWIG_PyObj_FromInt((int)wxSASH_BOTTOM)); | |
24525 | PyDict_SetItemString(d,"SASH_LEFT", SWIG_PyObj_FromInt((int)wxSASH_LEFT)); | |
24526 | PyDict_SetItemString(d,"SASH_NONE", SWIG_PyObj_FromInt((int)wxSASH_NONE)); | |
24527 | PyDict_SetItemString(d,"SASH_STATUS_OK", SWIG_PyObj_FromInt((int)wxSASH_STATUS_OK)); | |
24528 | PyDict_SetItemString(d,"SASH_STATUS_OUT_OF_RANGE", SWIG_PyObj_FromInt((int)wxSASH_STATUS_OUT_OF_RANGE)); | |
d14a1e28 | 24529 | PyDict_SetItemString(d, "wxEVT_SASH_DRAGGED", PyInt_FromLong(wxEVT_SASH_DRAGGED)); |
994141e6 RD |
24530 | PyDict_SetItemString(d,"LAYOUT_HORIZONTAL", SWIG_PyObj_FromInt((int)wxLAYOUT_HORIZONTAL)); |
24531 | PyDict_SetItemString(d,"LAYOUT_VERTICAL", SWIG_PyObj_FromInt((int)wxLAYOUT_VERTICAL)); | |
24532 | PyDict_SetItemString(d,"LAYOUT_NONE", SWIG_PyObj_FromInt((int)wxLAYOUT_NONE)); | |
24533 | PyDict_SetItemString(d,"LAYOUT_TOP", SWIG_PyObj_FromInt((int)wxLAYOUT_TOP)); | |
24534 | PyDict_SetItemString(d,"LAYOUT_LEFT", SWIG_PyObj_FromInt((int)wxLAYOUT_LEFT)); | |
24535 | PyDict_SetItemString(d,"LAYOUT_RIGHT", SWIG_PyObj_FromInt((int)wxLAYOUT_RIGHT)); | |
24536 | PyDict_SetItemString(d,"LAYOUT_BOTTOM", SWIG_PyObj_FromInt((int)wxLAYOUT_BOTTOM)); | |
24537 | PyDict_SetItemString(d,"LAYOUT_LENGTH_Y", SWIG_PyObj_FromInt((int)wxLAYOUT_LENGTH_Y)); | |
24538 | PyDict_SetItemString(d,"LAYOUT_LENGTH_X", SWIG_PyObj_FromInt((int)wxLAYOUT_LENGTH_X)); | |
24539 | PyDict_SetItemString(d,"LAYOUT_MRU_LENGTH", SWIG_PyObj_FromInt((int)wxLAYOUT_MRU_LENGTH)); | |
24540 | PyDict_SetItemString(d,"LAYOUT_QUERY", SWIG_PyObj_FromInt((int)wxLAYOUT_QUERY)); | |
d14a1e28 RD |
24541 | PyDict_SetItemString(d, "wxEVT_QUERY_LAYOUT_INFO", PyInt_FromLong(wxEVT_QUERY_LAYOUT_INFO)); |
24542 | PyDict_SetItemString(d, "wxEVT_CALCULATE_LAYOUT", PyInt_FromLong(wxEVT_CALCULATE_LAYOUT)); | |
b2dc1044 | 24543 | SWIG_addvarlink(SWIG_globals,(char*)"VListBoxNameStr",_wrap_VListBoxNameStr_get, _wrap_VListBoxNameStr_set); |
d14a1e28 RD |
24544 | |
24545 | // Map renamed classes back to their common name for OOR | |
24546 | wxPyPtrTypeMap_Add("wxHtmlListBox", "wxPyHtmlListBox"); | |
24547 | wxPyPtrTypeMap_Add("wxVListBox", "wxPyVListBox"); | |
24548 | wxPyPtrTypeMap_Add("wxVScrolledWindow", "wxPyVScrolledWindow"); | |
24549 | ||
24550 | PyDict_SetItemString(d, "wxEVT_TASKBAR_MOVE", PyInt_FromLong(wxEVT_TASKBAR_MOVE)); | |
24551 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DOWN)); | |
24552 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_UP", PyInt_FromLong(wxEVT_TASKBAR_LEFT_UP)); | |
24553 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DOWN", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DOWN)); | |
24554 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_UP", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_UP)); | |
24555 | PyDict_SetItemString(d, "wxEVT_TASKBAR_LEFT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_LEFT_DCLICK)); | |
24556 | PyDict_SetItemString(d, "wxEVT_TASKBAR_RIGHT_DCLICK", PyInt_FromLong(wxEVT_TASKBAR_RIGHT_DCLICK)); | |
b2dc1044 RD |
24557 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set); |
24558 | SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set); | |
24559 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogNameStr",_wrap_DirDialogNameStr_get, _wrap_DirDialogNameStr_set); | |
24560 | SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set); | |
24561 | SWIG_addvarlink(SWIG_globals,(char*)"GetTextFromUserPromptStr",_wrap_GetTextFromUserPromptStr_get, _wrap_GetTextFromUserPromptStr_set); | |
24562 | SWIG_addvarlink(SWIG_globals,(char*)"MessageBoxCaptionStr",_wrap_MessageBoxCaptionStr_get, _wrap_MessageBoxCaptionStr_set); | |
994141e6 RD |
24563 | PyDict_SetItemString(d,"CHOICEDLG_STYLE", SWIG_PyObj_FromInt((int)wxCHOICEDLG_STYLE)); |
24564 | PyDict_SetItemString(d,"FR_DOWN", SWIG_PyObj_FromInt((int)wxFR_DOWN)); | |
24565 | PyDict_SetItemString(d,"FR_WHOLEWORD", SWIG_PyObj_FromInt((int)wxFR_WHOLEWORD)); | |
24566 | PyDict_SetItemString(d,"FR_MATCHCASE", SWIG_PyObj_FromInt((int)wxFR_MATCHCASE)); | |
24567 | PyDict_SetItemString(d,"FR_REPLACEDIALOG", SWIG_PyObj_FromInt((int)wxFR_REPLACEDIALOG)); | |
24568 | PyDict_SetItemString(d,"FR_NOUPDOWN", SWIG_PyObj_FromInt((int)wxFR_NOUPDOWN)); | |
24569 | PyDict_SetItemString(d,"FR_NOMATCHCASE", SWIG_PyObj_FromInt((int)wxFR_NOMATCHCASE)); | |
24570 | PyDict_SetItemString(d,"FR_NOWHOLEWORD", SWIG_PyObj_FromInt((int)wxFR_NOWHOLEWORD)); | |
d14a1e28 RD |
24571 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND", PyInt_FromLong(wxEVT_COMMAND_FIND)); |
24572 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_NEXT", PyInt_FromLong(wxEVT_COMMAND_FIND_NEXT)); | |
24573 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE)); | |
24574 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_REPLACE_ALL", PyInt_FromLong(wxEVT_COMMAND_FIND_REPLACE_ALL)); | |
24575 | PyDict_SetItemString(d, "wxEVT_COMMAND_FIND_CLOSE", PyInt_FromLong(wxEVT_COMMAND_FIND_CLOSE)); | |
994141e6 RD |
24576 | PyDict_SetItemString(d,"IDM_WINDOWTILE", SWIG_PyObj_FromInt((int)4001)); |
24577 | PyDict_SetItemString(d,"IDM_WINDOWTILEHOR", SWIG_PyObj_FromInt((int)4001)); | |
24578 | PyDict_SetItemString(d,"IDM_WINDOWCASCADE", SWIG_PyObj_FromInt((int)4002)); | |
24579 | PyDict_SetItemString(d,"IDM_WINDOWICONS", SWIG_PyObj_FromInt((int)4003)); | |
24580 | PyDict_SetItemString(d,"IDM_WINDOWNEXT", SWIG_PyObj_FromInt((int)4004)); | |
24581 | PyDict_SetItemString(d,"IDM_WINDOWTILEVERT", SWIG_PyObj_FromInt((int)4005)); | |
24582 | PyDict_SetItemString(d,"FIRST_MDI_CHILD", SWIG_PyObj_FromInt((int)4100)); | |
24583 | PyDict_SetItemString(d,"LAST_MDI_CHILD", SWIG_PyObj_FromInt((int)4600)); | |
b2dc1044 RD |
24584 | SWIG_addvarlink(SWIG_globals,(char*)"PrintoutTitleStr",_wrap_PrintoutTitleStr_get, _wrap_PrintoutTitleStr_set); |
24585 | SWIG_addvarlink(SWIG_globals,(char*)"PreviewCanvasNameStr",_wrap_PreviewCanvasNameStr_get, _wrap_PreviewCanvasNameStr_set); | |
994141e6 RD |
24586 | PyDict_SetItemString(d,"PRINT_MODE_NONE", SWIG_PyObj_FromInt((int)wxPRINT_MODE_NONE)); |
24587 | PyDict_SetItemString(d,"PRINT_MODE_PREVIEW", SWIG_PyObj_FromInt((int)wxPRINT_MODE_PREVIEW)); | |
24588 | PyDict_SetItemString(d,"PRINT_MODE_FILE", SWIG_PyObj_FromInt((int)wxPRINT_MODE_FILE)); | |
24589 | PyDict_SetItemString(d,"PRINT_MODE_PRINTER", SWIG_PyObj_FromInt((int)wxPRINT_MODE_PRINTER)); | |
24590 | PyDict_SetItemString(d,"PRINTER_NO_ERROR", SWIG_PyObj_FromInt((int)wxPRINTER_NO_ERROR)); | |
24591 | PyDict_SetItemString(d,"PRINTER_CANCELLED", SWIG_PyObj_FromInt((int)wxPRINTER_CANCELLED)); | |
24592 | PyDict_SetItemString(d,"PRINTER_ERROR", SWIG_PyObj_FromInt((int)wxPRINTER_ERROR)); | |
24593 | PyDict_SetItemString(d,"PREVIEW_PRINT", SWIG_PyObj_FromInt((int)wxPREVIEW_PRINT)); | |
24594 | PyDict_SetItemString(d,"PREVIEW_PREVIOUS", SWIG_PyObj_FromInt((int)wxPREVIEW_PREVIOUS)); | |
24595 | PyDict_SetItemString(d,"PREVIEW_NEXT", SWIG_PyObj_FromInt((int)wxPREVIEW_NEXT)); | |
24596 | PyDict_SetItemString(d,"PREVIEW_ZOOM", SWIG_PyObj_FromInt((int)wxPREVIEW_ZOOM)); | |
24597 | PyDict_SetItemString(d,"PREVIEW_FIRST", SWIG_PyObj_FromInt((int)wxPREVIEW_FIRST)); | |
24598 | PyDict_SetItemString(d,"PREVIEW_LAST", SWIG_PyObj_FromInt((int)wxPREVIEW_LAST)); | |
24599 | PyDict_SetItemString(d,"PREVIEW_GOTO", SWIG_PyObj_FromInt((int)wxPREVIEW_GOTO)); | |
24600 | PyDict_SetItemString(d,"PREVIEW_DEFAULT", SWIG_PyObj_FromInt((int)wxPREVIEW_DEFAULT)); | |
24601 | PyDict_SetItemString(d,"ID_PREVIEW_CLOSE", SWIG_PyObj_FromInt((int)wxID_PREVIEW_CLOSE)); | |
24602 | PyDict_SetItemString(d,"ID_PREVIEW_NEXT", SWIG_PyObj_FromInt((int)wxID_PREVIEW_NEXT)); | |
24603 | PyDict_SetItemString(d,"ID_PREVIEW_PREVIOUS", SWIG_PyObj_FromInt((int)wxID_PREVIEW_PREVIOUS)); | |
24604 | PyDict_SetItemString(d,"ID_PREVIEW_PRINT", SWIG_PyObj_FromInt((int)wxID_PREVIEW_PRINT)); | |
24605 | PyDict_SetItemString(d,"ID_PREVIEW_ZOOM", SWIG_PyObj_FromInt((int)wxID_PREVIEW_ZOOM)); | |
24606 | PyDict_SetItemString(d,"ID_PREVIEW_FIRST", SWIG_PyObj_FromInt((int)wxID_PREVIEW_FIRST)); | |
24607 | PyDict_SetItemString(d,"ID_PREVIEW_LAST", SWIG_PyObj_FromInt((int)wxID_PREVIEW_LAST)); | |
24608 | PyDict_SetItemString(d,"ID_PREVIEW_GOTO", SWIG_PyObj_FromInt((int)wxID_PREVIEW_GOTO)); | |
d14a1e28 RD |
24609 | |
24610 | wxPyPtrTypeMap_Add("wxPrintout", "wxPyPrintout"); | |
24611 | ||
24612 | } | |
24613 |