Module implementing a previewer widget for HTML, Markdown and ReST files.
None |
PreviewProcessingThread | Class implementing a thread to process some text into HTML usable by the previewer view. |
PreviewerHTML | Class implementing a previewer widget for HTML, Markdown and ReST files. |
_StrikeThroughExtension | Class is placed here, because it depends on imported markdown, and markdown import is lazy. |
None |
Class implementing a thread to process some text into HTML usable by the previewer view.
None |
None |
PreviewProcessingThread | Constructor |
__convertMarkdown | Private method to convert Markdown text into HTML. |
__convertReST | Private method to convert ReST text into HTML. |
__convertReSTDocutils | Private method to convert ReST text into HTML using 'docutils'. |
__convertReSTSphinx | Private method to convert ReST text into HTML using 'sphinx'. |
__getHtml | Private method to process the given text depending upon the given language. |
__processRootPath | Private method to adjust absolute references to the given root path. |
__processSSI | Private method to process the given text for SSI statements. |
process | Public method to convert the given text to HTML. |
run | Public thread method to convert the stored data. |
None |
Constructor
Private method to convert Markdown text into HTML.
Private method to convert ReST text into HTML.
Private method to convert ReST text into HTML using 'docutils'.
Private method to convert ReST text into HTML using 'sphinx'.
Private method to process the given text depending upon the given language.
Private method to adjust absolute references to the given root path.
Private method to process the given text for SSI statements.
Note: Only a limited subset of SSI statements are supported.
Public method to convert the given text to HTML.
Public thread method to convert the stored data.
Class implementing a previewer widget for HTML, Markdown and ReST files.
None |
None |
PreviewerHTML | Constructor |
__execJavaScript | Private function to execute a JavaScript function Synchroneously. |
__restoreScrollBarPositions | Private method to restore scroll bar positions for a previewed editor. |
__saveScrollBarPositions | Private method to save scroll bar positions for a previewed editor. |
__setHtml | Private method to set the HTML to the view and restore the scroll bars positions. |
__setJavaScriptEnabled | Private method to enable/disable JavaScript. |
__showLink | Private slot to show the hovered link in a tooltip. |
on_jsCheckBox_clicked | Private slot to enable/disable JavaScript. |
on_previewView_linkClicked | Private slot handling the clicking of a link. |
on_previewView_titleChanged | Private slot to handle a change of the title. |
on_ssiCheckBox_clicked | Private slot to enable/disable SSI. |
processEditor | Public slot to process an editor's text. |
resultCallback | |
shutdown | Public method to perform shutdown actions. |
None |
Constructor
Private function to execute a JavaScript function Synchroneously.
Private method to restore scroll bar positions for a previewed editor.
Private method to save scroll bar positions for a previewed editor.
Private method to set the HTML to the view and restore the scroll bars positions.
Private method to enable/disable JavaScript.
Private slot to show the hovered link in a tooltip.
Private slot to enable/disable JavaScript.
Private slot handling the clicking of a link.
Private slot to handle a change of the title.
Private slot to enable/disable SSI.
Public slot to process an editor's text.
Public method to perform shutdown actions.
Class is placed here, because it depends on imported markdown, and markdown import is lazy.
(see https://pythonhosted.org/Markdown/extensions/api.html this page for details)
DEL_RE |
None |
extendMarkdown |
None |