BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
GUIExamplesFactory.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/GUIExamplesFactory.h
6 //! @brief Defines class GUIExamplesFactory
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_MODELS_GUIEXAMPLESFACTORY_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_GUIEXAMPLESFACTORY_H
17 
18 #include <QMap>
19 
20 class SessionItem;
21 class SampleModel;
22 class MaterialModel;
23 
24 //! Class that generates GUI model from
26 public:
27  static bool isValidExampleName(const QString& name);
28 
29  static SessionItem* createSampleItems(const QString& name, SampleModel* sampleModel,
30  MaterialModel* materialModel);
31 
32 private:
33  static QMap<QString, QString> m_name_to_registry;
34  //!< correspondence of GUI example name and name from StandardSamples registry
35 };
36 
37 #endif // BORNAGAIN_GUI_COREGUI_MODELS_GUIEXAMPLESFACTORY_H
Class that generates GUI model from.
static SessionItem * createSampleItems(const QString &name, SampleModel *sampleModel, MaterialModel *materialModel)
Populate sample model with.
static QMap< QString, QString > m_name_to_registry
correspondence of GUI example name and name from StandardSamples registry
static bool isValidExampleName(const QString &name)
Main model to hold sample items.
Definition: SampleModel.h:24
QString const & name(EShape k)
Definition: particles.cpp:21