mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
User control style sheets update.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@988 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
463753462c
commit
84966847e2
@ -76,13 +76,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="4">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>degrees</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="sizePolicy">
|
||||
@ -99,13 +92,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="4">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>degrees</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="sizePolicy">
|
||||
@ -165,7 +151,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" colspan="2">
|
||||
<item row="1" column="2">
|
||||
<widget class="QDoubleSpinBox" name="doubleSpinBoxLatitude">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||
@ -184,7 +170,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2" colspan="2">
|
||||
<item row="2" column="2">
|
||||
<widget class="QDoubleSpinBox" name="doubleSpinBoxLongitude">
|
||||
<property name="decimals">
|
||||
<number>7</number>
|
||||
@ -207,6 +193,20 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="3">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>degrees</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="3">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>degrees</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
|
@ -146,7 +146,7 @@ border-radius: 2px;
|
||||
</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
@ -642,8 +642,9 @@ border-radius: 2px;
|
||||
<widget class="QSplitter" name="splitter">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QSplitter::handle {
|
||||
/* image: url(images/splitter.png); */
|
||||
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 48), stop:1 rgba(0, 0, 0, 48));
|
||||
/* image: url(opmap/images/splitter.png); */
|
||||
/*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 48), stop:1 rgba(0, 0, 0, 48));*/
|
||||
background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(71, 71, 71, 255), stop:0.514124 rgba(200, 200, 200, 255), stop:1 rgba(110, 110, 110, 255));
|
||||
}
|
||||
|
||||
QSplitter::handle:horizontal {
|
||||
@ -837,13 +838,13 @@ QComboBox:drop-down {
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<width>80</width>
|
||||
<height>50</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<width>80</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
@ -866,7 +867,7 @@ color: rgb(255, 255, 255);
|
||||
border: 0px;
|
||||
}
|
||||
QToolButton:hover {
|
||||
background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(180, 180, 180, 255), stop:1 rgba(48, 48, 48, 255));
|
||||
background-color: qlineargradient(spread:pad, x1:1, y1:0.5, x2:0, y2:0.5, stop:0 rgba(71, 71, 71, 0), stop:0.5 rgba(150, 150, 150, 255), stop:1 rgba(71, 71, 71, 0));
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
QToolButton:pressed {
|
||||
@ -906,7 +907,7 @@ color: rgb(255, 255, 255);
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
<string>Hold</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="opmap.qrc">
|
||||
@ -914,10 +915,13 @@ color: rgb(255, 255, 255);
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>60</height>
|
||||
<width>80</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -950,7 +954,7 @@ color: rgb(255, 255, 255);
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
<string>Home</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="opmap.qrc">
|
||||
@ -958,12 +962,12 @@ color: rgb(255, 255, 255);
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>60</height>
|
||||
<width>80</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonIconOnly</enum>
|
||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>false</bool>
|
||||
@ -991,7 +995,7 @@ color: rgb(255, 255, 255);
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
<string>Previous WP</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="opmap.qrc">
|
||||
@ -999,10 +1003,13 @@ color: rgb(255, 255, 255);
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>60</height>
|
||||
<width>80</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -1029,7 +1036,7 @@ color: rgb(255, 255, 255);
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
<string>Next WP</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="opmap.qrc">
|
||||
@ -1037,10 +1044,13 @@ color: rgb(255, 255, 255);
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>60</height>
|
||||
<width>80</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -1067,7 +1077,7 @@ color: rgb(255, 255, 255);
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
<string>Go</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="opmap.qrc">
|
||||
@ -1075,10 +1085,13 @@ color: rgb(255, 255, 255);
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>60</width>
|
||||
<height>60</height>
|
||||
<width>80</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolButtonStyle">
|
||||
<enum>Qt::ToolButtonTextUnderIcon</enum>
|
||||
</property>
|
||||
<property name="autoRaise">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
@ -1134,7 +1147,7 @@ border-radius: 3px;
|
||||
</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
|
@ -83,12 +83,13 @@ OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
|
||||
// m_map->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
|
||||
m_map->setMinimumSize(64, 64);
|
||||
|
||||
m_map->setFrameStyle(QFrame::NoFrame);
|
||||
m_map->setFrameStyle(QFrame::NoFrame); // no border frame
|
||||
m_map->setBackgroundBrush(Qt::black); // black background
|
||||
|
||||
m_map->configuration->DragButton = Qt::LeftButton; // use the left mouse button for map dragging
|
||||
m_map->configuration->DragButton = Qt::LeftButton; // use the left mouse button for map dragging
|
||||
m_map->SetMinZoom(2);
|
||||
m_map->SetMaxZoom(19);
|
||||
m_map->SetMouseWheelZoomType(internals::MouseWheelZoomType::MousePositionWithoutCenter); // set how the mouse wheel zoom functions
|
||||
m_map->SetMouseWheelZoomType(internals::MouseWheelZoomType::MousePositionWithoutCenter); // set how the mouse wheel zoom functions
|
||||
m_map->SetFollowMouse(true); // we want a contiuous mouse position reading
|
||||
|
||||
// **************
|
||||
|
246
ground/src/plugins/opmap/ui_opmap_edit_waypoint_dialog.h
Normal file
246
ground/src/plugins/opmap/ui_opmap_edit_waypoint_dialog.h
Normal file
@ -0,0 +1,246 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'opmap_edit_waypoint_dialog.ui'
|
||||
**
|
||||
** Created: Fri 2. Jul 13:52:21 2010
|
||||
** by: Qt User Interface Compiler version 4.6.3
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_OPMAP_EDIT_WAYPOINT_DIALOG_H
|
||||
#define UI_OPMAP_EDIT_WAYPOINT_DIALOG_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QDialog>
|
||||
#include <QtGui/QDoubleSpinBox>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QSpinBox>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_opmap_edit_waypoint_dialog
|
||||
{
|
||||
public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QGridLayout *gridLayout;
|
||||
QLabel *label_7;
|
||||
QLabel *label;
|
||||
QLabel *label_2;
|
||||
QLabel *label_3;
|
||||
QLabel *label_6;
|
||||
QLabel *label_8;
|
||||
QLineEdit *lineEditDescription;
|
||||
QCheckBox *checkBoxLocked;
|
||||
QSpinBox *spinBoxNumber;
|
||||
QDoubleSpinBox *doubleSpinBoxLatitude;
|
||||
QDoubleSpinBox *doubleSpinBoxLongitude;
|
||||
QDoubleSpinBox *doubleSpinBoxAltitude;
|
||||
QLabel *label_4;
|
||||
QLabel *label_5;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QPushButton *pushButtonOK;
|
||||
QPushButton *pushButtonApply;
|
||||
QPushButton *pushButtonRevert;
|
||||
QPushButton *pushButtonCancel;
|
||||
|
||||
void setupUi(QDialog *opmap_edit_waypoint_dialog)
|
||||
{
|
||||
if (opmap_edit_waypoint_dialog->objectName().isEmpty())
|
||||
opmap_edit_waypoint_dialog->setObjectName(QString::fromUtf8("opmap_edit_waypoint_dialog"));
|
||||
opmap_edit_waypoint_dialog->setWindowModality(Qt::ApplicationModal);
|
||||
opmap_edit_waypoint_dialog->resize(500, 187);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(opmap_edit_waypoint_dialog->sizePolicy().hasHeightForWidth());
|
||||
opmap_edit_waypoint_dialog->setSizePolicy(sizePolicy);
|
||||
opmap_edit_waypoint_dialog->setMinimumSize(QSize(500, 187));
|
||||
opmap_edit_waypoint_dialog->setMaximumSize(QSize(500, 187));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/core/images/openpilot_logo_128.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
opmap_edit_waypoint_dialog->setWindowIcon(icon);
|
||||
opmap_edit_waypoint_dialog->setModal(true);
|
||||
verticalLayout = new QVBoxLayout(opmap_edit_waypoint_dialog);
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
gridLayout = new QGridLayout();
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
label_7 = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label_7->setObjectName(QString::fromUtf8("label_7"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(label_7->sizePolicy().hasHeightForWidth());
|
||||
label_7->setSizePolicy(sizePolicy1);
|
||||
label_7->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_7, 0, 0, 1, 1);
|
||||
|
||||
label = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
|
||||
label->setSizePolicy(sizePolicy1);
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label, 1, 0, 1, 1);
|
||||
|
||||
label_2 = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
sizePolicy1.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
|
||||
label_2->setSizePolicy(sizePolicy1);
|
||||
label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_2, 2, 0, 1, 1);
|
||||
|
||||
label_3 = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
sizePolicy1.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
|
||||
label_3->setSizePolicy(sizePolicy1);
|
||||
label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_3, 3, 0, 1, 1);
|
||||
|
||||
label_6 = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label_6->setObjectName(QString::fromUtf8("label_6"));
|
||||
|
||||
gridLayout->addWidget(label_6, 3, 3, 1, 1);
|
||||
|
||||
label_8 = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label_8->setObjectName(QString::fromUtf8("label_8"));
|
||||
sizePolicy1.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
|
||||
label_8->setSizePolicy(sizePolicy1);
|
||||
label_8->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout->addWidget(label_8, 4, 0, 1, 1);
|
||||
|
||||
lineEditDescription = new QLineEdit(opmap_edit_waypoint_dialog);
|
||||
lineEditDescription->setObjectName(QString::fromUtf8("lineEditDescription"));
|
||||
|
||||
gridLayout->addWidget(lineEditDescription, 4, 2, 1, 4);
|
||||
|
||||
checkBoxLocked = new QCheckBox(opmap_edit_waypoint_dialog);
|
||||
checkBoxLocked->setObjectName(QString::fromUtf8("checkBoxLocked"));
|
||||
checkBoxLocked->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
gridLayout->addWidget(checkBoxLocked, 0, 5, 1, 1);
|
||||
|
||||
spinBoxNumber = new QSpinBox(opmap_edit_waypoint_dialog);
|
||||
spinBoxNumber->setObjectName(QString::fromUtf8("spinBoxNumber"));
|
||||
spinBoxNumber->setMaximum(200);
|
||||
|
||||
gridLayout->addWidget(spinBoxNumber, 0, 2, 1, 1);
|
||||
|
||||
doubleSpinBoxLatitude = new QDoubleSpinBox(opmap_edit_waypoint_dialog);
|
||||
doubleSpinBoxLatitude->setObjectName(QString::fromUtf8("doubleSpinBoxLatitude"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(doubleSpinBoxLatitude->sizePolicy().hasHeightForWidth());
|
||||
doubleSpinBoxLatitude->setSizePolicy(sizePolicy2);
|
||||
doubleSpinBoxLatitude->setDecimals(7);
|
||||
doubleSpinBoxLatitude->setMinimum(-90);
|
||||
doubleSpinBoxLatitude->setMaximum(90);
|
||||
|
||||
gridLayout->addWidget(doubleSpinBoxLatitude, 1, 2, 1, 1);
|
||||
|
||||
doubleSpinBoxLongitude = new QDoubleSpinBox(opmap_edit_waypoint_dialog);
|
||||
doubleSpinBoxLongitude->setObjectName(QString::fromUtf8("doubleSpinBoxLongitude"));
|
||||
doubleSpinBoxLongitude->setDecimals(7);
|
||||
doubleSpinBoxLongitude->setMinimum(-180);
|
||||
doubleSpinBoxLongitude->setMaximum(180);
|
||||
|
||||
gridLayout->addWidget(doubleSpinBoxLongitude, 2, 2, 1, 1);
|
||||
|
||||
doubleSpinBoxAltitude = new QDoubleSpinBox(opmap_edit_waypoint_dialog);
|
||||
doubleSpinBoxAltitude->setObjectName(QString::fromUtf8("doubleSpinBoxAltitude"));
|
||||
doubleSpinBoxAltitude->setMinimum(-5000);
|
||||
doubleSpinBoxAltitude->setMaximum(5000);
|
||||
|
||||
gridLayout->addWidget(doubleSpinBoxAltitude, 3, 2, 1, 1);
|
||||
|
||||
label_4 = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
|
||||
gridLayout->addWidget(label_4, 1, 3, 1, 1);
|
||||
|
||||
label_5 = new QLabel(opmap_edit_waypoint_dialog);
|
||||
label_5->setObjectName(QString::fromUtf8("label_5"));
|
||||
|
||||
gridLayout->addWidget(label_5, 2, 3, 1, 1);
|
||||
|
||||
|
||||
verticalLayout->addLayout(gridLayout);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer);
|
||||
|
||||
pushButtonOK = new QPushButton(opmap_edit_waypoint_dialog);
|
||||
pushButtonOK->setObjectName(QString::fromUtf8("pushButtonOK"));
|
||||
|
||||
horizontalLayout->addWidget(pushButtonOK);
|
||||
|
||||
pushButtonApply = new QPushButton(opmap_edit_waypoint_dialog);
|
||||
pushButtonApply->setObjectName(QString::fromUtf8("pushButtonApply"));
|
||||
|
||||
horizontalLayout->addWidget(pushButtonApply);
|
||||
|
||||
pushButtonRevert = new QPushButton(opmap_edit_waypoint_dialog);
|
||||
pushButtonRevert->setObjectName(QString::fromUtf8("pushButtonRevert"));
|
||||
|
||||
horizontalLayout->addWidget(pushButtonRevert);
|
||||
|
||||
pushButtonCancel = new QPushButton(opmap_edit_waypoint_dialog);
|
||||
pushButtonCancel->setObjectName(QString::fromUtf8("pushButtonCancel"));
|
||||
|
||||
horizontalLayout->addWidget(pushButtonCancel);
|
||||
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout);
|
||||
|
||||
|
||||
retranslateUi(opmap_edit_waypoint_dialog);
|
||||
|
||||
QMetaObject::connectSlotsByName(opmap_edit_waypoint_dialog);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *opmap_edit_waypoint_dialog)
|
||||
{
|
||||
opmap_edit_waypoint_dialog->setWindowTitle(QApplication::translate("opmap_edit_waypoint_dialog", "OpenPilot GCS Edit Waypoint", 0, QApplication::UnicodeUTF8));
|
||||
label_7->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Number ", 0, QApplication::UnicodeUTF8));
|
||||
label->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Latitude ", 0, QApplication::UnicodeUTF8));
|
||||
label_2->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Longitude ", 0, QApplication::UnicodeUTF8));
|
||||
label_3->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Altitude ", 0, QApplication::UnicodeUTF8));
|
||||
label_6->setText(QApplication::translate("opmap_edit_waypoint_dialog", "meters", 0, QApplication::UnicodeUTF8));
|
||||
label_8->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Description ", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxLocked->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Locked", 0, QApplication::UnicodeUTF8));
|
||||
label_4->setText(QApplication::translate("opmap_edit_waypoint_dialog", "degrees", 0, QApplication::UnicodeUTF8));
|
||||
label_5->setText(QApplication::translate("opmap_edit_waypoint_dialog", "degrees", 0, QApplication::UnicodeUTF8));
|
||||
pushButtonOK->setText(QApplication::translate("opmap_edit_waypoint_dialog", "OK", 0, QApplication::UnicodeUTF8));
|
||||
pushButtonApply->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Apply", 0, QApplication::UnicodeUTF8));
|
||||
pushButtonRevert->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Revert", 0, QApplication::UnicodeUTF8));
|
||||
pushButtonCancel->setText(QApplication::translate("opmap_edit_waypoint_dialog", "Cancel", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class opmap_edit_waypoint_dialog: public Ui_opmap_edit_waypoint_dialog {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_OPMAP_EDIT_WAYPOINT_DIALOG_H
|
332
ground/src/plugins/opmap/ui_opmap_mapoverlaywidget.h
Normal file
332
ground/src/plugins/opmap/ui_opmap_mapoverlaywidget.h
Normal file
@ -0,0 +1,332 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'opmap_mapoverlaywidget.ui'
|
||||
**
|
||||
** Created: Fri 2. Jul 13:44:00 2010
|
||||
** by: Qt User Interface Compiler version 4.6.3
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_OPMAP_MAPOVERLAYWIDGET_H
|
||||
#define UI_OPMAP_MAPOVERLAYWIDGET_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/QProgressBar>
|
||||
#include <QtGui/QSlider>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QToolButton>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_OPMap_MapOverlayWidget
|
||||
{
|
||||
public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QFrame *frame_2;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QToolButton *toolButton;
|
||||
QSlider *verticalSlider;
|
||||
QToolButton *toolButton_2;
|
||||
QSpacerItem *horizontalSpacer_5;
|
||||
QSpacerItem *verticalSpacer;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QSpacerItem *horizontalSpacer_4;
|
||||
QFrame *frame;
|
||||
QHBoxLayout *horizontalLayout_3;
|
||||
QLabel *labelStatus;
|
||||
QSpacerItem *horizontalSpacer_3;
|
||||
QProgressBar *progressBarTiles;
|
||||
QSpacerItem *horizontalSpacer_2;
|
||||
|
||||
void setupUi(QWidget *OPMap_MapOverlayWidget)
|
||||
{
|
||||
if (OPMap_MapOverlayWidget->objectName().isEmpty())
|
||||
OPMap_MapOverlayWidget->setObjectName(QString::fromUtf8("OPMap_MapOverlayWidget"));
|
||||
OPMap_MapOverlayWidget->resize(476, 289);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(OPMap_MapOverlayWidget->sizePolicy().hasHeightForWidth());
|
||||
OPMap_MapOverlayWidget->setSizePolicy(sizePolicy);
|
||||
OPMap_MapOverlayWidget->setAutoFillBackground(false);
|
||||
OPMap_MapOverlayWidget->setStyleSheet(QString::fromUtf8("/*background-color: rgba(0, 0, 0, 0);*/\n"
|
||||
"background-color: transparent;\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(255, 255, 255, 70);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel { /* all label types */\n"
|
||||
"/* background-color: rgba(255, 255, 255, 0); */\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(64, 64, 64, 255), stop:1 rgba(128, 128, 128, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolButton { /* all types of tool button */ \n"
|
||||
"background-color: rgba(255, 255, 255, 0);\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"/*border-style: none;*/\n"
|
||||
"border: 0px; \n"
|
||||
"}\n"
|
||||
"QToolButton:hover {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 160, 0, 255), stop:1 rgba(160, 100, 0, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"}\n"
|
||||
"QToolButton:pressed {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x"
|
||||
"2: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"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolButton: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"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QSlider::groove:horizontal {\n"
|
||||
"border: none;\n"
|
||||
"height: 4px;\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(80, 80, 80, 255));\n"
|
||||
"margin: 2px 0;\n"
|
||||
"}\n"
|
||||
"QSlider::handle:horizontal {\n"
|
||||
"border: 1px solid #5c5c5c;\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(128, 128, 128, 255));\n"
|
||||
"width: 24px;\n"
|
||||
"margin: -2px 0;\n"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QComboBox {\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"
|
||||
"}\n"
|
||||
"QComboBox:hover {\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"
|
||||
" background-color: rgb(197, 138, 0);\n"
|
||||
"}\n"
|
||||
"QComboBox::down-arrow {\n"
|
||||
" image: url(:/opmap/images/combobox_down_arrow.png);\n"
|
||||
"}\n"
|
||||
"QComboBox:drop-down {\n"
|
||||
" subcontrol-origin: padding;\n"
|
||||
" subcontrol-position: top right;\n"
|
||||
" border-left-style: none;\n"
|
||||
" border-top-right-radius: 1px;\n"
|
||||
" border-bottom-right-radius: 1px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolTip {\n"
|
||||
"background-color: white;\n"
|
||||
"color: black;\n"
|
||||
"border: 1px solid black;\n"
|
||||
"padding: 5px;\n"
|
||||
"border-radius: 5px;\n"
|
||||
"/* opacity: 170; */ \n"
|
||||
"}\n"
|
||||
""));
|
||||
verticalLayout = new QVBoxLayout(OPMap_MapOverlayWidget);
|
||||
verticalLayout->setSpacing(0);
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
verticalLayout->setContentsMargins(0, -1, 0, 0);
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer);
|
||||
|
||||
frame_2 = new QFrame(OPMap_MapOverlayWidget);
|
||||
frame_2->setObjectName(QString::fromUtf8("frame_2"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(frame_2->sizePolicy().hasHeightForWidth());
|
||||
frame_2->setSizePolicy(sizePolicy1);
|
||||
frame_2->setMinimumSize(QSize(27, 170));
|
||||
frame_2->setMaximumSize(QSize(27, 170));
|
||||
frame_2->setStyleSheet(QString::fromUtf8("background-color: rgba(0, 0, 0, 100);\n"
|
||||
"border: none;\n"
|
||||
"border-radius: 12px;"));
|
||||
frame_2->setFrameShape(QFrame::NoFrame);
|
||||
frame_2->setFrameShadow(QFrame::Raised);
|
||||
verticalLayout_2 = new QVBoxLayout(frame_2);
|
||||
verticalLayout_2->setSpacing(3);
|
||||
verticalLayout_2->setContentsMargins(3, 3, 3, 3);
|
||||
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
|
||||
toolButton = new QToolButton(frame_2);
|
||||
toolButton->setObjectName(QString::fromUtf8("toolButton"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(toolButton->sizePolicy().hasHeightForWidth());
|
||||
toolButton->setSizePolicy(sizePolicy2);
|
||||
toolButton->setStyleSheet(QString::fromUtf8("background-color: rgba(255, 255, 255, 0);"));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/opmap/images/plus.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButton->setIcon(icon);
|
||||
toolButton->setAutoRaise(true);
|
||||
|
||||
verticalLayout_2->addWidget(toolButton);
|
||||
|
||||
verticalSlider = new QSlider(frame_2);
|
||||
verticalSlider->setObjectName(QString::fromUtf8("verticalSlider"));
|
||||
sizePolicy2.setHeightForWidth(verticalSlider->sizePolicy().hasHeightForWidth());
|
||||
verticalSlider->setSizePolicy(sizePolicy2);
|
||||
verticalSlider->setMinimumSize(QSize(0, 120));
|
||||
verticalSlider->setMaximumSize(QSize(16777215, 120));
|
||||
verticalSlider->setStyleSheet(QString::fromUtf8("QSlider {\n"
|
||||
"}\n"
|
||||
"background-color: rgba(255, 255, 255, 0);\n"
|
||||
"QSlider::handle:vertical {\n"
|
||||
"border: 1px solid #5c5c5c;\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 128, 255), stop:1 rgba(255, 255, 255, 255));\n"
|
||||
"width: 24px;\n"
|
||||
"height: 20px;\n"
|
||||
"margin: -2px 0;\n"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
""));
|
||||
verticalSlider->setMinimum(2);
|
||||
verticalSlider->setMaximum(19);
|
||||
verticalSlider->setPageStep(1);
|
||||
verticalSlider->setTracking(true);
|
||||
verticalSlider->setOrientation(Qt::Vertical);
|
||||
verticalSlider->setInvertedAppearance(false);
|
||||
verticalSlider->setInvertedControls(false);
|
||||
|
||||
verticalLayout_2->addWidget(verticalSlider);
|
||||
|
||||
toolButton_2 = new QToolButton(frame_2);
|
||||
toolButton_2->setObjectName(QString::fromUtf8("toolButton_2"));
|
||||
sizePolicy2.setHeightForWidth(toolButton_2->sizePolicy().hasHeightForWidth());
|
||||
toolButton_2->setSizePolicy(sizePolicy2);
|
||||
toolButton_2->setStyleSheet(QString::fromUtf8("background-color: rgba(255, 255, 255, 0);"));
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/opmap/images/minus.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButton_2->setIcon(icon1);
|
||||
toolButton_2->setAutoRaise(true);
|
||||
|
||||
verticalLayout_2->addWidget(toolButton_2);
|
||||
|
||||
|
||||
horizontalLayout->addWidget(frame_2);
|
||||
|
||||
horizontalSpacer_5 = new QSpacerItem(10, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_5);
|
||||
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
verticalLayout->addItem(verticalSpacer);
|
||||
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer_4);
|
||||
|
||||
frame = new QFrame(OPMap_MapOverlayWidget);
|
||||
frame->setObjectName(QString::fromUtf8("frame"));
|
||||
frame->setStyleSheet(QString::fromUtf8("background-color: rgba(0, 0, 0, 100);\n"
|
||||
"border: none;\n"
|
||||
"border-radius: 8px;\n"
|
||||
"border-bottom-left-radius: 0px;\n"
|
||||
"border-bottom-right-radius: 0px; "));
|
||||
frame->setFrameShape(QFrame::StyledPanel);
|
||||
frame->setFrameShadow(QFrame::Raised);
|
||||
horizontalLayout_3 = new QHBoxLayout(frame);
|
||||
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
||||
horizontalLayout_3->setContentsMargins(-1, 0, -1, 0);
|
||||
labelStatus = new QLabel(frame);
|
||||
labelStatus->setObjectName(QString::fromUtf8("labelStatus"));
|
||||
labelStatus->setStyleSheet(QString::fromUtf8("QLabel { /* all label types */\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
" background-color: rgba(255, 255, 255, 0);\n"
|
||||
"border: none;\n"
|
||||
"border-radius: 10px;\n"
|
||||
"}"));
|
||||
labelStatus->setFrameShape(QFrame::NoFrame);
|
||||
labelStatus->setAlignment(Qt::AlignCenter);
|
||||
labelStatus->setMargin(1);
|
||||
|
||||
horizontalLayout_3->addWidget(labelStatus);
|
||||
|
||||
horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_3->addItem(horizontalSpacer_3);
|
||||
|
||||
progressBarTiles = new QProgressBar(frame);
|
||||
progressBarTiles->setObjectName(QString::fromUtf8("progressBarTiles"));
|
||||
sizePolicy1.setHeightForWidth(progressBarTiles->sizePolicy().hasHeightForWidth());
|
||||
progressBarTiles->setSizePolicy(sizePolicy1);
|
||||
progressBarTiles->setMinimumSize(QSize(100, 0));
|
||||
progressBarTiles->setMaximumSize(QSize(100, 14));
|
||||
progressBarTiles->setStyleSheet(QString::fromUtf8("QProgressBar {\n"
|
||||
"border: nonei;\n"
|
||||
"border-radius: 5px;\n"
|
||||
"padding: 3px;\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"
|
||||
"}\n"
|
||||
"QProgressBar::chunk {\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(160, 160, 255, 255), stop:1 rgba(80, 80, 160, 255));\n"
|
||||
"border: none;\n"
|
||||
"border-radius: 3px;\n"
|
||||
"}"));
|
||||
progressBarTiles->setValue(24);
|
||||
progressBarTiles->setAlignment(Qt::AlignCenter);
|
||||
|
||||
horizontalLayout_3->addWidget(progressBarTiles);
|
||||
|
||||
|
||||
horizontalLayout_2->addWidget(frame);
|
||||
|
||||
horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer_2);
|
||||
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout_2);
|
||||
|
||||
|
||||
retranslateUi(OPMap_MapOverlayWidget);
|
||||
|
||||
QMetaObject::connectSlotsByName(OPMap_MapOverlayWidget);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *OPMap_MapOverlayWidget)
|
||||
{
|
||||
OPMap_MapOverlayWidget->setWindowTitle(QString());
|
||||
toolButton->setText(QString());
|
||||
toolButton_2->setText(QString());
|
||||
labelStatus->setText(QApplication::translate("OPMap_MapOverlayWidget", "labelStatus", 0, QApplication::UnicodeUTF8));
|
||||
progressBarTiles->setFormat(QApplication::translate("OPMap_MapOverlayWidget", "%v", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class OPMap_MapOverlayWidget: public Ui_OPMap_MapOverlayWidget {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_OPMAP_MAPOVERLAYWIDGET_H
|
188
ground/src/plugins/opmap/ui_opmap_waypointeditor_dialog.h
Normal file
188
ground/src/plugins/opmap/ui_opmap_waypointeditor_dialog.h
Normal file
@ -0,0 +1,188 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'opmap_waypointeditor_dialog.ui'
|
||||
**
|
||||
** Created: Fri 2. Jul 13:44:00 2010
|
||||
** by: Qt User Interface Compiler version 4.6.3
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_OPMAP_WAYPOINTEDITOR_DIALOG_H
|
||||
#define UI_OPMAP_WAYPOINTEDITOR_DIALOG_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QDialog>
|
||||
#include <QtGui/QDialogButtonBox>
|
||||
#include <QtGui/QGraphicsView>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QGroupBox>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QSplitter>
|
||||
#include <QtGui/QTableWidget>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_opmap_waypointeditor_dialog
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout_3;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QSplitter *splitter;
|
||||
QGroupBox *groupBoxWaypoints;
|
||||
QGridLayout *gridLayout_2;
|
||||
QTableWidget *tableWidgetWaypoints;
|
||||
QGroupBox *groupBoxHeightAndTimeline;
|
||||
QGridLayout *gridLayout;
|
||||
QGraphicsView *graphicsViewWaypointHeightAndTimeline;
|
||||
QDialogButtonBox *buttonBox;
|
||||
|
||||
void setupUi(QDialog *opmap_waypointeditor_dialog)
|
||||
{
|
||||
if (opmap_waypointeditor_dialog->objectName().isEmpty())
|
||||
opmap_waypointeditor_dialog->setObjectName(QString::fromUtf8("opmap_waypointeditor_dialog"));
|
||||
opmap_waypointeditor_dialog->resize(561, 511);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(opmap_waypointeditor_dialog->sizePolicy().hasHeightForWidth());
|
||||
opmap_waypointeditor_dialog->setSizePolicy(sizePolicy);
|
||||
opmap_waypointeditor_dialog->setMinimumSize(QSize(300, 0));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/core/images/openpilot_logo_128.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
opmap_waypointeditor_dialog->setWindowIcon(icon);
|
||||
opmap_waypointeditor_dialog->setSizeGripEnabled(true);
|
||||
gridLayout_3 = new QGridLayout(opmap_waypointeditor_dialog);
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
splitter = new QSplitter(opmap_waypointeditor_dialog);
|
||||
splitter->setObjectName(QString::fromUtf8("splitter"));
|
||||
splitter->setStyleSheet(QString::fromUtf8("QSplitter::handle {\n"
|
||||
"/* image: url(images/splitter.png); */\n"
|
||||
" background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 255, 255, 80), stop:1 rgba(0, 0, 0, 80));\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QSplitter::handle:horizontal {\n"
|
||||
" height: 5px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QSplitter::handle:vertical {\n"
|
||||
" width: 5px;\n"
|
||||
"}"));
|
||||
splitter->setFrameShape(QFrame::NoFrame);
|
||||
splitter->setOrientation(Qt::Vertical);
|
||||
splitter->setOpaqueResize(true);
|
||||
splitter->setHandleWidth(5);
|
||||
splitter->setChildrenCollapsible(false);
|
||||
groupBoxWaypoints = new QGroupBox(splitter);
|
||||
groupBoxWaypoints->setObjectName(QString::fromUtf8("groupBoxWaypoints"));
|
||||
groupBoxWaypoints->setMinimumSize(QSize(0, 130));
|
||||
groupBoxWaypoints->setFlat(true);
|
||||
gridLayout_2 = new QGridLayout(groupBoxWaypoints);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
gridLayout_2->setContentsMargins(0, -1, 0, -1);
|
||||
tableWidgetWaypoints = new QTableWidget(groupBoxWaypoints);
|
||||
if (tableWidgetWaypoints->columnCount() < 7)
|
||||
tableWidgetWaypoints->setColumnCount(7);
|
||||
QTableWidgetItem *__qtablewidgetitem = new QTableWidgetItem();
|
||||
tableWidgetWaypoints->setHorizontalHeaderItem(0, __qtablewidgetitem);
|
||||
QTableWidgetItem *__qtablewidgetitem1 = new QTableWidgetItem();
|
||||
tableWidgetWaypoints->setHorizontalHeaderItem(1, __qtablewidgetitem1);
|
||||
QTableWidgetItem *__qtablewidgetitem2 = new QTableWidgetItem();
|
||||
tableWidgetWaypoints->setHorizontalHeaderItem(2, __qtablewidgetitem2);
|
||||
QTableWidgetItem *__qtablewidgetitem3 = new QTableWidgetItem();
|
||||
tableWidgetWaypoints->setHorizontalHeaderItem(3, __qtablewidgetitem3);
|
||||
QTableWidgetItem *__qtablewidgetitem4 = new QTableWidgetItem();
|
||||
tableWidgetWaypoints->setHorizontalHeaderItem(4, __qtablewidgetitem4);
|
||||
QTableWidgetItem *__qtablewidgetitem5 = new QTableWidgetItem();
|
||||
tableWidgetWaypoints->setHorizontalHeaderItem(5, __qtablewidgetitem5);
|
||||
QTableWidgetItem *__qtablewidgetitem6 = new QTableWidgetItem();
|
||||
tableWidgetWaypoints->setHorizontalHeaderItem(6, __qtablewidgetitem6);
|
||||
tableWidgetWaypoints->setObjectName(QString::fromUtf8("tableWidgetWaypoints"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::MinimumExpanding);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(tableWidgetWaypoints->sizePolicy().hasHeightForWidth());
|
||||
tableWidgetWaypoints->setSizePolicy(sizePolicy1);
|
||||
tableWidgetWaypoints->setMinimumSize(QSize(0, 50));
|
||||
tableWidgetWaypoints->setDragEnabled(true);
|
||||
tableWidgetWaypoints->setShowGrid(false);
|
||||
tableWidgetWaypoints->setWordWrap(false);
|
||||
|
||||
gridLayout_2->addWidget(tableWidgetWaypoints, 0, 0, 1, 1);
|
||||
|
||||
splitter->addWidget(groupBoxWaypoints);
|
||||
groupBoxHeightAndTimeline = new QGroupBox(splitter);
|
||||
groupBoxHeightAndTimeline->setObjectName(QString::fromUtf8("groupBoxHeightAndTimeline"));
|
||||
groupBoxHeightAndTimeline->setFlat(true);
|
||||
gridLayout = new QGridLayout(groupBoxHeightAndTimeline);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
gridLayout->setContentsMargins(0, -1, 0, -1);
|
||||
graphicsViewWaypointHeightAndTimeline = new QGraphicsView(groupBoxHeightAndTimeline);
|
||||
graphicsViewWaypointHeightAndTimeline->setObjectName(QString::fromUtf8("graphicsViewWaypointHeightAndTimeline"));
|
||||
sizePolicy1.setHeightForWidth(graphicsViewWaypointHeightAndTimeline->sizePolicy().hasHeightForWidth());
|
||||
graphicsViewWaypointHeightAndTimeline->setSizePolicy(sizePolicy1);
|
||||
graphicsViewWaypointHeightAndTimeline->setMinimumSize(QSize(0, 50));
|
||||
graphicsViewWaypointHeightAndTimeline->setStyleSheet(QString::fromUtf8("background-color: rgb(191, 191, 191);"));
|
||||
graphicsViewWaypointHeightAndTimeline->setFrameShadow(QFrame::Sunken);
|
||||
graphicsViewWaypointHeightAndTimeline->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
|
||||
graphicsViewWaypointHeightAndTimeline->setRenderHints(QPainter::Antialiasing|QPainter::HighQualityAntialiasing|QPainter::TextAntialiasing);
|
||||
|
||||
gridLayout->addWidget(graphicsViewWaypointHeightAndTimeline, 0, 0, 1, 1);
|
||||
|
||||
splitter->addWidget(groupBoxHeightAndTimeline);
|
||||
|
||||
verticalLayout->addWidget(splitter);
|
||||
|
||||
buttonBox = new QDialogButtonBox(opmap_waypointeditor_dialog);
|
||||
buttonBox->setObjectName(QString::fromUtf8("buttonBox"));
|
||||
buttonBox->setOrientation(Qt::Horizontal);
|
||||
buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
||||
|
||||
verticalLayout->addWidget(buttonBox);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(verticalLayout, 0, 0, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(opmap_waypointeditor_dialog);
|
||||
QObject::connect(buttonBox, SIGNAL(accepted()), opmap_waypointeditor_dialog, SLOT(accept()));
|
||||
QObject::connect(buttonBox, SIGNAL(rejected()), opmap_waypointeditor_dialog, SLOT(reject()));
|
||||
|
||||
QMetaObject::connectSlotsByName(opmap_waypointeditor_dialog);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *opmap_waypointeditor_dialog)
|
||||
{
|
||||
opmap_waypointeditor_dialog->setWindowTitle(QApplication::translate("opmap_waypointeditor_dialog", "OpenPilot GCS Waypoint Editor", 0, QApplication::UnicodeUTF8));
|
||||
groupBoxWaypoints->setTitle(QApplication::translate("opmap_waypointeditor_dialog", "Waypoints", 0, QApplication::UnicodeUTF8));
|
||||
QTableWidgetItem *___qtablewidgetitem = tableWidgetWaypoints->horizontalHeaderItem(0);
|
||||
___qtablewidgetitem->setText(QApplication::translate("opmap_waypointeditor_dialog", "Num", 0, QApplication::UnicodeUTF8));
|
||||
QTableWidgetItem *___qtablewidgetitem1 = tableWidgetWaypoints->horizontalHeaderItem(1);
|
||||
___qtablewidgetitem1->setText(QApplication::translate("opmap_waypointeditor_dialog", "Locked", 0, QApplication::UnicodeUTF8));
|
||||
QTableWidgetItem *___qtablewidgetitem2 = tableWidgetWaypoints->horizontalHeaderItem(2);
|
||||
___qtablewidgetitem2->setText(QApplication::translate("opmap_waypointeditor_dialog", "Latitude", 0, QApplication::UnicodeUTF8));
|
||||
QTableWidgetItem *___qtablewidgetitem3 = tableWidgetWaypoints->horizontalHeaderItem(3);
|
||||
___qtablewidgetitem3->setText(QApplication::translate("opmap_waypointeditor_dialog", "Longitude", 0, QApplication::UnicodeUTF8));
|
||||
QTableWidgetItem *___qtablewidgetitem4 = tableWidgetWaypoints->horizontalHeaderItem(4);
|
||||
___qtablewidgetitem4->setText(QApplication::translate("opmap_waypointeditor_dialog", "Altitude", 0, QApplication::UnicodeUTF8));
|
||||
QTableWidgetItem *___qtablewidgetitem5 = tableWidgetWaypoints->horizontalHeaderItem(5);
|
||||
___qtablewidgetitem5->setText(QApplication::translate("opmap_waypointeditor_dialog", "Time", 0, QApplication::UnicodeUTF8));
|
||||
QTableWidgetItem *___qtablewidgetitem6 = tableWidgetWaypoints->horizontalHeaderItem(6);
|
||||
___qtablewidgetitem6->setText(QApplication::translate("opmap_waypointeditor_dialog", "Hold Time", 0, QApplication::UnicodeUTF8));
|
||||
groupBoxHeightAndTimeline->setTitle(QApplication::translate("opmap_waypointeditor_dialog", "Height and Timeline", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class opmap_waypointeditor_dialog: public Ui_opmap_waypointeditor_dialog {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_OPMAP_WAYPOINTEDITOR_DIALOG_H
|
865
ground/src/plugins/opmap/ui_opmap_widget.h
Normal file
865
ground/src/plugins/opmap/ui_opmap_widget.h
Normal file
@ -0,0 +1,865 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'opmap_widget.ui'
|
||||
**
|
||||
** Created: Fri 2. Jul 21:37:47 2010
|
||||
** by: Qt User Interface Compiler version 4.6.3
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_OPMAP_WIDGET_H
|
||||
#define UI_OPMAP_WIDGET_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QComboBox>
|
||||
#include <QtGui/QFrame>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QProgressBar>
|
||||
#include <QtGui/QSlider>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QSplitter>
|
||||
#include <QtGui/QToolButton>
|
||||
#include <QtGui/QTreeView>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_OPMap_Widget
|
||||
{
|
||||
public:
|
||||
QVBoxLayout *verticalLayout;
|
||||
QHBoxLayout *layoutWidgetToolBar;
|
||||
QFrame *frameToolBar;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QHBoxLayout *layoutWidget_8;
|
||||
QToolButton *toolButtonWaypointsTreeViewShowHide;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QComboBox *comboBoxFindPlace;
|
||||
QToolButton *toolButtonFindPlace;
|
||||
QSpacerItem *horizontalSpacer_5;
|
||||
QToolButton *toolButtonMapHome;
|
||||
QToolButton *toolButtonMapUAV;
|
||||
QSpacerItem *horizontalSpacer_6;
|
||||
QToolButton *toolButtonAddWaypoint;
|
||||
QToolButton *toolButtonWaypointEditor;
|
||||
QSpacerItem *horizontalSpacer_4;
|
||||
QToolButton *toolButtonZoomM;
|
||||
QToolButton *toolButtonZoomP;
|
||||
QSlider *horizontalSliderZoom;
|
||||
QSpacerItem *horizontalSpacer_2;
|
||||
QToolButton *toolButtonFlightControlsShowHide;
|
||||
QHBoxLayout *horizontalLayout_3;
|
||||
QSplitter *splitter;
|
||||
QTreeView *treeViewWaypoints;
|
||||
QWidget *mapWidget;
|
||||
QFrame *frameFlightControls;
|
||||
QVBoxLayout *verticalLayout_4;
|
||||
QToolButton *toolButtonHoldPosition;
|
||||
QToolButton *toolButtonHome;
|
||||
QToolButton *toolButtonPrevWaypoint;
|
||||
QToolButton *toolButtonNextWaypoint;
|
||||
QToolButton *toolButtonGo;
|
||||
QHBoxLayout *layoutWidgetStatusBar_2;
|
||||
QFrame *frameStatusBar;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QHBoxLayout *layoutWidgetStatusBar;
|
||||
QSpacerItem *horizontalSpacer_7;
|
||||
QLabel *labelUAVPos;
|
||||
QLabel *labelMapPos;
|
||||
QLabel *labelMousePos;
|
||||
QSpacerItem *horizontalSpacer_3;
|
||||
QProgressBar *progressBarMap;
|
||||
|
||||
void setupUi(QWidget *OPMap_Widget)
|
||||
{
|
||||
if (OPMap_Widget->objectName().isEmpty())
|
||||
OPMap_Widget->setObjectName(QString::fromUtf8("OPMap_Widget"));
|
||||
OPMap_Widget->resize(704, 422);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(OPMap_Widget->sizePolicy().hasHeightForWidth());
|
||||
OPMap_Widget->setSizePolicy(sizePolicy);
|
||||
OPMap_Widget->setMouseTracking(false);
|
||||
OPMap_Widget->setStyleSheet(QString::fromUtf8(""));
|
||||
verticalLayout = new QVBoxLayout(OPMap_Widget);
|
||||
verticalLayout->setSpacing(0);
|
||||
verticalLayout->setContentsMargins(0, 0, 0, 0);
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
layoutWidgetToolBar = new QHBoxLayout();
|
||||
layoutWidgetToolBar->setSpacing(0);
|
||||
layoutWidgetToolBar->setObjectName(QString::fromUtf8("layoutWidgetToolBar"));
|
||||
layoutWidgetToolBar->setContentsMargins(0, -1, 0, -1);
|
||||
frameToolBar = new QFrame(OPMap_Widget);
|
||||
frameToolBar->setObjectName(QString::fromUtf8("frameToolBar"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(frameToolBar->sizePolicy().hasHeightForWidth());
|
||||
frameToolBar->setSizePolicy(sizePolicy1);
|
||||
frameToolBar->setMinimumSize(QSize(0, 0));
|
||||
frameToolBar->setAutoFillBackground(false);
|
||||
frameToolBar->setStyleSheet(QString::fromUtf8("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(255, 255, 255, 70);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel { /* all label types */\n"
|
||||
"/* background-color: rgba(255, 255, 255, 0); */\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(64, 64, 64, 255), stop:1 rgba(128, 128, 128, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"border: 0px; \n"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolButton { /* all types of tool button */ \n"
|
||||
"background-color: rgba(255, 255, 255, 0);\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"/*border-style: none;*/\n"
|
||||
"border: 0px; \n"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"QToolButton: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"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"QToolButton: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"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolButton: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"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QSlider::groove:horizontal {\n"
|
||||
"border: none;\n"
|
||||
"height: 4px;\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(80, 80, 80, 255));\n"
|
||||
"margin: 2px 0;\n"
|
||||
"}\n"
|
||||
"QSlider::handle:horizontal {\n"
|
||||
"border: 1px solid #5c5c5c;\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(128, 128, 128, 255));\n"
|
||||
"width: 24px;\n"
|
||||
"margin: -2px 0;\n"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QComboBox {\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: 1px solid black; \n"
|
||||
"border-radius: 0px;\n"
|
||||
"}\n"
|
||||
"QComboBox::down-arrow:on {\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"
|
||||
"top: 1px; left: 1px; /* move the arrow when the popup is open */\n"
|
||||
"}\n"
|
||||
"QComboBox::down-arrow {\n"
|
||||
" image: url(:/opmap/images/combobox_down_arrow.png);\n"
|
||||
"}\n"
|
||||
"QComboBox:drop-down {\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"
|
||||
"/* subcontrol-origin: padding;\n"
|
||||
" subcontrol-position: top right;\n"
|
||||
" border-left-style: 1px solid white;\n"
|
||||
" border-top-right-radius: 1px;\n"
|
||||
" border-bottom-right-radius: 1px; */\n"
|
||||
"}\n"
|
||||
"QComboBox QAbstractItemView { /* the drop down list */\n"
|
||||
"background-color: rgb(255, 255, 255);\n"
|
||||
"color: rgb(0, 0,"
|
||||
" 0);\n"
|
||||
"border: 1px solid black;\n"
|
||||
"selection-background-color: rgb(160, 160, 255);\n"
|
||||
"border-radius: 2px;\n"
|
||||
"}\n"
|
||||
""));
|
||||
frameToolBar->setFrameShape(QFrame::NoFrame);
|
||||
frameToolBar->setFrameShadow(QFrame::Plain);
|
||||
horizontalLayout_2 = new QHBoxLayout(frameToolBar);
|
||||
horizontalLayout_2->setSpacing(0);
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
horizontalLayout_2->setContentsMargins(0, 3, 0, 3);
|
||||
layoutWidget_8 = new QHBoxLayout();
|
||||
layoutWidget_8->setSpacing(5);
|
||||
layoutWidget_8->setObjectName(QString::fromUtf8("layoutWidget_8"));
|
||||
layoutWidget_8->setContentsMargins(3, -1, 3, -1);
|
||||
toolButtonWaypointsTreeViewShowHide = new QToolButton(frameToolBar);
|
||||
toolButtonWaypointsTreeViewShowHide->setObjectName(QString::fromUtf8("toolButtonWaypointsTreeViewShowHide"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(toolButtonWaypointsTreeViewShowHide->sizePolicy().hasHeightForWidth());
|
||||
toolButtonWaypointsTreeViewShowHide->setSizePolicy(sizePolicy2);
|
||||
toolButtonWaypointsTreeViewShowHide->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/core/images/prev.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonWaypointsTreeViewShowHide->setIcon(icon);
|
||||
toolButtonWaypointsTreeViewShowHide->setIconSize(QSize(20, 20));
|
||||
toolButtonWaypointsTreeViewShowHide->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonWaypointsTreeViewShowHide);
|
||||
|
||||
horizontalSpacer = new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
layoutWidget_8->addItem(horizontalSpacer);
|
||||
|
||||
comboBoxFindPlace = new QComboBox(frameToolBar);
|
||||
comboBoxFindPlace->setObjectName(QString::fromUtf8("comboBoxFindPlace"));
|
||||
sizePolicy2.setHeightForWidth(comboBoxFindPlace->sizePolicy().hasHeightForWidth());
|
||||
comboBoxFindPlace->setSizePolicy(sizePolicy2);
|
||||
comboBoxFindPlace->setMinimumSize(QSize(120, 0));
|
||||
comboBoxFindPlace->setStyleSheet(QString::fromUtf8(""));
|
||||
comboBoxFindPlace->setEditable(true);
|
||||
comboBoxFindPlace->setMaxVisibleItems(20);
|
||||
comboBoxFindPlace->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
||||
comboBoxFindPlace->setFrame(false);
|
||||
|
||||
layoutWidget_8->addWidget(comboBoxFindPlace);
|
||||
|
||||
toolButtonFindPlace = new QToolButton(frameToolBar);
|
||||
toolButtonFindPlace->setObjectName(QString::fromUtf8("toolButtonFindPlace"));
|
||||
toolButtonFindPlace->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/core/images/find.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonFindPlace->setIcon(icon1);
|
||||
toolButtonFindPlace->setIconSize(QSize(20, 20));
|
||||
toolButtonFindPlace->setAutoRaise(false);
|
||||
toolButtonFindPlace->setArrowType(Qt::NoArrow);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonFindPlace);
|
||||
|
||||
horizontalSpacer_5 = new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
layoutWidget_8->addItem(horizontalSpacer_5);
|
||||
|
||||
toolButtonMapHome = new QToolButton(frameToolBar);
|
||||
toolButtonMapHome->setObjectName(QString::fromUtf8("toolButtonMapHome"));
|
||||
toolButtonMapHome->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon2;
|
||||
icon2.addFile(QString::fromUtf8(":/opmap/images/gcs.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonMapHome->setIcon(icon2);
|
||||
toolButtonMapHome->setIconSize(QSize(20, 20));
|
||||
toolButtonMapHome->setAutoRepeat(true);
|
||||
toolButtonMapHome->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonMapHome);
|
||||
|
||||
toolButtonMapUAV = new QToolButton(frameToolBar);
|
||||
toolButtonMapUAV->setObjectName(QString::fromUtf8("toolButtonMapUAV"));
|
||||
toolButtonMapUAV->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon3;
|
||||
icon3.addFile(QString::fromUtf8(":/opmap/images/uav.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonMapUAV->setIcon(icon3);
|
||||
toolButtonMapUAV->setIconSize(QSize(20, 20));
|
||||
toolButtonMapUAV->setCheckable(true);
|
||||
toolButtonMapUAV->setAutoRepeat(true);
|
||||
toolButtonMapUAV->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonMapUAV);
|
||||
|
||||
horizontalSpacer_6 = new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
layoutWidget_8->addItem(horizontalSpacer_6);
|
||||
|
||||
toolButtonAddWaypoint = new QToolButton(frameToolBar);
|
||||
toolButtonAddWaypoint->setObjectName(QString::fromUtf8("toolButtonAddWaypoint"));
|
||||
toolButtonAddWaypoint->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon4;
|
||||
icon4.addFile(QString::fromUtf8(":/opmap/images/waypoint.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonAddWaypoint->setIcon(icon4);
|
||||
toolButtonAddWaypoint->setIconSize(QSize(20, 20));
|
||||
toolButtonAddWaypoint->setAutoRepeat(true);
|
||||
toolButtonAddWaypoint->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonAddWaypoint);
|
||||
|
||||
toolButtonWaypointEditor = new QToolButton(frameToolBar);
|
||||
toolButtonWaypointEditor->setObjectName(QString::fromUtf8("toolButtonWaypointEditor"));
|
||||
toolButtonWaypointEditor->setStyleSheet(QString::fromUtf8(""));
|
||||
toolButtonWaypointEditor->setIcon(icon4);
|
||||
toolButtonWaypointEditor->setIconSize(QSize(20, 20));
|
||||
toolButtonWaypointEditor->setAutoRepeat(true);
|
||||
toolButtonWaypointEditor->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonWaypointEditor);
|
||||
|
||||
horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
layoutWidget_8->addItem(horizontalSpacer_4);
|
||||
|
||||
toolButtonZoomM = new QToolButton(frameToolBar);
|
||||
toolButtonZoomM->setObjectName(QString::fromUtf8("toolButtonZoomM"));
|
||||
toolButtonZoomM->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon5;
|
||||
icon5.addFile(QString::fromUtf8(":/opmap/images/minus.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonZoomM->setIcon(icon5);
|
||||
toolButtonZoomM->setIconSize(QSize(20, 20));
|
||||
toolButtonZoomM->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonZoomM);
|
||||
|
||||
toolButtonZoomP = new QToolButton(frameToolBar);
|
||||
toolButtonZoomP->setObjectName(QString::fromUtf8("toolButtonZoomP"));
|
||||
toolButtonZoomP->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon6;
|
||||
icon6.addFile(QString::fromUtf8(":/opmap/images/plus.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonZoomP->setIcon(icon6);
|
||||
toolButtonZoomP->setIconSize(QSize(20, 20));
|
||||
toolButtonZoomP->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonZoomP);
|
||||
|
||||
horizontalSliderZoom = new QSlider(frameToolBar);
|
||||
horizontalSliderZoom->setObjectName(QString::fromUtf8("horizontalSliderZoom"));
|
||||
sizePolicy2.setHeightForWidth(horizontalSliderZoom->sizePolicy().hasHeightForWidth());
|
||||
horizontalSliderZoom->setSizePolicy(sizePolicy2);
|
||||
horizontalSliderZoom->setMinimumSize(QSize(130, 0));
|
||||
horizontalSliderZoom->setMaximumSize(QSize(130, 16777215));
|
||||
horizontalSliderZoom->setCursor(QCursor(Qt::OpenHandCursor));
|
||||
horizontalSliderZoom->setAutoFillBackground(false);
|
||||
horizontalSliderZoom->setStyleSheet(QString::fromUtf8(""));
|
||||
horizontalSliderZoom->setMinimum(2);
|
||||
horizontalSliderZoom->setMaximum(19);
|
||||
horizontalSliderZoom->setPageStep(1);
|
||||
horizontalSliderZoom->setOrientation(Qt::Horizontal);
|
||||
horizontalSliderZoom->setInvertedControls(false);
|
||||
horizontalSliderZoom->setTickPosition(QSlider::NoTicks);
|
||||
horizontalSliderZoom->setTickInterval(2);
|
||||
|
||||
layoutWidget_8->addWidget(horizontalSliderZoom);
|
||||
|
||||
horizontalSpacer_2 = new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
layoutWidget_8->addItem(horizontalSpacer_2);
|
||||
|
||||
toolButtonFlightControlsShowHide = new QToolButton(frameToolBar);
|
||||
toolButtonFlightControlsShowHide->setObjectName(QString::fromUtf8("toolButtonFlightControlsShowHide"));
|
||||
sizePolicy2.setHeightForWidth(toolButtonFlightControlsShowHide->sizePolicy().hasHeightForWidth());
|
||||
toolButtonFlightControlsShowHide->setSizePolicy(sizePolicy2);
|
||||
toolButtonFlightControlsShowHide->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon7;
|
||||
icon7.addFile(QString::fromUtf8(":/core/images/next.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonFlightControlsShowHide->setIcon(icon7);
|
||||
toolButtonFlightControlsShowHide->setIconSize(QSize(20, 20));
|
||||
toolButtonFlightControlsShowHide->setAutoRaise(false);
|
||||
|
||||
layoutWidget_8->addWidget(toolButtonFlightControlsShowHide);
|
||||
|
||||
|
||||
horizontalLayout_2->addLayout(layoutWidget_8);
|
||||
|
||||
|
||||
layoutWidgetToolBar->addWidget(frameToolBar);
|
||||
|
||||
|
||||
verticalLayout->addLayout(layoutWidgetToolBar);
|
||||
|
||||
horizontalLayout_3 = new QHBoxLayout();
|
||||
horizontalLayout_3->setSpacing(0);
|
||||
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
||||
splitter = new QSplitter(OPMap_Widget);
|
||||
splitter->setObjectName(QString::fromUtf8("splitter"));
|
||||
splitter->setStyleSheet(QString::fromUtf8("QSplitter::handle {\n"
|
||||
"/* image: url(opmap/images/splitter.png); */\n"
|
||||
"/*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 48), stop:1 rgba(0, 0, 0, 48));*/\n"
|
||||
" background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(71, 71, 71, 255), stop:0.514124 rgba(200, 200, 200, 255), stop:1 rgba(110, 110, 110, 255));\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QSplitter::handle:horizontal {\n"
|
||||
" height: 5px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QSplitter::handle:vertical {\n"
|
||||
" width: 5px;\n"
|
||||
"}"));
|
||||
splitter->setFrameShape(QFrame::NoFrame);
|
||||
splitter->setFrameShadow(QFrame::Sunken);
|
||||
splitter->setLineWidth(1);
|
||||
splitter->setOrientation(Qt::Horizontal);
|
||||
splitter->setOpaqueResize(true);
|
||||
splitter->setHandleWidth(5);
|
||||
splitter->setChildrenCollapsible(false);
|
||||
treeViewWaypoints = new QTreeView(splitter);
|
||||
treeViewWaypoints->setObjectName(QString::fromUtf8("treeViewWaypoints"));
|
||||
QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
||||
sizePolicy3.setHorizontalStretch(0);
|
||||
sizePolicy3.setVerticalStretch(0);
|
||||
sizePolicy3.setHeightForWidth(treeViewWaypoints->sizePolicy().hasHeightForWidth());
|
||||
treeViewWaypoints->setSizePolicy(sizePolicy3);
|
||||
treeViewWaypoints->setMinimumSize(QSize(100, 0));
|
||||
treeViewWaypoints->setMaximumSize(QSize(300, 16777215));
|
||||
treeViewWaypoints->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
treeViewWaypoints->setStyleSheet(QString::fromUtf8("background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(71, 71, 71, 255), stop:1 rgba(110, 110, 110, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"/*\n"
|
||||
"QTreeView::item {\n"
|
||||
"border: 1px solid #d9d9d9;\n"
|
||||
"border-top-color: transparent;\n"
|
||||
"border-bottom-color: transparent;\n"
|
||||
"} \n"
|
||||
"*/\n"
|
||||
"QTreeView::item:hover {\n"
|
||||
"background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);\n"
|
||||
"border: 1px solid #bfcde4;\n"
|
||||
"} \n"
|
||||
"\n"
|
||||
"QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings {\n"
|
||||
" border-image: none;\n"
|
||||
" image: url(branch-closed.png);\n"
|
||||
"}\n"
|
||||
"QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings {\n"
|
||||
" border-image: none;\n"
|
||||
" image: url(branch-open.png);\n"
|
||||
"}"));
|
||||
treeViewWaypoints->setFrameShape(QFrame::NoFrame);
|
||||
treeViewWaypoints->setFrameShadow(QFrame::Plain);
|
||||
treeViewWaypoints->setTabKeyNavigation(true);
|
||||
treeViewWaypoints->setSelectionBehavior(QAbstractItemView::SelectItems);
|
||||
treeViewWaypoints->setAnimated(true);
|
||||
treeViewWaypoints->setHeaderHidden(true);
|
||||
splitter->addWidget(treeViewWaypoints);
|
||||
mapWidget = new QWidget(splitter);
|
||||
mapWidget->setObjectName(QString::fromUtf8("mapWidget"));
|
||||
QSizePolicy sizePolicy4(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
sizePolicy4.setHorizontalStretch(0);
|
||||
sizePolicy4.setVerticalStretch(0);
|
||||
sizePolicy4.setHeightForWidth(mapWidget->sizePolicy().hasHeightForWidth());
|
||||
mapWidget->setSizePolicy(sizePolicy4);
|
||||
mapWidget->setMinimumSize(QSize(100, 0));
|
||||
mapWidget->setMouseTracking(false);
|
||||
mapWidget->setAcceptDrops(true);
|
||||
mapWidget->setStyleSheet(QString::fromUtf8("\n"
|
||||
"/* background-color: black; */\n"
|
||||
"border: 1px solid black;\n"
|
||||
"\n"
|
||||
"QLabel { /* all label types */\n"
|
||||
"/* background-color: rgba(255, 255, 255, 0); */\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(64, 64, 64, 255), stop:1 rgba(128, 128, 128, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolButton { /* all types of tool button */ \n"
|
||||
"background-color: rgba(255, 255, 255, 0);\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"/*border-style: none;*/\n"
|
||||
"border: 0px; \n"
|
||||
"}\n"
|
||||
"QToolButton:hover {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 160, 0, 255), stop:1 rgba(160, 100, 0, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"}\n"
|
||||
"QToolButton: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"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolButton: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"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QSlider::groove:horizontal {\n"
|
||||
"border: none;\n"
|
||||
"height: 4px;\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(80, 80, 80, 255));\n"
|
||||
"margin: 2px 0;\n"
|
||||
"}\n"
|
||||
"QSlider::handle:horizontal {\n"
|
||||
"border: 1px solid #5c5c5c;\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(128, 128, 128, 255));\n"
|
||||
"width: 24px;\n"
|
||||
"margin: -2px 0;\n"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QComboBox {\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"
|
||||
"}\n"
|
||||
"QComboBox:hover {\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"
|
||||
" background-color: rgb(197, 138,"
|
||||
" 0);\n"
|
||||
"}\n"
|
||||
"QComboBox::down-arrow {\n"
|
||||
" image: url(:/opmap/images/combobox_down_arrow.png);\n"
|
||||
"}\n"
|
||||
"QComboBox:drop-down {\n"
|
||||
" subcontrol-origin: padding;\n"
|
||||
" subcontrol-position: top right;\n"
|
||||
" border-left-style: none;\n"
|
||||
" border-top-right-radius: 1px;\n"
|
||||
" border-bottom-right-radius: 1px;\n"
|
||||
"}\n"
|
||||
""));
|
||||
splitter->addWidget(mapWidget);
|
||||
|
||||
horizontalLayout_3->addWidget(splitter);
|
||||
|
||||
frameFlightControls = new QFrame(OPMap_Widget);
|
||||
frameFlightControls->setObjectName(QString::fromUtf8("frameFlightControls"));
|
||||
QSizePolicy sizePolicy5(QSizePolicy::Fixed, QSizePolicy::MinimumExpanding);
|
||||
sizePolicy5.setHorizontalStretch(0);
|
||||
sizePolicy5.setVerticalStretch(0);
|
||||
sizePolicy5.setHeightForWidth(frameFlightControls->sizePolicy().hasHeightForWidth());
|
||||
frameFlightControls->setSizePolicy(sizePolicy5);
|
||||
frameFlightControls->setMinimumSize(QSize(80, 50));
|
||||
frameFlightControls->setMaximumSize(QSize(80, 16777215));
|
||||
frameFlightControls->setMouseTracking(false);
|
||||
frameFlightControls->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
frameFlightControls->setStyleSheet(QString::fromUtf8("QWidget { /* all types of qwidget */\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(71, 71, 71, 255), stop:1 rgba(110, 110, 110, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QToolButton { /* all types of tool button */ \n"
|
||||
"background-color: rgba(255, 255, 255, 0);\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"/*border-style: none;*/\n"
|
||||
"border: 0px; \n"
|
||||
"}\n"
|
||||
"QToolButton:hover {\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:1, y1:0.5, x2:0, y2:0.5, stop:0 rgba(71, 71, 71, 0), stop:0.5 rgba(150, 150, 150, 255), stop:1 rgba(71, 71, 71, 0));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"}\n"
|
||||
"QToolButton: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(180, 180, 180, 255));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"}\n"
|
||||
""));
|
||||
frameFlightControls->setFrameShape(QFrame::NoFrame);
|
||||
verticalLayout_4 = new QVBoxLayout(frameFlightControls);
|
||||
verticalLayout_4->setSpacing(1);
|
||||
verticalLayout_4->setContentsMargins(0, 0, 0, 0);
|
||||
verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
|
||||
toolButtonHoldPosition = new QToolButton(frameFlightControls);
|
||||
toolButtonHoldPosition->setObjectName(QString::fromUtf8("toolButtonHoldPosition"));
|
||||
sizePolicy2.setHeightForWidth(toolButtonHoldPosition->sizePolicy().hasHeightForWidth());
|
||||
toolButtonHoldPosition->setSizePolicy(sizePolicy2);
|
||||
toolButtonHoldPosition->setMinimumSize(QSize(48, 0));
|
||||
toolButtonHoldPosition->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon8;
|
||||
icon8.addFile(QString::fromUtf8(":/opmap/images/hold.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonHoldPosition->setIcon(icon8);
|
||||
toolButtonHoldPosition->setIconSize(QSize(80, 40));
|
||||
toolButtonHoldPosition->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
toolButtonHoldPosition->setAutoRaise(false);
|
||||
|
||||
verticalLayout_4->addWidget(toolButtonHoldPosition);
|
||||
|
||||
toolButtonHome = new QToolButton(frameFlightControls);
|
||||
toolButtonHome->setObjectName(QString::fromUtf8("toolButtonHome"));
|
||||
toolButtonHome->setEnabled(true);
|
||||
sizePolicy2.setHeightForWidth(toolButtonHome->sizePolicy().hasHeightForWidth());
|
||||
toolButtonHome->setSizePolicy(sizePolicy2);
|
||||
toolButtonHome->setMinimumSize(QSize(48, 0));
|
||||
toolButtonHome->setAutoFillBackground(false);
|
||||
toolButtonHome->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon9;
|
||||
icon9.addFile(QString::fromUtf8(":/opmap/images/home.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonHome->setIcon(icon9);
|
||||
toolButtonHome->setIconSize(QSize(80, 40));
|
||||
toolButtonHome->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
toolButtonHome->setAutoRaise(false);
|
||||
|
||||
verticalLayout_4->addWidget(toolButtonHome);
|
||||
|
||||
toolButtonPrevWaypoint = new QToolButton(frameFlightControls);
|
||||
toolButtonPrevWaypoint->setObjectName(QString::fromUtf8("toolButtonPrevWaypoint"));
|
||||
sizePolicy2.setHeightForWidth(toolButtonPrevWaypoint->sizePolicy().hasHeightForWidth());
|
||||
toolButtonPrevWaypoint->setSizePolicy(sizePolicy2);
|
||||
toolButtonPrevWaypoint->setMinimumSize(QSize(48, 0));
|
||||
toolButtonPrevWaypoint->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon10;
|
||||
icon10.addFile(QString::fromUtf8(":/opmap/images/prev_waypoint.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonPrevWaypoint->setIcon(icon10);
|
||||
toolButtonPrevWaypoint->setIconSize(QSize(80, 40));
|
||||
toolButtonPrevWaypoint->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
toolButtonPrevWaypoint->setAutoRaise(false);
|
||||
|
||||
verticalLayout_4->addWidget(toolButtonPrevWaypoint);
|
||||
|
||||
toolButtonNextWaypoint = new QToolButton(frameFlightControls);
|
||||
toolButtonNextWaypoint->setObjectName(QString::fromUtf8("toolButtonNextWaypoint"));
|
||||
sizePolicy2.setHeightForWidth(toolButtonNextWaypoint->sizePolicy().hasHeightForWidth());
|
||||
toolButtonNextWaypoint->setSizePolicy(sizePolicy2);
|
||||
toolButtonNextWaypoint->setMinimumSize(QSize(48, 0));
|
||||
toolButtonNextWaypoint->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon11;
|
||||
icon11.addFile(QString::fromUtf8(":/opmap/images/next_waypoint.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonNextWaypoint->setIcon(icon11);
|
||||
toolButtonNextWaypoint->setIconSize(QSize(80, 40));
|
||||
toolButtonNextWaypoint->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
toolButtonNextWaypoint->setAutoRaise(false);
|
||||
|
||||
verticalLayout_4->addWidget(toolButtonNextWaypoint);
|
||||
|
||||
toolButtonGo = new QToolButton(frameFlightControls);
|
||||
toolButtonGo->setObjectName(QString::fromUtf8("toolButtonGo"));
|
||||
sizePolicy2.setHeightForWidth(toolButtonGo->sizePolicy().hasHeightForWidth());
|
||||
toolButtonGo->setSizePolicy(sizePolicy2);
|
||||
toolButtonGo->setMinimumSize(QSize(48, 0));
|
||||
toolButtonGo->setStyleSheet(QString::fromUtf8(""));
|
||||
QIcon icon12;
|
||||
icon12.addFile(QString::fromUtf8(":/opmap/images/go.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
toolButtonGo->setIcon(icon12);
|
||||
toolButtonGo->setIconSize(QSize(80, 40));
|
||||
toolButtonGo->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
|
||||
toolButtonGo->setAutoRaise(false);
|
||||
|
||||
verticalLayout_4->addWidget(toolButtonGo);
|
||||
|
||||
|
||||
horizontalLayout_3->addWidget(frameFlightControls);
|
||||
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout_3);
|
||||
|
||||
layoutWidgetStatusBar_2 = new QHBoxLayout();
|
||||
layoutWidgetStatusBar_2->setSpacing(0);
|
||||
layoutWidgetStatusBar_2->setObjectName(QString::fromUtf8("layoutWidgetStatusBar_2"));
|
||||
layoutWidgetStatusBar_2->setContentsMargins(0, -1, 0, -1);
|
||||
frameStatusBar = new QFrame(OPMap_Widget);
|
||||
frameStatusBar->setObjectName(QString::fromUtf8("frameStatusBar"));
|
||||
sizePolicy1.setHeightForWidth(frameStatusBar->sizePolicy().hasHeightForWidth());
|
||||
frameStatusBar->setSizePolicy(sizePolicy1);
|
||||
frameStatusBar->setMinimumSize(QSize(0, 0));
|
||||
frameStatusBar->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
frameStatusBar->setStyleSheet(QString::fromUtf8("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(255, 255, 255, 70);\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"QLabel { /* all label types */\n"
|
||||
"/* background-color: rgba(255, 255, 255, 0); */\n"
|
||||
"background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(48, 48, 48, 128), stop:1 rgba(128, 128, 128, 128));\n"
|
||||
"color: rgb(255, 255, 255);\n"
|
||||
"/*border: 1px solid black;*/\n"
|
||||
"border: none;\n"
|
||||
"border-radius: 3px;\n"
|
||||
"}\n"
|
||||
""));
|
||||
frameStatusBar->setFrameShape(QFrame::NoFrame);
|
||||
frameStatusBar->setFrameShadow(QFrame::Plain);
|
||||
horizontalLayout = new QHBoxLayout(frameStatusBar);
|
||||
horizontalLayout->setSpacing(0);
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
horizontalLayout->setContentsMargins(0, 3, 0, 3);
|
||||
layoutWidgetStatusBar = new QHBoxLayout();
|
||||
layoutWidgetStatusBar->setSpacing(5);
|
||||
layoutWidgetStatusBar->setObjectName(QString::fromUtf8("layoutWidgetStatusBar"));
|
||||
layoutWidgetStatusBar->setContentsMargins(3, -1, 8, -1);
|
||||
horizontalSpacer_7 = new QSpacerItem(20, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
|
||||
|
||||
layoutWidgetStatusBar->addItem(horizontalSpacer_7);
|
||||
|
||||
labelUAVPos = new QLabel(frameStatusBar);
|
||||
labelUAVPos->setObjectName(QString::fromUtf8("labelUAVPos"));
|
||||
sizePolicy.setHeightForWidth(labelUAVPos->sizePolicy().hasHeightForWidth());
|
||||
labelUAVPos->setSizePolicy(sizePolicy);
|
||||
QFont font;
|
||||
font.setPointSize(8);
|
||||
font.setBold(false);
|
||||
font.setItalic(false);
|
||||
font.setWeight(50);
|
||||
font.setKerning(true);
|
||||
labelUAVPos->setFont(font);
|
||||
labelUAVPos->setStyleSheet(QString::fromUtf8(""));
|
||||
labelUAVPos->setFrameShape(QFrame::NoFrame);
|
||||
labelUAVPos->setFrameShadow(QFrame::Raised);
|
||||
labelUAVPos->setAlignment(Qt::AlignCenter);
|
||||
labelUAVPos->setMargin(5);
|
||||
|
||||
layoutWidgetStatusBar->addWidget(labelUAVPos);
|
||||
|
||||
labelMapPos = new QLabel(frameStatusBar);
|
||||
labelMapPos->setObjectName(QString::fromUtf8("labelMapPos"));
|
||||
sizePolicy.setHeightForWidth(labelMapPos->sizePolicy().hasHeightForWidth());
|
||||
labelMapPos->setSizePolicy(sizePolicy);
|
||||
labelMapPos->setFont(font);
|
||||
labelMapPos->setStyleSheet(QString::fromUtf8(""));
|
||||
labelMapPos->setFrameShape(QFrame::NoFrame);
|
||||
labelMapPos->setAlignment(Qt::AlignCenter);
|
||||
labelMapPos->setMargin(5);
|
||||
|
||||
layoutWidgetStatusBar->addWidget(labelMapPos);
|
||||
|
||||
labelMousePos = new QLabel(frameStatusBar);
|
||||
labelMousePos->setObjectName(QString::fromUtf8("labelMousePos"));
|
||||
sizePolicy.setHeightForWidth(labelMousePos->sizePolicy().hasHeightForWidth());
|
||||
labelMousePos->setSizePolicy(sizePolicy);
|
||||
labelMousePos->setFont(font);
|
||||
labelMousePos->setStyleSheet(QString::fromUtf8(""));
|
||||
labelMousePos->setFrameShape(QFrame::NoFrame);
|
||||
labelMousePos->setFrameShadow(QFrame::Plain);
|
||||
labelMousePos->setAlignment(Qt::AlignCenter);
|
||||
labelMousePos->setMargin(5);
|
||||
|
||||
layoutWidgetStatusBar->addWidget(labelMousePos);
|
||||
|
||||
horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
layoutWidgetStatusBar->addItem(horizontalSpacer_3);
|
||||
|
||||
progressBarMap = new QProgressBar(frameStatusBar);
|
||||
progressBarMap->setObjectName(QString::fromUtf8("progressBarMap"));
|
||||
QSizePolicy sizePolicy6(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
|
||||
sizePolicy6.setHorizontalStretch(0);
|
||||
sizePolicy6.setVerticalStretch(0);
|
||||
sizePolicy6.setHeightForWidth(progressBarMap->sizePolicy().hasHeightForWidth());
|
||||
progressBarMap->setSizePolicy(sizePolicy6);
|
||||
progressBarMap->setMinimumSize(QSize(40, 12));
|
||||
progressBarMap->setMaximumSize(QSize(100, 20));
|
||||
progressBarMap->setAutoFillBackground(false);
|
||||
progressBarMap->setStyleSheet(QString::fromUtf8("QProgressBar {\n"
|
||||
"border: none;\n"
|
||||
"border-radius: 5px;\n"
|
||||
"padding: 3px;\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"
|
||||
"}\n"
|
||||
"QProgressBar::chunk {\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(160, 160, 255, 255), stop:1 rgba(80, 80, 160, 255));\n"
|
||||
"border: none;\n"
|
||||
"border-radius: 3px;\n"
|
||||
"}"));
|
||||
progressBarMap->setValue(50);
|
||||
progressBarMap->setAlignment(Qt::AlignCenter);
|
||||
progressBarMap->setTextVisible(true);
|
||||
progressBarMap->setInvertedAppearance(false);
|
||||
|
||||
layoutWidgetStatusBar->addWidget(progressBarMap);
|
||||
|
||||
|
||||
horizontalLayout->addLayout(layoutWidgetStatusBar);
|
||||
|
||||
|
||||
layoutWidgetStatusBar_2->addWidget(frameStatusBar);
|
||||
|
||||
|
||||
verticalLayout->addLayout(layoutWidgetStatusBar_2);
|
||||
|
||||
|
||||
retranslateUi(OPMap_Widget);
|
||||
|
||||
comboBoxFindPlace->setCurrentIndex(-1);
|
||||
|
||||
|
||||
QMetaObject::connectSlotsByName(OPMap_Widget);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *OPMap_Widget)
|
||||
{
|
||||
OPMap_Widget->setWindowTitle(QApplication::translate("OPMap_Widget", "Form", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonWaypointsTreeViewShowHide->setToolTip(QApplication::translate("OPMap_Widget", "Show/Hide Waypoint Treeview", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonWaypointsTreeViewShowHide->setText(QString());
|
||||
comboBoxFindPlace->clear();
|
||||
comboBoxFindPlace->insertItems(0, QStringList()
|
||||
<< QApplication::translate("OPMap_Widget", "london", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("OPMap_Widget", "new york", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("OPMap_Widget", "paris", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
comboBoxFindPlace->setToolTip(QApplication::translate("OPMap_Widget", "Enter a place here that you want to find, then press either return or the find button to the right.", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonFindPlace->setToolTip(QApplication::translate("OPMap_Widget", "Find place", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonFindPlace->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonMapHome->setToolTip(QApplication::translate("OPMap_Widget", "Center map over home position", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonMapHome->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonMapUAV->setToolTip(QApplication::translate("OPMap_Widget", "Center map over UAV position", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonMapUAV->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonAddWaypoint->setToolTip(QApplication::translate("OPMap_Widget", "Add a waypoint", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonAddWaypoint->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonWaypointEditor->setToolTip(QApplication::translate("OPMap_Widget", "Opens the waypoint editor", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonWaypointEditor->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonZoomM->setToolTip(QApplication::translate("OPMap_Widget", "Zoom out", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonZoomM->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonZoomP->setToolTip(QApplication::translate("OPMap_Widget", "Zoom in", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonZoomP->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
horizontalSliderZoom->setToolTip(QApplication::translate("OPMap_Widget", "Zoom level", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonFlightControlsShowHide->setToolTip(QApplication::translate("OPMap_Widget", "Show/Hide Flight Controls", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonFlightControlsShowHide->setText(QString());
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonHoldPosition->setToolTip(QApplication::translate("OPMap_Widget", "UAV hold position", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonHoldPosition->setText(QApplication::translate("OPMap_Widget", "Hold", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonHome->setToolTip(QApplication::translate("OPMap_Widget", "UAV go home", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonHome->setText(QApplication::translate("OPMap_Widget", "Home", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonPrevWaypoint->setToolTip(QApplication::translate("OPMap_Widget", "Move UAV to previous waypoint", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonPrevWaypoint->setText(QApplication::translate("OPMap_Widget", "Previous WP", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonNextWaypoint->setToolTip(QApplication::translate("OPMap_Widget", "Move UAV to next waypoint", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonNextWaypoint->setText(QApplication::translate("OPMap_Widget", "Next WP", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
toolButtonGo->setToolTip(QApplication::translate("OPMap_Widget", "UAV go!", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
toolButtonGo->setText(QApplication::translate("OPMap_Widget", "Go", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
labelUAVPos->setToolTip(QApplication::translate("OPMap_Widget", "UAV position", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
labelUAVPos->setText(QApplication::translate("OPMap_Widget", "labelUAVPos", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
labelMapPos->setToolTip(QApplication::translate("OPMap_Widget", "Map position", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
labelMapPos->setText(QApplication::translate("OPMap_Widget", "labelMapPos", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
labelMousePos->setToolTip(QApplication::translate("OPMap_Widget", "Mouse position", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
labelMousePos->setText(QApplication::translate("OPMap_Widget", "labelMousePos", 0, QApplication::UnicodeUTF8));
|
||||
progressBarMap->setFormat(QApplication::translate("OPMap_Widget", "%v", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class OPMap_Widget: public Ui_OPMap_Widget {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_OPMAP_WIDGET_H
|
318
ground/src/plugins/opmap/ui_opmapgadgetoptionspage.h
Normal file
318
ground/src/plugins/opmap/ui_opmapgadgetoptionspage.h
Normal file
@ -0,0 +1,318 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'opmapgadgetoptionspage.ui'
|
||||
**
|
||||
** Created: Fri 2. Jul 13:44:00 2010
|
||||
** by: Qt User Interface Compiler version 4.6.3
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_OPMAPGADGETOPTIONSPAGE_H
|
||||
#define UI_OPMAPGADGETOPTIONSPAGE_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QComboBox>
|
||||
#include <QtGui/QDoubleSpinBox>
|
||||
#include <QtGui/QFrame>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QSpinBox>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_OPMapGadgetOptionsPage
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout;
|
||||
QGridLayout *gridLayout_3;
|
||||
QLabel *label_4;
|
||||
QDoubleSpinBox *longitudeSpinBox;
|
||||
QCheckBox *checkBoxUseOpenGL;
|
||||
QDoubleSpinBox *latitudeSpinBox;
|
||||
QLabel *label_3;
|
||||
QSpinBox *zoomSpinBox;
|
||||
QLabel *label_2;
|
||||
QComboBox *providerComboBox;
|
||||
QLabel *label;
|
||||
QCheckBox *checkBoxShowTileGridLines;
|
||||
QSpacerItem *horizontalSpacer_4;
|
||||
QSpacerItem *verticalSpacer;
|
||||
QFrame *line;
|
||||
QLabel *label_7;
|
||||
QFrame *line_2;
|
||||
QGridLayout *gridLayout_5;
|
||||
QPushButton *pushButtonCacheDefaults;
|
||||
QSpacerItem *horizontalSpacer_2;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QSpacerItem *horizontalSpacer_3;
|
||||
QLabel *label_6;
|
||||
QComboBox *accessModeComboBox;
|
||||
QHBoxLayout *horizontalLayout_3;
|
||||
QLabel *label_5;
|
||||
QLineEdit *lineEditCacheLocation;
|
||||
QPushButton *pushButtonCacheLocation;
|
||||
QHBoxLayout *horizontalLayout_2;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QCheckBox *checkBoxUseMemoryCache;
|
||||
|
||||
void setupUi(QWidget *OPMapGadgetOptionsPage)
|
||||
{
|
||||
if (OPMapGadgetOptionsPage->objectName().isEmpty())
|
||||
OPMapGadgetOptionsPage->setObjectName(QString::fromUtf8("OPMapGadgetOptionsPage"));
|
||||
OPMapGadgetOptionsPage->resize(521, 373);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(OPMapGadgetOptionsPage->sizePolicy().hasHeightForWidth());
|
||||
OPMapGadgetOptionsPage->setSizePolicy(sizePolicy);
|
||||
gridLayout = new QGridLayout(OPMapGadgetOptionsPage);
|
||||
gridLayout->setContentsMargins(5, 5, 5, 5);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
gridLayout_3 = new QGridLayout();
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
label_4 = new QLabel(OPMapGadgetOptionsPage);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_3->addWidget(label_4, 4, 2, 1, 1);
|
||||
|
||||
longitudeSpinBox = new QDoubleSpinBox(OPMapGadgetOptionsPage);
|
||||
longitudeSpinBox->setObjectName(QString::fromUtf8("longitudeSpinBox"));
|
||||
longitudeSpinBox->setMinimumSize(QSize(120, 0));
|
||||
longitudeSpinBox->setFrame(true);
|
||||
longitudeSpinBox->setDecimals(8);
|
||||
longitudeSpinBox->setMinimum(-180);
|
||||
longitudeSpinBox->setMaximum(180);
|
||||
|
||||
gridLayout_3->addWidget(longitudeSpinBox, 4, 3, 1, 1);
|
||||
|
||||
checkBoxUseOpenGL = new QCheckBox(OPMapGadgetOptionsPage);
|
||||
checkBoxUseOpenGL->setObjectName(QString::fromUtf8("checkBoxUseOpenGL"));
|
||||
checkBoxUseOpenGL->setEnabled(true);
|
||||
checkBoxUseOpenGL->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
gridLayout_3->addWidget(checkBoxUseOpenGL, 5, 3, 1, 1);
|
||||
|
||||
latitudeSpinBox = new QDoubleSpinBox(OPMapGadgetOptionsPage);
|
||||
latitudeSpinBox->setObjectName(QString::fromUtf8("latitudeSpinBox"));
|
||||
latitudeSpinBox->setMinimumSize(QSize(120, 0));
|
||||
latitudeSpinBox->setFrame(true);
|
||||
latitudeSpinBox->setDecimals(8);
|
||||
latitudeSpinBox->setMinimum(-90);
|
||||
latitudeSpinBox->setMaximum(90);
|
||||
|
||||
gridLayout_3->addWidget(latitudeSpinBox, 2, 3, 1, 1);
|
||||
|
||||
label_3 = new QLabel(OPMapGadgetOptionsPage);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_3->addWidget(label_3, 2, 2, 1, 1);
|
||||
|
||||
zoomSpinBox = new QSpinBox(OPMapGadgetOptionsPage);
|
||||
zoomSpinBox->setObjectName(QString::fromUtf8("zoomSpinBox"));
|
||||
zoomSpinBox->setMaximumSize(QSize(50, 16777215));
|
||||
zoomSpinBox->setFrame(true);
|
||||
zoomSpinBox->setMinimum(2);
|
||||
zoomSpinBox->setMaximum(18);
|
||||
|
||||
gridLayout_3->addWidget(zoomSpinBox, 1, 3, 1, 1);
|
||||
|
||||
label_2 = new QLabel(OPMapGadgetOptionsPage);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_3->addWidget(label_2, 1, 2, 1, 1);
|
||||
|
||||
providerComboBox = new QComboBox(OPMapGadgetOptionsPage);
|
||||
providerComboBox->setObjectName(QString::fromUtf8("providerComboBox"));
|
||||
providerComboBox->setCursor(QCursor(Qt::OpenHandCursor));
|
||||
providerComboBox->setMaxVisibleItems(15);
|
||||
providerComboBox->setFrame(true);
|
||||
|
||||
gridLayout_3->addWidget(providerComboBox, 0, 3, 1, 1);
|
||||
|
||||
label = new QLabel(OPMapGadgetOptionsPage);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_3->addWidget(label, 0, 2, 1, 1);
|
||||
|
||||
checkBoxShowTileGridLines = new QCheckBox(OPMapGadgetOptionsPage);
|
||||
checkBoxShowTileGridLines->setObjectName(QString::fromUtf8("checkBoxShowTileGridLines"));
|
||||
checkBoxShowTileGridLines->setEnabled(true);
|
||||
checkBoxShowTileGridLines->setMouseTracking(true);
|
||||
checkBoxShowTileGridLines->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
gridLayout_3->addWidget(checkBoxShowTileGridLines, 6, 3, 1, 1);
|
||||
|
||||
horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
gridLayout_3->addItem(horizontalSpacer_4, 2, 0, 1, 1);
|
||||
|
||||
|
||||
gridLayout->addLayout(gridLayout_3, 1, 0, 1, 1);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
gridLayout->addItem(verticalSpacer, 10, 0, 1, 1);
|
||||
|
||||
line = new QFrame(OPMapGadgetOptionsPage);
|
||||
line->setObjectName(QString::fromUtf8("line"));
|
||||
line->setFrameShape(QFrame::HLine);
|
||||
line->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
gridLayout->addWidget(line, 2, 0, 1, 1);
|
||||
|
||||
label_7 = new QLabel(OPMapGadgetOptionsPage);
|
||||
label_7->setObjectName(QString::fromUtf8("label_7"));
|
||||
label_7->setAlignment(Qt::AlignCenter);
|
||||
|
||||
gridLayout->addWidget(label_7, 3, 0, 1, 1);
|
||||
|
||||
line_2 = new QFrame(OPMapGadgetOptionsPage);
|
||||
line_2->setObjectName(QString::fromUtf8("line_2"));
|
||||
line_2->setFrameShape(QFrame::HLine);
|
||||
line_2->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
gridLayout->addWidget(line_2, 9, 0, 1, 1);
|
||||
|
||||
gridLayout_5 = new QGridLayout();
|
||||
gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
|
||||
pushButtonCacheDefaults = new QPushButton(OPMapGadgetOptionsPage);
|
||||
pushButtonCacheDefaults->setObjectName(QString::fromUtf8("pushButtonCacheDefaults"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(pushButtonCacheDefaults->sizePolicy().hasHeightForWidth());
|
||||
pushButtonCacheDefaults->setSizePolicy(sizePolicy1);
|
||||
pushButtonCacheDefaults->setCursor(QCursor(Qt::OpenHandCursor));
|
||||
pushButtonCacheDefaults->setCheckable(false);
|
||||
pushButtonCacheDefaults->setChecked(false);
|
||||
pushButtonCacheDefaults->setFlat(false);
|
||||
|
||||
gridLayout_5->addWidget(pushButtonCacheDefaults, 5, 2, 1, 1);
|
||||
|
||||
horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
gridLayout_5->addItem(horizontalSpacer_2, 5, 0, 1, 1);
|
||||
|
||||
|
||||
gridLayout->addLayout(gridLayout_5, 7, 0, 1, 1);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer_3);
|
||||
|
||||
label_6 = new QLabel(OPMapGadgetOptionsPage);
|
||||
label_6->setObjectName(QString::fromUtf8("label_6"));
|
||||
label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
horizontalLayout->addWidget(label_6);
|
||||
|
||||
accessModeComboBox = new QComboBox(OPMapGadgetOptionsPage);
|
||||
accessModeComboBox->setObjectName(QString::fromUtf8("accessModeComboBox"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(accessModeComboBox->sizePolicy().hasHeightForWidth());
|
||||
accessModeComboBox->setSizePolicy(sizePolicy2);
|
||||
accessModeComboBox->setMinimumSize(QSize(160, 0));
|
||||
accessModeComboBox->setCursor(QCursor(Qt::OpenHandCursor));
|
||||
accessModeComboBox->setFrame(true);
|
||||
|
||||
horizontalLayout->addWidget(accessModeComboBox);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout, 4, 0, 1, 1);
|
||||
|
||||
horizontalLayout_3 = new QHBoxLayout();
|
||||
horizontalLayout_3->setObjectName(QString::fromUtf8("horizontalLayout_3"));
|
||||
label_5 = new QLabel(OPMapGadgetOptionsPage);
|
||||
label_5->setObjectName(QString::fromUtf8("label_5"));
|
||||
|
||||
horizontalLayout_3->addWidget(label_5);
|
||||
|
||||
lineEditCacheLocation = new QLineEdit(OPMapGadgetOptionsPage);
|
||||
lineEditCacheLocation->setObjectName(QString::fromUtf8("lineEditCacheLocation"));
|
||||
lineEditCacheLocation->setAutoFillBackground(false);
|
||||
lineEditCacheLocation->setMaxLength(512);
|
||||
|
||||
horizontalLayout_3->addWidget(lineEditCacheLocation);
|
||||
|
||||
pushButtonCacheLocation = new QPushButton(OPMapGadgetOptionsPage);
|
||||
pushButtonCacheLocation->setObjectName(QString::fromUtf8("pushButtonCacheLocation"));
|
||||
pushButtonCacheLocation->setCursor(QCursor(Qt::OpenHandCursor));
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/core/images/dir.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
pushButtonCacheLocation->setIcon(icon);
|
||||
pushButtonCacheLocation->setFlat(true);
|
||||
|
||||
horizontalLayout_3->addWidget(pushButtonCacheLocation);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout_3, 6, 0, 1, 1);
|
||||
|
||||
horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout_2->addItem(horizontalSpacer);
|
||||
|
||||
checkBoxUseMemoryCache = new QCheckBox(OPMapGadgetOptionsPage);
|
||||
checkBoxUseMemoryCache->setObjectName(QString::fromUtf8("checkBoxUseMemoryCache"));
|
||||
checkBoxUseMemoryCache->setEnabled(true);
|
||||
checkBoxUseMemoryCache->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
horizontalLayout_2->addWidget(checkBoxUseMemoryCache);
|
||||
|
||||
|
||||
gridLayout->addLayout(horizontalLayout_2, 5, 0, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(OPMapGadgetOptionsPage);
|
||||
|
||||
QMetaObject::connectSlotsByName(OPMapGadgetOptionsPage);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *OPMapGadgetOptionsPage)
|
||||
{
|
||||
OPMapGadgetOptionsPage->setWindowTitle(QApplication::translate("OPMapGadgetOptionsPage", "Form", 0, QApplication::UnicodeUTF8));
|
||||
label_4->setText(QApplication::translate("OPMapGadgetOptionsPage", "Default longitude ", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxUseOpenGL->setText(QApplication::translate("OPMapGadgetOptionsPage", "Use OpenGL", 0, QApplication::UnicodeUTF8));
|
||||
label_3->setText(QApplication::translate("OPMapGadgetOptionsPage", "Default latitude ", 0, QApplication::UnicodeUTF8));
|
||||
label_2->setText(QApplication::translate("OPMapGadgetOptionsPage", "Default zoom ", 0, QApplication::UnicodeUTF8));
|
||||
label->setText(QApplication::translate("OPMapGadgetOptionsPage", "Map type ", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxShowTileGridLines->setText(QApplication::translate("OPMapGadgetOptionsPage", "Show Tile Grid Lines", 0, QApplication::UnicodeUTF8));
|
||||
label_7->setText(QApplication::translate("OPMapGadgetOptionsPage", "Server and Cache", 0, QApplication::UnicodeUTF8));
|
||||
#ifndef QT_NO_TOOLTIP
|
||||
pushButtonCacheDefaults->setToolTip(QApplication::translate("OPMapGadgetOptionsPage", "Restore default server and cache settings", 0, QApplication::UnicodeUTF8));
|
||||
#endif // QT_NO_TOOLTIP
|
||||
pushButtonCacheDefaults->setText(QApplication::translate("OPMapGadgetOptionsPage", " Default ", 0, QApplication::UnicodeUTF8));
|
||||
label_6->setText(QApplication::translate("OPMapGadgetOptionsPage", "Access mode ", 0, QApplication::UnicodeUTF8));
|
||||
label_5->setText(QApplication::translate("OPMapGadgetOptionsPage", "Cache location ", 0, QApplication::UnicodeUTF8));
|
||||
pushButtonCacheLocation->setText(QString());
|
||||
checkBoxUseMemoryCache->setText(QApplication::translate("OPMapGadgetOptionsPage", "Use Memory Cache", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class OPMapGadgetOptionsPage: public Ui_OPMapGadgetOptionsPage {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_OPMAPGADGETOPTIONSPAGE_H
|
Loading…
Reference in New Issue
Block a user