BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The RunFitControlWidget contains elements to start/stop fitting and to provide minimal diagnostic. Part of FitSuiteWidget.
Definition at line 31 of file RunFitControlWidget.h.
Public Slots | |
void | onFittingError (const QString &what) |
Signals | |
void | startFittingPushed () |
void | stopFittingPushed () |
Public Member Functions | |
RunFitControlWidget (QWidget *parent=nullptr) | |
~RunFitControlWidget () override | |
virtual QList< QAction * > | actionList () |
SessionItem * | currentItem () |
const SessionItem * | currentItem () const |
virtual void | setItem (SessionItem *item) |
Protected Member Functions | |
void | hideEvent (QHideEvent *) override |
void | showEvent (QShowEvent *) override |
void | subscribeToItem () override |
void | unsubscribeFromItem () override |
Private Slots | |
void | onFitSuitePropertyChange (const QString &name) |
void | onSliderValueChanged (int value) |
Private Member Functions | |
FitSuiteItem * | fitSuiteItem () |
bool | isValidJobItem () |
JobItem * | jobItem () |
int | sliderUpdateInterval () |
int | sliderValueToUpdateInterval (int value) |
converts slider value (1-15) to update interval to be propagated to FitSuiteWidget More... | |
void | unsubscribeFromChildren () |
void | updateControlElements () |
Updates button "enabled" status and caution status depending on current job conditions. More... | |
void | updateIterationsCountLabel () |
Private Attributes | |
CautionSign * | m_cautionSign |
QSlider * | m_intervalSlider |
SessionItemController * | m_itemController |
QLabel * | m_iterationsCountLabel |
QPushButton * | m_startButton |
QPushButton * | m_stopButton |
QLabel * | m_updateIntervalLabel |
RunFitControlWidget::RunFitControlWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 36 of file RunFitControlWidget.cpp.
References DesignerHelper::getLabelFontSize(), DesignerHelper::getPortFontSize(), m_intervalSlider, m_iterationsCountLabel, m_startButton, m_stopButton, m_updateIntervalLabel, onSliderValueChanged(), GUI::Constants::RUN_FIT_CONTROL_WIDGET_HEIGHT, sliderUpdateInterval(), startFittingPushed(), and stopFittingPushed().
|
override |
Definition at line 92 of file RunFitControlWidget.cpp.
References unsubscribeFromChildren().
|
virtualinherited |
Reimplemented in IntensityDataProjectionsWidget, SpecularDataWidget, SpecularDataCanvas, FitComparisonWidget1D, FitComparisonWidget, IntensityDataWidget, IntensityDataCanvas, SpecularDataImportWidget, RealDataPresenter, and RealDataMaskWidget.
Definition at line 36 of file SessionItemWidget.cpp.
Referenced by ItemComboWidget::setPresentation().
|
inherited |
Definition at line 41 of file SessionItemWidget.cpp.
Referenced by FitFlowWidget::fitSuiteItem(), RealDataMaskWidget::intensityDataItem(), IntensityDataCanvas::intensityDataItem(), IntensityDataWidget::intensityDataItem(), IntensityDataProjectionsWidget::intensityDataItem(), ProjectionsPlot::intensityItem(), ColorMap::intensityItem(), JobResultsPresenter::itemPresentation(), FitParameterWidget::jobItem(), ParameterTuningWidget::jobItem(), jobItem(), FitComparisonWidget::jobItem(), FitComparisonWidget1D::jobItem(), IntensityDataPropertyWidget::jobItem(), SpecularDataPropertyWidget::jobItem(), SpecularDataImportWidget::realDataItem(), ItemComboWidget::setPresentation(), JobResultsPresenter::setPresentation(), SpecularDataImportWidget::specularDataItem(), SpecularDataCanvas::specularDataItem(), SpecularDataWidget::specularDataItem(), SpecularPlot::specularItem(), ItemComboWidget::subscribeToItem(), ProjectionsPlot::unsubscribeFromChildren(), and Plot1D::viewItem().
|
inherited |
Definition at line 46 of file SessionItemWidget.cpp.
References SessionItemController::currentItem(), and SessionItemWidget::m_itemController.
|
private |
Definition at line 173 of file RunFitControlWidget.cpp.
References JobItem::fitSuiteItem(), and jobItem().
Referenced by onSliderValueChanged(), subscribeToItem(), unsubscribeFromChildren(), and updateIterationsCountLabel().
|
overrideprotectedinherited |
Definition at line 56 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::unsubscribe().
|
private |
Definition at line 178 of file RunFitControlWidget.cpp.
References JobItem::isValidForFitting(), and jobItem().
Referenced by updateControlElements().
|
private |
Definition at line 168 of file RunFitControlWidget.cpp.
References SessionItemWidget::currentItem().
Referenced by fitSuiteItem(), isValidJobItem(), subscribeToItem(), and updateControlElements().
|
privateslot |
Definition at line 112 of file RunFitControlWidget.cpp.
References FitSuiteItem::isIterationCountPropertyName(), GUI::RealSpace::Particles::name(), and updateIterationsCountLabel().
Referenced by subscribeToItem().
|
slot |
Definition at line 97 of file RunFitControlWidget.cpp.
References CautionSign::clear(), m_cautionSign, m_iterationsCountLabel, and CautionSign::setCautionMessage().
Referenced by FitSessionWidget::onFittingError().
|
privateslot |
Definition at line 104 of file RunFitControlWidget.cpp.
References fitSuiteItem(), m_updateIntervalLabel, FitSuiteItem::setUpdateInterval(), and sliderValueToUpdateInterval().
Referenced by RunFitControlWidget().
|
virtualinherited |
Reimplemented in SpecularPlotCanvas, SpecularDataImportWidget, SpecularDataWidget, IntensityDataWidget, JobResultsPresenter, ItemComboWidget, ProjectionsWidget, SpecularDataCanvas, IntensityDataCanvas, ColorMapCanvas, and Plot1DCanvas.
Definition at line 28 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, SessionItemController::setItem(), and SessionItemController::subscribe().
Referenced by MaskGraphicsProxy::setIntensityItem(), FitSessionWidget::setItem(), Plot1DCanvas::setItem(), ColorMapCanvas::setItem(), IntensityDataCanvas::setItem(), SpecularDataCanvas::setItem(), ProjectionsWidget::setItem(), ItemComboWidget::setItem(), IntensityDataWidget::setItem(), SpecularDataWidget::setItem(), SpecularDataImportWidget::setItem(), SpecularPlotCanvas::setItem(), ItemComboWidget::setPresentation(), FitComparisonWidget::subscribeToItem(), and FitComparisonWidget1D::subscribeToItem().
|
overrideprotectedinherited |
Definition at line 51 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::subscribe().
|
private |
Definition at line 139 of file RunFitControlWidget.cpp.
References m_intervalSlider, and sliderValueToUpdateInterval().
Referenced by RunFitControlWidget(), and subscribeToItem().
|
private |
converts slider value (1-15) to update interval to be propagated to FitSuiteWidget
Definition at line 146 of file RunFitControlWidget.cpp.
Referenced by onSliderValueChanged(), and sliderUpdateInterval().
|
signal |
Referenced by RunFitControlWidget(), and FitSessionWidget::setSessionController().
|
signal |
Referenced by RunFitControlWidget(), and FitSessionWidget::setSessionController().
|
overrideprotectedvirtual |
Reimplemented from SessionItemWidget.
Definition at line 118 of file RunFitControlWidget.cpp.
References fitSuiteItem(), jobItem(), JobItem::jobStatusChanged(), SessionItem::mapper(), GUI::RealSpace::Particles::name(), onFitSuitePropertyChange(), ModelMapper::setOnPropertyChange(), FitSuiteItem::setUpdateInterval(), sliderUpdateInterval(), updateControlElements(), and updateIterationsCountLabel().
|
private |
Definition at line 183 of file RunFitControlWidget.cpp.
References fitSuiteItem(), SessionItem::mapper(), and ModelMapper::unsubscribe().
Referenced by ~RunFitControlWidget(), and unsubscribeFromItem().
|
overrideprotectedvirtual |
Reimplemented from SessionItemWidget.
Definition at line 133 of file RunFitControlWidget.cpp.
References unsubscribeFromChildren().
|
private |
Updates button "enabled" status and caution status depending on current job conditions.
Definition at line 154 of file RunFitControlWidget.cpp.
References CautionSign::clear(), Fitting, isValidJobItem(), jobItem(), m_cautionSign, m_startButton, and m_stopButton.
Referenced by subscribeToItem().
|
private |
Definition at line 189 of file RunFitControlWidget.cpp.
References fitSuiteItem(), FitSuiteItem::iterationCount(), and m_iterationsCountLabel.
Referenced by onFitSuitePropertyChange(), and subscribeToItem().
|
private |
Definition at line 67 of file RunFitControlWidget.h.
Referenced by onFittingError(), and updateControlElements().
|
private |
Definition at line 64 of file RunFitControlWidget.h.
Referenced by RunFitControlWidget(), and sliderUpdateInterval().
|
privateinherited |
Definition at line 49 of file SessionItemWidget.h.
Referenced by SessionItemWidget::SessionItemWidget(), SessionItemWidget::currentItem(), SessionItemWidget::hideEvent(), SessionItemWidget::setItem(), and SessionItemWidget::showEvent().
|
private |
Definition at line 66 of file RunFitControlWidget.h.
Referenced by RunFitControlWidget(), onFittingError(), and updateIterationsCountLabel().
|
private |
Definition at line 62 of file RunFitControlWidget.h.
Referenced by RunFitControlWidget(), and updateControlElements().
|
private |
Definition at line 63 of file RunFitControlWidget.h.
Referenced by RunFitControlWidget(), and updateControlElements().
|
private |
Definition at line 65 of file RunFitControlWidget.h.
Referenced by RunFitControlWidget(), and onSliderValueChanged().