|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.History.HistoryDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.WebBrowser.History.HistoryDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to manage history. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#HistoryDialog">HistoryDialog</a></td> |
|
25 <td>Class implementing a dialog to manage history.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="HistoryDialog" ID="HistoryDialog"></a> |
|
36 <h2>HistoryDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to manage history. |
|
40 </p> |
|
41 <h3>Signals</h3> |
|
42 <dl> |
|
43 |
|
44 <dt>newBackgroundTab(QUrl, str)</dt> |
|
45 <dd> |
|
46 emitted to open a URL in a new |
|
47 background tab |
|
48 </dd> |
|
49 <dt>newPrivateWindow(QUrl, str)</dt> |
|
50 <dd> |
|
51 emitted to open a URL in a new |
|
52 private window |
|
53 </dd> |
|
54 <dt>newTab(QUrl, str)</dt> |
|
55 <dd> |
|
56 emitted to open a URL in a new tab |
|
57 </dd> |
|
58 <dt>newWindow(QUrl, str)</dt> |
|
59 <dd> |
|
60 emitted to open a URL in a new window |
|
61 </dd> |
|
62 <dt>openUrl(QUrl, str)</dt> |
|
63 <dd> |
|
64 emitted to open a URL in the current tab |
|
65 </dd> |
|
66 </dl> |
|
67 <h3>Derived from</h3> |
|
68 QDialog, Ui_HistoryDialog |
|
69 <h3>Class Attributes</h3> |
|
70 |
|
71 <table> |
|
72 <tr><td>None</td></tr> |
|
73 </table> |
|
74 <h3>Class Methods</h3> |
|
75 |
|
76 <table> |
|
77 <tr><td>None</td></tr> |
|
78 </table> |
|
79 <h3>Methods</h3> |
|
80 |
|
81 <table> |
|
82 |
|
83 <tr> |
|
84 <td><a href="#HistoryDialog.__init__">HistoryDialog</a></td> |
|
85 <td>Constructor</td> |
|
86 </tr> |
|
87 <tr> |
|
88 <td><a href="#HistoryDialog.__activated">__activated</a></td> |
|
89 <td>Private slot to handle the activation of an entry.</td> |
|
90 </tr> |
|
91 <tr> |
|
92 <td><a href="#HistoryDialog.__copyHistory">__copyHistory</a></td> |
|
93 <td>Private slot to copy a history entry's URL to the clipboard.</td> |
|
94 </tr> |
|
95 <tr> |
|
96 <td><a href="#HistoryDialog.__customContextMenuRequested">__customContextMenuRequested</a></td> |
|
97 <td>Private slot to handle the context menu request for the bookmarks tree.</td> |
|
98 </tr> |
|
99 <tr> |
|
100 <td><a href="#HistoryDialog.__modelReset">__modelReset</a></td> |
|
101 <td>Private slot handling a reset of the tree view's model.</td> |
|
102 </tr> |
|
103 <tr> |
|
104 <td><a href="#HistoryDialog.__openHistory">__openHistory</a></td> |
|
105 <td>Private method to open a history entry.</td> |
|
106 </tr> |
|
107 <tr> |
|
108 <td><a href="#HistoryDialog.__openHistoryInCurrentTab">__openHistoryInCurrentTab</a></td> |
|
109 <td>Private slot to open a history entry in the current browser tab.</td> |
|
110 </tr> |
|
111 <tr> |
|
112 <td><a href="#HistoryDialog.__openHistoryInNewBackgroundTab">__openHistoryInNewBackgroundTab</a></td> |
|
113 <td>Private slot to open a history entry in a new background tab.</td> |
|
114 </tr> |
|
115 <tr> |
|
116 <td><a href="#HistoryDialog.__openHistoryInNewTab">__openHistoryInNewTab</a></td> |
|
117 <td>Private slot to open a history entry in a new browser tab.</td> |
|
118 </tr> |
|
119 <tr> |
|
120 <td><a href="#HistoryDialog.__openHistoryInNewWindow">__openHistoryInNewWindow</a></td> |
|
121 <td>Private slot to open a history entry in a new browser window.</td> |
|
122 </tr> |
|
123 <tr> |
|
124 <td><a href="#HistoryDialog.__openHistoryInPrivateWindow">__openHistoryInPrivateWindow</a></td> |
|
125 <td>Private slot to open a history entry in a new private browser window.</td> |
|
126 </tr> |
|
127 </table> |
|
128 <h3>Static Methods</h3> |
|
129 |
|
130 <table> |
|
131 <tr><td>None</td></tr> |
|
132 </table> |
|
133 |
|
134 <a NAME="HistoryDialog.__init__" ID="HistoryDialog.__init__"></a> |
|
135 <h4>HistoryDialog (Constructor)</h4> |
|
136 <b>HistoryDialog</b>(<i>parent=None, manager=None</i>) |
|
137 |
|
138 <p> |
|
139 Constructor |
|
140 </p> |
|
141 <dl> |
|
142 |
|
143 <dt><i>parent</i></dt> |
|
144 <dd> |
|
145 reference to the parent widget (QWidget |
|
146 </dd> |
|
147 <dt><i>manager</i></dt> |
|
148 <dd> |
|
149 reference to the history manager object (HistoryManager) |
|
150 </dd> |
|
151 </dl> |
|
152 <a NAME="HistoryDialog.__activated" ID="HistoryDialog.__activated"></a> |
|
153 <h4>HistoryDialog.__activated</h4> |
|
154 <b>__activated</b>(<i>idx</i>) |
|
155 |
|
156 <p> |
|
157 Private slot to handle the activation of an entry. |
|
158 </p> |
|
159 <dl> |
|
160 |
|
161 <dt><i>idx</i></dt> |
|
162 <dd> |
|
163 reference to the entry index (QModelIndex) |
|
164 </dd> |
|
165 </dl> |
|
166 <a NAME="HistoryDialog.__copyHistory" ID="HistoryDialog.__copyHistory"></a> |
|
167 <h4>HistoryDialog.__copyHistory</h4> |
|
168 <b>__copyHistory</b>(<i></i>) |
|
169 |
|
170 <p> |
|
171 Private slot to copy a history entry's URL to the clipboard. |
|
172 </p> |
|
173 <a NAME="HistoryDialog.__customContextMenuRequested" ID="HistoryDialog.__customContextMenuRequested"></a> |
|
174 <h4>HistoryDialog.__customContextMenuRequested</h4> |
|
175 <b>__customContextMenuRequested</b>(<i>pos</i>) |
|
176 |
|
177 <p> |
|
178 Private slot to handle the context menu request for the bookmarks tree. |
|
179 </p> |
|
180 <dl> |
|
181 |
|
182 <dt><i>pos</i></dt> |
|
183 <dd> |
|
184 position the context menu was requested (QPoint) |
|
185 </dd> |
|
186 </dl> |
|
187 <a NAME="HistoryDialog.__modelReset" ID="HistoryDialog.__modelReset"></a> |
|
188 <h4>HistoryDialog.__modelReset</h4> |
|
189 <b>__modelReset</b>(<i></i>) |
|
190 |
|
191 <p> |
|
192 Private slot handling a reset of the tree view's model. |
|
193 </p> |
|
194 <a NAME="HistoryDialog.__openHistory" ID="HistoryDialog.__openHistory"></a> |
|
195 <h4>HistoryDialog.__openHistory</h4> |
|
196 <b>__openHistory</b>(<i>newTab=False, background=False, newWindow=False, privateWindow=False</i>) |
|
197 |
|
198 <p> |
|
199 Private method to open a history entry. |
|
200 </p> |
|
201 <dl> |
|
202 |
|
203 <dt><i>newTab</i> (bool)</dt> |
|
204 <dd> |
|
205 flag indicating to open the feed message in a new tab |
|
206 </dd> |
|
207 <dt><i>background</i> (bool)</dt> |
|
208 <dd> |
|
209 flag indicating to open the bookmark in a new |
|
210 background tab |
|
211 </dd> |
|
212 <dt><i>newWindow</i> (bool)</dt> |
|
213 <dd> |
|
214 flag indicating to open the bookmark in a new window |
|
215 </dd> |
|
216 <dt><i>privateWindow</i> (bool)</dt> |
|
217 <dd> |
|
218 flag indicating to open the bookmark in a new |
|
219 private window |
|
220 (boolean) |
|
221 </dd> |
|
222 </dl> |
|
223 <a NAME="HistoryDialog.__openHistoryInCurrentTab" ID="HistoryDialog.__openHistoryInCurrentTab"></a> |
|
224 <h4>HistoryDialog.__openHistoryInCurrentTab</h4> |
|
225 <b>__openHistoryInCurrentTab</b>(<i></i>) |
|
226 |
|
227 <p> |
|
228 Private slot to open a history entry in the current browser tab. |
|
229 </p> |
|
230 <a NAME="HistoryDialog.__openHistoryInNewBackgroundTab" ID="HistoryDialog.__openHistoryInNewBackgroundTab"></a> |
|
231 <h4>HistoryDialog.__openHistoryInNewBackgroundTab</h4> |
|
232 <b>__openHistoryInNewBackgroundTab</b>(<i></i>) |
|
233 |
|
234 <p> |
|
235 Private slot to open a history entry in a new background tab. |
|
236 </p> |
|
237 <a NAME="HistoryDialog.__openHistoryInNewTab" ID="HistoryDialog.__openHistoryInNewTab"></a> |
|
238 <h4>HistoryDialog.__openHistoryInNewTab</h4> |
|
239 <b>__openHistoryInNewTab</b>(<i></i>) |
|
240 |
|
241 <p> |
|
242 Private slot to open a history entry in a new browser tab. |
|
243 </p> |
|
244 <a NAME="HistoryDialog.__openHistoryInNewWindow" ID="HistoryDialog.__openHistoryInNewWindow"></a> |
|
245 <h4>HistoryDialog.__openHistoryInNewWindow</h4> |
|
246 <b>__openHistoryInNewWindow</b>(<i></i>) |
|
247 |
|
248 <p> |
|
249 Private slot to open a history entry in a new browser window. |
|
250 </p> |
|
251 <a NAME="HistoryDialog.__openHistoryInPrivateWindow" ID="HistoryDialog.__openHistoryInPrivateWindow"></a> |
|
252 <h4>HistoryDialog.__openHistoryInPrivateWindow</h4> |
|
253 <b>__openHistoryInPrivateWindow</b>(<i></i>) |
|
254 |
|
255 <p> |
|
256 Private slot to open a history entry in a new private browser window. |
|
257 </p> |
|
258 <div align="right"><a href="#top">Up</a></div> |
|
259 <hr /> |
|
260 </body></html> |