BornAgain  1.19.79
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/Model/FromCore/GUIExamplesFactory.h
6 //! @brief Defines class GUI::ExamplesFactory
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_MODEL_FROMCORE_GUIEXAMPLESFACTORY_H
16 #define BORNAGAIN_GUI_MODEL_FROMCORE_GUIEXAMPLESFACTORY_H
17 
18 #include <QString>
19 
20 class MultiLayerItem;
21 
22 //! Class that generates GUI model from
24 
25 bool isValidExampleName(const QString& name);
26 
27 //! Create a sample item of the built-in example with the given internal name.
28 MultiLayerItem* itemizeSample(const QString& name);
29 
30 //! The internal example name, e.g. for creation with itemizeSample.
31 QStringList exampleNames();
32 
33 //! Returns human readable name and description
34 std::tuple<QString, QString> exampleInfo(const QString& name);
35 
36 } // namespace GUI::ExamplesFactory
37 
38 #endif // BORNAGAIN_GUI_MODEL_FROMCORE_GUIEXAMPLESFACTORY_H
Class that generates GUI model from.
MultiLayerItem * itemizeSample(const QString &name)
Create a sample item of the built-in example with the given internal name.
QStringList exampleNames()
The internal example name, e.g. for creation with itemizeSample.
std::tuple< QString, QString > exampleInfo(const QString &name)
Returns human readable name and description.
bool isValidExampleName(const QString &name)
QString const & name(EShape k)
Definition: particles.cpp:20