BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
SimulationSetupWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SimulationWidgets/SimulationSetupWidget.h
6 //! @brief Defines class SimulationSetupWidget
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_VIEWS_SIMULATIONWIDGETS_SIMULATIONSETUPWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SIMULATIONWIDGETS_SIMULATIONSETUPWIDGET_H
17 
18 #include <QWidget>
19 
20 class QPushButton;
21 class MultiLayerItem;
24 class ApplicationModels;
25 
26 //! The SimulationSetupWidget class represents a main widget to define simulation settings
27 //! and run the simulation. Belongs to the SimulationView.
28 
29 class SimulationSetupWidget : public QWidget {
30  Q_OBJECT
31 
32 public:
33  SimulationSetupWidget(QWidget* parent = 0);
34 
36  void updateViewElements();
37 
38 public slots:
39  void onRunSimulation();
41 
42 private:
43  QWidget* createButtonWidget();
44 
46 
47  QPushButton* runSimulationButton;
48  QPushButton* exportToPyScriptButton;
49 
52 };
53 
54 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_SIMULATIONWIDGETS_SIMULATIONSETUPWIDGET_H
The SimulationDataSelectorWidget class represents widget to select instrument, sample and real data.
Holds widgets related to the setup of simulation/job options (nthreads, run policy,...
The SimulationSetupWidget class represents a main widget to define simulation settings and run the si...
ApplicationModels * m_applicationModels
void setApplicationModels(ApplicationModels *model)
SimulationDataSelectorWidget * m_simDataSelectorWidget
SimulationOptionsWidget * m_simOptionsWidget
QPushButton * exportToPyScriptButton
SimulationSetupWidget(QWidget *parent=0)