BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The JobRealTimeWidget class provides tuning of sample parameters in real time. Located on the right side of JobView and is visible when realtime activity is selected.
Definition at line 27 of file JobRealTimeWidget.h.
Public Slots | |
void | setItem (JobItem *jobItem) |
Public Member Functions | |
JobRealTimeWidget (JobModel *jobModel, QWidget *parent=nullptr) | |
QSize | minimumSizeHint () const override |
ParameterTuningWidget * | parameterTuningWidget (JobItem *jobItem) |
QSize | sizeHint () const override |
Private Member Functions | |
bool | isValidJobItem (JobItem *item) |
Returns true if JobItem is valid for real time simulation. More... | |
Private Attributes | |
ItemStackPresenter< ParameterTuningWidget > * | m_stackedWidget |
JobRealTimeWidget::JobRealTimeWidget | ( | JobModel * | jobModel, |
QWidget * | parent = nullptr |
||
) |
Definition at line 27 of file JobRealTimeWidget.cpp.
References GUI::Constants::JobRealTimeWidgetName, m_stackedWidget, and ItemStackWidget::setModel().
|
private |
Returns true if JobItem is valid for real time simulation.
Definition at line 70 of file JobRealTimeWidget.cpp.
References JobItem::isCanceled(), JobItem::isCompleted(), and JobItem::isFailed().
Referenced by setItem().
|
override |
Definition at line 54 of file JobRealTimeWidget.cpp.
ParameterTuningWidget * JobRealTimeWidget::parameterTuningWidget | ( | JobItem * | jobItem | ) |
Definition at line 44 of file JobRealTimeWidget.cpp.
References ItemStackPresenter< T >::itemWidget(), and m_stackedWidget.
Referenced by FitActivityPanel::setItem().
|
slot |
Definition at line 59 of file JobRealTimeWidget.cpp.
References ItemStackPresenter< T >::hideWidgets(), isValidJobItem(), m_stackedWidget, and ItemStackPresenter< T >::setItem().
Referenced by JobView::onSelectionChanged().
|
override |
Definition at line 49 of file JobRealTimeWidget.cpp.
References GUI::Constants::REALTIME_WIDGET_WIDTH_HINT.
|
private |
Definition at line 43 of file JobRealTimeWidget.h.
Referenced by JobRealTimeWidget(), parameterTuningWidget(), and setItem().