1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
6 * Created on: Apr 28, 2014
10 #ifndef XGUI_ERRORDIALOG_H_
11 #define XGUI_ERRORDIALOG_H_
15 #include <Events_InfoMessage.h>
21 * A class of dialog to show error message
23 class XGUI_ErrorDialog : public QDialog
28 /// \param parent a parent widget
29 XGUI_EXPORT XGUI_ErrorDialog(QWidget* parent);
30 XGUI_EXPORT virtual ~XGUI_ErrorDialog();
34 XGUI_EXPORT void refresh();
37 XGUI_EXPORT void clear();
40 XGUI_EXPORT void addError(std::shared_ptr<Events_InfoMessage> theMsg);
42 /// Remove error message
43 XGUI_EXPORT void removeError(const QString&);
46 /// Widget for error log
47 QTextEdit* myErrorLog;
53 #endif /* XGUI_ERRORDIALOG_H_ */