Refactoring #1492

Updated by pospelov over 4 years ago

We use WarningSignWidget (small yellow triangle) in different widgets under similar scenarios, but having lots of duplicated code doing the same.

* Split WarningSignWidget on two parts: widget itself and its controller.
** Use OverlayLabel and OverlayLabelCotroller as an example
* Introduce animation to stress it's reappearance (important in the context of FitActivityPanel)
* Introduce possibility to set custom title (Houston we have problem), label (Job has failed), and warning body.
* Think how to treat huge warning messages (i.e. in case of the fitting).
** Should it be some custom QPlainTextEdit instead of QMessageBox?
* Switch all widgets to it

*Additional bug discovered*

* When put Interference2DItem on graphics scene, a warning sign appears on PyScriptWidget, and never disappears again.

<pre>
ParameterizedItem::getRegisteredProperty() -> Error. Unknown property 'Cross Correlation Length', item 'Interference2DLattice'
</pre>

* Replace "Houston we have a problem" with something.



Back