BornAgain
1.19.79
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/View/Fit/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_VIEW_FIT_JOBREALTIMEWIDGET_H
16
#define BORNAGAIN_GUI_VIEW_FIT_JOBREALTIMEWIDGET_H
17
18
#include "
GUI/View/Common/ItemStackPresenter.h
"
19
20
class
JobModel
;
21
class
JobItem
;
22
class
ParameterTuningWidget
;
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
32
ParameterTuningWidget
*
parameterTuningWidget
(
JobItem
* jobItem);
33
34
QSize
sizeHint
()
const override
;
35
QSize
minimumSizeHint
()
const override
;
36
37
public
slots:
38
void
setItem
(
JobItem
* jobItem);
39
40
private
:
41
bool
isValidJobItem
(
JobItem
* item);
42
43
ItemStackPresenter<ParameterTuningWidget>
*
m_stackedWidget
;
44
};
45
46
#endif
// BORNAGAIN_GUI_VIEW_FIT_JOBREALTIMEWIDGET_H
ItemStackPresenter.h
Defines class ItemStackPresenter.
ItemStackPresenter< ParameterTuningWidget >
JobItem
Definition:
JobItem.h:43
JobModel
Definition:
JobModel.h:27
JobRealTimeWidget
The JobRealTimeWidget class provides tuning of sample parameters in real time. Located on the right s...
Definition:
JobRealTimeWidget.h:27
JobRealTimeWidget::minimumSizeHint
QSize minimumSizeHint() const override
Definition:
JobRealTimeWidget.cpp:54
JobRealTimeWidget::setItem
void setItem(JobItem *jobItem)
Definition:
JobRealTimeWidget.cpp:59
JobRealTimeWidget::JobRealTimeWidget
JobRealTimeWidget(JobModel *jobModel, QWidget *parent=nullptr)
Definition:
JobRealTimeWidget.cpp:27
JobRealTimeWidget::sizeHint
QSize sizeHint() const override
Definition:
JobRealTimeWidget.cpp:49
JobRealTimeWidget::m_stackedWidget
ItemStackPresenter< ParameterTuningWidget > * m_stackedWidget
Definition:
JobRealTimeWidget.h:43
JobRealTimeWidget::parameterTuningWidget
ParameterTuningWidget * parameterTuningWidget(JobItem *jobItem)
Definition:
JobRealTimeWidget.cpp:44
JobRealTimeWidget::isValidJobItem
bool isValidJobItem(JobItem *item)
Returns true if JobItem is valid for real time simulation.
Definition:
JobRealTimeWidget.cpp:70
ParameterTuningWidget
Main widget for real time parameter tuning. Contains a tree for parameter tuning and the model to pro...
Definition:
ParameterTuningWidget.h:34
GUI
View
Fit
JobRealTimeWidget.h
Generated by
1.9.1