PLplot  5.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
sipplplot_pyqt4cmodule.cpp
Go to the documentation of this file.
1 /*
2  * Module code.
3  *
4  * Generated by SIP 4.14.7 on Wed Aug 14 07:31:26 2013
5  */
6 
7 #include "sipAPIplplot_pyqt4.h"
8 
9 #line 34 "/usr/share/sip/PyQt4/QtCore/qobject.sip"
10 #include <qobject.h>
11 #line 12 "./sipplplot_pyqt4cmodule.cpp"
12 #line 66 "/builddir/build/BUILD/plplot-5.9.9-svn12479/bindings/qt_gui/pyqt4/plplot_pyqt4.sip"
13 #include "qt.h"
14 #line 15 "./sipplplot_pyqt4cmodule.cpp"
15 #line 33 "/builddir/build/BUILD/plplot-5.9.9-svn12479/bindings/qt_gui/pyqt4/plplot_pyqt4.sip"
16 #include "qt.h"
17 #line 18 "./sipplplot_pyqt4cmodule.cpp"
18 
19 /* Define the strings used by this module. */
20 const char sipStrings_plplot_pyqt4[] = {
21  'P', 'y', 'Q', 't', '4', '.', 'Q', 't', 'C', 'o', 'r', 'e', '.', 'p', 'y', 'q', 't', 'W', 'r', 'a', 'p', 'p', 'e', 'r', 'T', 'y', 'p', 'e', 0,
22  'c', 'a', 'p', 't', 'u', 'r', 'e', 'M', 'o', 'u', 's', 'e', 'P', 'l', 'o', 't', 'C', 'o', 'o', 'r', 'd', 's', 0,
23  'w', 'i', 'n', 'd', 'o', 'w', 'A', 'c', 't', 'i', 'v', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 0,
24  'm', 'o', 'u', 's', 'e', 'D', 'o', 'u', 'b', 'l', 'e', 'C', 'l', 'i', 'c', 'k', 'E', 'v', 'e', 'n', 't', 0,
25  'd', 'e', 'f', 'a', 'u', 'l', 't', 'B', 'u', 't', 't', 'o', 'n', 'N', 'u', 'm', 'b', 'e', 'r', 0,
26  'f', 'o', 'c', 'u', 's', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'h', 'i', 'l', 'd', 0,
27  'e', 's', 'c', 'a', 'p', 'e', 'B', 'u', 't', 't', 'o', 'n', 'N', 'u', 'm', 'b', 'e', 'r', 0,
28  'f', 'o', 'c', 'u', 's', 'N', 'e', 'x', 't', 'P', 'r', 'e', 'v', 'C', 'h', 'i', 'l', 'd', 0,
29  'g', 'e', 't', 'P', 'l', 'o', 't', 'P', 'a', 'r', 'a', 'm', 'e', 't', 'e', 'r', 's', 0,
30  'd', 'e', 's', 't', 'r', 'o', 'y', 'S', 'u', 'b', 'W', 'i', 'n', 'd', 'o', 'w', 's', 0,
31  'r', 'e', 's', 'e', 't', 'I', 'n', 'p', 'u', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
32  'm', 'o', 'u', 's', 'e', 'R', 'e', 'l', 'e', 'a', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
33  's', 'e', 'n', 'd', 'e', 'r', 'S', 'i', 'g', 'n', 'a', 'l', 'I', 'n', 'd', 'e', 'x', 0,
34  'd', 'e', 's', 't', 'r', 'o', 'y', 'O', 'l', 'd', 'W', 'i', 'n', 'd', 'o', 'w', 0,
35  'i', 'n', 'i', 't', 'i', 'a', 'l', 'i', 'z', 'e', 'W', 'i', 'n', 'd', 'o', 'w', 0,
36  'u', 'p', 'd', 'a', 't', 'e', 'M', 'i', 'c', 'r', 'o', 'F', 'o', 'c', 'u', 's', 0,
37  'c', 'o', 'n', 't', 'e', 'x', 't', 'M', 'e', 'n', 'u', 'E', 'v', 'e', 'n', 't', 0,
38  'i', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'E', 'v', 'e', 'n', 't', 0,
39  'i', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'Q', 'u', 'e', 'r', 'y', 0,
40  'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'N', 'o', 't', 'i', 'f', 'y', 0,
41  'a', 's', 'p', 'e', 'c', 't', 'R', 'a', 't', 'i', 'o', 'M', 'o', 'd', 'e', 0,
42  'd', 'e', 'v', 'i', 'c', 'e', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
43  'm', 'i', 'n', 'i', 'm', 'u', 'm', 'S', 'i', 'z', 'e', 'H', 'i', 'n', 't', 0,
44  'm', 'o', 'u', 's', 'e', 'P', 'r', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 0,
45  'k', 'e', 'y', 'R', 'e', 'l', 'e', 'a', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
46  'l', 'a', 'n', 'g', 'u', 'a', 'g', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 0,
47  'f', 'o', 'c', 'u', 's', 'N', 'e', 'x', 't', 'C', 'h', 'i', 'l', 'd', 0,
48  's', 'e', 'l', 'e', 'c', 't', 'e', 'd', 'F', 'i', 'l', 't', 'e', 'r', 0,
49  'h', 'e', 'i', 'g', 'h', 't', 'F', 'o', 'r', 'W', 'i', 'd', 't', 'h', 0,
50  'd', 'r', 'a', 'g', 'L', 'e', 'a', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
51  'd', 'r', 'a', 'g', 'E', 'n', 't', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
52  'm', 'o', 'u', 's', 'e', 'M', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
53  'c', 'h', 'a', 'n', 'g', 'e', 'd', 'S', 'i', 'g', 'n', 'a', 'l', 0,
54  'p', 'a', 'l', 'e', 't', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 0,
55  'e', 'n', 'a', 'b', 'l', 'e', 'd', 'C', 'h', 'a', 'n', 'g', 'e', 0,
56  'd', 'e', 's', 't', 'r', 'o', 'y', 'W', 'i', 'n', 'd', 'o', 'w', 0,
57  't', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'M', 'o', 'd', 'e', 0,
58  't', 'h', 'r', 'e', 's', 'h', 'o', 'l', 'd', 'T', 'i', 'm', 'e', 0,
59  'd', 'r', 'a', 'g', 'M', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
60  'f', 'o', 'c', 'u', 's', 'O', 'u', 't', 'E', 'v', 'e', 'n', 't', 0,
61  'k', 'e', 'y', 'P', 'r', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 0,
62  's', 'o', 'u', 'r', 'c', 'e', 'R', 'e', 'g', 'i', 'o', 'n', 0,
63  't', 'a', 'r', 'g', 'e', 't', 'O', 'f', 'f', 's', 'e', 't', 0,
64  'b', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
65  'm', 'i', 'd', 'L', 'i', 'n', 'e', 'W', 'i', 'd', 't', 'h', 0,
66  'f', 'o', 'c', 'u', 's', 'I', 'n', 'E', 'v', 'e', 'n', 't', 0,
67  'p', 'l', 'p', 'l', 'o', 't', '_', 'p', 'y', 'q', 't', '4', 0,
68  'p', 'l', 'f', 'r', 'e', 'e', 'q', 't', 'd', 'e', 'v', 0,
69  'Q', 't', 'E', 'x', 't', 'W', 'i', 'd', 'g', 'e', 't', 0,
70  'c', 'l', 'e', 'a', 'r', 'W', 'i', 'd', 'g', 'e', 't', 0,
71  't', 'a', 'b', 'l', 'e', 't', 'E', 'v', 'e', 'n', 't', 0,
72  'b', 'u', 't', 't', 'o', 'n', '2', 'T', 'e', 'x', 't', 0,
73  'b', 'u', 't', 't', 'o', 'n', '1', 'T', 'e', 'x', 't', 0,
74  'a', 'c', 't', 'i', 'o', 'n', 'E', 'v', 'e', 'n', 't', 0,
75  'p', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 0,
76  'r', 'e', 's', 'i', 'z', 'e', 'E', 'v', 'e', 'n', 't', 0,
77  'c', 'h', 'a', 'n', 'g', 'e', 'E', 'v', 'e', 'n', 't', 0,
78  'c', 'u', 's', 't', 'o', 'm', 'E', 'v', 'e', 'n', 't', 0,
79  'e', 'v', 'e', 'n', 't', 'F', 'i', 'l', 't', 'e', 'r', 0,
80  'p', 'l', 's', 'e', 't', 'q', 't', 'd', 'e', 'v', 0,
81  'Q', 't', 'P', 'L', 'W', 'i', 'd', 'g', 'e', 't', 0,
82  'Q', 't', 'P', 'L', 'D', 'r', 'i', 'v', 'e', 'r', 0,
83  'f', 'o', 'n', 't', 'C', 'h', 'a', 'n', 'g', 'e', 0,
84  'e', 'n', 't', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
85  'l', 'e', 'a', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
86  'c', 'o', 'l', 'u', 'm', 'n', 'S', 'p', 'a', 'n', 0,
87  'c', 'o', 'n', 's', 't', 'r', 'a', 'i', 'n', 't', 0,
88  's', 'e', 't', 'V', 'i', 's', 'i', 'b', 'l', 'e', 0,
89  'c', 'l', 'o', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
90  'r', 'e', 'p', 'e', 'a', 't', 'T', 'i', 'm', 'e', 0,
91  'w', 'h', 'e', 'e', 'l', 'E', 'v', 'e', 'n', 't', 0,
92  'p', 'a', 'i', 'n', 't', 'E', 'v', 'e', 'n', 't', 0,
93  'f', 'i', 'e', 'l', 'd', 'W', 'i', 'd', 't', 'h', 0,
94  'c', 'h', 'i', 'l', 'd', 'E', 'v', 'e', 'n', 't', 0,
95  't', 'i', 'm', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
96  'o', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
97  'm', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
98  'l', 'i', 'n', 'e', 'W', 'i', 'd', 't', 'h', 0,
99  's', 'h', 'o', 'w', 'E', 'v', 'e', 'n', 't', 0,
100  'h', 'i', 'd', 'e', 'E', 'v', 'e', 'n', 't', 0,
101  'd', 'r', 'o', 'p', 'E', 'v', 'e', 'n', 't', 0,
102  'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
103  'a', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
104  'r', 'e', 'c', 'e', 'i', 'v', 'e', 'r', 's', 0,
105  'p', 'r', 'e', 'c', 'i', 's', 'i', 'o', 'n', 0,
106  'n', 'e', 'x', 't', 'P', 'a', 'g', 'e', 0,
107  'f', 'i', 'l', 'l', 'R', 'u', 'l', 'e', 0,
108  't', 'a', 'b', 'A', 'r', 'r', 'a', 'y', 0,
109  't', 'a', 'b', 'S', 't', 'o', 'p', 's', 0,
110  'u', 's', 'e', 'r', 'D', 'a', 't', 'a', 0,
111  's', 'i', 'z', 'e', 'H', 'i', 'n', 't', 0,
112  's', 'h', 'o', 'r', 't', 'c', 'u', 't', 0,
113  'b', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
114  'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
115  'f', 'i', 'l', 'l', 'C', 'h', 'a', 'r', 0,
116  'p', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
117  'd', 'e', 's', 't', 'r', 'o', 'y', 0,
118  'e', 'x', 'p', 'o', 's', 'e', 'd', 0,
119  'b', 'u', 't', 't', 'o', 'n', '2', 0,
120  'b', 'u', 't', 't', 'o', 'n', '1', 0,
121  'q', 'u', 'a', 'l', 'i', 't', 'y', 0,
122  'd', 'e', 'v', 'T', 'y', 'p', 'e', 0,
123  'y', 'M', 'a', 'r', 'g', 'i', 'n', 0,
124  'x', 'M', 'a', 'r', 'g', 'i', 'n', 0,
125  'r', 'o', 'w', 'S', 'p', 'a', 'n', 0,
126  'c', 'a', 'p', 't', 'i', 'o', 'n', 0,
127  'o', 'p', 't', 'i', 'o', 'n', 's', 0,
128  'e', 'n', 'a', 'b', 'l', 'e', 'd', 0,
129  'f', 'i', 'l', 't', 'e', 'r', 's', 0,
130  'y', 'R', 'o', 'u', 'n', 'd', 0,
131  'x', 'R', 'o', 'u', 'n', 'd', 0,
132  'm', 'e', 't', 'r', 'i', 'c', 0,
133  'l', 'a', 'y', 'e', 'r', 's', 0,
134  'w', 'i', 'n', 'd', 'o', 'w', 0,
135  's', 'u', 'n', 'k', 'e', 'n', 0,
136  'o', 'p', 't', 'i', 'o', 'n', 0,
137  'w', 'i', 'd', 'g', 'e', 't', 0,
138  'p', 'r', 'o', 'p', 'e', 'r', 0,
139  's', 'e', 'n', 'd', 'e', 'r', 0,
140  'v', 'a', 'l', 'u', 'e', '9', 0,
141  'v', 'a', 'l', 'u', 'e', '8', 0,
142  'v', 'a', 'l', 'u', 'e', '7', 0,
143  'v', 'a', 'l', 'u', 'e', '6', 0,
144  'v', 'a', 'l', 'u', 'e', '5', 0,
145  'v', 'a', 'l', 'u', 'e', '4', 0,
146  'v', 'a', 'l', 'u', 'e', '3', 0,
147  'v', 'a', 'l', 'u', 'e', '0', 0,
148  's', 'y', 's', 't', 'e', 'm', 0,
149  's', 'y', 'm', 'b', 'o', 'l', 0,
150  's', 'u', 'f', 'f', 'i', 'x', 0,
151  'p', 'r', 'e', 'f', 'i', 'x', 0,
152  'f', 'o', 'r', 'm', 'a', 't', 0,
153  'v', 'a', 'l', 'u', 'e', '2', 0,
154  'v', 'a', 'l', 'u', 'e', '1', 0,
155  'a', 'c', 't', 'i', 'o', 'n', 0,
156  'c', 'o', 'l', 'u', 'm', 'n', 0,
157  'o', 'f', 'f', 's', 'e', 't', 0,
158  'c', 'r', 'e', 'a', 't', 'e', 0,
159  'f', 'i', 'l', 't', 'e', 'r', 0,
160  'o', 'b', 'j', 'e', 'c', 't', 0,
161  'p', 'a', 'r', 'e', 'n', 't', 0,
162  'b', 'r', 'u', 's', 'h', 0,
163  'h', 'i', 'n', 't', 's', 0,
164  'f', 'l', 'a', 'g', 's', 0,
165  'e', 'v', 'e', 'n', 't', 0,
166  'm', 's', 'e', 'c', 's', 0,
167  's', 't', 'a', 't', 'e', 0,
168  'm', 'o', 'd', 'e', 0,
169  'n', 'a', 'm', 'e', 0,
170  'b', 'a', 's', 'e', 0,
171  'f', 'i', 'l', 'l', 0,
172  'f', 'r', 'o', 'm', 0,
173  's', 'o', 'r', 't', 0,
174  'p', 'e', 'n', 0,
175  'e', 'n', 'd', 0,
176  'p', 'o', 's', 0,
177  's', 'w', 0,
178  's', 'y', 0,
179  's', 'x', 0,
180 };
181 
182 
183 extern "C" {static PyObject *func_plfreeqtdev(PyObject *,PyObject *);}
184 static PyObject *func_plfreeqtdev(PyObject *,PyObject *sipArgs)
185 {
186  PyObject *sipParseErr = NULL;
187 
188  {
189  if (sipParseArgs(&sipParseErr, sipArgs, ""))
190  {
191  Py_BEGIN_ALLOW_THREADS
192  plfreeqtdev();
193  Py_END_ALLOW_THREADS
194 
195  Py_INCREF(Py_None);
196  return Py_None;
197  }
198  }
199 
200  /* Raise an exception if the arguments couldn't be parsed. */
201  sipNoFunction(sipParseErr, sipName_plfreeqtdev, NULL);
202 
203  return NULL;
204 }
205 
206 
207 extern "C" {static PyObject *func_plsetqtdev(PyObject *,PyObject *);}
208 static PyObject *func_plsetqtdev(PyObject *,PyObject *sipArgs)
209 {
210  PyObject *sipParseErr = NULL;
211 
212  {
213  QtExtWidget * a0;
214 
215  if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QtExtWidget, &a0))
216  {
217  Py_BEGIN_ALLOW_THREADS
218  plsetqtdev(a0);
219  Py_END_ALLOW_THREADS
220 
221  Py_INCREF(Py_None);
222  return Py_None;
223  }
224  }
225 
226  /* Raise an exception if the arguments couldn't be parsed. */
227  sipNoFunction(sipParseErr, sipName_plsetqtdev, NULL);
228 
229  return NULL;
230 }
231 
232 
233 /*
234  * This defines each type in this module.
235  */
236 static sipTypeDef *typesTable[] = {
237  &sipTypeDef_plplot_pyqt4_QtExtWidget.super.ctd_base,
238  &sipTypeDef_plplot_pyqt4_QtPLDriver.super.ctd_base,
239  &sipTypeDef_plplot_pyqt4_QtPLWidget.super.ctd_base,
240 };
241 
242 
243 /* This defines the modules that this module needs to import. */
244 static sipImportedModuleDef importsTable[] = {
245  {"PyQt4.QtCore", 1, NULL},
246  {"PyQt4.QtGui", -1, NULL},
247  {NULL, -1, NULL}
248 };
249 
250 
251 /* This defines this module. */
252 sipExportedModuleDef sipModuleAPI_plplot_pyqt4 = {
253  0,
254  SIP_API_MINOR_NR,
256  0,
257  0,
259  importsTable,
260  NULL,
261  3,
262  typesTable,
263  NULL,
264  0,
265  NULL,
266  0,
267  NULL,
268  NULL,
269  NULL,
270  NULL,
271  {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
272  NULL,
273  NULL,
274  NULL,
275  NULL,
276  NULL,
277  NULL,
278  NULL,
279  NULL
280 };
281 
282 
283 /* The SIP API and the APIs of any imported modules. */
284 const sipAPIDef *sipAPI_plplot_pyqt4;
285 const sipExportedModuleDef *sipModuleAPI_plplot_pyqt4_QtCore;
286 const sipExportedModuleDef *sipModuleAPI_plplot_pyqt4_QtGui;
287 
291 
292 
293 /* The Python module initialisation function. */
294 #if PY_MAJOR_VERSION >= 3
295 #define SIP_MODULE_ENTRY PyInit_plplot_pyqt4
296 #define SIP_MODULE_TYPE PyObject *
297 #define SIP_MODULE_DISCARD(r) Py_DECREF(r)
298 #define SIP_MODULE_RETURN(r) return (r)
299 #else
300 #define SIP_MODULE_ENTRY initplplot_pyqt4
301 #define SIP_MODULE_TYPE void
302 #define SIP_MODULE_DISCARD(r)
303 #define SIP_MODULE_RETURN(r) return
304 #endif
305 
306 #if defined(SIP_STATIC_MODULE)
308 #else
309 PyMODINIT_FUNC SIP_MODULE_ENTRY()
310 #endif
311 {
312  static PyMethodDef sip_methods[] = {
313  {SIP_MLNAME_CAST(sipName_plfreeqtdev), func_plfreeqtdev, METH_VARARGS, NULL},
314  {SIP_MLNAME_CAST(sipName_plsetqtdev), func_plsetqtdev, METH_VARARGS, NULL},
315  {0, 0, 0, 0}
316  };
317 
318 #if PY_MAJOR_VERSION >= 3
319  static PyModuleDef sip_module_def = {
320  PyModuleDef_HEAD_INIT,
321  "plplot_pyqt4",
322  NULL,
323  -1,
324  sip_methods,
325  NULL,
326  NULL,
327  NULL,
328  NULL
329  };
330 #endif
331 
332  PyObject *sipModule, *sipModuleDict;
333  PyObject *sip_sipmod, *sip_capiobj;
334 
335  /* Initialise the module and get it's dictionary. */
336 #if PY_MAJOR_VERSION >= 3
337  sipModule = PyModule_Create(&sip_module_def);
338 #elif PY_VERSION_HEX >= 0x02050000
339  sipModule = Py_InitModule(sipName_plplot_pyqt4, sip_methods);
340 #else
341  sipModule = Py_InitModule(const_cast<char *>(sipName_plplot_pyqt4), sip_methods);
342 #endif
343 
344  if (sipModule == NULL)
345  SIP_MODULE_RETURN(NULL);
346 
347  sipModuleDict = PyModule_GetDict(sipModule);
348 
349  /* Get the SIP module's API. */
350 #if PY_VERSION_HEX >= 0x02050000
351  sip_sipmod = PyImport_ImportModule(SIP_MODULE_NAME);
352 #else
353  sip_sipmod = PyImport_ImportModule(const_cast<char *>(SIP_MODULE_NAME));
354 #endif
355 
356  if (sip_sipmod == NULL)
357  {
358  SIP_MODULE_DISCARD(sipModule);
359  SIP_MODULE_RETURN(NULL);
360  }
361 
362  sip_capiobj = PyDict_GetItemString(PyModule_GetDict(sip_sipmod), "_C_API");
363  Py_DECREF(sip_sipmod);
364 
365 #if defined(SIP_USE_PYCAPSULE)
366  if (sip_capiobj == NULL || !PyCapsule_CheckExact(sip_capiobj))
367 #else
368  if (sip_capiobj == NULL || !PyCObject_Check(sip_capiobj))
369 #endif
370  {
371  SIP_MODULE_DISCARD(sipModule);
372  SIP_MODULE_RETURN(NULL);
373  }
374 
375 #if defined(SIP_USE_PYCAPSULE)
376  sipAPI_plplot_pyqt4 = reinterpret_cast<const sipAPIDef *>(PyCapsule_GetPointer(sip_capiobj, SIP_MODULE_NAME "._C_API"));
377 #else
378  sipAPI_plplot_pyqt4 = reinterpret_cast<const sipAPIDef *>(PyCObject_AsVoidPtr(sip_capiobj));
379 #endif
380 
381 #if defined(SIP_USE_PYCAPSULE)
382  if (sipAPI_plplot_pyqt4 == NULL)
383  {
384  SIP_MODULE_DISCARD(sipModule);
385  SIP_MODULE_RETURN(NULL);
386  }
387 #endif
388 
389  /* Export the module and publish it's API. */
390  if (sipExportModule(&sipModuleAPI_plplot_pyqt4,SIP_API_MAJOR_NR,SIP_API_MINOR_NR,0) < 0)
391  {
392  SIP_MODULE_DISCARD(sipModule);
394  }
395 
399 
400  /* Initialise the module now all its dependencies have been set up. */
401  if (sipInitModule(&sipModuleAPI_plplot_pyqt4,sipModuleDict) < 0)
402  {
403  SIP_MODULE_DISCARD(sipModule);
405  }
406 
407  /* Get the APIs of the modules that this one is dependent on. */
410 
411  SIP_MODULE_RETURN(sipModule);
412 }