172 contain ", " or newlines. |
172 contain ", " or newlines. |
173 </p> |
173 </p> |
174 <dl> |
174 <dl> |
175 <dt>Return:</dt> |
175 <dt>Return:</dt> |
176 <dd> |
176 <dd> |
177 persistence data (string) |
177 persistence data |
|
178 </dd> |
|
179 </dl> |
|
180 <dl> |
|
181 <dt>Return Type:</dt> |
|
182 <dd> |
|
183 str |
178 </dd> |
184 </dd> |
179 </dl> |
185 </dl> |
180 <a NAME="ModuleItem.paint" ID="ModuleItem.paint"></a> |
186 <a NAME="ModuleItem.paint" ID="ModuleItem.paint"></a> |
181 <h4>ModuleItem.paint</h4> |
187 <h4>ModuleItem.paint</h4> |
182 <b>paint</b>(<i>painter, option, widget=None</i>) |
188 <b>paint</b>(<i>painter, option, widget=None</i>) |
184 <p> |
190 <p> |
185 Public method to paint the item in local coordinates. |
191 Public method to paint the item in local coordinates. |
186 </p> |
192 </p> |
187 <dl> |
193 <dl> |
188 |
194 |
189 <dt><i>painter</i></dt> |
195 <dt><i>painter</i> (QPainter)</dt> |
190 <dd> |
196 <dd> |
191 reference to the painter object (QPainter) |
197 reference to the painter object |
192 </dd> |
198 </dd> |
193 <dt><i>option</i></dt> |
199 <dt><i>option</i> (QStyleOptionGraphicsItem)</dt> |
194 <dd> |
200 <dd> |
195 style options (QStyleOptionGraphicsItem) |
201 style options |
196 </dd> |
202 </dd> |
197 <dt><i>widget</i></dt> |
203 <dt><i>widget</i> (QWidget)</dt> |
198 <dd> |
204 <dd> |
199 optional reference to the widget painted on (QWidget) |
205 optional reference to the widget painted on |
200 </dd> |
206 </dd> |
201 </dl> |
207 </dl> |
202 <a NAME="ModuleItem.parseItemDataString" ID="ModuleItem.parseItemDataString"></a> |
208 <a NAME="ModuleItem.parseItemDataString" ID="ModuleItem.parseItemDataString"></a> |
203 <h4>ModuleItem.parseItemDataString</h4> |
209 <h4>ModuleItem.parseItemDataString</h4> |
204 <b>parseItemDataString</b>(<i>version, data</i>) |
210 <b>parseItemDataString</b>(<i>version, data</i>) |
206 <p> |
212 <p> |
207 Public method to parse the given persistence data. |
213 Public method to parse the given persistence data. |
208 </p> |
214 </p> |
209 <dl> |
215 <dl> |
210 |
216 |
211 <dt><i>version</i></dt> |
217 <dt><i>version</i> (str)</dt> |
212 <dd> |
218 <dd> |
213 version of the data (string) |
219 version of the data |
214 </dd> |
220 </dd> |
215 <dt><i>data</i></dt> |
221 <dt><i>data</i> (str)</dt> |
216 <dd> |
222 <dd> |
217 persisted data to be parsed (string) |
223 persisted data to be parsed |
218 </dd> |
224 </dd> |
219 </dl> |
225 </dl> |
220 <dl> |
226 <dl> |
221 <dt>Return:</dt> |
227 <dt>Return:</dt> |
222 <dd> |
228 <dd> |
223 flag indicating success (boolean) |
229 flag indicating success |
|
230 </dd> |
|
231 </dl> |
|
232 <dl> |
|
233 <dt>Return Type:</dt> |
|
234 <dd> |
|
235 bool |
224 </dd> |
236 </dd> |
225 </dl> |
237 </dl> |
226 <a NAME="ModuleItem.setModel" ID="ModuleItem.setModel"></a> |
238 <a NAME="ModuleItem.setModel" ID="ModuleItem.setModel"></a> |
227 <h4>ModuleItem.setModel</h4> |
239 <h4>ModuleItem.setModel</h4> |
228 <b>setModel</b>(<i>model</i>) |
240 <b>setModel</b>(<i>model</i>) |
288 <p> |
300 <p> |
289 Constructor |
301 Constructor |
290 </p> |
302 </p> |
291 <dl> |
303 <dl> |
292 |
304 |
293 <dt><i>name</i></dt> |
305 <dt><i>name</i> (str)</dt> |
294 <dd> |
306 <dd> |
295 the module name (string) |
307 the module name |
296 </dd> |
308 </dd> |
297 <dt><i>classlist</i></dt> |
309 <dt><i>classlist</i> (list of str)</dt> |
298 <dd> |
310 <dd> |
299 list of class names (list of strings) |
311 list of class names |
300 </dd> |
312 </dd> |
301 </dl> |
313 </dl> |
302 <a NAME="ModuleModel.addClass" ID="ModuleModel.addClass"></a> |
314 <a NAME="ModuleModel.addClass" ID="ModuleModel.addClass"></a> |
303 <h4>ModuleModel.addClass</h4> |
315 <h4>ModuleModel.addClass</h4> |
304 <b>addClass</b>(<i>classname</i>) |
316 <b>addClass</b>(<i>classname</i>) |
306 <p> |
318 <p> |
307 Public method to add a class to the module model. |
319 Public method to add a class to the module model. |
308 </p> |
320 </p> |
309 <dl> |
321 <dl> |
310 |
322 |
311 <dt><i>classname</i></dt> |
323 <dt><i>classname</i> (str)</dt> |
312 <dd> |
324 <dd> |
313 class name to be added (string) |
325 class name to be added |
314 </dd> |
326 </dd> |
315 </dl> |
327 </dl> |
316 <a NAME="ModuleModel.getClasses" ID="ModuleModel.getClasses"></a> |
328 <a NAME="ModuleModel.getClasses" ID="ModuleModel.getClasses"></a> |
317 <h4>ModuleModel.getClasses</h4> |
329 <h4>ModuleModel.getClasses</h4> |
318 <b>getClasses</b>(<i></i>) |
330 <b>getClasses</b>(<i></i>) |