28 registerWidget(
"Projections", create_new<IntensityDataProjectionsWidget>);
30 registerWidget(
"Reflectometry (Graph only)", create_new<SpecularDataWidget>);
31 registerWidget(
"Reflectometry (Configuration)", create_new<SpecularDataImportWidget>);
36 return QList<QAction*>();
41 const auto realDataItem =
dynamic_cast<RealDataItem*
>(item);
45 if (realDataItem->isIntensityData())
49 else if (realDataItem->isSpecularData()) {
50 if (realDataItem->dataLoader() !=
nullptr)
51 result <<
"Reflectometry (Configuration)";
52 result <<
"Reflectometry (Graph only)";
55 "Error in RealDataPresenter::activePresentationList: unsupported data type");
#define ASSERT(condition)
Defines class GUIHelpers functions.
Defines class RealDataItem.
Defines class RealDataPresenter.
The RealDataItem class represents intensity data imported from file and intended for fitting.
RealDataPresenter(QWidget *parent=nullptr)
QList< QAction * > actionList()
QStringList activePresentationList(SessionItem *item)
Returns list of active presentations for given item.