28 setWindowTitle(
"Job Datafield");
29 setObjectName(
"JobResultsPresenter");
32 registerWidget(
"Projections", create_new<IntensityDataProjectionsWidget>);
37 setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
38 setMinimumSize(600, 600);
59 if (item && !presentationType.isEmpty())
67 if (jobItem && !jobItem->isRunning()) {
87 auto* jobItem =
dynamic_cast<JobItem*
>(item);
88 if (!jobItem || jobItem->isRunning())
91 ASSERT(jobItem->instrumentItem() !=
nullptr);
95 if (jobItem->isValidForFitting())
103 auto* jobItem =
dynamic_cast<JobItem*
>(item);
104 if (!jobItem || jobItem->isRunning())
107 ASSERT(jobItem->instrumentItem() !=
nullptr);
111 if (!addon.isEmpty())
120 return "Reflectometry";
129 return {
"Reflectometry"};
131 return {
"Heat Map",
"Projections"};
137 return "Fit 1D Data";
139 return "Fit 2D Data";
Defines class InstrumentItem and all its children.
Defines class JobResultsPresenter.
Defines class JobViewActivities.
Abstract base class for instrument-specific item classes.
void setPresentationType(const QString &type)
QStringList activePresentationList(SessionItem *item) override
Returns list of presentation types, available for given item. JobItem with fitting abilities is valid...
void setItem(SessionItem *item) override
void setPresentation(const QString &presentationType) override
Sets stack to show widget corresponding to given presentation.
QStringList presentationList(SessionItem *item) override
Returns full list of presentations available for given item.
QString defaultPresentationOfInstrument(InstrumentItem *instrumentItem)
QString itemPresentation() const override
Presentation which should be shown for current item.
QStringList defaultActivePresentationsOfInstrument(InstrumentItem *instrumentItem)
QString fitPresentationOfInstrument(InstrumentItem *instrumentItem)
JobResultsPresenter(QWidget *parent=nullptr)
Base class for a GUI data item.