BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
JobRealTimeWidget.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Views/JobWidgets/JobRealTimeWidget.h
6 //! @brief Defines class JobRealTimeWidget
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_JOBWIDGETS_JOBREALTIMEWIDGET_H
16 #define BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBREALTIMEWIDGET_H
17 
19 
20 class JobModel;
21 class JobItem;
23 
24 //! The JobRealTimeWidget class provides tuning of sample parameters in real time.
25 //! Located on the right side of JobView and is visible when realtime activity is selected.
26 
27 class JobRealTimeWidget : public QWidget {
28  Q_OBJECT
29 public:
30  JobRealTimeWidget(JobModel* jobModel, QWidget* parent = nullptr);
31 
33 
34  QSize sizeHint() const;
35  QSize minimumSizeHint() const;
36 
37 public slots:
38  void setItem(JobItem* jobItem);
39 
40 private:
41  bool isValidJobItem(JobItem* item);
42 
44 };
45 
46 #endif // BORNAGAIN_GUI_COREGUI_VIEWS_JOBWIDGETS_JOBREALTIMEWIDGET_H
Defines class ItemStackPresenter.
The JobRealTimeWidget class provides tuning of sample parameters in real time.
QSize sizeHint() const
void setItem(JobItem *jobItem)
JobRealTimeWidget(JobModel *jobModel, QWidget *parent=nullptr)
ItemStackPresenter< ParameterTuningWidget > * m_stackedWidget
ParameterTuningWidget * parameterTuningWidget(JobItem *jobItem)
QSize minimumSizeHint() const
bool isValidJobItem(JobItem *item)
Returns true if JobItem is valid for real time simulation.
Main widget for real time parameter tuning.