29 registerWidget(
"Projections", create_new<IntensityDataProjectionsWidget>);
31 registerWidget(
"Reflectometry (Graph only)", create_new<SpecularDataWidget>);
32 registerWidget(
"Reflectometry (Configuration)", create_new<SpecularDataImportWidget>);
37 return QList<QAction*>();
42 auto*
const realDataItem =
dynamic_cast<RealDataItem*
>(item);
46 if (realDataItem->isIntensityData())
50 else if (realDataItem->isSpecularData()) {
51 if (realDataItem->dataLoader() !=
nullptr)
52 result <<
"Reflectometry (Configuration)";
53 result <<
"Reflectometry (Graph only)";
55 throw Error(
"Error in RealDataPresenter::activePresentationList: unsupported data type");
Defines class RealDataItem.
Defines class RealDataPresenter.
Provides access to experimental data, for display and fitting. Owns an AbstractDataLoader.
RealDataPresenter(QWidget *parent=nullptr)
QStringList activePresentationList(SessionItem *item) override
Returns list of active presentations for given item. Active presentation is the one which is present ...
QList< QAction * > actionList() override
Base class for a GUI data item.