32 #ifndef pqOutputWidget_h 33 #define pqOutputWidget_h 37 #include "pqCoreModule.h" 38 #include <QScopedPointer> 47 Q_DECLARE_METATYPE(QtMsgType)
78 static void handler(QtMsgType
type,
const QMessageLogContext&,
const QString& msg);
83 static void handlerVTK(QtMsgType
type,
const QString& msg);
86 void message(QtMsgType
type,
const QString& msg);
87 void showMessage(QString msg, QtMsgType
type);
93 void displayMessage(QtMsgType
type,
const QString& msg);
108 typedef QWidget Superclass;
109 Q_PROPERTY(QString settingsKey READ settingsKey WRITE setSettingsKey);
112 pqOutputWidget(QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
119 void suppress(
const QStringList& substrs);
126 void setSettingsKey(
const QString& key);
127 const QString& settingsKey()
const;
134 void setFontSize(
int fontSize);
145 bool displayMessage(
const QString& message, QtMsgType type = QtInfoMsg);
150 void showFullMessages(
bool val);
166 void messageDisplayed(
const QString& message,
int type);
172 virtual bool suppress(
const QString& message, QtMsgType type);
177 virtual QString extractSummary(
const QString& message, QtMsgType type);
183 QScopedPointer<pqInternals> Internals;
184 friend class OutputWidgetInternals::OutputWindow;
widget to show Qt and VTK messages.