eric7.UI.LogView

Module implementing the log viewer widget and the log widget.

Global Attributes

None

Classes

LogViewer Class implementing the containing widget for the log viewer.
LogViewerEdit Class providing a specialized text edit for displaying logging information.

Functions

None


LogViewer

Class implementing the containing widget for the log viewer.

Derived from

QWidget

Class Attributes

None

Class Methods

None

Methods

LogViewer Constructor
appendToStderr Public slot to appand text to the "stderr" tab.
appendToStdout Public slot to appand text to the "stdout" tab.
preferencesChanged Public slot to handle a change of the preferences.
showFind Public method to display the search widget.

Static Methods

None

LogViewer (Constructor)

LogViewer(ui, parent=None)

Constructor

ui (UserInterface)
reference to the main window
parent (QWidget)
reference to the parent widget

LogViewer.appendToStderr

appendToStderr(txt)

Public slot to appand text to the "stderr" tab.

txt (str)
text to be appended

LogViewer.appendToStdout

appendToStdout(txt)

Public slot to appand text to the "stdout" tab.

txt (str)
text to be appended

LogViewer.preferencesChanged

preferencesChanged()

Public slot to handle a change of the preferences.

LogViewer.showFind

showFind(txt="")

Public method to display the search widget.

txt (str)
text to be shown in the combo
Up


LogViewerEdit

Class providing a specialized text edit for displaying logging information.

Signals

searchStringFound(found)
emitted to indicate the search result (boolean)

Derived from

QTextEdit

Class Attributes

None

Class Methods

None

Methods

LogViewerEdit Constructor
__appendText Private method to append text to the end.
__configure Private method to open the configuration dialog.
__filterMessage Private method to filter messages.
__find Private slot to show the find widget.
__handleShowContextMenu Private slot to show the context menu.
appendToStderr Public slot to append text to the "stderr" tab.
appendToStdout Public slot to append text to the "stdout" tab.
keyPressEvent Protected method handling key press events.
preferencesChanged Public slot to handle a change of the preferences.
searchNext Public method to search the next occurrence of the given text.
searchPrev Public method to search the previous occurrence of the given text.

Static Methods

None

LogViewerEdit (Constructor)

LogViewerEdit(parent=None)

Constructor

parent (QWidget)
reference to the parent widget

LogViewerEdit.__appendText

__appendText(txt, isErrorMessage=False)

Private method to append text to the end.

txt (str)
text to insert
isErrorMessage (bool)
flag indicating to insert error text

LogViewerEdit.__configure

__configure()

Private method to open the configuration dialog.

LogViewerEdit.__filterMessage

__filterMessage(message, isErrorMessage=False)

Private method to filter messages.

message (str)
message to be checked
isErrorMessage (bool)
flag indicating to check an error message
Return:
flag indicating that the message should be filtered out
Return Type:
bool

LogViewerEdit.__find

__find()

Private slot to show the find widget.

LogViewerEdit.__handleShowContextMenu

__handleShowContextMenu(coord)

Private slot to show the context menu.

coord (QPoint)
the position of the mouse pointer

LogViewerEdit.appendToStderr

appendToStderr(txt)

Public slot to append text to the "stderr" tab.

txt (str)
text to be appended
Return:
flag indicating text was appended
Return Type:
bool

LogViewerEdit.appendToStdout

appendToStdout(txt)

Public slot to append text to the "stdout" tab.

txt (str)
text to be appended
Return:
flag indicating text was appended
Return Type:
bool

LogViewerEdit.keyPressEvent

keyPressEvent(evt)

Protected method handling key press events.

evt (QKeyEvent)
key press event

LogViewerEdit.preferencesChanged

preferencesChanged()

Public slot to handle a change of the preferences.

LogViewerEdit.searchNext

searchNext(txt, caseSensitive, wholeWord, regexp)

Public method to search the next occurrence of the given text.

txt (str)
text to search for
caseSensitive (bool)
flag indicating to perform a case sensitive search
wholeWord (bool)
flag indicating to search for whole words only
regexp (bool)
flag indicating a regular expression search

LogViewerEdit.searchPrev

searchPrev(txt, caseSensitive, wholeWord, regexp)

Public method to search the previous occurrence of the given text.

txt (str)
text to search for
caseSensitive (bool)
flag indicating to perform a case sensitive search
wholeWord (bool)
flag indicating to search for whole words only
regexp (bool)
flag indicating a regular expression search
Up