Documentation/Source/eric5.Graphics.PackageItem.html

changeset 2031
c36c2eb62a75
parent 1229
a8207dc73672
child 2032
704593d042fe
equal deleted inserted replaced
2030:db11a2fe9bbc 2031:c36c2eb62a75
68 <td>Method to calculate the size of the package widget.</td> 68 <td>Method to calculate the size of the package widget.</td>
69 </tr><tr> 69 </tr><tr>
70 <td><a href="#PackageItem.__createTexts">__createTexts</a></td> 70 <td><a href="#PackageItem.__createTexts">__createTexts</a></td>
71 <td>Private method to create the text items of the class item.</td> 71 <td>Private method to create the text items of the class item.</td>
72 </tr><tr> 72 </tr><tr>
73 <td><a href="#PackageItem.buildItemDataString">buildItemDataString</a></td>
74 <td>Public method to build a string to persist the specific item data.</td>
75 </tr><tr>
73 <td><a href="#PackageItem.paint">paint</a></td> 76 <td><a href="#PackageItem.paint">paint</a></td>
74 <td>Public method to paint the item in local coordinates.</td> 77 <td>Public method to paint the item in local coordinates.</td>
78 </tr><tr>
79 <td><a href="#PackageItem.parseItemDataString">parseItemDataString</a></td>
80 <td>Public method to parse the given persistence data.</td>
75 </tr><tr> 81 </tr><tr>
76 <td><a href="#PackageItem.setModel">setModel</a></td> 82 <td><a href="#PackageItem.setModel">setModel</a></td>
77 <td>Method to set the package model.</td> 83 <td>Method to set the package model.</td>
78 </tr> 84 </tr>
79 </table> 85 </table>
118 </p><a NAME="PackageItem.__createTexts" ID="PackageItem.__createTexts"></a> 124 </p><a NAME="PackageItem.__createTexts" ID="PackageItem.__createTexts"></a>
119 <h4>PackageItem.__createTexts</h4> 125 <h4>PackageItem.__createTexts</h4>
120 <b>__createTexts</b>(<i></i>) 126 <b>__createTexts</b>(<i></i>)
121 <p> 127 <p>
122 Private method to create the text items of the class item. 128 Private method to create the text items of the class item.
123 </p><a NAME="PackageItem.paint" ID="PackageItem.paint"></a> 129 </p><a NAME="PackageItem.buildItemDataString" ID="PackageItem.buildItemDataString"></a>
130 <h4>PackageItem.buildItemDataString</h4>
131 <b>buildItemDataString</b>(<i></i>)
132 <p>
133 Public method to build a string to persist the specific item data.
134 </p><p>
135 This string must start with ", " and should be built like
136 "attribute=value" with pairs separated by ", ". value must not contain ", "
137 or newlines.
138 </p><dl>
139 <dt>Returns:</dt>
140 <dd>
141 persistence data (string)
142 </dd>
143 </dl><a NAME="PackageItem.paint" ID="PackageItem.paint"></a>
124 <h4>PackageItem.paint</h4> 144 <h4>PackageItem.paint</h4>
125 <b>paint</b>(<i>painter, option, widget=None</i>) 145 <b>paint</b>(<i>painter, option, widget=None</i>)
126 <p> 146 <p>
127 Public method to paint the item in local coordinates. 147 Public method to paint the item in local coordinates.
128 </p><dl> 148 </p><dl>
133 <dd> 153 <dd>
134 style options (QStyleOptionGraphicsItem) 154 style options (QStyleOptionGraphicsItem)
135 </dd><dt><i>widget</i></dt> 155 </dd><dt><i>widget</i></dt>
136 <dd> 156 <dd>
137 optional reference to the widget painted on (QWidget) 157 optional reference to the widget painted on (QWidget)
158 </dd>
159 </dl><a NAME="PackageItem.parseItemDataString" ID="PackageItem.parseItemDataString"></a>
160 <h4>PackageItem.parseItemDataString</h4>
161 <b>parseItemDataString</b>(<i>data</i>)
162 <p>
163 Public method to parse the given persistence data.
164 </p><dl>
165 <dt><i>data</i></dt>
166 <dd>
167 persisted data to be parsed (string)
138 </dd> 168 </dd>
139 </dl><a NAME="PackageItem.setModel" ID="PackageItem.setModel"></a> 169 </dl><a NAME="PackageItem.setModel" ID="PackageItem.setModel"></a>
140 <h4>PackageItem.setModel</h4> 170 <h4>PackageItem.setModel</h4>
141 <b>setModel</b>(<i>model</i>) 171 <b>setModel</b>(<i>model</i>)
142 <p> 172 <p>

eric ide

mercurial