BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
MinimizerItemCatalog.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Model/CatJob/MinimizerItemCatalog.h
6 //! @brief Defines MinimizerItemCatalog 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 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_MODEL_CATJOB_MINIMIZERITEMCATALOG_H
16 #define BORNAGAIN_GUI_MODEL_CATJOB_MINIMIZERITEMCATALOG_H
17 
18 #include "GUI/Util/ComboProperty.h"
19 
20 class MinimizerItem;
21 
22 //! The MinimizerItemCatalog class is a static class to provide MinimizerItem
23 //! with the list of available minimizers/algorithms.
24 
26 public:
27  static ComboProperty algorithmCombo(const QString& minimizerType);
28 
29 private:
30  static QStringList algorithmNames(const QString& minimizerType);
31  static QStringList algorithmDescriptions(const QString& minimizerType);
32 };
33 
34 #endif // BORNAGAIN_GUI_MODEL_CATJOB_MINIMIZERITEMCATALOG_H
Defines class ComboProperty.
Custom property to define list of string values with multiple selections. Intended for QVariant.
Definition: ComboProperty.h:25
The MinimizerItemCatalog class is a static class to provide MinimizerItem with the list of available ...
static ComboProperty algorithmCombo(const QString &minimizerType)
Returns ComboProperty representing list of algorithms defined for given minimizerType.
static QStringList algorithmNames(const QString &minimizerType)
Returns list of algorithm names defined for given minimizer.
static QStringList algorithmDescriptions(const QString &minimizerType)
Returns list of algoritm descriptions defined for given minimizer.
The MinimizerItem class is the base item to hold minimizer settings.
Definition: MinimizerItem.h:32