BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
JobMessagePanel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/JobWidgets/JobMessagePanel.h
6 //! @brief Defines class JobMessagePanel
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBMESSAGEPANEL_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBMESSAGEPANEL_H
17 
19 #include <QColor>
20 
21 class QTextEdit;
22 
23 //! The JobMessagePanel class shows log messages from FitActivityPanel at the
24 //! bottom part of JobView.
25 
26 class JobMessagePanel : public InfoPanel {
27  Q_OBJECT
28 public:
29  JobMessagePanel(QWidget* parent = 0);
30 
31 public slots:
32  void onClearLog();
33  void onMessage(const QString& message, const QColor& color = QColor(Qt::black));
34 
35 private:
36  QTextEdit* m_plainLog;
37 };
38 
39 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBMESSAGEPANEL_H
Defines class InfoPanel.
Frame for widgets with tool bar on top and collapse/expand button functionality.
Definition: InfoPanel.h:29
The JobMessagePanel class shows log messages from FitActivityPanel at the bottom part of JobView.
QTextEdit * m_plainLog
void onMessage(const QString &message, const QColor &color=QColor(Qt::black))
JobMessagePanel(QWidget *parent=0)