mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
Clean up HiTL plugin to remove old and unused files. You might have to clean and rebuild after this if you get errors. Made X-Plane HiTL bridge a bit more chatty at startup to help users.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2286 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
343b4095a3
commit
d1be74bcf4
@ -1,106 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>FGOptionsPage</class>
|
||||
<widget class="QWidget" name="FGOptionsPage">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>320</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>FlightGear executable:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>FlightGear data directory:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="Utils::PathChooser" name="executablePathChooser" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>1</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="Utils::PathChooser" name="dataDirectoryPathChooser" native="true"/>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QCheckBox" name="fgManualControl">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Manual aircraft control (can be used when hardware is not available)</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Manual aircraft control (can be used when hardware is not available)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>182</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>Utils::PathChooser</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>utils/pathchooser.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>577</width>
|
||||
<width>590</width>
|
||||
<height>367</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -23,14 +23,14 @@
|
||||
<property name="margin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<item row="1" column="1">
|
||||
<item row="1" column="1" colspan="2">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Choose flight simulator:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" colspan="3">
|
||||
<item row="1" column="3" colspan="2">
|
||||
<widget class="QComboBox" name="chooseFlightSimulator"/>
|
||||
</item>
|
||||
<item row="2" column="1" colspan="4">
|
||||
@ -40,7 +40,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="2">
|
||||
<item row="11" column="2">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
@ -53,23 +53,19 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<item row="3" column="1" colspan="2">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Local interface address (IP):</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="2" colspan="2">
|
||||
<widget class="QLineEdit" name="hostAddress">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>For communication with sim computer via network. Should be IP address of one of the local interfaces. </string>
|
||||
<property name="text">
|
||||
<string>Local interface address (IP):</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@ -102,6 +98,12 @@
|
||||
</item>
|
||||
<item row="5" column="2">
|
||||
<widget class="QLineEdit" name="inputPort">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>For receiving data from sim</string>
|
||||
</property>
|
||||
@ -119,6 +121,12 @@
|
||||
</item>
|
||||
<item row="5" column="3">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Output Port:</string>
|
||||
</property>
|
||||
@ -128,10 +136,23 @@
|
||||
<widget class="Utils::PathChooser" name="dataPath" native="true"/>
|
||||
</item>
|
||||
<item row="6" column="4">
|
||||
<widget class="QLineEdit" name="longitude"/>
|
||||
<widget class="QLineEdit" name="longitude">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="4">
|
||||
<widget class="QLineEdit" name="outputPort">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>For sending data to sim</string>
|
||||
</property>
|
||||
@ -167,7 +188,14 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="QLineEdit" name="latitude"/>
|
||||
<widget class="QLineEdit" name="latitude">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="label_5">
|
||||
@ -176,7 +204,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="1">
|
||||
<item row="10" column="1" colspan="2">
|
||||
<widget class="QCheckBox" name="startSim">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
@ -195,23 +223,39 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<item row="4" column="1" colspan="2">
|
||||
<widget class="QLabel" name="label_9">
|
||||
<property name="text">
|
||||
<string>Remote interface address (IP):</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<item row="4" column="3">
|
||||
<widget class="QLineEdit" name="remoteHostAddress">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Only required if running simulator on remote machine </string>
|
||||
<string>Only required if running simulator on remote machine. Should be the IP of the machine on which the simulator is running.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="3">
|
||||
<widget class="QLineEdit" name="hostAddress">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>For communication with sim computer via network. Should be the IP address of one of the interfaces of the GCS computer.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -130,7 +130,7 @@ public:
|
||||
static void setInstance(const QString& str) { Simulator::instances.append(str); }
|
||||
|
||||
virtual void stopProcess() {}
|
||||
virtual void setupUdpPorts(const QString& host, int inPort, int outPort) {}
|
||||
virtual void setupUdpPorts(const QString& host, int inPort, int outPort) { Q_UNUSED(host) Q_UNUSED(inPort) Q_UNUSED(outPort)}
|
||||
|
||||
signals:
|
||||
void autopilotConnected();
|
||||
|
@ -1,119 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'fgoptionspage.ui'
|
||||
**
|
||||
** Created: Tue 24. Aug 21:12:33 2010
|
||||
** by: Qt User Interface Compiler version 4.6.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_FGOPTIONSPAGE_H
|
||||
#define UI_FGOPTIONSPAGE_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QWidget>
|
||||
#include "utils/pathchooser.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_FGOptionsPage
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout;
|
||||
QLabel *label;
|
||||
QLabel *label_2;
|
||||
Utils::PathChooser *executablePathChooser;
|
||||
Utils::PathChooser *dataDirectoryPathChooser;
|
||||
QCheckBox *fgManualControl;
|
||||
QSpacerItem *verticalSpacer;
|
||||
|
||||
void setupUi(QWidget *FGOptionsPage)
|
||||
{
|
||||
if (FGOptionsPage->objectName().isEmpty())
|
||||
FGOptionsPage->setObjectName(QString::fromUtf8("FGOptionsPage"));
|
||||
FGOptionsPage->resize(400, 320);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(FGOptionsPage->sizePolicy().hasHeightForWidth());
|
||||
FGOptionsPage->setSizePolicy(sizePolicy);
|
||||
gridLayout = new QGridLayout(FGOptionsPage);
|
||||
gridLayout->setContentsMargins(0, 0, 0, 0);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
label = new QLabel(FGOptionsPage);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
|
||||
label->setSizePolicy(sizePolicy1);
|
||||
|
||||
gridLayout->addWidget(label, 0, 0, 1, 1);
|
||||
|
||||
label_2 = new QLabel(FGOptionsPage);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
sizePolicy1.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
|
||||
label_2->setSizePolicy(sizePolicy1);
|
||||
|
||||
gridLayout->addWidget(label_2, 1, 0, 1, 1);
|
||||
|
||||
executablePathChooser = new Utils::PathChooser(FGOptionsPage);
|
||||
executablePathChooser->setObjectName(QString::fromUtf8("executablePathChooser"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy2.setHorizontalStretch(1);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(executablePathChooser->sizePolicy().hasHeightForWidth());
|
||||
executablePathChooser->setSizePolicy(sizePolicy2);
|
||||
|
||||
gridLayout->addWidget(executablePathChooser, 0, 1, 1, 1);
|
||||
|
||||
dataDirectoryPathChooser = new Utils::PathChooser(FGOptionsPage);
|
||||
dataDirectoryPathChooser->setObjectName(QString::fromUtf8("dataDirectoryPathChooser"));
|
||||
|
||||
gridLayout->addWidget(dataDirectoryPathChooser, 1, 1, 1, 1);
|
||||
|
||||
fgManualControl = new QCheckBox(FGOptionsPage);
|
||||
fgManualControl->setObjectName(QString::fromUtf8("fgManualControl"));
|
||||
sizePolicy1.setHeightForWidth(fgManualControl->sizePolicy().hasHeightForWidth());
|
||||
fgManualControl->setSizePolicy(sizePolicy1);
|
||||
|
||||
gridLayout->addWidget(fgManualControl, 3, 1, 1, 1);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 182, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
gridLayout->addItem(verticalSpacer, 4, 1, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(FGOptionsPage);
|
||||
|
||||
QMetaObject::connectSlotsByName(FGOptionsPage);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *FGOptionsPage)
|
||||
{
|
||||
FGOptionsPage->setWindowTitle(QApplication::translate("FGOptionsPage", "Form", 0, QApplication::UnicodeUTF8));
|
||||
label->setText(QApplication::translate("FGOptionsPage", "FlightGear executable:", 0, QApplication::UnicodeUTF8));
|
||||
label_2->setText(QApplication::translate("FGOptionsPage", "FlightGear data directory:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
fgManualControl->setToolTip(QApplication::translate("FGOptionsPage", "Manual aircraft control (can be used when hardware is not available)", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
fgManualControl->setText(QApplication::translate("FGOptionsPage", "Manual aircraft control (can be used when hardware is not available)", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class FGOptionsPage: public Ui_FGOptionsPage {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_FGOPTIONSPAGE_H
|
@ -1,253 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'hitloptionspage.ui'
|
||||
**
|
||||
** Created: Wed Nov 24 20:23:33 2010
|
||||
** by: Qt User Interface Compiler version 4.7.0
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_HITLOPTIONSPAGE_H
|
||||
#define UI_HITLOPTIONSPAGE_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QComboBox>
|
||||
#include <QtGui/QFrame>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QWidget>
|
||||
#include "utils/pathchooser.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_HITLOptionsPage
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout;
|
||||
QLabel *label_3;
|
||||
QComboBox *chooseFlightSimulator;
|
||||
QFrame *line;
|
||||
QSpacerItem *verticalSpacer;
|
||||
QLabel *label_6;
|
||||
QLineEdit *hostAddress;
|
||||
QLabel *label_7;
|
||||
QLabel *label_8;
|
||||
QLabel *label_2;
|
||||
QLineEdit *inputPort;
|
||||
Utils::PathChooser *executablePath;
|
||||
QLabel *label_4;
|
||||
Utils::PathChooser *dataPath;
|
||||
QLineEdit *longitude;
|
||||
QLineEdit *outputPort;
|
||||
QCheckBox *manualControl;
|
||||
QLabel *label;
|
||||
QLineEdit *latitude;
|
||||
QLabel *label_5;
|
||||
QCheckBox *startSim;
|
||||
QLabel *label_9;
|
||||
QLineEdit *remoteHostAddress;
|
||||
|
||||
void setupUi(QWidget *HITLOptionsPage)
|
||||
{
|
||||
if (HITLOptionsPage->objectName().isEmpty())
|
||||
HITLOptionsPage->setObjectName(QString::fromUtf8("HITLOptionsPage"));
|
||||
HITLOptionsPage->resize(577, 367);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(HITLOptionsPage->sizePolicy().hasHeightForWidth());
|
||||
HITLOptionsPage->setSizePolicy(sizePolicy);
|
||||
gridLayout = new QGridLayout(HITLOptionsPage);
|
||||
gridLayout->setContentsMargins(0, 0, 0, 0);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
label_3 = new QLabel(HITLOptionsPage);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
|
||||
gridLayout->addWidget(label_3, 1, 1, 1, 1);
|
||||
|
||||
chooseFlightSimulator = new QComboBox(HITLOptionsPage);
|
||||
chooseFlightSimulator->setObjectName(QString::fromUtf8("chooseFlightSimulator"));
|
||||
|
||||
gridLayout->addWidget(chooseFlightSimulator, 1, 2, 1, 3);
|
||||
|
||||
line = new QFrame(HITLOptionsPage);
|
||||
line->setObjectName(QString::fromUtf8("line"));
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
gridLayout->addWidget(line, 2, 1, 1, 4);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 182, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
gridLayout->addItem(verticalSpacer, 12, 2, 1, 1);
|
||||
|
||||
label_6 = new QLabel(HITLOptionsPage);
|
||||
label_6->setObjectName(QString::fromUtf8("label_6"));
|
||||
|
||||
gridLayout->addWidget(label_6, 3, 1, 1, 1);
|
||||
|
||||
hostAddress = new QLineEdit(HITLOptionsPage);
|
||||
hostAddress->setObjectName(QString::fromUtf8("hostAddress"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(hostAddress->sizePolicy().hasHeightForWidth());
|
||||
hostAddress->setSizePolicy(sizePolicy1);
|
||||
|
||||
gridLayout->addWidget(hostAddress, 3, 2, 1, 2);
|
||||
|
||||
label_7 = new QLabel(HITLOptionsPage);
|
||||
label_7->setObjectName(QString::fromUtf8("label_7"));
|
||||
|
||||
gridLayout->addWidget(label_7, 6, 1, 1, 1);
|
||||
|
||||
label_8 = new QLabel(HITLOptionsPage);
|
||||
label_8->setObjectName(QString::fromUtf8("label_8"));
|
||||
|
||||
gridLayout->addWidget(label_8, 6, 3, 1, 1);
|
||||
|
||||
label_2 = new QLabel(HITLOptionsPage);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
|
||||
label_2->setSizePolicy(sizePolicy2);
|
||||
|
||||
gridLayout->addWidget(label_2, 8, 1, 1, 1);
|
||||
|
||||
inputPort = new QLineEdit(HITLOptionsPage);
|
||||
inputPort->setObjectName(QString::fromUtf8("inputPort"));
|
||||
|
||||
gridLayout->addWidget(inputPort, 5, 2, 1, 1);
|
||||
|
||||
executablePath = new Utils::PathChooser(HITLOptionsPage);
|
||||
executablePath->setObjectName(QString::fromUtf8("executablePath"));
|
||||
QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy3.setHorizontalStretch(1);
|
||||
sizePolicy3.setVerticalStretch(0);
|
||||
sizePolicy3.setHeightForWidth(executablePath->sizePolicy().hasHeightForWidth());
|
||||
executablePath->setSizePolicy(sizePolicy3);
|
||||
|
||||
gridLayout->addWidget(executablePath, 7, 2, 1, 3);
|
||||
|
||||
label_4 = new QLabel(HITLOptionsPage);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
|
||||
gridLayout->addWidget(label_4, 5, 3, 1, 1);
|
||||
|
||||
dataPath = new Utils::PathChooser(HITLOptionsPage);
|
||||
dataPath->setObjectName(QString::fromUtf8("dataPath"));
|
||||
|
||||
gridLayout->addWidget(dataPath, 8, 2, 1, 3);
|
||||
|
||||
longitude = new QLineEdit(HITLOptionsPage);
|
||||
longitude->setObjectName(QString::fromUtf8("longitude"));
|
||||
|
||||
gridLayout->addWidget(longitude, 6, 4, 1, 1);
|
||||
|
||||
outputPort = new QLineEdit(HITLOptionsPage);
|
||||
outputPort->setObjectName(QString::fromUtf8("outputPort"));
|
||||
|
||||
gridLayout->addWidget(outputPort, 5, 4, 1, 1);
|
||||
|
||||
manualControl = new QCheckBox(HITLOptionsPage);
|
||||
manualControl->setObjectName(QString::fromUtf8("manualControl"));
|
||||
sizePolicy2.setHeightForWidth(manualControl->sizePolicy().hasHeightForWidth());
|
||||
manualControl->setSizePolicy(sizePolicy2);
|
||||
|
||||
gridLayout->addWidget(manualControl, 9, 1, 1, 4);
|
||||
|
||||
label = new QLabel(HITLOptionsPage);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
sizePolicy2.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
|
||||
label->setSizePolicy(sizePolicy2);
|
||||
|
||||
gridLayout->addWidget(label, 7, 1, 1, 1);
|
||||
|
||||
latitude = new QLineEdit(HITLOptionsPage);
|
||||
latitude->setObjectName(QString::fromUtf8("latitude"));
|
||||
|
||||
gridLayout->addWidget(latitude, 6, 2, 1, 1);
|
||||
|
||||
label_5 = new QLabel(HITLOptionsPage);
|
||||
label_5->setObjectName(QString::fromUtf8("label_5"));
|
||||
|
||||
gridLayout->addWidget(label_5, 5, 1, 1, 1);
|
||||
|
||||
startSim = new QCheckBox(HITLOptionsPage);
|
||||
startSim->setObjectName(QString::fromUtf8("startSim"));
|
||||
startSim->setEnabled(true);
|
||||
sizePolicy2.setHeightForWidth(startSim->sizePolicy().hasHeightForWidth());
|
||||
startSim->setSizePolicy(sizePolicy2);
|
||||
|
||||
gridLayout->addWidget(startSim, 10, 1, 1, 1);
|
||||
|
||||
label_9 = new QLabel(HITLOptionsPage);
|
||||
label_9->setObjectName(QString::fromUtf8("label_9"));
|
||||
|
||||
gridLayout->addWidget(label_9, 4, 1, 1, 1);
|
||||
|
||||
remoteHostAddress = new QLineEdit(HITLOptionsPage);
|
||||
remoteHostAddress->setObjectName(QString::fromUtf8("remoteHostAddress"));
|
||||
sizePolicy1.setHeightForWidth(remoteHostAddress->sizePolicy().hasHeightForWidth());
|
||||
remoteHostAddress->setSizePolicy(sizePolicy1);
|
||||
|
||||
gridLayout->addWidget(remoteHostAddress, 4, 2, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(HITLOptionsPage);
|
||||
|
||||
QMetaObject::connectSlotsByName(HITLOptionsPage);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *HITLOptionsPage)
|
||||
{
|
||||
HITLOptionsPage->setWindowTitle(QApplication::translate("HITLOptionsPage", "Form", 0, QApplication::UnicodeUTF8));
|
||||
label_3->setText(QApplication::translate("HITLOptionsPage", "Choose flight simulator:", 0, QApplication::UnicodeUTF8));
|
||||
label_6->setText(QApplication::translate("HITLOptionsPage", "Local interface address (IP):", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
hostAddress->setToolTip(QApplication::translate("HITLOptionsPage", "For communication with sim computer via network. Should be IP address of one of the local interfaces. ", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_7->setText(QApplication::translate("HITLOptionsPage", "Latitude in degrees:", 0, QApplication::UnicodeUTF8));
|
||||
label_8->setText(QApplication::translate("HITLOptionsPage", "Longitude in degrees:", 0, QApplication::UnicodeUTF8));
|
||||
label_2->setText(QApplication::translate("HITLOptionsPage", "Data directory:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
inputPort->setToolTip(QApplication::translate("HITLOptionsPage", "For receiving data from sim", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
label_4->setText(QApplication::translate("HITLOptionsPage", "Output Port:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
outputPort->setToolTip(QApplication::translate("HITLOptionsPage", "For sending data to sim", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
manualControl->setToolTip(QApplication::translate("HITLOptionsPage", "Manual aircraft control (can be used when hardware is not available)", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
manualControl->setText(QApplication::translate("HITLOptionsPage", "Manual aircraft control (can be used when hardware is not available)", 0, QApplication::UnicodeUTF8));
|
||||
label->setText(QApplication::translate("HITLOptionsPage", "Path executable:", 0, QApplication::UnicodeUTF8));
|
||||
label_5->setText(QApplication::translate("HITLOptionsPage", "Input Port:", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
startSim->setToolTip(QApplication::translate("HITLOptionsPage", "Check this box to start the simulator on the local computer", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
startSim->setText(QApplication::translate("HITLOptionsPage", "Start simulator on local machine", 0, QApplication::UnicodeUTF8));
|
||||
label_9->setText(QApplication::translate("HITLOptionsPage", "Remote interface address (IP):", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
remoteHostAddress->setToolTip(QApplication::translate("HITLOptionsPage", "Only required if running simulator on remote machine ", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class HITLOptionsPage: public Ui_HITLOptionsPage {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_HITLOPTIONSPAGE_H
|
@ -1,353 +0,0 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'hitlwidget.ui'
|
||||
**
|
||||
** Created: Sat 28. Aug 19:09:21 2010
|
||||
** by: Qt User Interface Compiler version 4.6.2
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_HITLWIDGET_H
|
||||
#define UI_HITLWIDGET_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QFrame>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QTextEdit>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_HITLWidget
|
||||
{
|
||||
public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QFrame *frame;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QPushButton *startButton;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QPushButton *stopButton;
|
||||
QSpacerItem *horizontalSpacer_7;
|
||||
QFrame *line;
|
||||
QSpacerItem *horizontalSpacer_4;
|
||||
QLabel *apLabel;
|
||||
QSpacerItem *horizontalSpacer_5;
|
||||
QLabel *simLabel;
|
||||
QSpacerItem *horizontalSpacer_2;
|
||||
QSpacerItem *horizontalSpacer_6;
|
||||
QFrame *line_2;
|
||||
QSpacerItem *horizontalSpacer_8;
|
||||
QSpacerItem *horizontalSpacer_3;
|
||||
QPushButton *buttonClearLog;
|
||||
QTextEdit *textBrowser;
|
||||
|
||||
void setupUi(QWidget *HITLWidget)
|
||||
{
|
||||
if (HITLWidget->objectName().isEmpty())
|
||||
HITLWidget->setObjectName(QString::fromUtf8("HITLWidget"));
|
||||
HITLWidget->resize(786, 300);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(HITLWidget->sizePolicy().hasHeightForWidth());
|
||||
HITLWidget->setSizePolicy(sizePolicy);
|
||||
HITLWidget->setStyleSheet(QString::fromUtf8("\n"
|
||||
"\n"
|
||||
"QScrollBar:vertical {\n"
|
||||
" border: 1px solid grey;\n"
|
||||
" background: grey;\n"
|
||||
" margin: 22px 0 22px 0;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
"QScrollBar:vertical:disabled {\n"
|
||||
" border: 1px solid grey;\n"
|
||||
" \n"
|
||||
" background-color: grey;\n"
|
||||
" margin: 22px 0 22px 0;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::handle:vertical {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(120, 120, 255, 255), stop:1 rgba(80, 80, 160, 255));\n"
|
||||
" min-height: 20px;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
"QScrollBar::handle:vertical:disabled{\n"
|
||||
"background-color: grey;\n"
|
||||
" min-height: 20px;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
"\n"
|
||||
" QScrollBar::handle:vertical:pressed {\n"
|
||||
"\n"
|
||||
" background-color: rgb(85, 85, 255);\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(170, 170, 255, 255), stop:1 rgba(80, 80, 160, 255));\n"
|
||||
"\n"
|
||||
" min-height: 20px;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::add-line:vertical {\n"
|
||||
" border: 1px solid black;\n"
|
||||
"background-color: qlineargradient("
|
||||
"spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(48, 48, 48, 255), stop:1 rgba(120, 120, 120, 255));\n"
|
||||
" height: 20px;\n"
|
||||
" subcontrol-position: bottom;\n"
|
||||
" subcontrol-origin: margin;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::add-line:vertical:disabled {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(100, 100, 100, 255));\n"
|
||||
" border: 1px solid grey;\n"
|
||||
"\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::sub-line:vertical:disabled {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(100, 100, 100, 255));\n"
|
||||
" border: 1px solid grey;\n"
|
||||
"\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::add-line:vertical:pressed {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 255, 255, 200), stop:1 rgba(180, 180, 180, 200));\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::sub-line:vertical:pressed {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 255, 255, 200), stop:1 rgba(180, 180, 180, 200));\n"
|
||||
""
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::sub-line:vertical {\n"
|
||||
" border: 1px solid black; \n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(48, 48, 48, 255), stop:1 rgba(120, 120, 120, 255));\n"
|
||||
" height: 20px;\n"
|
||||
" subcontrol-position: top;\n"
|
||||
" subcontrol-origin: margin;\n"
|
||||
" }\n"
|
||||
" QScrollBar::down-arrow:vertical {\n"
|
||||
" \n"
|
||||
" image: url(:/hitlnew/images/arrow-down2.png);\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::up-arrow:vertical {\n"
|
||||
" image: url(:/hitlnew/images/arrow-up2.png);\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {\n"
|
||||
" background: none;\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
"\n"
|
||||
"QPushButton {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(110, 110, 110, 255), stop:1 rgba(71, 71, 71, 255));\n"
|
||||
"\n"
|
||||
" color: rgb(255, 255, 255);\n"
|
||||
"border: 1px solid black; \n"
|
||||
"width: 66px;\n"
|
||||
"height: 20px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QPushButton:disabled {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2"
|
||||
":0.5, y2:1, stop:0 rgba(120, 120, 120, 255));\n"
|
||||
" color: rgb(194, 194, 194);\n"
|
||||
"border: 1px solid gray; \n"
|
||||
"width: 66px;\n"
|
||||
"height: 20px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QPushButton:hover {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 255, 255, 200), stop:1 rgba(180, 180, 180, 200));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"border: 0px; \n"
|
||||
"}\n"
|
||||
"QPushButton:pressed {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(48, 48, 48, 255), stop:1 rgba(120, 120, 120, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"border: 0px; \n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QPushButton:checked {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(48, 48, 48, 255), stop:1 rgba(120, 120, 120, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"border: 0px; \n"
|
||||
"}"));
|
||||
verticalLayout = new QVBoxLayout(HITLWidget);
|
||||
verticalLayout->setContentsMargins(0, 0, 0, 0);
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
frame = new QFrame(HITLWidget);
|
||||
frame->setObjectName(QString::fromUtf8("frame"));
|
||||
sizePolicy.setHeightForWidth(frame->sizePolicy().hasHeightForWidth());
|
||||
frame->setSizePolicy(sizePolicy);
|
||||
frame->setMinimumSize(QSize(0, 0));
|
||||
frame->setMaximumSize(QSize(16777215, 16777215));
|
||||
frame->setStyleSheet(QString::fromUtf8("\n"
|
||||
"\n"
|
||||
"QFrame{\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(110, 110, 110, 255), stop:1 rgba(71, 71, 71, 255));\n"
|
||||
"color: rgba(0, 0, 0, 128);\n"
|
||||
"}\n"
|
||||
""));
|
||||
frame->setFrameShape(QFrame::StyledPanel);
|
||||
frame->setFrameShadow(QFrame::Raised);
|
||||
verticalLayout_2 = new QVBoxLayout(frame);
|
||||
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
|
||||
verticalLayout_2->setSizeConstraint(QLayout::SetMaximumSize);
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
horizontalLayout->setSizeConstraint(QLayout::SetDefaultConstraint);
|
||||
startButton = new QPushButton(frame);
|
||||
startButton->setObjectName(QString::fromUtf8("startButton"));
|
||||
startButton->setStyleSheet(QString::fromUtf8(""));
|
||||
|
||||
horizontalLayout->addWidget(startButton);
|
||||
|
||||
horizontalSpacer = new QSpacerItem(10, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer);
|
||||
|
||||
stopButton = new QPushButton(frame);
|
||||
stopButton->setObjectName(QString::fromUtf8("stopButton"));
|
||||
stopButton->setEnabled(false);
|
||||
|
||||
horizontalLayout->addWidget(stopButton);
|
||||
|
||||
horizontalSpacer_7 = new QSpacerItem(5, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_7);
|
||||
|
||||
line = new QFrame(frame);
|
||||
line->setObjectName(QString::fromUtf8("line"));
|
||||
line->setFrameShadow(QFrame::Plain);
|
||||
line->setFrameShape(QFrame::VLine);
|
||||
|
||||
horizontalLayout->addWidget(line);
|
||||
|
||||
horizontalSpacer_4 = new QSpacerItem(5, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_4);
|
||||
|
||||
apLabel = new QLabel(frame);
|
||||
apLabel->setObjectName(QString::fromUtf8("apLabel"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Preferred);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(apLabel->sizePolicy().hasHeightForWidth());
|
||||
apLabel->setSizePolicy(sizePolicy1);
|
||||
apLabel->setMinimumSize(QSize(140, 0));
|
||||
QFont font;
|
||||
font.setBold(false);
|
||||
font.setWeight(50);
|
||||
apLabel->setFont(font);
|
||||
apLabel->setLayoutDirection(Qt::LeftToRight);
|
||||
apLabel->setAutoFillBackground(false);
|
||||
apLabel->setStyleSheet(QString::fromUtf8("color: rgb(255, 255, 255);"));
|
||||
apLabel->setAlignment(Qt::AlignCenter);
|
||||
|
||||
horizontalLayout->addWidget(apLabel);
|
||||
|
||||
horizontalSpacer_5 = new QSpacerItem(10, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_5);
|
||||
|
||||
simLabel = new QLabel(frame);
|
||||
simLabel->setObjectName(QString::fromUtf8("simLabel"));
|
||||
sizePolicy1.setHeightForWidth(simLabel->sizePolicy().hasHeightForWidth());
|
||||
simLabel->setSizePolicy(sizePolicy1);
|
||||
simLabel->setMinimumSize(QSize(140, 0));
|
||||
simLabel->setStyleSheet(QString::fromUtf8("color: rgb(255, 255, 255);"));
|
||||
simLabel->setAlignment(Qt::AlignCenter);
|
||||
|
||||
horizontalLayout->addWidget(simLabel);
|
||||
|
||||
horizontalSpacer_2 = new QSpacerItem(10, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_2);
|
||||
|
||||
horizontalSpacer_6 = new QSpacerItem(5, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_6);
|
||||
|
||||
line_2 = new QFrame(frame);
|
||||
line_2->setObjectName(QString::fromUtf8("line_2"));
|
||||
line_2->setFrameShadow(QFrame::Plain);
|
||||
line_2->setFrameShape(QFrame::VLine);
|
||||
|
||||
horizontalLayout->addWidget(line_2);
|
||||
|
||||
horizontalSpacer_8 = new QSpacerItem(5, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_8);
|
||||
|
||||
horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_3);
|
||||
|
||||
buttonClearLog = new QPushButton(frame);
|
||||
buttonClearLog->setObjectName(QString::fromUtf8("buttonClearLog"));
|
||||
|
||||
horizontalLayout->addWidget(buttonClearLog);
|
||||
|
||||
|
||||
verticalLayout_2->addLayout(horizontalLayout);
|
||||
|
||||
textBrowser = new QTextEdit(frame);
|
||||
textBrowser->setObjectName(QString::fromUtf8("textBrowser"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(textBrowser->sizePolicy().hasHeightForWidth());
|
||||
textBrowser->setSizePolicy(sizePolicy2);
|
||||
textBrowser->setMinimumSize(QSize(0, 0));
|
||||
textBrowser->setAutoFillBackground(false);
|
||||
textBrowser->setStyleSheet(QString::fromUtf8("QTextEdit {\n"
|
||||
" background-color: white;\n"
|
||||
" color: rgb(0, 0, 0);\n"
|
||||
"}"));
|
||||
textBrowser->setFrameShape(QFrame::NoFrame);
|
||||
textBrowser->setFrameShadow(QFrame::Plain);
|
||||
textBrowser->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||
|
||||
verticalLayout_2->addWidget(textBrowser);
|
||||
|
||||
|
||||
verticalLayout->addWidget(frame);
|
||||
|
||||
|
||||
retranslateUi(HITLWidget);
|
||||
|
||||
QMetaObject::connectSlotsByName(HITLWidget);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *HITLWidget)
|
||||
{
|
||||
HITLWidget->setWindowTitle(QApplication::translate("HITLWidget", "Form", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
startButton->setToolTip(QApplication::translate("HITLWidget", "Request update", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
startButton->setText(QApplication::translate("HITLWidget", "Start", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
stopButton->setToolTip(QApplication::translate("HITLWidget", "Send update", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
stopButton->setText(QApplication::translate("HITLWidget", "Stop", 0, QApplication::UnicodeUTF8));
|
||||
apLabel->setText(QApplication::translate("HITLWidget", "AutoPilot disconnected", 0, QApplication::UnicodeUTF8));
|
||||
simLabel->setText(QApplication::translate("HITLWidget", " Simulator disconnected ", 0, QApplication::UnicodeUTF8));
|
||||
buttonClearLog->setText(QApplication::translate("HITLWidget", "Clear Log", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class HITLWidget: public Ui_HITLWidget {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_HITLWIDGET_H
|
@ -84,6 +84,14 @@ void XplaneSimulator::setupUdpPorts(const QString& host, int inPort, int outPort
|
||||
|
||||
}
|
||||
|
||||
bool XplaneSimulator::setupProcess()
|
||||
{
|
||||
emit processOutput(QString("Please start X-Plane manually, and make sure it is setup to output its ") +
|
||||
"data to host " + settings.hostAddress + " UDP port " + QString::number(settings.inPort));
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* update data in X-Plane simulator
|
||||
*/
|
||||
|
@ -37,6 +37,7 @@ class XplaneSimulator: public Simulator
|
||||
public:
|
||||
XplaneSimulator(const SimulatorSettings& params);
|
||||
~XplaneSimulator();
|
||||
bool setupProcess();
|
||||
|
||||
void setupUdpPorts(const QString& host, int inPort, int outPort);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user