4 #ifndef pqOutputWidget_h 5 #define pqOutputWidget_h 10 #include <QScopedPointer> 19 Q_DECLARE_METATYPE(QtMsgType)
50 static void handler(QtMsgType
type,
const QMessageLogContext&,
const QString& msg);
55 static void handlerVTK(QtMsgType
type,
const QString& msg);
58 void message(QtMsgType
type,
const QString& msg);
59 void showMessage(QString msg, QtMsgType
type);
65 void displayMessage(QtMsgType
type,
const QString& msg);
80 typedef QWidget Superclass;
81 Q_PROPERTY(QString settingsKey READ settingsKey WRITE setSettingsKey);
84 pqOutputWidget(QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
91 void suppress(
const QStringList& substrs);
98 void setSettingsKey(
const QString& key);
99 const QString& settingsKey()
const;
106 void setFontSize(
int fontSize);
112 bool shouldOpenForNewMessages();
122 bool displayMessage(
const QString& message, QtMsgType type = QtInfoMsg);
127 void alwaysOpenForNewMessages(
bool val);
132 void showFullMessages(
bool val);
137 void copyToClipboard();
152 void showEvent(QShowEvent* event)
override;
158 void messageDisplayed(
const QString& message,
int type);
164 virtual bool suppress(
const QString& message, QtMsgType type);
169 virtual QString extractSummary(
const QString& message, QtMsgType type);
175 QScopedPointer<pqInternals> Internals;
176 friend class OutputWidgetInternals::OutputWindow;
void VTKPVADAPTORSCTH_EXPORT handler(int sig)
widget to show Qt and VTK messages.