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

#include <BALL/VIEW/WIDGETS/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)
 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

QTextEdittext_edit_

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


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

bool BALL::VIEW::LogView::eventFilter ( QObject ,
QEvent  
) [slot]

Event filter logstream.

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.

Parameters:
source the notification source
Returns:
bool returns always 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.


Member Data Documentation

Definition at line 123 of file logView.h.

Generated by  doxygen 1.6.3