#include <BALL/VIEW/WIDGETS/logView.h>
Public Slots | |
virtual void | showGuestContextMenu (const QPoint &) |
bool | eventFilter (QObject *, QEvent *) |
Event filter logstream. | |
Public Member Functions | |
LogView (QWidget *parent=0, const char *name=0) | |
LogView (const LogView &view) | |
virtual | ~LogView () |
virtual void | initializeWidget (MainControl &main_control) |
virtual void | finalizeWidget (MainControl &main_control) |
void | logString (const String &text) |
Protected Member Functions | |
void | logNotify () |
Private Attributes | |
QTextEdit * | text_edit_ |
LogView class. The class LogView records all messages sent to the Log object and displays them as a text history. The class is derived from LogStreamNotifier that provides the connection to the Log object. The class QTextEdit from the qt - library is responsible for the visualization of the text history. Use the class LogView as a widget. There are no initializations necessary. Just create this widget as a child widget of your application and it will record and show all messages sent to the Log object. The LogView supports URLs, that are included into the LogStream. The links must only be one line long. If such a link is clicked, it's document is shown in the HelpViewer. This can be used to show the corresponding section in the BALLView documentation for an occuring problem.
Definition at line 63 of file logView.h.
BALL::VIEW::LogView::LogView | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Default Constructor. The contructor connects the own stringstream with the Log object. If a string is written into Log this will be notified and the string will be displayed by this logView.
BALL::VIEW::LogView::LogView | ( | const LogView & | view | ) |
Copy constructor. Only for Python Interface The text of view will be copied into this logView.
virtual BALL::VIEW::LogView::~LogView | ( | ) | [virtual] |
Destructor. Calls clear.
virtual void BALL::VIEW::LogView::finalizeWidget | ( | MainControl & | main_control | ) | [virtual] |
Remove menu entries.
Reimplemented from BALL::VIEW::ModularWidget.
virtual void BALL::VIEW::LogView::initializeWidget | ( | MainControl & | main_control | ) | [virtual] |
Setup the menu entry in "Edit->Clear Logs".
Reimplemented from BALL::VIEW::DockWidget.
void BALL::VIEW::LogView::logNotify | ( | ) | [protected, virtual] |
Overridden notify call. Will be called by Log whenever a string is written to it. That string will then be displayed.
source | the notification source |
true
Reimplemented from BALL::LogStreamNotifier.
void BALL::VIEW::LogView::logString | ( | const String & | text | ) |
virtual void BALL::VIEW::LogView::showGuestContextMenu | ( | const QPoint & | ) | [virtual, slot] |
Reimplemented from BALL::VIEW::DockWidget.
QTextEdit* BALL::VIEW::LogView::text_edit_ [private] |