Observer to enable report view on warnings / errors if not already enabled. More...
#include <ReportView.h>
Public Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) |
ReportOutputObserver (ReportOutput *view) | |
The ReportOutputObserver class is used to check if messages sent to the report view are warnings or errors, and if so and if the user has not disabled this in preferences, the report view is toggled on so the user always gets the warnings/errors. More... | |
Protected Member Functions | |
void | showReportView (void) |
Protected Attributes | |
QPointer< ReportOutput > | reportView |
Observer to enable report view on warnings / errors if not already enabled.
ReportOutputObserver::ReportOutputObserver | ( | ReportOutput * | view | ) |
The ReportOutputObserver class is used to check if messages sent to the report view are warnings or errors, and if so and if the user has not disabled this in preferences, the report view is toggled on so the user always gets the warnings/errors.
References reportView.
References Gui::DockWnd::ReportHighlighter::Error, Gui::DockWnd::ReportHighlighter::LogText, Gui::DockWnd::ReportHighlighter::Message, CustomReportEvent::messageType(), reportView, Gui::ReportOutputParameter::showOnError(), Gui::ReportOutputParameter::showOnLogMessage(), Gui::ReportOutputParameter::showOnMessage(), Gui::ReportOutputParameter::showOnWarning(), showReportView(), and Gui::DockWnd::ReportHighlighter::Warning.
|
protected |
References Gui::DockWindowManager::activate(), Gui::DockWindowManager::instance(), and reportView.
Referenced by eventFilter().
|
protected |
Referenced by eventFilter(), ReportOutputObserver(), and showReportView().