BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
statusstringreporterfactory.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/view/mvvm/plotting/statusstringreporterfactory.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_STATUSSTRINGREPORTERFACTORY_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_STATUSSTRINGREPORTERFACTORY_H
17 
18 //! Contains factory methods to create StatusStringReporter
19 
20 #include "mvvm/view_export.h"
21 #include <functional>
22 #include <memory>
23 
24 class QCustomPlot;
25 
26 namespace ModelView {
27 
28 class StatusStringReporter;
29 
30 //! Creates reporter for status string in QCustomPlot containing graphs.
31 MVVM_VIEW_EXPORT std::unique_ptr<StatusStringReporter>
32 CreateGraphReporter(QCustomPlot* custom_plot, std::function<void(const std::string&)> callback);
33 
34 //! Creates reporter for status string in QCustomPlot containing QCPColorMap.
35 MVVM_VIEW_EXPORT std::unique_ptr<StatusStringReporter>
36 CreateColorMapReporter(QCustomPlot* custom_plot, std::function<void(const std::string&)> callback);
37 
38 } // namespace ModelView
39 
40 #endif // BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_STATUSSTRINGREPORTERFACTORY_H
materialitems.h Collection of materials to populate MaterialModel.
std::unique_ptr< StatusStringReporter > CreateColorMapReporter(QCustomPlot *custom_plot, std::function< void(const std::string &)> callback)
Creates reporter for status string in QCustomPlot containing QCPColorMap.
std::unique_ptr< StatusStringReporter > CreateGraphReporter(QCustomPlot *custom_plot, std::function< void(const std::string &)> callback)
Creates reporter for status string in QCustomPlot containing graphs.