16 changed files with 281 additions and 54 deletions
@ -0,0 +1,17 @@
@@ -0,0 +1,17 @@
|
||||
#include "QGCUnconnectedInfoWidget.h" |
||||
#include "ui_QGCUnconnectedInfoWidget.h" |
||||
|
||||
QGCUnconnectedInfoWidget::QGCUnconnectedInfoWidget(QWidget *parent) : |
||||
QWidget(parent), |
||||
ui(new Ui::QGCUnconnectedInfoWidget) |
||||
{ |
||||
ui->setupUi(this); |
||||
|
||||
connect(ui->simulationButton, SIGNAL(clicked()), this, SIGNAL(simulation())); |
||||
connect(ui->connectButton, SIGNAL(clicked()), this, SIGNAL(addLink())); |
||||
} |
||||
|
||||
QGCUnconnectedInfoWidget::~QGCUnconnectedInfoWidget() |
||||
{ |
||||
delete ui; |
||||
} |
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
#ifndef QGCUNCONNECTEDINFOWIDGET_H |
||||
#define QGCUNCONNECTEDINFOWIDGET_H |
||||
|
||||
#include <QWidget> |
||||
|
||||
namespace Ui { |
||||
class QGCUnconnectedInfoWidget; |
||||
} |
||||
|
||||
class QGCUnconnectedInfoWidget : public QWidget |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
explicit QGCUnconnectedInfoWidget(QWidget *parent = 0); |
||||
~QGCUnconnectedInfoWidget(); |
||||
|
||||
Ui::QGCUnconnectedInfoWidget *ui; |
||||
|
||||
signals: |
||||
void simulation(); |
||||
void addLink(); |
||||
}; |
||||
|
||||
#endif // QGCUNCONNECTEDINFOWIDGET_H
|
@ -0,0 +1,81 @@
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<ui version="4.0"> |
||||
<class>QGCUnconnectedInfoWidget</class> |
||||
<widget class="QWidget" name="QGCUnconnectedInfoWidget"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>400</width> |
||||
<height>300</height> |
||||
</rect> |
||||
</property> |
||||
<property name="windowTitle"> |
||||
<string>Form</string> |
||||
</property> |
||||
<layout class="QGridLayout" name="gridLayout"> |
||||
<item row="0" column="0" colspan="3"> |
||||
<widget class="QTextEdit" name="textEdit"> |
||||
<property name="verticalScrollBarPolicy"> |
||||
<enum>Qt::ScrollBarAlwaysOff</enum> |
||||
</property> |
||||
<property name="horizontalScrollBarPolicy"> |
||||
<enum>Qt::ScrollBarAlwaysOff</enum> |
||||
</property> |
||||
<property name="autoFormatting"> |
||||
<set>QTextEdit::AutoAll</set> |
||||
</property> |
||||
<property name="undoRedoEnabled"> |
||||
<bool>false</bool> |
||||
</property> |
||||
<property name="readOnly"> |
||||
<bool>true</bool> |
||||
</property> |
||||
<property name="html"> |
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
||||
p, li { white-space: pre-wrap; } |
||||
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;"> |
||||
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;"> |
||||
<tr> |
||||
<td style="border: none;"> |
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt; font-weight:600;">Unmanned System List</span></p> |
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:6pt; font-weight:600;"></p> |
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt; font-weight:600;">No Systems are connected yet.</span><span style=" font-size:10pt;"> Please either connect a link or use the simulation function to see QGroundControl in action.</span></p> |
||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:10pt;"></p> |
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:10pt; font-style:italic;">Click on the simulation button below to simulate a micro air vehicle or on the connect link button to connect a serial port link. A UDP link is already open for connections.</span></p></td></tr></table></body></html></string> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item row="1" column="0"> |
||||
<spacer name="horizontalSpacer"> |
||||
<property name="orientation"> |
||||
<enum>Qt::Horizontal</enum> |
||||
</property> |
||||
<property name="sizeHint" stdset="0"> |
||||
<size> |
||||
<width>40</width> |
||||
<height>20</height> |
||||
</size> |
||||
</property> |
||||
</spacer> |
||||
</item> |
||||
<item row="1" column="1"> |
||||
<widget class="QPushButton" name="simulationButton"> |
||||
<property name="text"> |
||||
<string>Simulate MAV</string> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item row="1" column="2"> |
||||
<widget class="QPushButton" name="connectButton"> |
||||
<property name="text"> |
||||
<string>Connect Link</string> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
</layout> |
||||
</widget> |
||||
<resources/> |
||||
<connections/> |
||||
</ui> |
Loading…
Reference in new issue