15 #ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SCRIPTPANEL_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SCRIPTPANEL_H
The CautionSign controls appearance of CautionSignWidget on top of parent widget.
Implementation of highlighting for Python code.
Resides at the bottom of SampleView and displays a Python script.
UpdateTimer * m_updateTimer
ScriptPanel(QWidget *parent)
void updateEditor()
Update the editor with the script content.
void showEvent(QShowEvent *) override
QString generateCodeSnippet()
generates string representing code snippet for all multi layers in the model
MultiLayerItem * m_currentMultiLayerItem
void hideEvent(QHideEvent *) override
CautionSign * m_cautionSign
void setCurrentSample(MultiLayerItem *sampleItem)
PythonSyntaxHighlighter * m_highlighter
The UpdateTimer class accumulates update requests during certain period of time, and at the end of th...