50 <p> |
50 <p> |
51 Class implementing a thread to process some text into HTML usable by the |
51 Class implementing a thread to process some text into HTML usable by the |
52 previewer view. |
52 previewer view. |
53 </p><h3>Signals</h3> |
53 </p><h3>Signals</h3> |
54 <dl> |
54 <dl> |
55 <dt>htmlReady(str,str)</dt> |
55 <dt>htmlReady(str, str, str)</dt> |
56 <dd> |
56 <dd> |
57 emitted with the file name and processed HTML |
57 emitted with the file name, the processed |
58 to signal the availability of the processed HTML |
58 HTML and the web site root path to signal the availability of the |
|
59 processed HTML |
59 </dd> |
60 </dd> |
60 </dl> |
61 </dl> |
61 <h3>Derived from</h3> |
62 <h3>Derived from</h3> |
62 QThread |
63 QThread |
63 <h3>Class Attributes</h3> |
64 <h3>Class Attributes</h3> |
341 <td>Private method to set the HTML to the view and restore the scroll bars positions.</td> |
342 <td>Private method to set the HTML to the view and restore the scroll bars positions.</td> |
342 </tr><tr> |
343 </tr><tr> |
343 <td><a href="#PreviewerHTML.__setJavaScriptEnabled">__setJavaScriptEnabled</a></td> |
344 <td><a href="#PreviewerHTML.__setJavaScriptEnabled">__setJavaScriptEnabled</a></td> |
344 <td>Private method to enable/disable JavaScript.</td> |
345 <td>Private method to enable/disable JavaScript.</td> |
345 </tr><tr> |
346 </tr><tr> |
|
347 <td><a href="#PreviewerHTML.__showLink">__showLink</a></td> |
|
348 <td>Private slot to show the hovered link in a tooltip.</td> |
|
349 </tr><tr> |
346 <td><a href="#PreviewerHTML.on_jsCheckBox_clicked">on_jsCheckBox_clicked</a></td> |
350 <td><a href="#PreviewerHTML.on_jsCheckBox_clicked">on_jsCheckBox_clicked</a></td> |
347 <td>Private slot to enable/disable JavaScript.</td> |
351 <td>Private slot to enable/disable JavaScript.</td> |
348 </tr><tr> |
352 </tr><tr> |
349 <td><a href="#PreviewerHTML.on_previewView_linkClicked">on_previewView_linkClicked</a></td> |
353 <td><a href="#PreviewerHTML.on_previewView_linkClicked">on_previewView_linkClicked</a></td> |
350 <td>Private slot handling the clicking of a link.</td> |
354 <td>Private slot handling the clicking of a link.</td> |
409 <b>__saveScrollBarPositions</b>(<i></i>) |
413 <b>__saveScrollBarPositions</b>(<i></i>) |
410 <p> |
414 <p> |
411 Private method to save scroll bar positions for a previewed editor. |
415 Private method to save scroll bar positions for a previewed editor. |
412 </p><a NAME="PreviewerHTML.__setHtml" ID="PreviewerHTML.__setHtml"></a> |
416 </p><a NAME="PreviewerHTML.__setHtml" ID="PreviewerHTML.__setHtml"></a> |
413 <h4>PreviewerHTML.__setHtml</h4> |
417 <h4>PreviewerHTML.__setHtml</h4> |
414 <b>__setHtml</b>(<i>filePath, html</i>) |
418 <b>__setHtml</b>(<i>filePath, html, rootPath</i>) |
415 <p> |
419 <p> |
416 Private method to set the HTML to the view and restore the scroll bars |
420 Private method to set the HTML to the view and restore the scroll bars |
417 positions. |
421 positions. |
418 </p><dl> |
422 </p><dl> |
419 <dt><i>filePath</i></dt> |
423 <dt><i>filePath</i> (str)</dt> |
420 <dd> |
424 <dd> |
421 file path of the previewed editor (string) |
425 file path of the previewed editor |
422 </dd><dt><i>html</i></dt> |
426 </dd><dt><i>html</i> (str)</dt> |
423 <dd> |
427 <dd> |
424 processed HTML text ready to be shown (string) |
428 processed HTML text ready to be shown |
|
429 </dd><dt><i>rootPath</i> (str)</dt> |
|
430 <dd> |
|
431 path of the web site root |
425 </dd> |
432 </dd> |
426 </dl><a NAME="PreviewerHTML.__setJavaScriptEnabled" ID="PreviewerHTML.__setJavaScriptEnabled"></a> |
433 </dl><a NAME="PreviewerHTML.__setJavaScriptEnabled" ID="PreviewerHTML.__setJavaScriptEnabled"></a> |
427 <h4>PreviewerHTML.__setJavaScriptEnabled</h4> |
434 <h4>PreviewerHTML.__setJavaScriptEnabled</h4> |
428 <b>__setJavaScriptEnabled</b>(<i>enable</i>) |
435 <b>__setJavaScriptEnabled</b>(<i>enable</i>) |
429 <p> |
436 <p> |
430 Private method to enable/disable JavaScript. |
437 Private method to enable/disable JavaScript. |
431 </p><dl> |
438 </p><dl> |
432 <dt><i>enable</i></dt> |
439 <dt><i>enable</i></dt> |
433 <dd> |
440 <dd> |
434 flag indicating the enable state (boolean) |
441 flag indicating the enable state (boolean) |
|
442 </dd> |
|
443 </dl><a NAME="PreviewerHTML.__showLink" ID="PreviewerHTML.__showLink"></a> |
|
444 <h4>PreviewerHTML.__showLink</h4> |
|
445 <b>__showLink</b>(<i>urlStr</i>) |
|
446 <p> |
|
447 Private slot to show the hovered link in a tooltip. |
|
448 </p><dl> |
|
449 <dt><i>urlStr</i> (str)</dt> |
|
450 <dd> |
|
451 hovered URL |
435 </dd> |
452 </dd> |
436 </dl><a NAME="PreviewerHTML.on_jsCheckBox_clicked" ID="PreviewerHTML.on_jsCheckBox_clicked"></a> |
453 </dl><a NAME="PreviewerHTML.on_jsCheckBox_clicked" ID="PreviewerHTML.on_jsCheckBox_clicked"></a> |
437 <h4>PreviewerHTML.on_jsCheckBox_clicked</h4> |
454 <h4>PreviewerHTML.on_jsCheckBox_clicked</h4> |
438 <b>on_jsCheckBox_clicked</b>(<i>checked</i>) |
455 <b>on_jsCheckBox_clicked</b>(<i>checked</i>) |
439 <p> |
456 <p> |