QGCUnconnectedInfoWidget.cc 870 Bytes
Newer Older
1
#include "QGCUnconnectedInfoWidget.h"
2 3 4
#include "LinkInterface.h"
#include "LinkManager.h"
#include "MainWindow.h"
5 6 7 8 9 10 11
#include "ui_QGCUnconnectedInfoWidget.h"

QGCUnconnectedInfoWidget::QGCUnconnectedInfoWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::QGCUnconnectedInfoWidget)
{
    ui->setupUi(this);
12
    //connect(ui->simulationButton, SIGNAL(clicked()), this, SLOT(simulate()));
13
    //connect(ui->connectButton, SIGNAL(clicked()), this, SLOT(addLink()));
14 15 16 17 18 19
}

QGCUnconnectedInfoWidget::~QGCUnconnectedInfoWidget()
{
    delete ui;
}
20 21 22 23 24 25 26 27 28 29 30 31 32

/**
 * @brief Starts the system simulation
 */
void QGCUnconnectedInfoWidget::simulate()
{
}

/**
 * @return Opens a "Connect new Link" popup
 */
void QGCUnconnectedInfoWidget::addLink()
{
33 34
    // TODO This doesn't make sense. If you want to connect, use the connect on the toolbar
    //MainWindow::instance()->addLink();
35
}