|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric4.Helpviewer.History.HistoryDialog</title> |
|
6 <style> |
|
7 body { |
|
8 background:white; |
|
9 margin: 0em 1em 10em 1em; |
|
10 color: black; |
|
11 } |
|
12 |
|
13 h1 { color: white; background: #4FA4FF; } |
|
14 h2 { color: white; background: #4FA4FF; } |
|
15 h3 { color: white; background: #00557F; } |
|
16 h4 { color: white; background: #00557F; } |
|
17 |
|
18 a { color: #AA5500; } |
|
19 |
|
20 </style> |
|
21 </head> |
|
22 <body><a NAME="top" ID="top"></a> |
|
23 <h1>eric4.Helpviewer.History.HistoryDialog</h1> |
|
24 <p> |
|
25 Module implementing a dialog to manage history. |
|
26 </p> |
|
27 <h3>Global Attributes</h3> |
|
28 <table> |
|
29 <tr><td>None</td></tr> |
|
30 </table> |
|
31 <h3>Classes</h3> |
|
32 <table> |
|
33 <tr> |
|
34 <td><a href="#HistoryDialog">HistoryDialog</a></td> |
|
35 <td>Class implementing a dialog to manage history.</td> |
|
36 </tr> |
|
37 </table> |
|
38 <h3>Functions</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <hr /><hr /> |
|
43 <a NAME="HistoryDialog" ID="HistoryDialog"></a> |
|
44 <h2>HistoryDialog</h2> |
|
45 <p> |
|
46 Class implementing a dialog to manage history. |
|
47 </p><h4>Signals</h4> |
|
48 <dl> |
|
49 <dt>newUrl(const QUrl&, const QString&)</dt> |
|
50 <dd> |
|
51 emitted to open a URL in a new tab |
|
52 </dd><dt>openUrl(const QUrl&, const QString&)</dt> |
|
53 <dd> |
|
54 emitted to open a URL in the current |
|
55 tab |
|
56 </dd> |
|
57 </dl> |
|
58 <h3>Derived from</h3> |
|
59 QDialog, Ui_HistoryDialog |
|
60 <h3>Class Attributes</h3> |
|
61 <table> |
|
62 <tr><td>None</td></tr> |
|
63 </table> |
|
64 <h3>Methods</h3> |
|
65 <table> |
|
66 <tr> |
|
67 <td><a href="#HistoryDialog.__init__">HistoryDialog</a></td> |
|
68 <td>Constructor</td> |
|
69 </tr><tr> |
|
70 <td><a href="#HistoryDialog.__activated">__activated</a></td> |
|
71 <td>Private slot to handle the activation of an entry.</td> |
|
72 </tr><tr> |
|
73 <td><a href="#HistoryDialog.__copyHistory">__copyHistory</a></td> |
|
74 <td>Private slot to copy a history entry's URL to the clipboard.</td> |
|
75 </tr><tr> |
|
76 <td><a href="#HistoryDialog.__customContextMenuRequested">__customContextMenuRequested</a></td> |
|
77 <td>Private slot to handle the context menu request for the bookmarks tree.</td> |
|
78 </tr><tr> |
|
79 <td><a href="#HistoryDialog.__modelReset">__modelReset</a></td> |
|
80 <td>Private slot handling a reset of the tree view's model.</td> |
|
81 </tr><tr> |
|
82 <td><a href="#HistoryDialog.__openHistory">__openHistory</a></td> |
|
83 <td>Private method to open a history entry.</td> |
|
84 </tr><tr> |
|
85 <td><a href="#HistoryDialog.__openHistoryInCurrentTab">__openHistoryInCurrentTab</a></td> |
|
86 <td>Private slot to open a history entry in the current browser tab.</td> |
|
87 </tr><tr> |
|
88 <td><a href="#HistoryDialog.__openHistoryInNewTab">__openHistoryInNewTab</a></td> |
|
89 <td>Private slot to open a history entry in a new browser tab.</td> |
|
90 </tr> |
|
91 </table> |
|
92 <a NAME="HistoryDialog.__init__" ID="HistoryDialog.__init__"></a> |
|
93 <h4>HistoryDialog (Constructor)</h4> |
|
94 <b>HistoryDialog</b>(<i>parent = None, manager = None</i>) |
|
95 <p> |
|
96 Constructor |
|
97 </p><dl> |
|
98 <dt><i>parent</i></dt> |
|
99 <dd> |
|
100 reference to the parent widget (QWidget |
|
101 </dd><dt><i>manager</i></dt> |
|
102 <dd> |
|
103 reference to the history manager object (HistoryManager) |
|
104 </dd> |
|
105 </dl><a NAME="HistoryDialog.__activated" ID="HistoryDialog.__activated"></a> |
|
106 <h4>HistoryDialog.__activated</h4> |
|
107 <b>__activated</b>(<i>idx</i>) |
|
108 <p> |
|
109 Private slot to handle the activation of an entry. |
|
110 </p><dl> |
|
111 <dt><i>idx</i></dt> |
|
112 <dd> |
|
113 reference to the entry index (QModelIndex) |
|
114 </dd> |
|
115 </dl><a NAME="HistoryDialog.__copyHistory" ID="HistoryDialog.__copyHistory"></a> |
|
116 <h4>HistoryDialog.__copyHistory</h4> |
|
117 <b>__copyHistory</b>(<i></i>) |
|
118 <p> |
|
119 Private slot to copy a history entry's URL to the clipboard. |
|
120 </p><a NAME="HistoryDialog.__customContextMenuRequested" ID="HistoryDialog.__customContextMenuRequested"></a> |
|
121 <h4>HistoryDialog.__customContextMenuRequested</h4> |
|
122 <b>__customContextMenuRequested</b>(<i>pos</i>) |
|
123 <p> |
|
124 Private slot to handle the context menu request for the bookmarks tree. |
|
125 </p><dl> |
|
126 <dt><i>pos</i></dt> |
|
127 <dd> |
|
128 position the context menu was requested (QPoint) |
|
129 </dd> |
|
130 </dl><a NAME="HistoryDialog.__modelReset" ID="HistoryDialog.__modelReset"></a> |
|
131 <h4>HistoryDialog.__modelReset</h4> |
|
132 <b>__modelReset</b>(<i></i>) |
|
133 <p> |
|
134 Private slot handling a reset of the tree view's model. |
|
135 </p><a NAME="HistoryDialog.__openHistory" ID="HistoryDialog.__openHistory"></a> |
|
136 <h4>HistoryDialog.__openHistory</h4> |
|
137 <b>__openHistory</b>(<i>newTab</i>) |
|
138 <p> |
|
139 Private method to open a history entry. |
|
140 </p><dl> |
|
141 <dt><i>newTab</i></dt> |
|
142 <dd> |
|
143 flag indicating to open the history entry in a new tab (boolean) |
|
144 </dd> |
|
145 </dl><a NAME="HistoryDialog.__openHistoryInCurrentTab" ID="HistoryDialog.__openHistoryInCurrentTab"></a> |
|
146 <h4>HistoryDialog.__openHistoryInCurrentTab</h4> |
|
147 <b>__openHistoryInCurrentTab</b>(<i></i>) |
|
148 <p> |
|
149 Private slot to open a history entry in the current browser tab. |
|
150 </p><a NAME="HistoryDialog.__openHistoryInNewTab" ID="HistoryDialog.__openHistoryInNewTab"></a> |
|
151 <h4>HistoryDialog.__openHistoryInNewTab</h4> |
|
152 <b>__openHistoryInNewTab</b>(<i></i>) |
|
153 <p> |
|
154 Private slot to open a history entry in a new browser tab. |
|
155 </p> |
|
156 <div align="right"><a href="#top">Up</a></div> |
|
157 <hr /> |
|
158 </body></html> |