eric6/Documentation/Source/eric6.WebBrowser.QtHelp.HelpTocWidget.html

changeset 6942
2602857055c5
parent 5252
321c2003745d
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.WebBrowser.QtHelp.HelpTocWidget</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.WebBrowser.QtHelp.HelpTocWidget</h1>
23 <p>
24 Module implementing a window for showing the QtHelp TOC.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#HelpTocWidget">HelpTocWidget</a></td>
34 <td>Class implementing a window for showing the QtHelp TOC.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="HelpTocWidget" ID="HelpTocWidget"></a>
43 <h2>HelpTocWidget</h2>
44 <p>
45 Class implementing a window for showing the QtHelp TOC.
46 </p><h3>Signals</h3>
47 <dl>
48 <dt>escapePressed()</dt>
49 <dd>
50 emitted when the ESC key was pressed
51 </dd><dt>newBackgroundTab(QUrl, str)</dt>
52 <dd>
53 emitted to open an entry in a
54 new background tab
55 </dd><dt>newTab(QUrl, str)</dt>
56 <dd>
57 emitted to open an entry in a new tab
58 </dd><dt>newWindow(QUrl, str)</dt>
59 <dd>
60 emitted to open an entry in a new window
61 </dd><dt>openUrl(QUrl, str)</dt>
62 <dd>
63 emitted to open an entry in the current tab
64 </dd>
65 </dl>
66 <h3>Derived from</h3>
67 QWidget
68 <h3>Class Attributes</h3>
69 <table>
70 <tr><td>None</td></tr>
71 </table>
72 <h3>Class Methods</h3>
73 <table>
74 <tr><td>None</td></tr>
75 </table>
76 <h3>Methods</h3>
77 <table>
78 <tr>
79 <td><a href="#HelpTocWidget.__init__">HelpTocWidget</a></td>
80 <td>Constructor</td>
81 </tr><tr>
82 <td><a href="#HelpTocWidget.__contentsCreated">__contentsCreated</a></td>
83 <td>Private slot to be run after the contents was generated.</td>
84 </tr><tr>
85 <td><a href="#HelpTocWidget.__expandTOC">__expandTOC</a></td>
86 <td>Private slot to expand the table of contents.</td>
87 </tr><tr>
88 <td><a href="#HelpTocWidget.__linkActivated">__linkActivated</a></td>
89 <td>Private slot handling the activation of an entry.</td>
90 </tr><tr>
91 <td><a href="#HelpTocWidget.__showContextMenu">__showContextMenu</a></td>
92 <td>Private slot showing the context menu.</td>
93 </tr><tr>
94 <td><a href="#HelpTocWidget.expandToDepth">expandToDepth</a></td>
95 <td>Public slot to expand the table of contents to a specific depth.</td>
96 </tr><tr>
97 <td><a href="#HelpTocWidget.focusInEvent">focusInEvent</a></td>
98 <td>Protected method handling focus in events.</td>
99 </tr><tr>
100 <td><a href="#HelpTocWidget.keyPressEvent">keyPressEvent</a></td>
101 <td>Protected method handling key press events.</td>
102 </tr><tr>
103 <td><a href="#HelpTocWidget.syncToContent">syncToContent</a></td>
104 <td>Public method to sync the TOC to the displayed page.</td>
105 </tr>
106 </table>
107 <h3>Static Methods</h3>
108 <table>
109 <tr><td>None</td></tr>
110 </table>
111 <a NAME="HelpTocWidget.__init__" ID="HelpTocWidget.__init__"></a>
112 <h4>HelpTocWidget (Constructor)</h4>
113 <b>HelpTocWidget</b>(<i>engine, parent=None</i>)
114 <p>
115 Constructor
116 </p><dl>
117 <dt><i>engine</i></dt>
118 <dd>
119 reference to the help engine (QHelpEngine)
120 </dd><dt><i>parent</i></dt>
121 <dd>
122 reference to the parent widget (QWidget)
123 </dd>
124 </dl><a NAME="HelpTocWidget.__contentsCreated" ID="HelpTocWidget.__contentsCreated"></a>
125 <h4>HelpTocWidget.__contentsCreated</h4>
126 <b>__contentsCreated</b>(<i></i>)
127 <p>
128 Private slot to be run after the contents was generated.
129 </p><a NAME="HelpTocWidget.__expandTOC" ID="HelpTocWidget.__expandTOC"></a>
130 <h4>HelpTocWidget.__expandTOC</h4>
131 <b>__expandTOC</b>(<i></i>)
132 <p>
133 Private slot to expand the table of contents.
134 </p><a NAME="HelpTocWidget.__linkActivated" ID="HelpTocWidget.__linkActivated"></a>
135 <h4>HelpTocWidget.__linkActivated</h4>
136 <b>__linkActivated</b>(<i>url</i>)
137 <p>
138 Private slot handling the activation of an entry.
139 </p><dl>
140 <dt><i>url</i> (QUrl)</dt>
141 <dd>
142 URL of the activated entry
143 </dd>
144 </dl><a NAME="HelpTocWidget.__showContextMenu" ID="HelpTocWidget.__showContextMenu"></a>
145 <h4>HelpTocWidget.__showContextMenu</h4>
146 <b>__showContextMenu</b>(<i>pos</i>)
147 <p>
148 Private slot showing the context menu.
149 </p><dl>
150 <dt><i>pos</i></dt>
151 <dd>
152 position to show the menu at (QPoint)
153 </dd>
154 </dl><a NAME="HelpTocWidget.expandToDepth" ID="HelpTocWidget.expandToDepth"></a>
155 <h4>HelpTocWidget.expandToDepth</h4>
156 <b>expandToDepth</b>(<i>depth</i>)
157 <p>
158 Public slot to expand the table of contents to a specific depth.
159 </p><dl>
160 <dt><i>depth</i></dt>
161 <dd>
162 depth to expand to (integer)
163 </dd>
164 </dl><a NAME="HelpTocWidget.focusInEvent" ID="HelpTocWidget.focusInEvent"></a>
165 <h4>HelpTocWidget.focusInEvent</h4>
166 <b>focusInEvent</b>(<i>evt</i>)
167 <p>
168 Protected method handling focus in events.
169 </p><dl>
170 <dt><i>evt</i></dt>
171 <dd>
172 reference to the focus event object (QFocusEvent)
173 </dd>
174 </dl><a NAME="HelpTocWidget.keyPressEvent" ID="HelpTocWidget.keyPressEvent"></a>
175 <h4>HelpTocWidget.keyPressEvent</h4>
176 <b>keyPressEvent</b>(<i>evt</i>)
177 <p>
178 Protected method handling key press events.
179 </p><dl>
180 <dt><i>evt</i></dt>
181 <dd>
182 reference to the key press event (QKeyEvent)
183 </dd>
184 </dl><a NAME="HelpTocWidget.syncToContent" ID="HelpTocWidget.syncToContent"></a>
185 <h4>HelpTocWidget.syncToContent</h4>
186 <b>syncToContent</b>(<i>url</i>)
187 <p>
188 Public method to sync the TOC to the displayed page.
189 </p><dl>
190 <dt><i>url</i></dt>
191 <dd>
192 URL of the displayed page (QUrl)
193 </dd>
194 </dl><dl>
195 <dt>Returns:</dt>
196 <dd>
197 flag indicating a successful synchronization (boolean)
198 </dd>
199 </dl>
200 <div align="right"><a href="#top">Up</a></div>
201 <hr />
202 </body></html>

eric ide

mercurial