#include <LogPanel.h>


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. | |
| LogPanel::LogPanel | ( | QWidget * | parent = 0, |
|
| Qt::WindowFlags | flags = 0 | |||
| ) |
Constructor of the LogPanel class.
Constructors and Destructors.
| parent | The parent widget the created instance will be a child of. | |
| flags | Extra widget options. |
| 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.
| void LogPanel::fillToolBars | ( | QToolBar * | mainToolBar, | |
| QToolBar * | panelToolBar | |||
| ) | [virtual] |
Fills the given tool bars with actions for the log panel.
Public Functions.
| mainToolBar | The main tool bar to fill with actions. | |
| panelToolBar | The panel tool bar to fill with actions. |
| 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] |
| void LogPanel::timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
Event handler that reacts to timer events.
Protected Events.
| event | The description of the timer event. |
| 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.
| text | The text that has been entered in the search edit widget. |
Is called when the text in the search edit widget has changed.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| 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.
| activated | Flag that states whether a message filter has been activated or deactivated. |
| activated | Flag that states whether a message filter has been activated or deactivated. |
int LogPanel::m_numActiveFilters [private] |
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.
1.5.9