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. |
Previewer | 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. |
__getHtml | Private method to process the given text depending upon the given language. |
__processSSI | Private method to process the given text for SSI statements. |
process | Convert the given text to HTML. |
run | Thread function 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 process the given text depending upon the given language.
Private method to process the given text for SSI statements.
Note: Only a limited subset of SSI statements are supported.
Convert the given text to HTML.
Thread function to convert the stored data.
Class implementing a previewer widget for HTML, Markdown and ReST files.
None |
None |
Previewer | Constructor |
__editorChanged | Private slot to handle a change of the current editor. |
__editorLanguageChanged | Private slot to handle a change of the current editor's language. |
__editorTextChanged | Private slot to handle changes of an editor's text. |
__isPreviewable | Private method to check, if a preview can be shown for the given editor. |
__previewStateChanged | Public slot to toggle the display of the preview. |
__restoreScrollBarPositions | Private method to restore scroll bar positions for a previewed editor. |
__runProcessingThread | Private slot to schedule the processing of the current editor's text. |
__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. |
__splitterMoved | Private slot to handle the movement of the embedding splitter's handle. |
hide | Public method to hide the preview widget. |
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. |
show | Public method to show the preview widget. |
shutdown | Public method to perform shutdown actions. |
None |
Constructor
Private slot to handle a change of the current editor.
Private slot to handle a change of the current editor's language.
Private slot to handle changes of an editor's text.
Private method to check, if a preview can be shown for the given editor.
Public slot to toggle the display of the preview.
Private method to restore scroll bar positions for a previewed editor.
Private slot to schedule the processing of the current editor's text.
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 handle the movement of the embedding splitter's handle.
Public method to hide the preview widget.
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 method to show the preview widget.
Public method to perform shutdown actions.
Class is placed here, because it depends on imported markdown, and markdown import is lazy.
(see http://achinghead.com/ python-markdown-adding-insert-delete.html this page for details)
DEL_RE |
None |
extendMarkdown |
None |