|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.WebBrowser.WebBrowserTabBar</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.WebBrowserTabBar</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a specialized tab bar for the web browser. |
|
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="#WebBrowserTabBar">WebBrowserTabBar</a></td> |
|
25 <td>Class implementing the tab bar of the web browser.</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="WebBrowserTabBar" ID="WebBrowserTabBar"></a> |
|
36 <h2>WebBrowserTabBar</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the tab bar of the web browser. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 EricWheelTabBar |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#WebBrowserTabBar.__init__">WebBrowserTabBar</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#WebBrowserTabBar.__hidePreview">__hidePreview</a></td> |
|
63 <td>Private method to hide the preview.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#WebBrowserTabBar.__showTabPreview">__showTabPreview</a></td> |
|
67 <td>Private slot to show the tab preview.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#WebBrowserTabBar.event">event</a></td> |
|
71 <td>Public method to handle event.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#WebBrowserTabBar.leaveEvent">leaveEvent</a></td> |
|
75 <td>Protected method to handle leave events.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#WebBrowserTabBar.mouseMoveEvent">mouseMoveEvent</a></td> |
|
79 <td>Protected method to handle mouse move events.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#WebBrowserTabBar.mousePressEvent">mousePressEvent</a></td> |
|
83 <td>Protected method to handle mouse press events.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#WebBrowserTabBar.tabRemoved">tabRemoved</a></td> |
|
87 <td>Public slot to handle the removal of a tab.</td> |
|
88 </tr> |
|
89 </table> |
|
90 <h3>Static Methods</h3> |
|
91 |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 |
|
96 <a NAME="WebBrowserTabBar.__init__" ID="WebBrowserTabBar.__init__"></a> |
|
97 <h4>WebBrowserTabBar (Constructor)</h4> |
|
98 <b>WebBrowserTabBar</b>(<i>parent=None</i>) |
|
99 |
|
100 <p> |
|
101 Constructor |
|
102 </p> |
|
103 <dl> |
|
104 |
|
105 <dt><i>parent</i></dt> |
|
106 <dd> |
|
107 reference to the parent widget (WebBrowserTabWidget) |
|
108 </dd> |
|
109 </dl> |
|
110 <a NAME="WebBrowserTabBar.__hidePreview" ID="WebBrowserTabBar.__hidePreview"></a> |
|
111 <h4>WebBrowserTabBar.__hidePreview</h4> |
|
112 <b>__hidePreview</b>(<i></i>) |
|
113 |
|
114 <p> |
|
115 Private method to hide the preview. |
|
116 </p> |
|
117 <a NAME="WebBrowserTabBar.__showTabPreview" ID="WebBrowserTabBar.__showTabPreview"></a> |
|
118 <h4>WebBrowserTabBar.__showTabPreview</h4> |
|
119 <b>__showTabPreview</b>(<i>index</i>) |
|
120 |
|
121 <p> |
|
122 Private slot to show the tab preview. |
|
123 </p> |
|
124 <dl> |
|
125 |
|
126 <dt><i>index</i> (int)</dt> |
|
127 <dd> |
|
128 index of tab to show a preview for |
|
129 </dd> |
|
130 </dl> |
|
131 <a NAME="WebBrowserTabBar.event" ID="WebBrowserTabBar.event"></a> |
|
132 <h4>WebBrowserTabBar.event</h4> |
|
133 <b>event</b>(<i>evt</i>) |
|
134 |
|
135 <p> |
|
136 Public method to handle event. |
|
137 </p> |
|
138 <p> |
|
139 This event handler just handles the tooltip event and passes the |
|
140 handling of all others to the superclass. |
|
141 </p> |
|
142 <dl> |
|
143 |
|
144 <dt><i>evt</i></dt> |
|
145 <dd> |
|
146 reference to the event to be handled (QEvent) |
|
147 </dd> |
|
148 </dl> |
|
149 <dl> |
|
150 <dt>Return:</dt> |
|
151 <dd> |
|
152 flag indicating, if the event was handled (boolean) |
|
153 </dd> |
|
154 </dl> |
|
155 <a NAME="WebBrowserTabBar.leaveEvent" ID="WebBrowserTabBar.leaveEvent"></a> |
|
156 <h4>WebBrowserTabBar.leaveEvent</h4> |
|
157 <b>leaveEvent</b>(<i>evt</i>) |
|
158 |
|
159 <p> |
|
160 Protected method to handle leave events. |
|
161 </p> |
|
162 <dl> |
|
163 |
|
164 <dt><i>evt</i></dt> |
|
165 <dd> |
|
166 reference to the leave event (QEvent) |
|
167 </dd> |
|
168 </dl> |
|
169 <a NAME="WebBrowserTabBar.mouseMoveEvent" ID="WebBrowserTabBar.mouseMoveEvent"></a> |
|
170 <h4>WebBrowserTabBar.mouseMoveEvent</h4> |
|
171 <b>mouseMoveEvent</b>(<i>evt</i>) |
|
172 |
|
173 <p> |
|
174 Protected method to handle mouse move events. |
|
175 </p> |
|
176 <dl> |
|
177 |
|
178 <dt><i>evt</i></dt> |
|
179 <dd> |
|
180 reference to the mouse move event (QMouseEvent) |
|
181 </dd> |
|
182 </dl> |
|
183 <a NAME="WebBrowserTabBar.mousePressEvent" ID="WebBrowserTabBar.mousePressEvent"></a> |
|
184 <h4>WebBrowserTabBar.mousePressEvent</h4> |
|
185 <b>mousePressEvent</b>(<i>evt</i>) |
|
186 |
|
187 <p> |
|
188 Protected method to handle mouse press events. |
|
189 </p> |
|
190 <dl> |
|
191 |
|
192 <dt><i>evt</i></dt> |
|
193 <dd> |
|
194 reference to the mouse press event (QMouseEvent) |
|
195 </dd> |
|
196 </dl> |
|
197 <a NAME="WebBrowserTabBar.tabRemoved" ID="WebBrowserTabBar.tabRemoved"></a> |
|
198 <h4>WebBrowserTabBar.tabRemoved</h4> |
|
199 <b>tabRemoved</b>(<i>index</i>) |
|
200 |
|
201 <p> |
|
202 Public slot to handle the removal of a tab. |
|
203 </p> |
|
204 <dl> |
|
205 |
|
206 <dt><i>index</i></dt> |
|
207 <dd> |
|
208 index of the removed tab (integer) |
|
209 </dd> |
|
210 </dl> |
|
211 <div align="right"><a href="#top">Up</a></div> |
|
212 <hr /> |
|
213 </body></html> |