|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The CautionSign controls appearance of CautionSignWidget on top of parent widget.
Definition at line 25 of file CautionSign.h.
Public Member Functions | |
| CautionSign (QWidget *parent) | |
| void | clear () |
| Clears caution message;. More... | |
| bool | isShown () const |
| void | setArea (QWidget *area) |
| void | setCautionHeader (const QString &cautionHeader) |
| void | setCautionMessage (const QString &cautionMessage) |
| Shows caution sign on the screen. If clear of previous caution sign had happened just few msec ago, make a small delay, to stress its reapearance. More... | |
Protected Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *event) override |
Private Member Functions | |
| QPoint | positionForCautionSign () const |
| void | updateLabelGeometry () |
Private Attributes | |
| QWidget * | m_area |
| QString | m_caution_header |
| QString | m_caution_message |
| CautionSignWidget * | m_cautionWidget |
| bool | m_clear_just_had_happened |
| CautionSign::CautionSign | ( | QWidget * | parent | ) |
Definition at line 30 of file CautionSign.cpp.
References setArea().
| void CautionSign::clear | ( | ) |
Clears caution message;.
Definition at line 42 of file CautionSign.cpp.
References m_caution_message, m_cautionWidget, and m_clear_just_had_happened.
Referenced by ScriptPanel::generateCodeSnippet(), PythonScriptWidget::generatePythonScript(), DistributionPlot::init_plot(), RunFitControlWidget::onFittingError(), RunFitControlWidget::updateControlElements(), ParameterTuningWidget::updateJobStatus(), and RealSpaceCanvas::updateScene().
|
overrideprotected |
Definition at line 90 of file CautionSign.cpp.
References updateLabelGeometry().
| bool CautionSign::isShown | ( | ) | const |
Definition at line 85 of file CautionSign.cpp.
References m_cautionWidget.
|
private |
Definition at line 107 of file CautionSign.cpp.
References m_area.
Referenced by updateLabelGeometry().
| void CautionSign::setArea | ( | QWidget * | area | ) |
| void CautionSign::setCautionHeader | ( | const QString & | cautionHeader | ) |
Definition at line 52 of file CautionSign.cpp.
References m_caution_header.
| void CautionSign::setCautionMessage | ( | const QString & | cautionMessage | ) |
Shows caution sign on the screen. If clear of previous caution sign had happened just few msec ago, make a small delay, to stress its reapearance.
Definition at line 60 of file CautionSign.cpp.
References m_area, m_caution_message, m_cautionWidget, m_clear_just_had_happened, CautionSignWidget::setCautionMessage(), and updateLabelGeometry().
Referenced by ScriptPanel::generateCodeSnippet(), PythonScriptWidget::generatePythonScript(), RunFitControlWidget::onFittingError(), DistributionPlot::plotItem(), ParameterTuningWidget::updateJobStatus(), and RealSpaceCanvas::updateScene().
|
private |
Definition at line 98 of file CautionSign.cpp.
References m_area, m_cautionWidget, positionForCautionSign(), and CautionSignWidget::setPosition().
Referenced by eventFilter(), and setCautionMessage().
|
private |
Definition at line 49 of file CautionSign.h.
Referenced by positionForCautionSign(), setArea(), setCautionMessage(), and updateLabelGeometry().
|
private |
Definition at line 46 of file CautionSign.h.
Referenced by setCautionHeader().
|
private |
Definition at line 47 of file CautionSign.h.
Referenced by clear(), and setCautionMessage().
|
private |
Definition at line 48 of file CautionSign.h.
Referenced by clear(), isShown(), setCautionMessage(), and updateLabelGeometry().
|
private |
Definition at line 50 of file CautionSign.h.
Referenced by clear(), and setCautionMessage().