QGCTabbedInfoView.cpp 800 Bytes
Newer Older
1 2
#include "QGCTabbedInfoView.h"

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

QGCTabbedInfoView::~QGCTabbedInfoView()
{
}