4 #ifndef pqOutputWidget_h 5 #define pqOutputWidget_h 10 #include <QScopedPointer> 51 static void handler(QtMsgType
type,
const QMessageLogContext&,
const QString& msg);
56 static void handlerVTK(QtMsgType type,
const QString& msg);
59 void message(QtMsgType type,
const QString& msg);
60 void showMessage(QString msg, QtMsgType type);
66 void displayMessage(QtMsgType type,
const QString& msg);
81 typedef QWidget Superclass;
82 Q_PROPERTY(QString settingsKey READ settingsKey WRITE setSettingsKey);
85 pqOutputWidget(QWidget* parent =
nullptr, Qt::WindowFlags f = Qt::WindowFlags());
92 void suppress(
const QStringList& substrs);
99 void setSettingsKey(
const QString& key);
100 const QString& settingsKey()
const;
107 void setFontSize(
int fontSize);
113 bool shouldOpenForNewMessages();
123 bool displayMessage(
const QString& message, QtMsgType type = QtInfoMsg);
128 void alwaysOpenForNewMessages(
bool val);
133 void showFullMessages(
bool val);
138 void copyToClipboard();
153 void showEvent(QShowEvent* event)
override;
159 void messageDisplayed(
const QString& message,
int type);
165 virtual bool suppress(
const QString& message, QtMsgType type);
170 virtual QString extractSummary(
const QString& message, QtMsgType type);
176 QScopedPointer<pqInternals> Internals;
177 friend class OutputWidgetInternals::OutputWindow;
void VTKPVADAPTORSCTH_EXPORT handler(int sig)
widget to show Qt and VTK messages.