BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FitLog.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/FitWidgets/FitLog.h
6 //! @brief Defines class FitLog
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_FITWIDGETS_FITLOG_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_FITWIDGETS_FITLOG_H
17 
19 #include <string>
20 #include <vector>
21 
22 class JobMessagePanel;
23 
24 class FitLog {
25 public:
26  FitLog();
27 
28  void setMessagePanel(JobMessagePanel* messagePanel);
29  void append(const std::string& text, FitLogFlags::MessageType type);
30  void clearLog();
31 
32 private:
33  struct Record {
34  std::string m_text;
35  FitLogFlags::MessageType m_type;
36  };
37 
38  std::vector<Record> m_records;
40 };
41 
42 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_FITWIDGETS_FITLOG_H
Defines class FitSuiteManager.
Definition: FitLog.h:24
void clearLog()
Definition: FitLog.cpp:42
FitLog()
Definition: FitLog.cpp:18
std::vector< Record > m_records
Definition: FitLog.h:38
void append(const std::string &text, FitLogFlags::MessageType type)
Definition: FitLog.cpp:34
JobMessagePanel * m_messagePanel
Definition: FitLog.h:39
void setMessagePanel(JobMessagePanel *messagePanel)
Definition: FitLog.cpp:20
The JobMessagePanel class shows log messages from FitActivityPanel at the bottom part of JobView.
std::string m_text
Definition: FitLog.h:34
FitLogFlags::MessageType m_type
Definition: FitLog.h:35