-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
# define LOGWINDOW_EXPORT
#endif
-#include <SUIT_PopupClient.h>
+#include "QtxMsgHandler.h"
+#include "SUIT_PopupClient.h"
#include <QWidget>
#include <QMap>
class QAction;
class QTextEdit;
-class LOGWINDOW_EXPORT LogWindow : public QWidget, public SUIT_PopupClient
+class LOGWINDOW_EXPORT LogWindow : public QWidget, public SUIT_PopupClient, public QtxMsgHandlerCallback
{
Q_OBJECT
};
public:
- LogWindow( QWidget* theParent );
+ LogWindow( QWidget* );
virtual ~LogWindow();
virtual QString popupClientType() const { return QString( "LogWindow" ); }
void setMenuActions( const int );
int menuActions() const;
+ void handleQtMessages(bool);
+
protected slots:
void onSaveToFile();
void onSelectAll();
void onCopy();
private:
+ void append( const QString text );
void createActions();
void updateActions();
+ void qtMessage( QtMsgType, const QMessageLogContext&, const QString& );
private:
QTextEdit* myView; //!< internal view window