eric4.Helpviewer.HelpBrowser

Module implementing the helpbrowser.

Classes

HelpBrowser Class implementing the helpbrowser widget.

Functions

None


HelpBrowser

Class implementing the helpbrowser widget.

This is a subclass of the Qt QTextBrowser to implement a custimized setSource method. The implementation was influenced by Qt Assistant, which is copyright by Trolltech AS.

Derived from

QTextBrowser

Methods

HelpBrowser Constructor
__openLinkInNewTab Private method called by the context menu to open a link in a new window.
contextMenuEvent Protected method called to create a context menu.
keyPressEvent Protected method called by a key press.
keyReleaseEvent Protected method called by a key release.
setSource Public method used to set the source to be displayed.

HelpBrowser (Constructor)

HelpBrowser(parent = None, name = QString(""))

Constructor

parent
parent widget of this window (QWidget)
name
name of this window (string or QString)

HelpBrowser.__openLinkInNewTab

__openLinkInNewTab()

Private method called by the context menu to open a link in a new window.

HelpBrowser.contextMenuEvent

contextMenuEvent(evt)

Protected method called to create a context menu.

This method is overridden from QTextBrowser.

evt
reference to the context menu event object (QContextMenuEvent)

HelpBrowser.keyPressEvent

keyPressEvent(evt)

Protected method called by a key press.

This method is overridden from QTextBrowser.

evt
the key event (QKeyEvent)

HelpBrowser.keyReleaseEvent

keyReleaseEvent(evt)

Protected method called by a key release.

This method is overridden from QTextBrowser.

evt
the key event (QKeyEvent)

HelpBrowser.setSource

setSource(name)

Public method used to set the source to be displayed.

This method is overridden from QTextBrowser.

name
filename to be shown (QUrl)
Up