BALL::VIEW::LogView Class Reference
[Modular Widgets]

LogView class. More...

#include <logView.h>

Inheritance diagram for BALL::VIEW::LogView:
Inheritance graph
[legend]

List of all members.


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)
Default Constructor.
LogView (const LogView &view)
Copy constructor.
virtual ~LogView ()
Destructor.
virtual void initializeWidget (MainControl &main_control)
Setup the menu entry in "Edit->Clear Logs".
virtual void finalizeWidget (MainControl &main_control)
Remove menu entries.
void logString (const String &text)

Protected Member Functions

void logNotify ()
Overridden notify call.

Detailed Description

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 NotificationTarget<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.


Constructor & Destructor Documentation

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.

See also:
BALL::LogStream

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.


Member Function Documentation

void BALL::VIEW::LogView::logNotify ( ) [protected]

Overridden notify call.

Will be called by Log whenever a string is written to it. That string will then be displayed.

Parameters:
source the notification source
Returns:
bool returns always true

Generated on Thu Aug 6 18:31:00 2009 for BALL by doxygen 1.5.8