eric6/Documentation/Source/eric6.Helpviewer.HelpTocWidget.html

changeset 6942
2602857055c5
parent 5252
321c2003745d
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Helpviewer.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.Helpviewer.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>linkActivated(QUrl)</dt>
52 <dd>
53 emitted when a TOC entry is activated
54 </dd>
55 </dl>
56 <h3>Derived from</h3>
57 QWidget
58 <h3>Class Attributes</h3>
59 <table>
60 <tr><td>None</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63 <table>
64 <tr><td>None</td></tr>
65 </table>
66 <h3>Methods</h3>
67 <table>
68 <tr>
69 <td><a href="#HelpTocWidget.__init__">HelpTocWidget</a></td>
70 <td>Constructor</td>
71 </tr><tr>
72 <td><a href="#HelpTocWidget.__expandTOC">__expandTOC</a></td>
73 <td>Private slot to expand the table of contents.</td>
74 </tr><tr>
75 <td><a href="#HelpTocWidget.__linkActivated">__linkActivated</a></td>
76 <td>Private slot handling the activation of an entry.</td>
77 </tr><tr>
78 <td><a href="#HelpTocWidget.__showContextMenu">__showContextMenu</a></td>
79 <td>Private slot showing the context menu.</td>
80 </tr><tr>
81 <td><a href="#HelpTocWidget.expandToDepth">expandToDepth</a></td>
82 <td>Public slot to expand the table of contents to a specific depth.</td>
83 </tr><tr>
84 <td><a href="#HelpTocWidget.focusInEvent">focusInEvent</a></td>
85 <td>Protected method handling focus in events.</td>
86 </tr><tr>
87 <td><a href="#HelpTocWidget.itemClicked">itemClicked</a></td>
88 <td>Public slot handling a click of a TOC entry.</td>
89 </tr><tr>
90 <td><a href="#HelpTocWidget.keyPressEvent">keyPressEvent</a></td>
91 <td>Protected method handling key press events.</td>
92 </tr><tr>
93 <td><a href="#HelpTocWidget.syncToContent">syncToContent</a></td>
94 <td>Public method to sync the TOC to the displayed page.</td>
95 </tr>
96 </table>
97 <h3>Static Methods</h3>
98 <table>
99 <tr><td>None</td></tr>
100 </table>
101 <a NAME="HelpTocWidget.__init__" ID="HelpTocWidget.__init__"></a>
102 <h4>HelpTocWidget (Constructor)</h4>
103 <b>HelpTocWidget</b>(<i>engine, mainWindow, parent=None</i>)
104 <p>
105 Constructor
106 </p><dl>
107 <dt><i>engine</i></dt>
108 <dd>
109 reference to the help engine (QHelpEngine)
110 </dd><dt><i>mainWindow</i></dt>
111 <dd>
112 reference to the main window object (QMainWindow)
113 </dd><dt><i>parent</i></dt>
114 <dd>
115 reference to the parent widget (QWidget)
116 </dd>
117 </dl><a NAME="HelpTocWidget.__expandTOC" ID="HelpTocWidget.__expandTOC"></a>
118 <h4>HelpTocWidget.__expandTOC</h4>
119 <b>__expandTOC</b>(<i></i>)
120 <p>
121 Private slot to expand the table of contents.
122 </p><a NAME="HelpTocWidget.__linkActivated" ID="HelpTocWidget.__linkActivated"></a>
123 <h4>HelpTocWidget.__linkActivated</h4>
124 <b>__linkActivated</b>(<i>url</i>)
125 <p>
126 Private slot handling the activation of an entry.
127 </p><dl>
128 <dt><i>url</i> (QUrl)</dt>
129 <dd>
130 URL of the activated entry
131 </dd>
132 </dl><a NAME="HelpTocWidget.__showContextMenu" ID="HelpTocWidget.__showContextMenu"></a>
133 <h4>HelpTocWidget.__showContextMenu</h4>
134 <b>__showContextMenu</b>(<i>pos</i>)
135 <p>
136 Private slot showing the context menu.
137 </p><dl>
138 <dt><i>pos</i></dt>
139 <dd>
140 position to show the menu at (QPoint)
141 </dd>
142 </dl><a NAME="HelpTocWidget.expandToDepth" ID="HelpTocWidget.expandToDepth"></a>
143 <h4>HelpTocWidget.expandToDepth</h4>
144 <b>expandToDepth</b>(<i>depth</i>)
145 <p>
146 Public slot to expand the table of contents to a specific depth.
147 </p><dl>
148 <dt><i>depth</i></dt>
149 <dd>
150 depth to expand to (integer)
151 </dd>
152 </dl><a NAME="HelpTocWidget.focusInEvent" ID="HelpTocWidget.focusInEvent"></a>
153 <h4>HelpTocWidget.focusInEvent</h4>
154 <b>focusInEvent</b>(<i>evt</i>)
155 <p>
156 Protected method handling focus in events.
157 </p><dl>
158 <dt><i>evt</i></dt>
159 <dd>
160 reference to the focus event object (QFocusEvent)
161 </dd>
162 </dl><a NAME="HelpTocWidget.itemClicked" ID="HelpTocWidget.itemClicked"></a>
163 <h4>HelpTocWidget.itemClicked</h4>
164 <b>itemClicked</b>(<i>index</i>)
165 <p>
166 Public slot handling a click of a TOC entry.
167 </p><dl>
168 <dt><i>index</i></dt>
169 <dd>
170 index of the TOC clicked (QModelIndex)
171 </dd>
172 </dl><a NAME="HelpTocWidget.keyPressEvent" ID="HelpTocWidget.keyPressEvent"></a>
173 <h4>HelpTocWidget.keyPressEvent</h4>
174 <b>keyPressEvent</b>(<i>evt</i>)
175 <p>
176 Protected method handling key press events.
177 </p><dl>
178 <dt><i>evt</i></dt>
179 <dd>
180 reference to the key press event (QKeyEvent)
181 </dd>
182 </dl><a NAME="HelpTocWidget.syncToContent" ID="HelpTocWidget.syncToContent"></a>
183 <h4>HelpTocWidget.syncToContent</h4>
184 <b>syncToContent</b>(<i>url</i>)
185 <p>
186 Public method to sync the TOC to the displayed page.
187 </p><dl>
188 <dt><i>url</i></dt>
189 <dd>
190 URL of the displayed page (QUrl)
191 </dd>
192 </dl><dl>
193 <dt>Returns:</dt>
194 <dd>
195 flag indicating a successful synchronization (boolean)
196 </dd>
197 </dl>
198 <div align="right"><a href="#top">Up</a></div>
199 <hr />
200 </body></html>

eric ide

mercurial