BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Assists in importing Python object to GUI models.
Functions | |
std::unique_ptr< MultiLayer > | importMultiLayer () |
Show select-file dialog, try to import via python, return created sample. More... | |
MultiLayerItem * | itemizeSample (const MultiLayer &sample) |
Populates GUI sample with domain sample. More... | |
std::unique_ptr< MultiLayer > PyImportAssistant::importMultiLayer | ( | ) |
Show select-file dialog, try to import via python, return created sample.
If sth. went wrong, a dialog has presented already and nullptr is returned.
Definition at line 172 of file PyImportAssistant.cpp.
References GUI::Util::Path::baseName().
Referenced by SampleListModel::createSampleFromPython().
MultiLayerItem * PyImportAssistant::itemizeSample | ( | const MultiLayer & | sample | ) |
Populates GUI sample with domain sample.
Definition at line 197 of file PyImportAssistant.cpp.
References GUI::View::Helpers::information(), GUI::Transform::FromCore::itemizeSample(), and GUI::Global::mainWindow.
Referenced by SampleListModel::createSampleFromPython().