LogPanel Class Reference

Class representing a panel for displaying log messages. More...

#include <LogPanel.h>

Inheritance diagram for LogPanel:

Inheritance graph
[legend]
Collaboration diagram for LogPanel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LogPanel (QWidget *parent=0, Qt::WindowFlags flags=0)
 Constructor of the LogPanel class.
virtual ~LogPanel ()
 Destructor of the LogPanel class.
virtual void fillToolBars (QToolBar *mainToolBar, QToolBar *panelToolBar)
 Fills the given tool bars with actions for the log panel.
virtual void copy ()
 Copies the currently selected (or all) log messages to the clipboard.

Protected Member Functions

virtual void timerEvent (QTimerEvent *event)
 Event handler that reacts to timer events.

Private Slots

void m_searchEdit_textChanged (const QString &text)
 Starts the timer that launches the log filtering search after a specific delay.
void on_ui_filterAction_toggled (bool enabled)
 Toggles filtering of log messages in the log panel.
void on_ui_infoAction_toggled (bool checked)
 Toggles the display of informational messages in the log panel.
void on_ui_resetSearchAction_triggered (bool checked=false)
 Cancels a running log search and resets the log search settings for the currently edited node.
void on_ui_warningAction_toggled (bool checked)
 Toggles the display of warning messages in the log panel.
void on_ui_errorAction_toggled (bool checked)
 Toggles the display of error messages in the log panel.
void on_ui_debugAction_toggled (bool checked)
 Toggles the display of debug messages in the log panel.
void on_ui_qtAction_toggled (bool checked)
 Toggles the display of Qt messages in the log panel.
void on_ui_ogreAction_toggled (bool checked)
 Toggles the display of OGRE messages in the log panel.
void on_ui_resetFilterAction_triggered ()
 Resets the log panel's filter settings.
void on_ui_copyAction_triggered ()
 Copies the text of the currently selected log messages to the clipboard.
void on_ui_clearAction_triggered ()
 Clears the log message history.

Private Member Functions

void updateActions (bool activated)
 Keeps track of the number of active message filters and enables the Filter and Reset Filter actions accordingly.

Private Attributes

int m_numActiveFilters
 The number of currently active message filters.
QLineEdit * m_searchEdit
 The line edit for editing the string for a log search.
int m_searchTimer
 The ID of the timer that is (re-)started each time the search text in the search edit widget is changed.


Detailed Description

Class representing a panel for displaying log messages.

Constructor & Destructor Documentation

LogPanel::LogPanel ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

Constructor of the LogPanel class.

Constructors and Destructors.

Parameters:
parent The parent widget the created instance will be a child of.
flags Extra widget options.
Constructor of the LogPanel class.

Parameters:
parent The parent widget the created instance will be a child of.
flags Extra widget options.

LogPanel::~LogPanel (  )  [virtual]

Destructor of the LogPanel class.

Defined virtual to guarantee that the destructor of a derived class will be called if the instance of the derived class is saved in a variable of its parent class type.


Member Function Documentation

void LogPanel::fillToolBars ( QToolBar *  mainToolBar,
QToolBar *  panelToolBar 
) [virtual]

Fills the given tool bars with actions for the log panel.

Public Functions.

Parameters:
mainToolBar The main tool bar to fill with actions.
panelToolBar The panel tool bar to fill with actions.
Fills the given tool bars with actions for the log panel.

Parameters:
mainToolBar The main tool bar to fill with actions.
panelToolBar The panel tool bar to fill with actions.

Reimplemented from Panel.

void LogPanel::copy (  )  [virtual]

Copies the currently selected (or all) log messages to the clipboard.

Implements CopyHandler.

void LogPanel::timerEvent ( QTimerEvent *  event  )  [protected, virtual]

Event handler that reacts to timer events.

Protected Events.

Parameters:
event The description of the timer event.
Event handler that reacts to timer events.

Parameters:
event The description of the timer event.

void LogPanel::m_searchEdit_textChanged ( const QString &  text  )  [private, slot]

Starts the timer that launches the log filtering search after a specific delay.

Private Slots.

Is called when the text in the search edit widget has changed.

Parameters:
text The text that has been entered in the search edit widget.
Starts the timer that launches the log filtering search after a specific delay.

Is called when the text in the search edit widget has changed.

Parameters:
text The text that has been entered in the search edit widget.

void LogPanel::on_ui_filterAction_toggled ( bool  enabled  )  [private, slot]

Toggles filtering of log messages in the log panel.

Parameters:
enabled Flag that controls whether to enable or disable filtering.

void LogPanel::on_ui_infoAction_toggled ( bool  checked  )  [private, slot]

Toggles the display of informational messages in the log panel.

Parameters:
checked Flag that controls whether to show or hide the messages.

void LogPanel::on_ui_resetSearchAction_triggered ( bool  checked = false  )  [private, slot]

Cancels a running log search and resets the log search settings for the currently edited node.

Cancels a running log search and resets the parameter search settings for the currently edited node.

Is called when the reset search action has been triggered.

Parameters:
checked The state of the action (unused).

void LogPanel::on_ui_warningAction_toggled ( bool  checked  )  [private, slot]

Toggles the display of warning messages in the log panel.

Parameters:
checked Flag that controls whether to show or hide the messages.

void LogPanel::on_ui_errorAction_toggled ( bool  checked  )  [private, slot]

Toggles the display of error messages in the log panel.

Parameters:
checked Flag that controls whether to show or hide the messages.

void LogPanel::on_ui_debugAction_toggled ( bool  checked  )  [private, slot]

Toggles the display of debug messages in the log panel.

Parameters:
checked Flag that controls whether to show or hide the messages.

void LogPanel::on_ui_qtAction_toggled ( bool  checked  )  [private, slot]

Toggles the display of Qt messages in the log panel.

Parameters:
checked Flag that controls whether to show or hide the messages.

void LogPanel::on_ui_ogreAction_toggled ( bool  checked  )  [private, slot]

Toggles the display of OGRE messages in the log panel.

Parameters:
checked Flag that controls whether to show or hide the messages.

void LogPanel::on_ui_resetFilterAction_triggered (  )  [private, slot]

Resets the log panel's filter settings.

void LogPanel::on_ui_copyAction_triggered (  )  [private, slot]

Copies the text of the currently selected log messages to the clipboard.

void LogPanel::on_ui_clearAction_triggered (  )  [private, slot]

Clears the log message history.

void LogPanel::updateActions ( bool  activated  )  [private]

Keeps track of the number of active message filters and enables the Filter and Reset Filter actions accordingly.

Private Functions.

Parameters:
activated Flag that states whether a message filter has been activated or deactivated.
Keeps track of the number of active message filters and enables the Filter and Reset Filter actions accordingly.

Parameters:
activated Flag that states whether a message filter has been activated or deactivated.


Member Data Documentation

The number of currently active message filters.

QLineEdit* LogPanel::m_searchEdit [private]

The line edit for editing the string for a log search.

int LogPanel::m_searchTimer [private]

The ID of the timer that is (re-)started each time the search text in the search edit widget is changed.


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

Generated on Wed Feb 24 15:01:01 2010 for Frapper by  doxygen 1.5.9