15 #ifndef BORNAGAIN_GUI_VIEW_TOPLEVEL_SIMULATIONVIEW_H
16 #define BORNAGAIN_GUI_VIEW_TOPLEVEL_SIMULATIONVIEW_H
75 void updateSelection(QComboBox* comboBox, QStringList itemList,
bool allowNone =
false);
Abstract base class for instrument-specific item classes.
Project document class handles all data related to the opened project (sample, job,...
Provides access to experimental data, for display and fitting. Owns an AbstractDataLoader.
The SimulationOptionsItem class holds simulation status (run policy, number of threads,...
Widget to define a simulation. Contains:
SimulationOptionsItem * optionsItem() const
QVector< MultiLayerItem * > sampleItems() const
QVector< RealDataItem * > realDataItems() const
Ui::SimulationView * m_ui
const RealDataItem * selectedRealData() const
Returns selected real data item taking into account that there might be several items with the same n...
const InstrumentItem * selectedInstrument() const
Returns selected InstrumentItem taking into account that there might be several instruments with the ...
const MultiLayerItem * selectedSample() const
Returns selected sample (MultiLayerItem) taking into account that there might be several samples with...
QVector< InstrumentItem * > collectedItems() const
void updateFunctionalityNarrowing()
Show/hide UI elements according to settings in current project.
ProjectDocument * m_document
void showEvent(QShowEvent *) override
void updateSelection(QComboBox *comboBox, QStringList itemList, bool allowNone=false)
Updates selection combo with string list while preserving previous selection. If allowNone == true,...
void exportPythonScript()
void writeOptionsToUI()
Write entries in OptionsItem to UI.
void hideEvent(QHideEvent *) override
SimulationView(QWidget *parent, ProjectDocument *document)
QString validateSimulationSetup(bool validateRealData) const
Checks whether selection is correct for running a simulation. Returns empty string if valid,...
void readOptionsFromUI()
Read the entries in the UI and store in OptionsItem.
void updateEnabling()
Update enabling of elements depending on other elements.