BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ScriptPanel.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/SampleDesigner/ScriptPanel.h
6 //! @brief Defines class SampleDesigner
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_SAMPLEDESIGNER_SCRIPTPANEL_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SCRIPTPANEL_H
17 
19 
20 class SampleModel;
21 class InstrumentModel;
22 class PySampleWidget;
23 
24 //! Resides at the bottom of SampleView and displays a Python script.
25 
26 class ScriptPanel : public InfoPanel {
27  Q_OBJECT
28 
29 public:
30  explicit ScriptPanel(QWidget* parent = nullptr);
31 
32  void setSampleModel(SampleModel* sampleModel);
33  void setInstrumentModel(InstrumentModel* instrumentModel);
34 
35 private:
37 };
38 
39 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_SAMPLEDESIGNER_SCRIPTPANEL_H
Defines class InfoPanel.
Frame for widgets with tool bar on top and collapse/expand button functionality.
Definition: InfoPanel.h:29
Displays Python script representing a MultiLayer at the bottom of SampleView.
Main model to hold sample items.
Definition: SampleModel.h:24
Resides at the bottom of SampleView and displays a Python script.
Definition: ScriptPanel.h:26
void setInstrumentModel(InstrumentModel *instrumentModel)
Definition: ScriptPanel.cpp:38
PySampleWidget * m_pySampleWidget
Definition: ScriptPanel.h:36
ScriptPanel(QWidget *parent=nullptr)
Definition: ScriptPanel.cpp:21
void setSampleModel(SampleModel *sampleModel)
Definition: ScriptPanel.cpp:33