BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Widget to define and show 1D (specular) imports by data loaders, e.g. CSV file import Contains space for the loader-defined import properties, a table for the raw and the imported data and a graph to show the plot of the imported data. The UI is defined via QtDesigner (.ui file)
Definition at line 37 of file SpecularDataImportWidget.h.
Public Member Functions | |
SpecularDataImportWidget (QWidget *parent=nullptr) | |
QList< QAction * > | actionList () override |
SessionItem * | currentItem () |
const SessionItem * | currentItem () const |
void | setItem (SessionItem *realDataItem) override |
Protected Member Functions | |
void | hideEvent (QHideEvent *) override |
void | showEvent (QShowEvent *) override |
virtual void | subscribeToItem () |
virtual void | unsubscribeFromItem () |
Private Slots | |
void | onContextMenuRequest (const QPoint &point) |
void | onPlotAxisClicked (QCPAxis *axis, QCPAxis::SelectablePart part, QMouseEvent *event) |
Private Member Functions | |
QString | currentFileName () const |
void | fillLoaderCombo () |
void | onCreateNewFormatButton () |
void | onFormatSelectionChanged () |
void | onPropertiesChanged () |
RealDataItem * | realDataItem () |
const RealDataItem * | realDataItem () const |
AbstractDataLoader * | selectedLoader () |
SpecularDataItem * | specularDataItem () |
void | updatePreview () |
void | updatePropertiesEdits () |
Private Attributes | |
SessionItemController * | m_itemController |
AbstractDataLoader1D * | m_loader |
Ui::SpecularDataImportWidget * | m_ui |
SpecularDataImportWidget::SpecularDataImportWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 35 of file SpecularDataImportWidget.cpp.
References fillLoaderCombo(), m_ui, onCreateNewFormatButton(), onFormatSelectionChanged(), onPlotAxisClicked(), updatePreview(), and updatePropertiesEdits().
|
overridevirtual |
Reimplemented from SessionItemWidget.
Definition at line 98 of file SpecularDataImportWidget.cpp.
Referenced by onContextMenuRequest().
|
private |
Definition at line 363 of file SpecularDataImportWidget.cpp.
References RealDataItem::nativeFileName(), and realDataItem().
|
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(), RunFitControlWidget::jobItem(), FitComparisonWidget::jobItem(), FitComparisonWidget1D::jobItem(), IntensityDataPropertyWidget::jobItem(), SpecularDataPropertyWidget::jobItem(), realDataItem(), ItemComboWidget::setPresentation(), JobResultsPresenter::setPresentation(), 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 153 of file SpecularDataImportWidget.cpp.
References DataLoaders1D::instance(), m_loader, m_ui, and AbstractDataLoader::name().
Referenced by SpecularDataImportWidget(), onCreateNewFormatButton(), and setItem().
|
overrideprotectedinherited |
Definition at line 56 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::unsubscribe().
|
privateslot |
Definition at line 103 of file SpecularDataImportWidget.cpp.
References actionList().
|
private |
Definition at line 326 of file SpecularDataImportWidget.cpp.
References cloneAsUserDefinedLoader(), fillLoaderCombo(), m_loader, m_ui, GUI::RealSpace::Particles::name(), and onFormatSelectionChanged().
Referenced by SpecularDataImportWidget().
|
private |
Definition at line 195 of file SpecularDataImportWidget.cpp.
References AbstractDataLoader::clone(), RealDataItem::dataLoader(), AbstractDataLoader::fileContent(), AbstractDataLoader::guessSettings(), AbstractDataLoader::importSettingsChanged(), GUI::View::Helpers::information(), AbstractDataLoader::initWithDefaultImportSettings(), m_loader, m_ui, GUI::Global::mainWindow, AbstractDataLoader::name(), onPropertiesChanged(), AbstractDataLoader::processContents(), realDataItem(), selectedLoader(), RealDataItem::setDataLoader(), AbstractDataLoader::setFileContents(), AbstractDataLoader::setRealDataItem(), updatePreview(), and updatePropertiesEdits().
Referenced by SpecularDataImportWidget(), and onCreateNewFormatButton().
|
privateslot |
Definition at line 111 of file SpecularDataImportWidget.cpp.
References SpecularDataItem::isLog(), SpecularDataItem::setLog(), and specularDataItem().
Referenced by SpecularDataImportWidget().
|
private |
Definition at line 341 of file SpecularDataImportWidget.cpp.
References AbstractDataLoader::applyImportSettings(), gSessionData, m_loader, AbstractDataLoader::processContents(), SessionData::projectDocument, realDataItem(), RealDataItem::unlinkFromInstrument(), and updatePreview().
Referenced by onFormatSelectionChanged(), and setItem().
|
private |
Definition at line 148 of file SpecularDataImportWidget.cpp.
References SessionItemWidget::currentItem().
|
private |
Definition at line 143 of file SpecularDataImportWidget.cpp.
References SessionItemWidget::currentItem().
Referenced by currentFileName(), onFormatSelectionChanged(), onPropertiesChanged(), and setItem().
|
private |
Definition at line 184 of file SpecularDataImportWidget.cpp.
References DataLoaders1D::instance(), m_ui, and GUI::RealSpace::Particles::name().
Referenced by onFormatSelectionChanged().
|
overridevirtual |
Reimplemented from SessionItemWidget.
Definition at line 78 of file SpecularDataImportWidget.cpp.
References RealDataItem::dataLoader(), fillLoaderCombo(), AbstractDataLoader::importSettingsChanged(), m_loader, m_ui, AbstractDataLoader::name(), onPropertiesChanged(), realDataItem(), SessionItemWidget::setItem(), specularDataItem(), updatePreview(), and updatePropertiesEdits().
|
overrideprotectedinherited |
Definition at line 51 of file SessionItemWidget.cpp.
References SessionItemWidget::m_itemController, and SessionItemController::subscribe().
|
private |
Definition at line 138 of file SpecularDataImportWidget.cpp.
References SessionItemWidget::currentItem(), and GUI::Model::DataItemUtils::specularDataItem().
Referenced by onPlotAxisClicked(), and setItem().
|
inlineprotectedvirtualinherited |
Reimplemented in ProjectionsPlot, IntensityDataProjectionsWidget, ColorMap, SpecularPlot, Plot1D, FitFlowWidget, FitComparisonWidget1D, FitComparisonWidget, IntensityDataCanvas, RealDataMaskWidget, RunFitControlWidget, ParameterTuningWidget, FitParameterWidget, and ItemComboWidget.
Definition at line 43 of file SessionItemWidget.h.
Referenced by SessionItemWidget::SessionItemWidget().
|
inlineprotectedvirtualinherited |
Reimplemented in ProjectionsPlot, IntensityDataProjectionsWidget, ColorMap, SpecularPlot, Plot1D, FitFlowWidget, FitComparisonWidget1D, FitComparisonWidget, RealDataMaskWidget, and RunFitControlWidget.
Definition at line 44 of file SessionItemWidget.h.
Referenced by SessionItemWidget::SessionItemWidget().
|
private |
Definition at line 227 of file SpecularDataImportWidget.cpp.
References AbstractDataLoader::createResultModel(), AbstractDataLoaderResultModel::fileContent, AbstractDataLoaderResultModel::line, AbstractDataLoader::lineUnrelatedErrors(), m_loader, m_ui, AbstractDataLoader::numErrors(), AbstractDataLoaderResultModel::processed, AbstractDataLoaderResultModel::raw, and AbstractDataLoaderResultModel::sectionsOfColumnType().
Referenced by SpecularDataImportWidget(), onFormatSelectionChanged(), onPropertiesChanged(), and setItem().
|
private |
Definition at line 168 of file SpecularDataImportWidget.cpp.
References m_loader, m_ui, and AbstractDataLoader::populateImportSettingsWidget().
Referenced by SpecularDataImportWidget(), onFormatSelectionChanged(), and setItem().
|
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 SpecularDataImportWidget.h.
Referenced by fillLoaderCombo(), onCreateNewFormatButton(), onFormatSelectionChanged(), onPropertiesChanged(), setItem(), updatePreview(), and updatePropertiesEdits().
|
private |
Definition at line 65 of file SpecularDataImportWidget.h.
Referenced by SpecularDataImportWidget(), fillLoaderCombo(), onCreateNewFormatButton(), onFormatSelectionChanged(), selectedLoader(), setItem(), updatePreview(), and updatePropertiesEdits().