56 </table> |
56 </table> |
57 <h3>Methods</h3> |
57 <h3>Methods</h3> |
58 <table> |
58 <table> |
59 <tr> |
59 <tr> |
60 <td><a href="#AddBookmarkDialog.__init__">AddBookmarkDialog</a></td> |
60 <td><a href="#AddBookmarkDialog.__init__">AddBookmarkDialog</a></td> |
61 <td>Constructor</td> |
61 <td>Constructor</td> |
62 </tr><tr> |
62 </tr><tr> |
63 <td><a href="#AddBookmarkDialog.accept">accept</a></td> |
63 <td><a href="#AddBookmarkDialog.accept">accept</a></td> |
64 <td>Public slot handling the acceptance of the dialog.</td> |
64 <td>Public slot handling the acceptance of the dialog.</td> |
65 </tr><tr> |
65 </tr><tr> |
66 <td><a href="#AddBookmarkDialog.addedNode">addedNode</a></td> |
66 <td><a href="#AddBookmarkDialog.addedNode">addedNode</a></td> |
67 <td>Public method to get a reference to the added bookmark node.</td> |
67 <td>Public method to get a reference to the added bookmark node.</td> |
68 </tr><tr> |
68 </tr><tr> |
69 <td><a href="#AddBookmarkDialog.currentIndex">currentIndex</a></td> |
69 <td><a href="#AddBookmarkDialog.currentIndex">currentIndex</a></td> |
70 <td>Public method to get the current index.</td> |
70 <td>Public method to get the current index.</td> |
71 </tr><tr> |
71 </tr><tr> |
72 <td><a href="#AddBookmarkDialog.isFolder">isFolder</a></td> |
72 <td><a href="#AddBookmarkDialog.isFolder">isFolder</a></td> |
73 <td>Public method to test, if the dialog is in "Add Folder" mode.</td> |
73 <td>Public method to test, if the dialog is in "Add Folder" mode.</td> |
74 </tr><tr> |
74 </tr><tr> |
75 <td><a href="#AddBookmarkDialog.setCurrentIndex">setCurrentIndex</a></td> |
75 <td><a href="#AddBookmarkDialog.setCurrentIndex">setCurrentIndex</a></td> |
76 <td>Public method to set the current index.</td> |
76 <td>Public method to set the current index.</td> |
77 </tr><tr> |
77 </tr><tr> |
78 <td><a href="#AddBookmarkDialog.setFolder">setFolder</a></td> |
78 <td><a href="#AddBookmarkDialog.setFolder">setFolder</a></td> |
79 <td>Public method to set the dialog to "Add Folder" mode.</td> |
79 <td>Public method to set the dialog to "Add Folder" mode.</td> |
80 </tr><tr> |
80 </tr><tr> |
81 <td><a href="#AddBookmarkDialog.setTitle">setTitle</a></td> |
81 <td><a href="#AddBookmarkDialog.setTitle">setTitle</a></td> |
82 <td>Public method to set the title of the new bookmark.</td> |
82 <td>Public method to set the title of the new bookmark.</td> |
83 </tr><tr> |
83 </tr><tr> |
84 <td><a href="#AddBookmarkDialog.setUrl">setUrl</a></td> |
84 <td><a href="#AddBookmarkDialog.setUrl">setUrl</a></td> |
85 <td>Public slot to set the URL of the new bookmark.</td> |
85 <td>Public slot to set the URL of the new bookmark.</td> |
86 </tr><tr> |
86 </tr><tr> |
87 <td><a href="#AddBookmarkDialog.title">title</a></td> |
87 <td><a href="#AddBookmarkDialog.title">title</a></td> |
88 <td>Public method to get the title of the bookmark.</td> |
88 <td>Public method to get the title of the bookmark.</td> |
89 </tr><tr> |
89 </tr><tr> |
90 <td><a href="#AddBookmarkDialog.url">url</a></td> |
90 <td><a href="#AddBookmarkDialog.url">url</a></td> |
91 <td>Public method to get the URL of the bookmark.</td> |
91 <td>Public method to get the URL of the bookmark.</td> |
92 </tr> |
92 </tr> |
93 </table> |
93 </table> |
94 <a NAME="AddBookmarkDialog.__init__" ID="AddBookmarkDialog.__init__"></a> |
94 <a NAME="AddBookmarkDialog.__init__" ID="AddBookmarkDialog.__init__"></a> |
95 <h4>AddBookmarkDialog (Constructor)</h4> |
95 <h4>AddBookmarkDialog (Constructor)</h4> |
96 <b>AddBookmarkDialog</b>(<i>parent = None, bookmarksManager = None</i>) |
96 <b>AddBookmarkDialog</b>(<i>parent = None, bookmarksManager = None</i>) |
97 <p> |
97 <p> |
98 Constructor |
98 Constructor |
99 </p><dl> |
99 </p><dl> |
100 <dt><i>parent</i></dt> |
100 <dt><i>parent</i></dt> |
101 <dd> |
101 <dd> |
102 reference to the parent widget (QWidget) |
102 reference to the parent widget (QWidget) |
103 </dd><dt><i>bookmarksManager</i></dt> |
103 </dd><dt><i>bookmarksManager</i></dt> |
104 <dd> |
104 <dd> |
105 reference to the bookmarks manager |
105 reference to the bookmarks manager |
106 object (BookmarksManager) |
106 object (BookmarksManager) |
107 </dd> |
107 </dd> |
108 </dl><a NAME="AddBookmarkDialog.accept" ID="AddBookmarkDialog.accept"></a> |
108 </dl><a NAME="AddBookmarkDialog.accept" ID="AddBookmarkDialog.accept"></a> |
109 <h4>AddBookmarkDialog.accept</h4> |
109 <h4>AddBookmarkDialog.accept</h4> |
110 <b>accept</b>(<i></i>) |
110 <b>accept</b>(<i></i>) |
111 <p> |
111 <p> |
112 Public slot handling the acceptance of the dialog. |
112 Public slot handling the acceptance of the dialog. |
113 </p><a NAME="AddBookmarkDialog.addedNode" ID="AddBookmarkDialog.addedNode"></a> |
113 </p><a NAME="AddBookmarkDialog.addedNode" ID="AddBookmarkDialog.addedNode"></a> |
114 <h4>AddBookmarkDialog.addedNode</h4> |
114 <h4>AddBookmarkDialog.addedNode</h4> |
115 <b>addedNode</b>(<i></i>) |
115 <b>addedNode</b>(<i></i>) |
116 <p> |
116 <p> |
117 Public method to get a reference to the added bookmark node. |
117 Public method to get a reference to the added bookmark node. |
118 </p><dl> |
118 </p><dl> |
119 <dt>Returns:</dt> |
119 <dt>Returns:</dt> |
120 <dd> |
120 <dd> |
121 reference to the added bookmark node (BookmarkNode) |
121 reference to the added bookmark node (BookmarkNode) |
122 </dd> |
122 </dd> |
123 </dl><a NAME="AddBookmarkDialog.currentIndex" ID="AddBookmarkDialog.currentIndex"></a> |
123 </dl><a NAME="AddBookmarkDialog.currentIndex" ID="AddBookmarkDialog.currentIndex"></a> |
124 <h4>AddBookmarkDialog.currentIndex</h4> |
124 <h4>AddBookmarkDialog.currentIndex</h4> |
125 <b>currentIndex</b>(<i></i>) |
125 <b>currentIndex</b>(<i></i>) |
126 <p> |
126 <p> |
127 Public method to get the current index. |
127 Public method to get the current index. |
128 </p><dl> |
128 </p><dl> |
129 <dt>Returns:</dt> |
129 <dt>Returns:</dt> |
130 <dd> |
130 <dd> |
131 current index (QModelIndex) |
131 current index (QModelIndex) |
132 </dd> |
132 </dd> |
133 </dl><a NAME="AddBookmarkDialog.isFolder" ID="AddBookmarkDialog.isFolder"></a> |
133 </dl><a NAME="AddBookmarkDialog.isFolder" ID="AddBookmarkDialog.isFolder"></a> |
134 <h4>AddBookmarkDialog.isFolder</h4> |
134 <h4>AddBookmarkDialog.isFolder</h4> |
135 <b>isFolder</b>(<i></i>) |
135 <b>isFolder</b>(<i></i>) |
136 <p> |
136 <p> |
137 Public method to test, if the dialog is in "Add Folder" mode. |
137 Public method to test, if the dialog is in "Add Folder" mode. |
138 </p><dl> |
138 </p><dl> |
139 <dt>Returns:</dt> |
139 <dt>Returns:</dt> |
140 <dd> |
140 <dd> |
141 flag indicating "Add Folder" mode (boolean) |
141 flag indicating "Add Folder" mode (boolean) |
142 </dd> |
142 </dd> |
143 </dl><a NAME="AddBookmarkDialog.setCurrentIndex" ID="AddBookmarkDialog.setCurrentIndex"></a> |
143 </dl><a NAME="AddBookmarkDialog.setCurrentIndex" ID="AddBookmarkDialog.setCurrentIndex"></a> |
144 <h4>AddBookmarkDialog.setCurrentIndex</h4> |
144 <h4>AddBookmarkDialog.setCurrentIndex</h4> |
145 <b>setCurrentIndex</b>(<i>idx</i>) |
145 <b>setCurrentIndex</b>(<i>idx</i>) |
146 <p> |
146 <p> |
147 Public method to set the current index. |
147 Public method to set the current index. |
148 </p><dl> |
148 </p><dl> |
149 <dt><i>idx</i></dt> |
149 <dt><i>idx</i></dt> |
150 <dd> |
150 <dd> |
151 current index to be set (QModelIndex) |
151 current index to be set (QModelIndex) |
152 </dd> |
152 </dd> |
153 </dl><a NAME="AddBookmarkDialog.setFolder" ID="AddBookmarkDialog.setFolder"></a> |
153 </dl><a NAME="AddBookmarkDialog.setFolder" ID="AddBookmarkDialog.setFolder"></a> |
154 <h4>AddBookmarkDialog.setFolder</h4> |
154 <h4>AddBookmarkDialog.setFolder</h4> |
155 <b>setFolder</b>(<i>folder</i>) |
155 <b>setFolder</b>(<i>folder</i>) |
156 <p> |
156 <p> |
157 Public method to set the dialog to "Add Folder" mode. |
157 Public method to set the dialog to "Add Folder" mode. |
158 </p><dl> |
158 </p><dl> |
159 <dt><i>folder</i></dt> |
159 <dt><i>folder</i></dt> |
160 <dd> |
160 <dd> |
161 flag indicating "Add Folder" mode (boolean) |
161 flag indicating "Add Folder" mode (boolean) |
162 </dd> |
162 </dd> |
163 </dl><a NAME="AddBookmarkDialog.setTitle" ID="AddBookmarkDialog.setTitle"></a> |
163 </dl><a NAME="AddBookmarkDialog.setTitle" ID="AddBookmarkDialog.setTitle"></a> |
164 <h4>AddBookmarkDialog.setTitle</h4> |
164 <h4>AddBookmarkDialog.setTitle</h4> |
165 <b>setTitle</b>(<i>title</i>) |
165 <b>setTitle</b>(<i>title</i>) |
166 <p> |
166 <p> |
167 Public method to set the title of the new bookmark. |
167 Public method to set the title of the new bookmark. |
168 </p><dl> |
168 </p><dl> |
169 <dt><i>title</i></dt> |
169 <dt><i>title</i></dt> |
170 <dd> |
170 <dd> |
171 title of the bookmark (string) |
171 title of the bookmark (string) |
172 </dd> |
172 </dd> |
173 </dl><a NAME="AddBookmarkDialog.setUrl" ID="AddBookmarkDialog.setUrl"></a> |
173 </dl><a NAME="AddBookmarkDialog.setUrl" ID="AddBookmarkDialog.setUrl"></a> |
174 <h4>AddBookmarkDialog.setUrl</h4> |
174 <h4>AddBookmarkDialog.setUrl</h4> |
175 <b>setUrl</b>(<i>url</i>) |
175 <b>setUrl</b>(<i>url</i>) |
176 <p> |
176 <p> |
177 Public slot to set the URL of the new bookmark. |
177 Public slot to set the URL of the new bookmark. |
178 </p><dl> |
178 </p><dl> |
179 <dt><i>url</i></dt> |
179 <dt><i>url</i></dt> |
180 <dd> |
180 <dd> |
181 URL of the bookmark (string) |
181 URL of the bookmark (string) |
182 </dd> |
182 </dd> |
183 </dl><a NAME="AddBookmarkDialog.title" ID="AddBookmarkDialog.title"></a> |
183 </dl><a NAME="AddBookmarkDialog.title" ID="AddBookmarkDialog.title"></a> |
184 <h4>AddBookmarkDialog.title</h4> |
184 <h4>AddBookmarkDialog.title</h4> |
185 <b>title</b>(<i></i>) |
185 <b>title</b>(<i></i>) |
186 <p> |
186 <p> |
187 Public method to get the title of the bookmark. |
187 Public method to get the title of the bookmark. |
188 </p><dl> |
188 </p><dl> |
189 <dt>Returns:</dt> |
189 <dt>Returns:</dt> |
190 <dd> |
190 <dd> |
191 title of the bookmark (string) |
191 title of the bookmark (string) |
192 </dd> |
192 </dd> |
193 </dl><a NAME="AddBookmarkDialog.url" ID="AddBookmarkDialog.url"></a> |
193 </dl><a NAME="AddBookmarkDialog.url" ID="AddBookmarkDialog.url"></a> |
194 <h4>AddBookmarkDialog.url</h4> |
194 <h4>AddBookmarkDialog.url</h4> |
195 <b>url</b>(<i></i>) |
195 <b>url</b>(<i></i>) |
196 <p> |
196 <p> |
197 Public method to get the URL of the bookmark. |
197 Public method to get the URL of the bookmark. |
198 </p><dl> |
198 </p><dl> |
199 <dt>Returns:</dt> |
199 <dt>Returns:</dt> |
200 <dd> |
200 <dd> |
201 URL of the bookmark (string) |
201 URL of the bookmark (string) |
202 </dd> |
202 </dd> |
203 </dl> |
203 </dl> |
204 <div align="right"><a href="#top">Up</a></div> |
204 <div align="right"><a href="#top">Up</a></div> |
205 <hr /><hr /> |
205 <hr /><hr /> |
206 <a NAME="AddBookmarkProxyModel" ID="AddBookmarkProxyModel"></a> |
206 <a NAME="AddBookmarkProxyModel" ID="AddBookmarkProxyModel"></a> |
207 <h2>AddBookmarkProxyModel</h2> |
207 <h2>AddBookmarkProxyModel</h2> |
208 <p> |
208 <p> |
209 Class implementing a proxy model used by the AddBookmarkDialog dialog. |
209 Class implementing a proxy model used by the AddBookmarkDialog dialog. |
210 </p> |
210 </p> |
211 <h3>Derived from</h3> |
211 <h3>Derived from</h3> |
212 QSortFilterProxyModel |
212 QSortFilterProxyModel |
213 <h3>Class Attributes</h3> |
213 <h3>Class Attributes</h3> |
214 <table> |
214 <table> |
216 </table> |
216 </table> |
217 <h3>Methods</h3> |
217 <h3>Methods</h3> |
218 <table> |
218 <table> |
219 <tr> |
219 <tr> |
220 <td><a href="#AddBookmarkProxyModel.__init__">AddBookmarkProxyModel</a></td> |
220 <td><a href="#AddBookmarkProxyModel.__init__">AddBookmarkProxyModel</a></td> |
221 <td>Constructor</td> |
221 <td>Constructor</td> |
222 </tr><tr> |
222 </tr><tr> |
223 <td><a href="#AddBookmarkProxyModel.columnCount">columnCount</a></td> |
223 <td><a href="#AddBookmarkProxyModel.columnCount">columnCount</a></td> |
224 <td>Public method to return the number of columns.</td> |
224 <td>Public method to return the number of columns.</td> |
225 </tr><tr> |
225 </tr><tr> |
226 <td><a href="#AddBookmarkProxyModel.filterAcceptsColumn">filterAcceptsColumn</a></td> |
226 <td><a href="#AddBookmarkProxyModel.filterAcceptsColumn">filterAcceptsColumn</a></td> |
227 <td>Protected method to determine, if the column is acceptable.</td> |
227 <td>Protected method to determine, if the column is acceptable.</td> |
228 </tr><tr> |
228 </tr><tr> |
229 <td><a href="#AddBookmarkProxyModel.filterAcceptsRow">filterAcceptsRow</a></td> |
229 <td><a href="#AddBookmarkProxyModel.filterAcceptsRow">filterAcceptsRow</a></td> |
230 <td>Protected method to determine, if the row is acceptable.</td> |
230 <td>Protected method to determine, if the row is acceptable.</td> |
231 </tr><tr> |
231 </tr><tr> |
232 <td><a href="#AddBookmarkProxyModel.hasChildren">hasChildren</a></td> |
232 <td><a href="#AddBookmarkProxyModel.hasChildren">hasChildren</a></td> |
233 <td>Public method to check, if a parent node has some children.</td> |
233 <td>Public method to check, if a parent node has some children.</td> |
234 </tr> |
234 </tr> |
235 </table> |
235 </table> |
236 <a NAME="AddBookmarkProxyModel.__init__" ID="AddBookmarkProxyModel.__init__"></a> |
236 <a NAME="AddBookmarkProxyModel.__init__" ID="AddBookmarkProxyModel.__init__"></a> |
237 <h4>AddBookmarkProxyModel (Constructor)</h4> |
237 <h4>AddBookmarkProxyModel (Constructor)</h4> |
238 <b>AddBookmarkProxyModel</b>(<i>parent = None</i>) |
238 <b>AddBookmarkProxyModel</b>(<i>parent = None</i>) |
239 <p> |
239 <p> |
240 Constructor |
240 Constructor |
241 </p><dl> |
241 </p><dl> |
242 <dt><i>parent</i></dt> |
242 <dt><i>parent</i></dt> |
243 <dd> |
243 <dd> |
244 reference to the parent object (QObject) |
244 reference to the parent object (QObject) |
245 </dd> |
245 </dd> |
246 </dl><a NAME="AddBookmarkProxyModel.columnCount" ID="AddBookmarkProxyModel.columnCount"></a> |
246 </dl><a NAME="AddBookmarkProxyModel.columnCount" ID="AddBookmarkProxyModel.columnCount"></a> |
247 <h4>AddBookmarkProxyModel.columnCount</h4> |
247 <h4>AddBookmarkProxyModel.columnCount</h4> |
248 <b>columnCount</b>(<i>parent</i>) |
248 <b>columnCount</b>(<i>parent</i>) |
249 <p> |
249 <p> |
250 Public method to return the number of columns. |
250 Public method to return the number of columns. |
251 </p><dl> |
251 </p><dl> |
252 <dt><i>parent</i></dt> |
252 <dt><i>parent</i></dt> |
253 <dd> |
253 <dd> |
254 index of the parent (QModelIndex) |
254 index of the parent (QModelIndex) |
255 </dd> |
255 </dd> |
256 </dl><dl> |
256 </dl><dl> |
257 <dt>Returns:</dt> |
257 <dt>Returns:</dt> |
258 <dd> |
258 <dd> |
259 number of columns (integer) |
259 number of columns (integer) |
260 </dd> |
260 </dd> |
261 </dl><a NAME="AddBookmarkProxyModel.filterAcceptsColumn" ID="AddBookmarkProxyModel.filterAcceptsColumn"></a> |
261 </dl><a NAME="AddBookmarkProxyModel.filterAcceptsColumn" ID="AddBookmarkProxyModel.filterAcceptsColumn"></a> |
262 <h4>AddBookmarkProxyModel.filterAcceptsColumn</h4> |
262 <h4>AddBookmarkProxyModel.filterAcceptsColumn</h4> |
263 <b>filterAcceptsColumn</b>(<i>sourceColumn, sourceParent</i>) |
263 <b>filterAcceptsColumn</b>(<i>sourceColumn, sourceParent</i>) |
264 <p> |
264 <p> |
265 Protected method to determine, if the column is acceptable. |
265 Protected method to determine, if the column is acceptable. |
266 </p><dl> |
266 </p><dl> |
267 <dt><i>sourceColumn</i></dt> |
267 <dt><i>sourceColumn</i></dt> |
268 <dd> |
268 <dd> |
269 column number in the source model (integer) |
269 column number in the source model (integer) |
270 </dd><dt><i>sourceParent</i></dt> |
270 </dd><dt><i>sourceParent</i></dt> |
271 <dd> |
271 <dd> |
272 index of the source item (QModelIndex) |
272 index of the source item (QModelIndex) |
273 </dd> |
273 </dd> |
274 </dl><dl> |
274 </dl><dl> |
275 <dt>Returns:</dt> |
275 <dt>Returns:</dt> |
276 <dd> |
276 <dd> |
277 flag indicating acceptance (boolean) |
277 flag indicating acceptance (boolean) |
278 </dd> |
278 </dd> |
279 </dl><a NAME="AddBookmarkProxyModel.filterAcceptsRow" ID="AddBookmarkProxyModel.filterAcceptsRow"></a> |
279 </dl><a NAME="AddBookmarkProxyModel.filterAcceptsRow" ID="AddBookmarkProxyModel.filterAcceptsRow"></a> |
280 <h4>AddBookmarkProxyModel.filterAcceptsRow</h4> |
280 <h4>AddBookmarkProxyModel.filterAcceptsRow</h4> |
281 <b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) |
281 <b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>) |
282 <p> |
282 <p> |
283 Protected method to determine, if the row is acceptable. |
283 Protected method to determine, if the row is acceptable. |
284 </p><dl> |
284 </p><dl> |
285 <dt><i>sourceRow</i></dt> |
285 <dt><i>sourceRow</i></dt> |
286 <dd> |
286 <dd> |
287 row number in the source model (integer) |
287 row number in the source model (integer) |
288 </dd><dt><i>sourceParent</i></dt> |
288 </dd><dt><i>sourceParent</i></dt> |
289 <dd> |
289 <dd> |
290 index of the source item (QModelIndex) |
290 index of the source item (QModelIndex) |
291 </dd> |
291 </dd> |
292 </dl><dl> |
292 </dl><dl> |
293 <dt>Returns:</dt> |
293 <dt>Returns:</dt> |
294 <dd> |
294 <dd> |
295 flag indicating acceptance (boolean) |
295 flag indicating acceptance (boolean) |
296 </dd> |
296 </dd> |
297 </dl><a NAME="AddBookmarkProxyModel.hasChildren" ID="AddBookmarkProxyModel.hasChildren"></a> |
297 </dl><a NAME="AddBookmarkProxyModel.hasChildren" ID="AddBookmarkProxyModel.hasChildren"></a> |
298 <h4>AddBookmarkProxyModel.hasChildren</h4> |
298 <h4>AddBookmarkProxyModel.hasChildren</h4> |
299 <b>hasChildren</b>(<i>parent = QModelIndex()</i>) |
299 <b>hasChildren</b>(<i>parent = QModelIndex()</i>) |
300 <p> |
300 <p> |
301 Public method to check, if a parent node has some children. |
301 Public method to check, if a parent node has some children. |
302 </p><dl> |
302 </p><dl> |
303 <dt><i>parent</i></dt> |
303 <dt><i>parent</i></dt> |
304 <dd> |
304 <dd> |
305 index of the parent node (QModelIndex) |
305 index of the parent node (QModelIndex) |
306 </dd> |
306 </dd> |
307 </dl><dl> |
307 </dl><dl> |
308 <dt>Returns:</dt> |
308 <dt>Returns:</dt> |
309 <dd> |
309 <dd> |
310 flag indicating the presence of children (boolean) |
310 flag indicating the presence of children (boolean) |
311 </dd> |
311 </dd> |
312 </dl> |
312 </dl> |
313 <div align="right"><a href="#top">Up</a></div> |
313 <div align="right"><a href="#top">Up</a></div> |
314 <hr /> |
314 <hr /> |
315 </body></html> |
315 </body></html> |