QGCTabbedInfoView.cpp 642 Bytes
Newer Older
1
#include "QGCTabbedInfoView.h"
2
#include "QGCApplication.h"
3

4 5
QGCTabbedInfoView::QGCTabbedInfoView(const QString& title, QAction* action, QWidget *parent)
    : QGCDockWidget(title, action, parent)
6 7
{
    ui.setupUi(this);
8
    messageView = new UASMessageViewWidget(qgcApp()->toolbox()->uasMessageHandler(), this);
9
    quickView = new UASQuickView(this);
10
    ui.tabWidget->addTab(quickView,"Quick");
11
    ui.tabWidget->addTab(messageView,"Messages");
12 13
    
    loadSettings();
14 15 16 17 18
}
void QGCTabbedInfoView::addSource(MAVLinkDecoder *decoder)
{
    m_decoder = decoder;
    quickView->addSource(decoder);
19 20 21 22 23
}

QGCTabbedInfoView::~QGCTabbedInfoView()
{
}