BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
axistitlecontroller.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/axistitlecontroller.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_AXISTITLECONTROLLER_H
16 #define BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_AXISTITLECONTROLLER_H
17 
19 #include "mvvm/view_export.h"
20 #include <memory>
21 
22 class QCPAxis;
23 
24 namespace ModelView {
25 
26 class TextItem;
27 
28 //! Propagates title settings from TextItem to QCPAxis.
29 
30 class MVVM_VIEW_EXPORT AxisTitleController : public ItemListener<TextItem> {
31 public:
32  explicit AxisTitleController(QCPAxis* axis);
34 
35 protected:
36  void subscribe() override;
37 
38 public:
40  std::unique_ptr<AxisTitleControllerImpl> p_impl;
41 };
42 
43 } // namespace ModelView
44 
45 #endif // BORNAGAIN_MVVM_VIEW_MVVM_PLOTTING_AXISTITLECONTROLLER_H
Propagates title settings from TextItem to QCPAxis.
std::unique_ptr< AxisTitleControllerImpl > p_impl
Base class to subscribe to signals generated by SessionItem of certin type.
Definition: itemlistener.h:26
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.