Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::LogView Class Reference
[Modular Widgets]

LogView class. More...

#include <logView.h>

Inheritance diagram for VIEW::LogView:

VIEW::DockWidget VIEW::ModularWidget Embeddable VIEW::ConnectionObject 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) throw ()
 Default Constructor.
 LogView (const LogView &view) throw ()
 Copy constructor.
virtual ~LogView () throw ()
 Destructor.
virtual void initializeWidget (MainControl &main_control) throw ()
 Setup the menu entry in "Edit->Clear Logs".
virtual void finalizeWidget (MainControl &main_control) throw ()
 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

VIEW::LogView::LogView QWidget *  parent = 0,
const char *  name = 0
throw ()
 

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:
LogStream

VIEW::LogView::LogView const LogView view  )  throw ()
 

Copy constructor.

Only for Python Interface The text of view will be copied into this logView.

virtual VIEW::LogView::~LogView  )  throw () [virtual]
 

Destructor.

Calls clear.


Member Function Documentation

virtual void VIEW::LogView::finalizeWidget MainControl main_control  )  throw () [virtual]
 

Remove menu entries.

Reimplemented from VIEW::ModularWidget.

virtual void VIEW::LogView::initializeWidget MainControl main_control  )  throw () [virtual]
 

Setup the menu entry in "Edit->Clear Logs".

Reimplemented from VIEW::DockWidget.

void 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