Developer Documentation
LoggerWidget Class Reference

Implementation of the logger Widget. More...

#include <OpenFlipper/widgets/loggerWidget/loggerWidget.hh>

Inheritance diagram for LoggerWidget:

Public Member Functions

 LoggerWidget (QWidget *parent=0)
 
void append (const QString &_text, Logtype _type)
 Append a new logmessage to log viewer. More...
 

Public Attributes

QAction * openMeshFilterAction_
 

Protected Member Functions

void keyPressEvent (QKeyEvent *_event)
 Grab key events. More...
 
void contextMenuEvent (QContextMenuEvent *event)
 Show context menu. More...
 
void showEvent (QShowEvent *event)
 Called when the widget is shown. More...
 

Private Slots

void updateList ()
 update the list if a button was pressed More...
 
void copySelected ()
 copy Selected rows to clipboard More...
 
void slotScrollUpdate ()
 Called when we want to scroll to the bottom. More...
 
void slotFilterMenu ()
 Called when filter button is pressed. More...
 

Private Attributes

QListWidget * list_
 
bool blockNext_
 
QPushButton * allButton_
 
QPushButton * infoButton_
 
QPushButton * warnButton_
 
QPushButton * errorButton_
 
QPushButton * filterButton_
 
QPushButton * clearButton_
 
QMenu * context_
 
QMenu * filterMenu_
 
QTimer loggerUpdateTimer_
 
bool newData_
 

Detailed Description

Implementation of the logger Widget.

This class adds some special features to the textedit for the log window

Definition at line 61 of file loggerWidget.hh.

Constructor & Destructor Documentation

◆ LoggerWidget()

LoggerWidget::LoggerWidget ( QWidget *  parent = 0)
explicit

Definition at line 53 of file loggerWidget.cc.

◆ ~LoggerWidget()

LoggerWidget::~LoggerWidget ( )

Definition at line 170 of file loggerWidget.cc.

Member Function Documentation

◆ append()

void LoggerWidget::append ( const QString &  _text,
Logtype  _type 
)

Append a new logmessage to log viewer.

Display log message of given logtype

Definition at line 185 of file loggerWidget.cc.

◆ contextMenuEvent()

void LoggerWidget::contextMenuEvent ( QContextMenuEvent *  event)
protected

Show context menu.

show context menu

This function shows the context menu

Definition at line 323 of file loggerWidget.cc.

◆ copySelected

void LoggerWidget::copySelected ( )
privateslot

copy Selected rows to clipboard

Definition at line 334 of file loggerWidget.cc.

◆ keyPressEvent()

void LoggerWidget::keyPressEvent ( QKeyEvent *  _event)
protected

Grab key events.

handle keyPressEvents

This function grabs all key events and passes them back to the core to handle them correctly

Definition at line 308 of file loggerWidget.cc.

◆ showEvent()

void LoggerWidget::showEvent ( QShowEvent *  event)
protected

Called when the widget is shown.

Function scrolls to bottom if the object gets visible

Definition at line 301 of file loggerWidget.cc.

◆ slotFilterMenu

void LoggerWidget::slotFilterMenu ( )
privateslot

Called when filter button is pressed.

Definition at line 348 of file loggerWidget.cc.

◆ slotScrollUpdate

void LoggerWidget::slotScrollUpdate ( )
privateslot

Called when we want to scroll to the bottom.

Definition at line 257 of file loggerWidget.cc.

◆ updateList

void LoggerWidget::updateList ( )
privateslot

update the list if a button was pressed

Definition at line 270 of file loggerWidget.cc.

Member Data Documentation

◆ allButton_

QPushButton* LoggerWidget::allButton_
private

Definition at line 103 of file loggerWidget.hh.

◆ blockNext_

bool LoggerWidget::blockNext_
private

Definition at line 101 of file loggerWidget.hh.

◆ clearButton_

QPushButton* LoggerWidget::clearButton_
private

Definition at line 110 of file loggerWidget.hh.

◆ context_

QMenu* LoggerWidget::context_
private

Definition at line 112 of file loggerWidget.hh.

◆ errorButton_

QPushButton* LoggerWidget::errorButton_
private

Definition at line 106 of file loggerWidget.hh.

◆ filterButton_

QPushButton* LoggerWidget::filterButton_
private

Definition at line 108 of file loggerWidget.hh.

◆ filterMenu_

QMenu* LoggerWidget::filterMenu_
private

Definition at line 114 of file loggerWidget.hh.

◆ infoButton_

QPushButton* LoggerWidget::infoButton_
private

Definition at line 104 of file loggerWidget.hh.

◆ list_

QListWidget* LoggerWidget::list_
private

Definition at line 99 of file loggerWidget.hh.

◆ loggerUpdateTimer_

QTimer LoggerWidget::loggerUpdateTimer_
private

Definition at line 116 of file loggerWidget.hh.

◆ newData_

bool LoggerWidget::newData_
private

Definition at line 119 of file loggerWidget.hh.

◆ openMeshFilterAction_

QAction* LoggerWidget::openMeshFilterAction_

Definition at line 123 of file loggerWidget.hh.

◆ warnButton_

QPushButton* LoggerWidget::warnButton_
private

Definition at line 105 of file loggerWidget.hh.


The documentation for this class was generated from the following files: