|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Signals | |
| void | modelChanged () |
Public Member Functions | |
| ApplicationModels (QObject *parent=nullptr) | |
| ~ApplicationModels () | |
| DocumentModel * | documentModel () |
| InstrumentModel * | instrumentModel () |
| JobModel * | jobModel () |
| MaterialModel * | materialModel () |
| QList< SessionModel * > | modelList () |
| Returns the list of all GUI models. More... | |
| QVector< SessionItem * > | nonXMLItems () const |
| Returns all non-XML items. More... | |
| void | readFrom (class QXmlStreamReader *reader, MessageService *messageService) |
| RealDataModel * | realDataModel () |
| void | resetModels () |
| reset all models to initial state More... | |
| SampleModel * | sampleModel () |
| void | writeTo (class QXmlStreamWriter *writer) |
| Writes all model in file one by one. More... | |
Private Member Functions | |
| void | connectModel (SessionModel *model) |
Definition at line 31 of file ApplicationModels.h.
|
explicit |
Definition at line 39 of file ApplicationModels.cpp.
References connectModel(), m_documentModel, m_instrumentModel, m_jobModel, m_materialModel, m_materialPropertyController, m_realDataModel, m_sampleModel, materialModel(), resetModels(), sampleModel(), RealDataModel::setInstrumentModel(), and MaterialPropertyController::setModels().
|
default |
|
private |
Definition at line 173 of file ApplicationModels.cpp.
References modelChanged().
Referenced by ApplicationModels().
| DocumentModel * ApplicationModels::documentModel | ( | ) |
Definition at line 73 of file ApplicationModels.cpp.
References m_documentModel.
Referenced by SimulationSetupWidget::onExportToPythonScript(), SimulationSetupWidget::onRunSimulation(), and SimulationSetupWidget::updateViewElements().
| InstrumentModel * ApplicationModels::instrumentModel | ( | ) |
Definition at line 83 of file ApplicationModels.cpp.
References m_instrumentModel.
Referenced by MainWindow::instrumentModel(), SimulationDataSelectorWidget::selectedInstrumentItem(), SampleDesigner::setModels(), and SimulationDataSelectorWidget::updateViewElements().
| JobModel * ApplicationModels::jobModel | ( | ) |
Definition at line 98 of file ApplicationModels.cpp.
References m_jobModel.
Referenced by MainWindow::jobModel(), and SimulationSetupWidget::onRunSimulation().
| MaterialModel * ApplicationModels::materialModel | ( | ) |
Definition at line 78 of file ApplicationModels.cpp.
References m_materialModel.
Referenced by ApplicationModels(), MainWindow::materialModel(), and SampleDesigner::setModels().
|
signal |
Referenced by connectModel(), ProjectDocument::connectModels(), and ProjectDocument::disconnectModels().
| QList< SessionModel * > ApplicationModels::modelList | ( | ) |
Returns the list of all GUI models.
Definition at line 154 of file ApplicationModels.cpp.
References m_documentModel, m_instrumentModel, m_jobModel, m_materialModel, m_realDataModel, and m_sampleModel.
Referenced by readFrom(), and writeTo().
| QVector< SessionItem * > ApplicationModels::nonXMLItems | ( | ) | const |
Returns all non-XML items.
Definition at line 166 of file ApplicationModels.cpp.
References ASSERT, m_instrumentModel, m_jobModel, m_realDataModel, InstrumentModel::nonXMLItems(), JobModel::nonXMLItems(), and RealDataModel::nonXMLItems().
Referenced by OutputDataIOService::nonXMLItems().
| void ApplicationModels::readFrom | ( | class QXmlStreamReader * | reader, |
| MessageService * | messageService | ||
| ) |
Definition at line 134 of file ApplicationModels.cpp.
References m_materialPropertyController, modelList(), MaterialPropertyController::onMaterialModelLoad(), resetModels(), and DeserializationException::text().
Referenced by ProjectDocument::readFrom().
| RealDataModel * ApplicationModels::realDataModel | ( | ) |
Definition at line 93 of file ApplicationModels.cpp.
References m_realDataModel.
Referenced by MainWindow::realDataModel(), SimulationDataSelectorWidget::selectedRealDataItem(), and SimulationDataSelectorWidget::updateViewElements().
| void ApplicationModels::resetModels | ( | ) |
reset all models to initial state
Definition at line 104 of file ApplicationModels.cpp.
References MaterialModel::addRefractiveMaterial(), SessionModel::clear(), JobModel::clear(), SessionModel::insertItem(), m_documentModel, m_instrumentModel, m_jobModel, m_materialModel, m_realDataModel, m_sampleModel, and SessionItem::setItemName().
Referenced by ApplicationModels(), ProjectManager::deleteCurrentProject(), and readFrom().
| SampleModel * ApplicationModels::sampleModel | ( | ) |
Definition at line 88 of file ApplicationModels.cpp.
References m_sampleModel.
Referenced by ApplicationModels(), MainWindow::sampleModel(), SimulationDataSelectorWidget::selectedMultiLayerItem(), SampleDesigner::setModels(), and SimulationDataSelectorWidget::updateViewElements().
| void ApplicationModels::writeTo | ( | class QXmlStreamWriter * | writer | ) |
Writes all model in file one by one.
Definition at line 128 of file ApplicationModels.cpp.
References modelList().
Referenced by ProjectDocument::writeTo().
|
private |
Definition at line 60 of file ApplicationModels.h.
Referenced by ApplicationModels(), documentModel(), modelList(), and resetModels().
|
private |
Definition at line 62 of file ApplicationModels.h.
Referenced by ApplicationModels(), instrumentModel(), modelList(), nonXMLItems(), and resetModels().
|
private |
Definition at line 65 of file ApplicationModels.h.
Referenced by ApplicationModels(), jobModel(), modelList(), nonXMLItems(), and resetModels().
|
private |
Definition at line 61 of file ApplicationModels.h.
Referenced by ApplicationModels(), materialModel(), modelList(), and resetModels().
|
private |
Definition at line 66 of file ApplicationModels.h.
Referenced by ApplicationModels(), and readFrom().
|
private |
Definition at line 64 of file ApplicationModels.h.
Referenced by ApplicationModels(), modelList(), nonXMLItems(), realDataModel(), and resetModels().
|
private |
Definition at line 63 of file ApplicationModels.h.
Referenced by ApplicationModels(), modelList(), resetModels(), and sampleModel().