]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiProgressView.cpp
Properly support the cite engines in the GUI
[lyx.git] / src / frontends / qt4 / GuiProgressView.cpp
index af455f2b880918ef3ad2b53ff2d27ce16dc09b9f..335ae1ac45fc80c1a8bb114025510d9a8c7dcb94 100644 (file)
@@ -24,6 +24,8 @@
 #include "support/convert.h"
 #include "support/debug.h"
 
+#include <algorithm>
+
 #include <QCheckBox>
 #include <QDebug>
 #include <QSettings>
@@ -88,7 +90,9 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
        DebugVector dmap;
        for (int i = 1 ; i < level_count; i++) {
                Debug::Type const level = Debug::value(i);
-               QString const desc = qt_(Debug::description(level));
+               QString const desc =
+                       toqstr(from_ascii(Debug::name(level) + " - "))
+                       + qt_(Debug::description(level));
                dmap.push_back(DebugMap(level, desc));
        }
        sort(dmap.begin(), dmap.end(), DebugSorter);
@@ -148,7 +152,7 @@ void GuiProgressView::debugMessageActivated(QTreeWidgetItem * item, int)
 
 void GuiProgressView::levelChanged()
 {
-       int level = Debug::NONE;
+       unsigned int level = Debug::NONE;
        QTreeWidgetItemIterator it(widget_->debugMessagesTW);
        while (*it) {
                if ((*it)->text(1) == qt_("Yes"))
@@ -161,7 +165,7 @@ void GuiProgressView::levelChanged()
 
 void GuiProgressView::debugSelectionChanged()
 {
-       int level = Debug::NONE;
+       unsigned int level = Debug::NONE;
        if (widget_->debugAnyRB->isChecked())
                level = Debug::ANY;
        else if (widget_->debugSelectedRB->isChecked()) {
@@ -191,6 +195,10 @@ void GuiProgressView::clearText()
 
 void GuiProgressView::appendLyXErrText(QString const & text)
 {
+       // Skip verbose messages meant for the terminal
+       if (text.startsWith("\nRunning:"))
+               return;
+
        widget_->outTE->moveCursor(QTextCursor::End);
        widget_->outTE->insertPlainText(text);
        widget_->outTE->ensureCursorVisible();