43 <h2>MultiProjectBrowser</h2> |
43 <h2>MultiProjectBrowser</h2> |
44 <p> |
44 <p> |
45 Class implementing the multi project browser. |
45 Class implementing the multi project browser. |
46 </p> |
46 </p> |
47 <h3>Derived from</h3> |
47 <h3>Derived from</h3> |
48 QListWidget |
48 QTreeWidget |
49 <h3>Class Attributes</h3> |
49 <h3>Class Attributes</h3> |
50 <table> |
50 <table> |
51 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
52 </table> |
52 </table> |
53 <h3>Class Methods</h3> |
53 <h3>Class Methods</h3> |
72 <td><a href="#MultiProjectBrowser.__contextMenuRequested">__contextMenuRequested</a></td> |
72 <td><a href="#MultiProjectBrowser.__contextMenuRequested">__contextMenuRequested</a></td> |
73 <td>Private slot to show the context menu.</td> |
73 <td>Private slot to show the context menu.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#MultiProjectBrowser.__createPopupMenu">__createPopupMenu</a></td> |
75 <td><a href="#MultiProjectBrowser.__createPopupMenu">__createPopupMenu</a></td> |
76 <td>Private method to create the popup menu.</td> |
76 <td>Private method to create the popup menu.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#MultiProjectBrowser.__findCategoryItem">__findCategoryItem</a></td> |
|
79 <td>Private method to find the item for a category.</td> |
77 </tr><tr> |
80 </tr><tr> |
78 <td><a href="#MultiProjectBrowser.__findProjectItem">__findProjectItem</a></td> |
81 <td><a href="#MultiProjectBrowser.__findProjectItem">__findProjectItem</a></td> |
79 <td>Private method to search a specific project item.</td> |
82 <td>Private method to search a specific project item.</td> |
80 </tr><tr> |
83 </tr><tr> |
81 <td><a href="#MultiProjectBrowser.__multiProjectClosed">__multiProjectClosed</a></td> |
84 <td><a href="#MultiProjectBrowser.__multiProjectClosed">__multiProjectClosed</a></td> |
162 </dl><a NAME="MultiProjectBrowser.__createPopupMenu" ID="MultiProjectBrowser.__createPopupMenu"></a> |
165 </dl><a NAME="MultiProjectBrowser.__createPopupMenu" ID="MultiProjectBrowser.__createPopupMenu"></a> |
163 <h4>MultiProjectBrowser.__createPopupMenu</h4> |
166 <h4>MultiProjectBrowser.__createPopupMenu</h4> |
164 <b>__createPopupMenu</b>(<i></i>) |
167 <b>__createPopupMenu</b>(<i></i>) |
165 <p> |
168 <p> |
166 Private method to create the popup menu. |
169 Private method to create the popup menu. |
167 </p><a NAME="MultiProjectBrowser.__findProjectItem" ID="MultiProjectBrowser.__findProjectItem"></a> |
170 </p><a NAME="MultiProjectBrowser.__findCategoryItem" ID="MultiProjectBrowser.__findCategoryItem"></a> |
|
171 <h4>MultiProjectBrowser.__findCategoryItem</h4> |
|
172 <b>__findCategoryItem</b>(<i>category</i>) |
|
173 <p> |
|
174 Private method to find the item for a category. |
|
175 </p><dl> |
|
176 <dt><i>category</i></dt> |
|
177 <dd> |
|
178 category to search for (string) |
|
179 </dd> |
|
180 </dl><dl> |
|
181 <dt>Returns:</dt> |
|
182 <dd> |
|
183 reference to the category item or None, if there is |
|
184 no such item (QTreeWidgetItem or None) |
|
185 </dd> |
|
186 </dl><a NAME="MultiProjectBrowser.__findProjectItem" ID="MultiProjectBrowser.__findProjectItem"></a> |
168 <h4>MultiProjectBrowser.__findProjectItem</h4> |
187 <h4>MultiProjectBrowser.__findProjectItem</h4> |
169 <b>__findProjectItem</b>(<i>project</i>) |
188 <b>__findProjectItem</b>(<i>project</i>) |
170 <p> |
189 <p> |
171 Private method to search a specific project item. |
190 Private method to search a specific project item. |
172 </p><dl> |
191 </p><dl> |
175 reference to the project data dictionary |
194 reference to the project data dictionary |
176 </dd> |
195 </dd> |
177 </dl><dl> |
196 </dl><dl> |
178 <dt>Returns:</dt> |
197 <dt>Returns:</dt> |
179 <dd> |
198 <dd> |
180 row number of the project, -1 if not found (integer) |
199 reference to the item (QTreeWidgetItem) or None |
181 </dd> |
200 </dd> |
182 </dl><a NAME="MultiProjectBrowser.__multiProjectClosed" ID="MultiProjectBrowser.__multiProjectClosed"></a> |
201 </dl><a NAME="MultiProjectBrowser.__multiProjectClosed" ID="MultiProjectBrowser.__multiProjectClosed"></a> |
183 <h4>MultiProjectBrowser.__multiProjectClosed</h4> |
202 <h4>MultiProjectBrowser.__multiProjectClosed</h4> |
184 <b>__multiProjectClosed</b>(<i></i>) |
203 <b>__multiProjectClosed</b>(<i></i>) |
185 <p> |
204 <p> |
200 <p> |
219 <p> |
201 Private slot to open a project. |
220 Private slot to open a project. |
202 </p><dl> |
221 </p><dl> |
203 <dt><i>itm</i></dt> |
222 <dt><i>itm</i></dt> |
204 <dd> |
223 <dd> |
205 reference to the project item to be opened (QListWidgetItem) |
224 reference to the project item to be opened (QTreeWidgetItem) |
206 </dd> |
225 </dd> |
207 </dl><a NAME="MultiProjectBrowser.__projectAdded" ID="MultiProjectBrowser.__projectAdded"></a> |
226 </dl><a NAME="MultiProjectBrowser.__projectAdded" ID="MultiProjectBrowser.__projectAdded"></a> |
208 <h4>MultiProjectBrowser.__projectAdded</h4> |
227 <h4>MultiProjectBrowser.__projectAdded</h4> |
209 <b>__projectAdded</b>(<i>project</i>) |
228 <b>__projectAdded</b>(<i>project</i>) |
210 <p> |
229 <p> |
255 <p> |
274 <p> |
256 Private method to set the data of a project item. |
275 Private method to set the data of a project item. |
257 </p><dl> |
276 </p><dl> |
258 <dt><i>itm</i></dt> |
277 <dt><i>itm</i></dt> |
259 <dd> |
278 <dd> |
260 reference to the item to be set (QListWidgetItem) |
279 reference to the item to be set (QTreeWidgetItem) |
261 </dd><dt><i>project</i></dt> |
280 </dd><dt><i>project</i></dt> |
262 <dd> |
281 <dd> |
263 reference to the project data dictionary |
282 reference to the project data dictionary |
264 </dd> |
283 </dd> |
265 </dl><a NAME="MultiProjectBrowser.__showProjectProperties" ID="MultiProjectBrowser.__showProjectProperties"></a> |
284 </dl><a NAME="MultiProjectBrowser.__showProjectProperties" ID="MultiProjectBrowser.__showProjectProperties"></a> |