BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
statusstringformatterinterface.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/statusstringformatterinterface.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_STATUSSTRINGFORMATTERINTERFACE_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_STATUSSTRINGFORMATTERINTERFACE_H
17 
18 #include "mvvm/view_export.h"
19 #include <string>
20 
21 class QCustomPlot;
22 
23 namespace ModelView {
24 
25 //! Pure virtual interface to format string with status info corresponding to the current mouse
26 //! position on QCustomPlot.
27 
28 class MVVM_VIEW_EXPORT StatusStringFormatterInterface {
29 public:
30  virtual ~StatusStringFormatterInterface() = default;
31 
32  virtual std::string status_string(QCustomPlot* custom_plot, double x, double y) const = 0;
33 };
34 
35 } // namespace ModelView
36 
37 #endif // BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_STATUSSTRINGFORMATTERINTERFACE_H
Pure virtual interface to format string with status info corresponding to the current mouse position ...
virtual std::string status_string(QCustomPlot *custom_plot, double x, double y) const =0
materialitems.h Collection of materials to populate MaterialModel.