BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The PythonScriptWidget displays a python script which represents full simulation. Part of SimulationSetupWidget.
Definition at line 29 of file PythonScriptWidget.h.
Public Member Functions | |
PythonScriptWidget (QWidget *parent=nullptr) | |
~PythonScriptWidget () override | |
void | generatePythonScript (const MultiLayerItem *sampleItem, const InstrumentItem *instrumentItem, const SimulationOptionsItem &optionItem, const QString &outputDir="") |
Private Slots | |
void | onExportToFileButton () |
Private Attributes | |
CautionSign * | m_cautionSign |
QString | m_outputDir |
QTextEdit * | m_textEdit |
PythonScriptWidget::PythonScriptWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 36 of file PythonScriptWidget.cpp.
References appSettings, DesignerHelper::getPythonEditorFontSize(), ApplicationSettings::loadWindowSizeAndPos(), m_textEdit, onExportToFileButton(), and GUI::Util::Style::setResizable().
|
override |
Definition at line 81 of file PythonScriptWidget.cpp.
References appSettings, and ApplicationSettings::saveWindowSizeAndPos().
void PythonScriptWidget::generatePythonScript | ( | const MultiLayerItem * | sampleItem, |
const InstrumentItem * | instrumentItem, | ||
const SimulationOptionsItem & | optionItem, | ||
const QString & | outputDir = "" |
||
) |
Definition at line 86 of file PythonScriptWidget.cpp.
References CautionSign::clear(), GUI::Transform::ToCore::itemsToSimulation(), m_cautionSign, m_outputDir, m_textEdit, and CautionSign::setCautionMessage().
|
privateslot |
Definition at line 113 of file PythonScriptWidget.cpp.
References appSettings, m_outputDir, m_textEdit, ApplicationSettings::useNativeFileDialog(), and GUI::View::Helpers::warning().
Referenced by PythonScriptWidget().
|
private |
Definition at line 46 of file PythonScriptWidget.h.
Referenced by generatePythonScript().
|
private |
Definition at line 47 of file PythonScriptWidget.h.
Referenced by generatePythonScript(), and onExportToFileButton().
|
private |
Definition at line 45 of file PythonScriptWidget.h.
Referenced by PythonScriptWidget(), generatePythonScript(), and onExportToFileButton().