23 #include <QVBoxLayout>
27 const bool reuse_widget =
true;
34 , m_document(document)
36 auto* mainLayout =
new QVBoxLayout;
37 mainLayout->setMargin(0);
38 mainLayout->setSpacing(0);
39 mainLayout->setContentsMargins(0, 0, 0, 0);
41 m_stackedWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
42 m_selectorWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
45 auto* splitter =
new QSplitter;
48 splitter->setCollapsible(0,
false);
49 splitter->setCollapsible(1,
false);
54 mainLayout->addWidget(splitter);
56 setLayout(mainLayout);
Defines class ImportDataView.
Defines class ProjectDocument.
Defines class RealDataItem.
Defines class RealDataModel.
void updateFunctionalityNarrowing()
Show/hide UI elements according to settings in current project.
RealDataSelectorWidget * m_selectorWidget
ItemStackPresenter< RealDataPresenter > * m_stackedWidget
void onSelectionChanged(RealDataItem *item)
ProjectDocument * m_document
ImportDataView(QWidget *parent, ProjectDocument *document)
The ItemStackPresenter templated class extends ItemStackWidget so it could operate with SesionItem ed...
void setItem(U *item, bool *isNew=nullptr)
Shows the widget for given item (and hides previous one). If no widget yet exists,...
Project document class handles all data related to the opened project (sample, job,...
RealDataModel * realDataModel() const
Functionalities functionalities() const
void modified()
Emitted for any modifications in the document.
Provides access to experimental data, for display and fitting. Owns an AbstractDataLoader.
Presents imported data (RealDataItem) using stack of different widgets and combo box in the right top...
Defines namespace GUI::Constants.
const unsigned int ITEM_SELECTOR_WIDGET_WIDTH