BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
callback_types.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/model/mvvm/signals/callback_types.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_MODEL_MVVM_SIGNALS_CALLBACK_TYPES_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_SIGNALS_CALLBACK_TYPES_H
17 
18 #include "mvvm/model/tagrow.h"
19 #include <functional>
20 #include <string>
21 
22 namespace ModelView {
23 
24 class SessionItem;
25 class SessionModel;
26 
27 namespace Callbacks {
28 using slot_t = const void*;
29 using item_t = std::function<void(SessionItem*)>;
30 using item_int_t = std::function<void(SessionItem*, int)>;
31 using item_str_t = std::function<void(SessionItem*, std::string)>;
32 using item_tagrow_t = std::function<void(SessionItem*, TagRow)>;
33 using model_t = std::function<void(SessionModel*)>;
34 } // namespace Callbacks
35 
36 } // namespace ModelView
37 
38 #endif // BORNAGAIN_MVVM_MODEL_MVVM_SIGNALS_CALLBACK_TYPES_H
The main object representing an editable/displayable/serializable entity.
Definition: sessionitem.h:38
Main class to hold hierarchy of SessionItem objects.
Definition: sessionmodel.h:37
Aggregate to hold (tag, row) information for SessionModel.
Definition: tagrow.h:25
std::function< void(SessionItem *, std::string)> item_str_t
std::function< void(SessionModel *)> model_t
std::function< void(SessionItem *, TagRow)> item_tagrow_t
std::function< void(SessionItem *, int)> item_int_t
std::function< void(SessionItem *)> item_t
materialitems.h Collection of materials to populate MaterialModel.
Defines class CLASS?