Map Matching
qprocessviewer.cpp
Go to the documentation of this file.
1 #include "qprocessviewer.h"
2 
3 #include <QVBoxLayout>
4 
6  : QWidget(parent)
7 {
8  textEdit = new QTextEdit;
9  textEdit->setReadOnly(true);
10  textEdit->setLineWrapMode(QTextEdit::NoWrap);
11 
12  closeButton = new QPushButton(tr("&Close"));
13  connect(closeButton, SIGNAL(clicked()), this, SLOT(close()));
14 
15  startSolver = new QPushButton(tr("&Start Solver"));
16 
17  QVBoxLayout* layout = new QVBoxLayout;
18  layout->addWidget(textEdit);
19  layout->addWidget(startSolver);
20  layout->addWidget(closeButton);
21  setLayout(layout);
22 
23  setWindowTitle(tr("Logs"));
24 }
25 
27 {
28  textEdit->append(s);
29 }
30 /*
31 void QProcessViewer::onSignalDrawPoint(QString s)
32 {
33  textEdit->append(s);
34 }
35 
36 void QProcessViewer::onSignalDrawRoad(QString s)
37 {
38  textEdit->append(s);
39 }
40 */
QPushButton * closeButton
QProcessViewer(QWidget *parent=0)
QPushButton * startSolver
void onSignalMessage(QString s)
QTextEdit * textEdit