~mcfletch/eric/update-to-4.5.13

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric4.Helpviewer.Bookmarks.AddBookmarkDialog</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric4.Helpviewer.Bookmarks.AddBookmarkDialog</h1>
<p>
Module implementing a dialog to add a bookmark or a bookmark folder.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#AddBookmarkDialog">AddBookmarkDialog</a></td>
<td>Class implementing a dialog to add a bookmark or a bookmark folder.</td>
</tr><tr>
<td><a href="#AddBookmarkProxyModel">AddBookmarkProxyModel</a></td>
<td>Class implementing a proxy model used by the AddBookmarkDialog dialog.</td>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>
<hr /><hr />
<a NAME="AddBookmarkDialog" ID="AddBookmarkDialog"></a>
<h2>AddBookmarkDialog</h2>
<p>
    Class implementing a dialog to add a bookmark or a bookmark folder.
</p>
<h3>Derived from</h3>
QDialog, Ui_AddBookmarkDialog
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#AddBookmarkDialog.__init__">AddBookmarkDialog</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.accept">accept</a></td>
<td>Public slot handling the acceptance of the dialog.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.addedNode">addedNode</a></td>
<td>Public method to get a reference to the added bookmark node.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.currentIndex">currentIndex</a></td>
<td>Public method to get the current index.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.isFolder">isFolder</a></td>
<td>Public method to test, if the dialog is in "Add Folder" mode.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.setCurrentIndex">setCurrentIndex</a></td>
<td>Public method to set the current index.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.setFolder">setFolder</a></td>
<td>Public method to set the dialog to "Add Folder" mode.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.setTitle">setTitle</a></td>
<td>Public method to set the title of the new bookmark.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.setUrl">setUrl</a></td>
<td>Public slot to set the URL of the new bookmark.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.title">title</a></td>
<td>Public method to get the title of the bookmark.</td>
</tr><tr>
<td><a href="#AddBookmarkDialog.url">url</a></td>
<td>Public method to get the URL of the bookmark.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="AddBookmarkDialog.__init__" ID="AddBookmarkDialog.__init__"></a>
<h4>AddBookmarkDialog (Constructor)</h4>
<b>AddBookmarkDialog</b>(<i>parent = None, bookmarksManager = None</i>)
<p>
        Constructor
</p><dl>
<dt><i>parent</i></dt>
<dd>
reference to the parent widget (QWidget)
</dd><dt><i>bookmarksManager</i></dt>
<dd>
reference to the bookmarks manager
            object (BookmarksManager)
</dd>
</dl><a NAME="AddBookmarkDialog.accept" ID="AddBookmarkDialog.accept"></a>
<h4>AddBookmarkDialog.accept</h4>
<b>accept</b>(<i></i>)
<p>
        Public slot handling the acceptance of the dialog.
</p><a NAME="AddBookmarkDialog.addedNode" ID="AddBookmarkDialog.addedNode"></a>
<h4>AddBookmarkDialog.addedNode</h4>
<b>addedNode</b>(<i></i>)
<p>
        Public method to get a reference to the added bookmark node.
</p><dl>
<dt>Returns:</dt>
<dd>
reference to the added bookmark node (BookmarkNode)
</dd>
</dl><a NAME="AddBookmarkDialog.currentIndex" ID="AddBookmarkDialog.currentIndex"></a>
<h4>AddBookmarkDialog.currentIndex</h4>
<b>currentIndex</b>(<i></i>)
<p>
        Public method to get the current index.
</p><dl>
<dt>Returns:</dt>
<dd>
current index (QModelIndex)
</dd>
</dl><a NAME="AddBookmarkDialog.isFolder" ID="AddBookmarkDialog.isFolder"></a>
<h4>AddBookmarkDialog.isFolder</h4>
<b>isFolder</b>(<i></i>)
<p>
        Public method to test, if the dialog is in "Add Folder" mode.
</p><dl>
<dt>Returns:</dt>
<dd>
flag indicating "Add Folder" mode (boolean)
</dd>
</dl><a NAME="AddBookmarkDialog.setCurrentIndex" ID="AddBookmarkDialog.setCurrentIndex"></a>
<h4>AddBookmarkDialog.setCurrentIndex</h4>
<b>setCurrentIndex</b>(<i>idx</i>)
<p>
        Public method to set the current index.
</p><dl>
<dt><i>idx</i></dt>
<dd>
current index to be set (QModelIndex)
</dd>
</dl><a NAME="AddBookmarkDialog.setFolder" ID="AddBookmarkDialog.setFolder"></a>
<h4>AddBookmarkDialog.setFolder</h4>
<b>setFolder</b>(<i>folder</i>)
<p>
        Public method to set the dialog to "Add Folder" mode.
</p><dl>
<dt><i>folder</i></dt>
<dd>
flag indicating "Add Folder" mode (boolean)
</dd>
</dl><a NAME="AddBookmarkDialog.setTitle" ID="AddBookmarkDialog.setTitle"></a>
<h4>AddBookmarkDialog.setTitle</h4>
<b>setTitle</b>(<i>title</i>)
<p>
        Public method to set the title of the new bookmark.
</p><dl>
<dt><i>title</i></dt>
<dd>
title of the bookmark (QString)
</dd>
</dl><a NAME="AddBookmarkDialog.setUrl" ID="AddBookmarkDialog.setUrl"></a>
<h4>AddBookmarkDialog.setUrl</h4>
<b>setUrl</b>(<i>url</i>)
<p>
        Public slot to set the URL of the new bookmark.
</p><dl>
<dt><i>url</i></dt>
<dd>
URL of the bookmark (QString)
</dd>
</dl><a NAME="AddBookmarkDialog.title" ID="AddBookmarkDialog.title"></a>
<h4>AddBookmarkDialog.title</h4>
<b>title</b>(<i></i>)
<p>
        Public method to get the title of the bookmark.
</p><dl>
<dt>Returns:</dt>
<dd>
title of the bookmark (QString)
</dd>
</dl><a NAME="AddBookmarkDialog.url" ID="AddBookmarkDialog.url"></a>
<h4>AddBookmarkDialog.url</h4>
<b>url</b>(<i></i>)
<p>
        Public method to get the URL of the bookmark.
</p><dl>
<dt>Returns:</dt>
<dd>
URL of the bookmark (QString)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="AddBookmarkProxyModel" ID="AddBookmarkProxyModel"></a>
<h2>AddBookmarkProxyModel</h2>
<p>
    Class implementing a proxy model used by the AddBookmarkDialog dialog.
</p>
<h3>Derived from</h3>
QSortFilterProxyModel
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#AddBookmarkProxyModel.__init__">AddBookmarkProxyModel</a></td>
<td>Constructor</td>
</tr><tr>
<td><a href="#AddBookmarkProxyModel.columnCount">columnCount</a></td>
<td>Public method to return the number of columns.</td>
</tr><tr>
<td><a href="#AddBookmarkProxyModel.filterAcceptsColumn">filterAcceptsColumn</a></td>
<td>Protected method to determine, if the column is acceptable.</td>
</tr><tr>
<td><a href="#AddBookmarkProxyModel.filterAcceptsRow">filterAcceptsRow</a></td>
<td>Protected method to determine, if the row is acceptable.</td>
</tr><tr>
<td><a href="#AddBookmarkProxyModel.hasChildren">hasChildren</a></td>
<td>Public method to check, if a parent node has some children.</td>
</tr>
</table>
<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>
<a NAME="AddBookmarkProxyModel.__init__" ID="AddBookmarkProxyModel.__init__"></a>
<h4>AddBookmarkProxyModel (Constructor)</h4>
<b>AddBookmarkProxyModel</b>(<i>parent = None</i>)
<p>
        Constructor
</p><dl>
<dt><i>parent</i></dt>
<dd>
reference to the parent object (QObject)
</dd>
</dl><a NAME="AddBookmarkProxyModel.columnCount" ID="AddBookmarkProxyModel.columnCount"></a>
<h4>AddBookmarkProxyModel.columnCount</h4>
<b>columnCount</b>(<i>parent</i>)
<p>
        Public method to return the number of columns.
</p><dl>
<dt><i>parent</i></dt>
<dd>
index of the parent (QModelIndex)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
number of columns (integer)
</dd>
</dl><a NAME="AddBookmarkProxyModel.filterAcceptsColumn" ID="AddBookmarkProxyModel.filterAcceptsColumn"></a>
<h4>AddBookmarkProxyModel.filterAcceptsColumn</h4>
<b>filterAcceptsColumn</b>(<i>sourceColumn, sourceParent</i>)
<p>
        Protected method to determine, if the column is acceptable.
</p><dl>
<dt><i>sourceColumn</i></dt>
<dd>
column number in the source model (integer)
</dd><dt><i>sourceParent</i></dt>
<dd>
index of the source item (QModelIndex)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
flag indicating acceptance (boolean)
</dd>
</dl><a NAME="AddBookmarkProxyModel.filterAcceptsRow" ID="AddBookmarkProxyModel.filterAcceptsRow"></a>
<h4>AddBookmarkProxyModel.filterAcceptsRow</h4>
<b>filterAcceptsRow</b>(<i>sourceRow, sourceParent</i>)
<p>
        Protected method to determine, if the row is acceptable.
</p><dl>
<dt><i>sourceRow</i></dt>
<dd>
row number in the source model (integer)
</dd><dt><i>sourceParent</i></dt>
<dd>
index of the source item (QModelIndex)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
flag indicating acceptance (boolean)
</dd>
</dl><a NAME="AddBookmarkProxyModel.hasChildren" ID="AddBookmarkProxyModel.hasChildren"></a>
<h4>AddBookmarkProxyModel.hasChildren</h4>
<b>hasChildren</b>(<i>parent = QModelIndex()</i>)
<p>
        Public method to check, if a parent node has some children.
</p><dl>
<dt><i>parent</i></dt>
<dd>
index of the parent node (QModelIndex)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
flag indicating the presence of children (boolean)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>