OP-1900 have path_progress updated correctly for leg_remaining and error_below end...
[librepilot.git] / ground / openpilotgcs / src / plugins / debuggadget / debugengine.cpp
blobedf9060b6d874c4c9f19ac1ffd7440d220161512
1 #include "debugengine.h"
3 debugengine::debugengine()
5 mut_lock = new QMutex(QMutex::Recursive);
8 debugengine *debugengine::getInstance()
10 static debugengine objectInstance;
12 return &objectInstance;
15 debugengine::~debugengine()
17 delete mut_lock;
18 mut_lock = NULL;
21 void debugengine::setTextEdit(QTextBrowser *textEdit)
23 QMutexLocker lock(mut_lock);
25 _textEdit = textEdit;
28 void debugengine::writeMessage(const QString &message)
30 QMutexLocker lock(mut_lock);
32 if (_textEdit) {
33 _textEdit->append(message);
37 void debugengine::setColor(const QColor &c)
39 QMutexLocker lock(mut_lock);
41 if (_textEdit) {
42 _textEdit->setTextColor(c);