QGCTabbedInfoView.cpp 695 Bytes
Newer Older
1 2 3 4 5
#include "QGCTabbedInfoView.h"

QGCTabbedInfoView::QGCTabbedInfoView(QWidget *parent) : QWidget(parent)
{
    ui.setupUi(this);
6
    messageView = new QGCMessageView(this);
7
    actionsWidget = new UASActionsWidget(this);
8
    quickView = new UASQuickView(this);
9
    rawView = new UASRawStatusView(this);
10
    ui.tabWidget->addTab(messageView,"Messages");
11 12 13 14 15 16 17 18 19
    ui.tabWidget->addTab(quickView,"Quick");
    ui.tabWidget->addTab(actionsWidget,"Actions");
    ui.tabWidget->addTab(rawView,"Status");
}
void QGCTabbedInfoView::addSource(MAVLinkDecoder *decoder)
{
    m_decoder = decoder;
    rawView->addSource(decoder);
    quickView->addSource(decoder);
20 21 22 23 24
}

QGCTabbedInfoView::~QGCTabbedInfoView()
{
}