[ui] high-level log system to prompt message dialogs in UI

* add 'info', 'warning', 'error' Signals on root object Reconstruction
* create MessageDialogs when those signals are emitted
This commit is contained in:
Yann Lanthony 2018-04-13 22:21:48 +02:00 committed by Yann Lanthony
parent 0adc4d8cc6
commit f2089108aa
5 changed files with 132 additions and 0 deletions

View file

@ -452,3 +452,8 @@ class Reconstruction(UIGraph):
sfmReport = Property(bool, lambda self: len(self._poses) > 0, notify=sfmReportChanged)
sfmAugmented = Signal(graph.Node, graph.Node)
# Signals to propagate high-level log messages
# Signal(title, text, detailedText)
error = Signal(str, str, str)
warning = Signal(str, str, str)
info = Signal(str, str, str)