BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SimulationOptionsWidget.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SimulationWidgets/SimulationOptionsWidget.cpp
6 //! @brief Implements class SimulationOptionsWidget
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 
18 #include <QGroupBox>
19 #include <QVBoxLayout>
20 
22  : QWidget(parent), m_boxEditor(new ComponentFlatView)
23 {
24  auto groupBox = new QGroupBox("Simulation parameters");
25 
26  auto groupLayout = new QVBoxLayout;
27  groupBox->setLayout(groupLayout);
28 
29  groupLayout->addWidget(m_boxEditor);
30 
31  auto mainLayout = new QVBoxLayout;
32  mainLayout->setContentsMargins(0, 0, 0, 0);
33  mainLayout->addWidget(groupBox);
34  mainLayout->addStretch();
35  setLayout(mainLayout);
36 }
37 
39 {
41  m_boxEditor->setItem(item);
42 }
Defines class ComponentFlatView.
Defines class SimulationOptionsItem.
Defines class SimulationOptionsWidget.
Component property widget for SessionItems.
void setItem(SessionItem *item)
The SimulationOptionsItem class holds simulation status (run policy, number of threads,...
SimulationOptionsWidget(QWidget *parent=nullptr)
void setItem(SimulationOptionsItem *item)
ComponentFlatView * m_boxEditor