1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-21 11:54:15 +01:00

Changed OPMap GUI layout.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1026 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2010-07-05 15:43:16 +00:00 committed by pip
parent c5e540b1ff
commit 619161c576
3 changed files with 1127 additions and 1211 deletions

View File

@ -25,7 +25,7 @@
<property name="styleSheet"> <property name="styleSheet">
<string notr="true"/> <string notr="true"/>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout_5">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>0</number>
</property> </property>
@ -33,88 +33,77 @@
<number>0</number> <number>0</number>
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="layoutWidgetToolBar"> <widget class="QSplitter" name="splitter">
<property name="spacing"> <property name="styleSheet">
<number>0</number> <string notr="true">QSplitter::handle {
/* image: url(images/splitter.png); */
background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(71, 71, 71, 255), stop:0.5 rgba(200, 200, 200, 255), stop:1 rgba(110, 110, 110, 255));
}
QSplitter::handle:horizontal {
height: 5px;
}
QSplitter::handle:vertical {
width: 5px;
}
</string>
</property> </property>
<property name="leftMargin"> <property name="frameShape">
<number>0</number> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="rightMargin"> <property name="orientation">
<number>0</number> <enum>Qt::Horizontal</enum>
</property> </property>
<item> <property name="opaqueResize">
<widget class="QFrame" name="frameToolBar"> <bool>true</bool>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Expanding" vsizetype="Minimum"> <property name="handleWidth">
<horstretch>0</horstretch> <number>5</number>
<verstretch>0</verstretch> </property>
</sizepolicy> <widget class="QFrame" name="frameLeftPanel">
</property> <property name="minimumSize">
<property name="minimumSize"> <size>
<size> <width>170</width>
<width>0</width> <height>0</height>
<height>0</height> </size>
</size> </property>
</property> <property name="maximumSize">
<property name="autoFillBackground"> <size>
<bool>false</bool> <width>300</width>
</property> <height>16777215</height>
<property name="styleSheet"> </size>
<string notr="true">QFrame { </property>
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)); <property name="styleSheet">
color: rgba(255, 255, 255, 70); <string notr="true">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));
} </string>
</property>
QLabel { /* all label types */ <property name="frameShape">
/* background-color: rgba(255, 255, 255, 0); */ <enum>QFrame::StyledPanel</enum>
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)); </property>
color: rgb(255, 255, 255); <property name="frameShadow">
border: 0px; <enum>QFrame::Raised</enum>
border-radius: 3px; </property>
} <layout class="QVBoxLayout" name="verticalLayout">
<item>
QToolButton { /* all types of tool button */ <layout class="QHBoxLayout" name="horizontalLayout_3">
background-color: rgba(255, 255, 255, 0); <item>
color: rgb(255, 255, 255); <widget class="QComboBox" name="comboBoxFindPlace">
/*border-style: none;*/ <property name="sizePolicy">
border: 0px; <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
border-radius: 3px; <horstretch>0</horstretch>
} <verstretch>0</verstretch>
QToolButton:hover { </sizepolicy>
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)); </property>
color: rgb(255, 255, 255); <property name="minimumSize">
border: 0px; <size>
border-radius: 3px; <width>0</width>
} <height>0</height>
QToolButton:pressed { </size>
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)); </property>
color: rgb(255, 255, 255); <property name="toolTip">
border: 0px; <string>Enter a place here that you want to find, then press either return or the find button to the right.</string>
border-radius: 3px; </property>
} <property name="styleSheet">
<string notr="true">
QToolButton:checked {
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));
color: rgb(255, 255, 255);
border: 0px;
border-radius: 3px;
}
QSlider::groove:horizontal {
border: none;
height: 4px;
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));
margin: 2px 0;
}
QSlider::handle:horizontal {
border: 1px solid #5c5c5c;
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));
width: 24px;
margin: -2px 0;
border-radius: 3px;
}
QComboBox { QComboBox {
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)); 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));
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
@ -144,562 +133,128 @@ selection-background-color: rgb(160, 160, 255);
border-radius: 2px; border-radius: 2px;
} }
</string> </string>
</property> </property>
<property name="frameShape"> <property name="editable">
<enum>QFrame::NoFrame</enum> <bool>true</bool>
</property> </property>
<property name="frameShadow"> <property name="currentIndex">
<enum>QFrame::Plain</enum> <number>-1</number>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_2"> <property name="maxVisibleItems">
<property name="spacing"> <number>20</number>
<number>0</number> </property>
</property> <property name="sizeAdjustPolicy">
<property name="leftMargin"> <enum>QComboBox::AdjustToContents</enum>
<number>0</number> </property>
</property> <property name="frame">
<property name="topMargin"> <bool>false</bool>
<number>3</number> </property>
</property> <item>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<layout class="QHBoxLayout" name="layoutWidget_8">
<property name="spacing">
<number>5</number>
</property>
<property name="leftMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>3</number>
</property>
<item>
<widget class="QToolButton" name="toolButtonWaypointsTreeViewShowHide">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Show/Hide Waypoint Treeview</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text"> <property name="text">
<string/> <string>london</string>
</property>
<property name="icon">
<iconset resource="../coreplugin/core.qrc">
<normaloff>:/core/images/prev.png</normaloff>:/core/images/prev.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QComboBox" name="comboBoxFindPlace">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>120</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>Enter a place here that you want to find, then press either return or the find button to the right.</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentIndex">
<number>-1</number>
</property>
<property name="maxVisibleItems">
<number>20</number>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
<property name="frame">
<bool>false</bool>
</property>
<item>
<property name="text">
<string>london</string>
</property>
</item>
<item>
<property name="text">
<string>new york</string>
</property>
</item>
<item>
<property name="text">
<string>paris</string>
</property>
</item>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonFindPlace">
<property name="toolTip">
<string>Find place</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property> </property>
</item>
<item>
<property name="text"> <property name="text">
<string/> <string>new york</string>
</property>
<property name="icon">
<iconset resource="../coreplugin/core.qrc">
<normaloff>:/core/images/find.png</normaloff>:/core/images/find.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
<property name="arrowType">
<enum>Qt::NoArrow</enum>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButtonMapHome">
<property name="toolTip">
<string>Center map over home position</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property> </property>
</item>
<item>
<property name="text"> <property name="text">
<string/> <string>paris</string>
</property> </property>
<property name="icon"> </item>
<iconset resource="opmap.qrc"> </widget>
<normaloff>:/opmap/images/gcs.png</normaloff>:/opmap/images/gcs.png</iconset> </item>
</property> <item>
<property name="iconSize"> <widget class="QToolButton" name="toolButtonFindPlace">
<size> <property name="toolTip">
<width>20</width> <string>Find place</string>
<height>20</height> </property>
</size> <property name="styleSheet">
</property> <string notr="true">QToolButton { /* all types of tool button */
<property name="autoRepeat"> background-color: rgba(255, 255, 255, 0);
<bool>true</bool> color: rgb(255, 255, 255);
</property> /*border-style: none;*/
<property name="autoRaise"> border: 0px;
<bool>false</bool> border-radius: 3px;
</property> }
</widget> QToolButton:hover {
</item> 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));
<item> color: rgb(255, 255, 255);
<widget class="QToolButton" name="toolButtonMapUAV"> border: 0px;
<property name="toolTip"> border-radius: 3px;
<string>Center map over UAV position</string> }
</property> QToolButton:pressed {
<property name="styleSheet"> 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));
<string notr="true"/> color: rgb(255, 255, 255);
</property> border: 0px;
<property name="text"> border-radius: 3px;
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/uav.png</normaloff>:/opmap/images/uav.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRepeat">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButtonAddWaypoint">
<property name="toolTip">
<string>Add a waypoint</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/waypoint.png</normaloff>:/opmap/images/waypoint.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRepeat">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonWaypointEditor">
<property name="toolTip">
<string>Opens the waypoint editor</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/waypoint.png</normaloff>:/opmap/images/waypoint.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRepeat">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButtonZoomM">
<property name="toolTip">
<string>Zoom out</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/minus.png</normaloff>:/opmap/images/minus.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonZoomP">
<property name="toolTip">
<string>Zoom in</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/plus.png</normaloff>:/opmap/images/plus.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSliderZoom">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>130</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>130</width>
<height>16777215</height>
</size>
</property>
<property name="cursor">
<cursorShape>OpenHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Zoom level</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="minimum">
<number>2</number>
</property>
<property name="maximum">
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>2</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButtonFlightControlsShowHide">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip">
<string>Show/Hide Flight Controls</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../coreplugin/core.qrc">
<normaloff>:/core/images/next.png</normaloff>:/core/images/next.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QSplitter" name="splitter">
<property name="styleSheet">
<string notr="true">QSplitter::handle {
/* 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 { QToolButton:checked {
height: 5px; 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));
color: rgb(255, 255, 255);
border: 0px;
border-radius: 3px;
} }
</string>
QSplitter::handle:vertical { </property>
width: 5px; <property name="text">
}</string> <string/>
</property> </property>
<property name="frameShape"> <property name="icon">
<enum>QFrame::NoFrame</enum> <iconset resource="../coreplugin/core.qrc">
</property> <normaloff>:/core/images/find.png</normaloff>:/core/images/find.png</iconset>
<property name="frameShadow"> </property>
<enum>QFrame::Sunken</enum> <property name="iconSize">
</property> <size>
<property name="lineWidth"> <width>20</width>
<number>1</number> <height>20</height>
</property> </size>
<property name="orientation"> </property>
<enum>Qt::Horizontal</enum> <property name="autoRaise">
</property> <bool>false</bool>
<property name="opaqueResize"> </property>
<bool>true</bool> <property name="arrowType">
</property> <enum>Qt::NoArrow</enum>
<property name="handleWidth"> </property>
<number>5</number> </widget>
</property> </item>
<property name="childrenCollapsible"> </layout>
<bool>false</bool> </item>
</property> <item>
<widget class="QTreeView" name="treeViewWaypoints"> <widget class="Line" name="line">
<property name="sizePolicy"> <property name="frameShadow">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> <enum>QFrame::Plain</enum>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> <property name="lineWidth">
</sizepolicy> <number>2</number>
</property> </property>
<property name="minimumSize"> <property name="orientation">
<size> <enum>Qt::Horizontal</enum>
<width>100</width> </property>
<height>0</height> </widget>
</size> </item>
</property> <item>
<property name="maximumSize"> <widget class="QTreeView" name="treeViewWaypoints">
<size> <property name="sizePolicy">
<width>300</width> <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<height>16777215</height> <horstretch>0</horstretch>
</size> <verstretch>0</verstretch>
</property> </sizepolicy>
<property name="contextMenuPolicy"> </property>
<enum>Qt::NoContextMenu</enum> <property name="minimumSize">
</property> <size>
<property name="styleSheet"> <width>100</width>
<string notr="true">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)); <height>0</height>
</size>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgba(255, 255, 255, 0);
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
/* /*
QTreeView::item { QTreeView::item {
@ -721,47 +276,56 @@ QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-ch
border-image: none; border-image: none;
image: url(branch-open.png); image: url(branch-open.png);
}</string> }</string>
</property> </property>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Plain</enum> <enum>QFrame::Plain</enum>
</property> </property>
<property name="tabKeyNavigation"> <property name="tabKeyNavigation">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="selectionBehavior"> <property name="selectionBehavior">
<enum>QAbstractItemView::SelectItems</enum> <enum>QAbstractItemView::SelectItems</enum>
</property> </property>
<property name="animated"> <property name="animated">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="headerHidden"> <property name="headerHidden">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QWidget" name="mapWidget" native="true"> </item>
<property name="sizePolicy"> </layout>
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> </widget>
<horstretch>0</horstretch> <widget class="QWidget" name="layoutWidget">
<verstretch>0</verstretch> <layout class="QHBoxLayout" name="horizontalLayout_2">
</sizepolicy> <property name="spacing">
</property> <number>0</number>
<property name="minimumSize"> </property>
<size> <item>
<width>100</width> <widget class="QWidget" name="mapWidget" native="true">
<height>0</height> <property name="sizePolicy">
</size> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
</property> <horstretch>0</horstretch>
<property name="mouseTracking"> <verstretch>0</verstretch>
<bool>false</bool> </sizepolicy>
</property> </property>
<property name="acceptDrops"> <property name="minimumSize">
<bool>true</bool> <size>
</property> <width>64</width>
<property name="styleSheet"> <height>64</height>
<string notr="true"> </size>
</property>
<property name="mouseTracking">
<bool>false</bool>
</property>
<property name="acceptDrops">
<bool>true</bool>
</property>
<property name="styleSheet">
<string notr="true">
/* background-color: black; */ /* background-color: black; */
border: 1px solid black; border: 1px solid black;
@ -824,38 +388,430 @@ QComboBox:drop-down {
border-bottom-right-radius: 1px; border-bottom-right-radius: 1px;
} }
</string> </string>
</property> </property>
</widget> </widget>
</widget> </item>
</item> <item>
<item> <widget class="QWidget" name="widget" native="true">
<widget class="QFrame" name="frameFlightControls"> <property name="sizePolicy">
<property name="sizePolicy"> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding"> <horstretch>0</horstretch>
<horstretch>0</horstretch> <verstretch>0</verstretch>
<verstretch>0</verstretch> </sizepolicy>
</sizepolicy> </property>
</property> <property name="styleSheet">
<property name="minimumSize"> <string notr="true">QFrame {
<size> 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));
<width>80</width> color: rgb(255, 255, 255);
<height>50</height> }
</size>
</property> QToolButton { /* all types of tool button */
<property name="maximumSize"> background-color: rgba(255, 255, 255, 0);
<size> color: rgb(255, 255, 255);
<width>80</width> /*border-style: none;*/
<height>16777215</height> border: 0px;
</size> border-radius: 3px;
</property> }
<property name="mouseTracking"> QToolButton:hover {
<bool>false</bool> 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));
</property> color: rgb(255, 255, 255);
<property name="contextMenuPolicy"> border: 0px;
<enum>Qt::NoContextMenu</enum> border-radius: 3px;
</property> }
<property name="styleSheet"> QToolButton:pressed {
<string notr="true">QWidget { /* all types of qwidget */ 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));
color: rgb(255, 255, 255);
border: 0px;
border-radius: 3px;
}
QToolButton:checked {
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));
color: rgb(255, 255, 255);
border: 0px;
border-radius: 3px;
}
QSlider::groove:horizontal {
border: none;
height: 4px;
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));
margin: 2px 0;
}
QSlider::handle:horizontal {
border: 1px solid #5c5c5c;
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));
width: 24px;
margin: -2px 0;
border-radius: 3px;
}
</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QFrame" name="frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="styleSheet">
<string notr="true">
QFrame {
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));
}
QToolButton { /* all types of tool button */
background-color: rgba(255, 255, 255, 0);
color: rgb(255, 255, 255);
/*border-style: none;*/
border: 0px;
border-radius: 3px;
}
QToolButton:hover {
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));
color: rgb(255, 255, 255);
border: 0px;
border-radius: 3px;
}
QToolButton:pressed {
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));
color: rgb(255, 255, 255);
border: 0px;
border-radius: 3px;
}
QToolButton:checked {
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));
color: rgb(255, 255, 255);
border: 0px;
border-radius: 3px;
}
QSliderl {
background-color: rgba(255, 255, 255, 0);
}
QSlider::groove:vertical {
border: none;
width: 4px;
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));
margin: 2px 0;
}
QSlider::handle:vertical {
border: 1px solid #5c5c5c;
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));
height: 10px;
margin: 0 -9px; /* expand outside the groove */
border-radius: 3px;
}
</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
<number>3</number>
</property>
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>3</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QToolButton" name="toolButtonMapHome">
<property name="toolTip">
<string>Center map over home position</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/gcs.png</normaloff>:/opmap/images/gcs.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRepeat">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonMapUAV">
<property name="toolTip">
<string>Center map over UAV position</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/uav.png</normaloff>:/opmap/images/uav.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="autoRepeat">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButtonAddWaypoint">
<property name="toolTip">
<string>Add a waypoint</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/waypoint.png</normaloff>:/opmap/images/waypoint.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRepeat">
<bool>true</bool>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QToolButton" name="toolButtonZoomP">
<property name="toolTip">
<string>Zoom in</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/plus.png</normaloff>:/opmap/images/plus.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QSlider" name="horizontalSliderZoom">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>80</height>
</size>
</property>
<property name="cursor">
<cursorShape>OpenHandCursor</cursorShape>
</property>
<property name="toolTip">
<string>Zoom level</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="minimum">
<number>2</number>
</property>
<property name="maximum">
<number>19</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="invertedControls">
<bool>false</bool>
</property>
<property name="tickPosition">
<enum>QSlider::NoTicks</enum>
</property>
<property name="tickInterval">
<number>2</number>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="toolButtonZoomM">
<property name="toolTip">
<string>Zoom out</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="opmap.qrc">
<normaloff>:/opmap/images/minus.png</normaloff>:/opmap/images/minus.png</iconset>
</property>
<property name="iconSize">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QFrame" name="frameFlightControls">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>80</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<height>16777215</height>
</size>
</property>
<property name="mouseTracking">
<bool>false</bool>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="styleSheet">
<string notr="true">QWidget { /* all types of qwidget */
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)); 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));
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
} }
@ -875,263 +831,257 @@ background-color: qlineargradient(spread:pad, x1:1, y1:0.5, x2:0, y2:0.5, stop:0
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
} }
</string> </string>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="spacing">
<number>1</number>
</property> </property>
<property name="frameShape"> <property name="margin">
<enum>QFrame::NoFrame</enum> <number>0</number>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_4"> <item>
<property name="spacing"> <widget class="QToolButton" name="toolButtonHoldPosition">
<number>1</number> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<property name="margin"> <horstretch>0</horstretch>
<number>0</number> <verstretch>0</verstretch>
</property> </sizepolicy>
<item> </property>
<widget class="QToolButton" name="toolButtonHoldPosition"> <property name="minimumSize">
<property name="sizePolicy"> <size>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <width>48</width>
<horstretch>0</horstretch> <height>0</height>
<verstretch>0</verstretch> </size>
</sizepolicy> </property>
</property> <property name="toolTip">
<property name="minimumSize"> <string>UAV hold position</string>
<size> </property>
<width>48</width> <property name="styleSheet">
<height>0</height> <string notr="true"/>
</size> </property>
</property> <property name="text">
<property name="toolTip"> <string>Hold</string>
<string>UAV hold position</string> </property>
</property> <property name="icon">
<property name="styleSheet"> <iconset resource="opmap.qrc">
<string notr="true"/> <normaloff>:/opmap/images/hold.png</normaloff>:/opmap/images/hold.png</iconset>
</property> </property>
<property name="text"> <property name="iconSize">
<string>Hold</string> <size>
</property> <width>80</width>
<property name="icon"> <height>40</height>
<iconset resource="opmap.qrc"> </size>
<normaloff>:/opmap/images/hold.png</normaloff>:/opmap/images/hold.png</iconset> </property>
</property> <property name="toolButtonStyle">
<property name="iconSize"> <enum>Qt::ToolButtonTextUnderIcon</enum>
<size> </property>
<width>80</width> <property name="autoRaise">
<height>40</height> <bool>false</bool>
</size> </property>
</property> </widget>
<property name="toolButtonStyle"> </item>
<enum>Qt::ToolButtonTextUnderIcon</enum> <item>
</property> <widget class="QToolButton" name="toolButtonHome">
<property name="autoRaise"> <property name="enabled">
<bool>false</bool> <bool>true</bool>
</property> </property>
</widget> <property name="sizePolicy">
</item> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<item> <horstretch>0</horstretch>
<widget class="QToolButton" name="toolButtonHome"> <verstretch>0</verstretch>
<property name="enabled"> </sizepolicy>
<bool>true</bool> </property>
</property> <property name="minimumSize">
<property name="sizePolicy"> <size>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <width>48</width>
<horstretch>0</horstretch> <height>0</height>
<verstretch>0</verstretch> </size>
</sizepolicy> </property>
</property> <property name="toolTip">
<property name="minimumSize"> <string>UAV go home</string>
<size> </property>
<width>48</width> <property name="autoFillBackground">
<height>0</height> <bool>false</bool>
</size> </property>
</property> <property name="styleSheet">
<property name="toolTip"> <string notr="true"/>
<string>UAV go home</string> </property>
</property> <property name="text">
<property name="autoFillBackground"> <string>Home</string>
<bool>false</bool> </property>
</property> <property name="icon">
<property name="styleSheet"> <iconset resource="opmap.qrc">
<string notr="true"/> <normaloff>:/opmap/images/home.png</normaloff>:/opmap/images/home.png</iconset>
</property> </property>
<property name="text"> <property name="iconSize">
<string>Home</string> <size>
</property> <width>80</width>
<property name="icon"> <height>40</height>
<iconset resource="opmap.qrc"> </size>
<normaloff>:/opmap/images/home.png</normaloff>:/opmap/images/home.png</iconset> </property>
</property> <property name="toolButtonStyle">
<property name="iconSize"> <enum>Qt::ToolButtonTextUnderIcon</enum>
<size> </property>
<width>80</width> <property name="autoRaise">
<height>40</height> <bool>false</bool>
</size> </property>
</property> </widget>
<property name="toolButtonStyle"> </item>
<enum>Qt::ToolButtonTextUnderIcon</enum> <item>
</property> <widget class="QToolButton" name="toolButtonPrevWaypoint">
<property name="autoRaise"> <property name="sizePolicy">
<bool>false</bool> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
</property> <horstretch>0</horstretch>
</widget> <verstretch>0</verstretch>
</item> </sizepolicy>
<item> </property>
<widget class="QToolButton" name="toolButtonPrevWaypoint"> <property name="minimumSize">
<property name="sizePolicy"> <size>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <width>48</width>
<horstretch>0</horstretch> <height>0</height>
<verstretch>0</verstretch> </size>
</sizepolicy> </property>
</property> <property name="toolTip">
<property name="minimumSize"> <string>Move UAV to previous waypoint</string>
<size> </property>
<width>48</width> <property name="styleSheet">
<height>0</height> <string notr="true"/>
</size> </property>
</property> <property name="text">
<property name="toolTip"> <string>Previous WP</string>
<string>Move UAV to previous waypoint</string> </property>
</property> <property name="icon">
<property name="styleSheet"> <iconset resource="opmap.qrc">
<string notr="true"/> <normaloff>:/opmap/images/prev_waypoint.png</normaloff>:/opmap/images/prev_waypoint.png</iconset>
</property> </property>
<property name="text"> <property name="iconSize">
<string>Previous WP</string> <size>
</property> <width>80</width>
<property name="icon"> <height>40</height>
<iconset resource="opmap.qrc"> </size>
<normaloff>:/opmap/images/prev_waypoint.png</normaloff>:/opmap/images/prev_waypoint.png</iconset> </property>
</property> <property name="toolButtonStyle">
<property name="iconSize"> <enum>Qt::ToolButtonTextUnderIcon</enum>
<size> </property>
<width>80</width> <property name="autoRaise">
<height>40</height> <bool>false</bool>
</size> </property>
</property> </widget>
<property name="toolButtonStyle"> </item>
<enum>Qt::ToolButtonTextUnderIcon</enum> <item>
</property> <widget class="QToolButton" name="toolButtonNextWaypoint">
<property name="autoRaise"> <property name="sizePolicy">
<bool>false</bool> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
</property> <horstretch>0</horstretch>
</widget> <verstretch>0</verstretch>
</item> </sizepolicy>
<item> </property>
<widget class="QToolButton" name="toolButtonNextWaypoint"> <property name="minimumSize">
<property name="sizePolicy"> <size>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <width>48</width>
<horstretch>0</horstretch> <height>0</height>
<verstretch>0</verstretch> </size>
</sizepolicy> </property>
</property> <property name="toolTip">
<property name="minimumSize"> <string>Move UAV to next waypoint</string>
<size> </property>
<width>48</width> <property name="styleSheet">
<height>0</height> <string notr="true"/>
</size> </property>
</property> <property name="text">
<property name="toolTip"> <string>Next WP</string>
<string>Move UAV to next waypoint</string> </property>
</property> <property name="icon">
<property name="styleSheet"> <iconset resource="opmap.qrc">
<string notr="true"/> <normaloff>:/opmap/images/next_waypoint.png</normaloff>:/opmap/images/next_waypoint.png</iconset>
</property> </property>
<property name="text"> <property name="iconSize">
<string>Next WP</string> <size>
</property> <width>80</width>
<property name="icon"> <height>40</height>
<iconset resource="opmap.qrc"> </size>
<normaloff>:/opmap/images/next_waypoint.png</normaloff>:/opmap/images/next_waypoint.png</iconset> </property>
</property> <property name="toolButtonStyle">
<property name="iconSize"> <enum>Qt::ToolButtonTextUnderIcon</enum>
<size> </property>
<width>80</width> <property name="autoRaise">
<height>40</height> <bool>false</bool>
</size> </property>
</property> </widget>
<property name="toolButtonStyle"> </item>
<enum>Qt::ToolButtonTextUnderIcon</enum> <item>
</property> <widget class="QToolButton" name="toolButtonGo">
<property name="autoRaise"> <property name="sizePolicy">
<bool>false</bool> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
</property> <horstretch>0</horstretch>
</widget> <verstretch>0</verstretch>
</item> </sizepolicy>
<item> </property>
<widget class="QToolButton" name="toolButtonGo"> <property name="minimumSize">
<property name="sizePolicy"> <size>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <width>48</width>
<horstretch>0</horstretch> <height>0</height>
<verstretch>0</verstretch> </size>
</sizepolicy> </property>
</property> <property name="toolTip">
<property name="minimumSize"> <string>UAV go!</string>
<size> </property>
<width>48</width> <property name="styleSheet">
<height>0</height> <string notr="true"/>
</size> </property>
</property> <property name="text">
<property name="toolTip"> <string>Go</string>
<string>UAV go!</string> </property>
</property> <property name="icon">
<property name="styleSheet"> <iconset resource="opmap.qrc">
<string notr="true"/> <normaloff>:/opmap/images/go.png</normaloff>:/opmap/images/go.png</iconset>
</property> </property>
<property name="text"> <property name="iconSize">
<string>Go</string> <size>
</property> <width>80</width>
<property name="icon"> <height>40</height>
<iconset resource="opmap.qrc"> </size>
<normaloff>:/opmap/images/go.png</normaloff>:/opmap/images/go.png</iconset> </property>
</property> <property name="toolButtonStyle">
<property name="iconSize"> <enum>Qt::ToolButtonTextUnderIcon</enum>
<size> </property>
<width>80</width> <property name="autoRaise">
<height>40</height> <bool>false</bool>
</size> </property>
</property> </widget>
<property name="toolButtonStyle"> </item>
<enum>Qt::ToolButtonTextUnderIcon</enum> </layout>
</property> </widget>
<property name="autoRaise"> </widget>
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="layoutWidgetStatusBar_2"> <widget class="QFrame" name="frameStatusBar">
<property name="spacing"> <property name="sizePolicy">
<number>0</number> <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="leftMargin"> <property name="minimumSize">
<number>0</number> <size>
<width>0</width>
<height>0</height>
</size>
</property> </property>
<property name="rightMargin"> <property name="maximumSize">
<number>0</number> <size>
<width>16777215</width>
<height>30</height>
</size>
</property> </property>
<item> <property name="contextMenuPolicy">
<widget class="QFrame" name="frameStatusBar"> <enum>Qt::NoContextMenu</enum>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Expanding" vsizetype="Minimum"> <property name="styleSheet">
<horstretch>0</horstretch> <string notr="true">QFrame{
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="styleSheet">
<string notr="true">QFrame{
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)); 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));
color: rgba(255, 255, 255, 70); color: rgba(255, 255, 255, 70);
} }
@ -1142,214 +1092,217 @@ background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
/*border: 1px solid black;*/ /*border: 1px solid black;*/
border: none; border: none;
border-radius: 3px; border-radius: 2px;
} }
</string> </string>
</property> </property>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Plain</enum> <enum>QFrame::Plain</enum>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>3</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item>
<layout class="QHBoxLayout" name="layoutWidgetStatusBar">
<property name="spacing"> <property name="spacing">
<number>0</number> <number>5</number>
</property> </property>
<property name="leftMargin"> <property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>3</number> <number>3</number>
</property> </property>
<property name="rightMargin"> <property name="rightMargin">
<number>0</number> <number>8</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property> </property>
<item> <item>
<layout class="QHBoxLayout" name="layoutWidgetStatusBar"> <spacer name="horizontalSpacer_7">
<property name="spacing"> <property name="orientation">
<number>5</number> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="leftMargin"> <property name="sizeType">
<number>3</number> <enum>QSizePolicy::Fixed</enum>
</property> </property>
<property name="rightMargin"> <property name="sizeHint" stdset="0">
<number>8</number> <size>
<width>20</width>
<height>20</height>
</size>
</property> </property>
<item> </spacer>
<spacer name="horizontalSpacer_7"> </item>
<property name="orientation"> <item>
<enum>Qt::Horizontal</enum> <widget class="QLabel" name="labelUAVPos">
</property> <property name="sizePolicy">
<property name="sizeType"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<enum>QSizePolicy::Fixed</enum> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="sizeHint" stdset="0"> </sizepolicy>
<size> </property>
<width>20</width> <property name="font">
<height>20</height> <font>
</size> <pointsize>8</pointsize>
</property> <weight>50</weight>
</spacer> <italic>false</italic>
</item> <bold>false</bold>
<item> <kerning>true</kerning>
<widget class="QLabel" name="labelUAVPos"> </font>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <property name="toolTip">
<horstretch>0</horstretch> <string>UAV position</string>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="styleSheet">
</property> <string notr="true"/>
<property name="font"> </property>
<font> <property name="frameShape">
<pointsize>8</pointsize> <enum>QFrame::NoFrame</enum>
<weight>50</weight> </property>
<italic>false</italic> <property name="frameShadow">
<bold>false</bold> <enum>QFrame::Plain</enum>
<kerning>true</kerning> </property>
</font> <property name="text">
</property> <string>labelUAVPos</string>
<property name="toolTip"> </property>
<string>UAV position</string> <property name="alignment">
</property> <set>Qt::AlignCenter</set>
<property name="styleSheet"> </property>
<string notr="true"/> <property name="margin">
</property> <number>2</number>
<property name="frameShape"> </property>
<enum>QFrame::NoFrame</enum> </widget>
</property> </item>
<property name="frameShadow"> <item>
<enum>QFrame::Raised</enum> <widget class="QLabel" name="labelMapPos">
</property> <property name="sizePolicy">
<property name="text"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<string>labelUAVPos</string> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="alignment"> </sizepolicy>
<set>Qt::AlignCenter</set> </property>
</property> <property name="font">
<property name="margin"> <font>
<number>5</number> <pointsize>8</pointsize>
</property> <weight>50</weight>
</widget> <italic>false</italic>
</item> <bold>false</bold>
<item> <kerning>true</kerning>
<widget class="QLabel" name="labelMapPos"> </font>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <property name="toolTip">
<horstretch>0</horstretch> <string>Map position</string>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="styleSheet">
</property> <string notr="true"/>
<property name="font"> </property>
<font> <property name="frameShape">
<pointsize>8</pointsize> <enum>QFrame::NoFrame</enum>
<weight>50</weight> </property>
<italic>false</italic> <property name="text">
<bold>false</bold> <string>labelMapPos</string>
<kerning>true</kerning> </property>
</font> <property name="alignment">
</property> <set>Qt::AlignCenter</set>
<property name="toolTip"> </property>
<string>Map position</string> <property name="margin">
</property> <number>2</number>
<property name="styleSheet"> </property>
<string notr="true"/> </widget>
</property> </item>
<property name="frameShape"> <item>
<enum>QFrame::NoFrame</enum> <widget class="QLabel" name="labelMousePos">
</property> <property name="sizePolicy">
<property name="text"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<string>labelMapPos</string> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="alignment"> </sizepolicy>
<set>Qt::AlignCenter</set> </property>
</property> <property name="font">
<property name="margin"> <font>
<number>5</number> <pointsize>8</pointsize>
</property> <weight>50</weight>
</widget> <italic>false</italic>
</item> <bold>false</bold>
<item> <kerning>true</kerning>
<widget class="QLabel" name="labelMousePos"> </font>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <property name="toolTip">
<horstretch>0</horstretch> <string>Mouse position</string>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="styleSheet">
</property> <string notr="true"/>
<property name="font"> </property>
<font> <property name="frameShape">
<pointsize>8</pointsize> <enum>QFrame::NoFrame</enum>
<weight>50</weight> </property>
<italic>false</italic> <property name="frameShadow">
<bold>false</bold> <enum>QFrame::Plain</enum>
<kerning>true</kerning> </property>
</font> <property name="text">
</property> <string>labelMousePos</string>
<property name="toolTip"> </property>
<string>Mouse position</string> <property name="scaledContents">
</property> <bool>false</bool>
<property name="styleSheet"> </property>
<string notr="true"/> <property name="alignment">
</property> <set>Qt::AlignCenter</set>
<property name="frameShape"> </property>
<enum>QFrame::NoFrame</enum> <property name="margin">
</property> <number>2</number>
<property name="frameShadow"> </property>
<enum>QFrame::Plain</enum> </widget>
</property> </item>
<property name="text"> <item>
<string>labelMousePos</string> <spacer name="horizontalSpacer_3">
</property> <property name="orientation">
<property name="alignment"> <enum>Qt::Horizontal</enum>
<set>Qt::AlignCenter</set> </property>
</property> <property name="sizeHint" stdset="0">
<property name="margin"> <size>
<number>5</number> <width>40</width>
</property> <height>20</height>
</widget> </size>
</item> </property>
<item> </spacer>
<spacer name="horizontalSpacer_3"> </item>
<property name="orientation"> <item>
<enum>Qt::Horizontal</enum> <widget class="QProgressBar" name="progressBarMap">
</property> <property name="sizePolicy">
<property name="sizeHint" stdset="0"> <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<size> <horstretch>0</horstretch>
<width>40</width> <verstretch>0</verstretch>
<height>20</height> </sizepolicy>
</size> </property>
</property> <property name="minimumSize">
</spacer> <size>
</item> <width>40</width>
<item> <height>0</height>
<widget class="QProgressBar" name="progressBarMap"> </size>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed"> <property name="maximumSize">
<horstretch>0</horstretch> <size>
<verstretch>0</verstretch> <width>100</width>
</sizepolicy> <height>18</height>
</property> </size>
<property name="minimumSize"> </property>
<size> <property name="autoFillBackground">
<width>40</width> <bool>false</bool>
<height>12</height> </property>
</size> <property name="styleSheet">
</property> <string notr="true">QProgressBar {
<property name="maximumSize">
<size>
<width>100</width>
<height>20</height>
</size>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">QProgressBar {
border: none; border: none;
border-radius: 5px; border-radius: 5px;
padding: 3px; padding: 3px;
@ -1362,30 +1315,28 @@ background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0
border: none; border: none;
border-radius: 3px; border-radius: 3px;
}</string> }</string>
</property> </property>
<property name="value"> <property name="value">
<number>50</number> <number>50</number>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
</property> </property>
<property name="textVisible"> <property name="textVisible">
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="invertedAppearance"> <property name="invertedAppearance">
<bool>false</bool> <bool>false</bool>
</property> </property>
<property name="format"> <property name="format">
<string>%v</string> <string>%v</string>
</property> </property>
</widget> </widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </item>
</item> </layout>
</layout> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -84,9 +84,6 @@ OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
m_map = new mapcontrol::OPMapWidget(); m_map = new mapcontrol::OPMapWidget();
// m_map->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
m_map->setMinimumSize(64, 64);
m_map->setFrameStyle(QFrame::NoFrame); // no border frame m_map->setFrameStyle(QFrame::NoFrame); // no border frame
m_map->setBackgroundBrush(Qt::black); // black background m_map->setBackgroundBrush(Qt::black); // black background
@ -138,13 +135,16 @@ OPMapGadgetWidget::OPMapGadgetWidget(QWidget *parent) : QWidget(parent)
m_widget->labelMapPos->setText("---"); m_widget->labelMapPos->setText("---");
m_widget->labelMousePos->setText("---"); m_widget->labelMousePos->setText("---");
m_widget->splitter->setCollapsible(1, false);
// set the size of the collapsable widgets
QList<int> m_SizeList;
// m_SizeList << m_widget->splitter->sizes();
m_SizeList << 0 << 0 << 0;
m_widget->splitter->setSizes(m_SizeList);
m_widget->progressBarMap->setMaximum(1); m_widget->progressBarMap->setMaximum(1);
m_widget->frameFlightControls->setVisible(false);
m_widget->toolButtonFlightControlsShowHide->setIcon(QIcon(QString::fromUtf8(":/core/images/prev.png")));
m_widget->treeViewWaypoints->setVisible(false);
m_widget->toolButtonWaypointsTreeViewShowHide->setIcon(QIcon(QString::fromUtf8(":/core/images/next.png")));
/* /*
#if defined(Q_OS_MAC) #if defined(Q_OS_MAC)
#elif defined(Q_OS_WIN) #elif defined(Q_OS_WIN)
@ -699,32 +699,6 @@ void OPMapGadgetWidget::on_toolButtonZoomM_clicked()
zoomOut(); zoomOut();
} }
void OPMapGadgetWidget::on_toolButtonWaypointsTreeViewShowHide_clicked()
{
if (m_widget)
{
m_widget->treeViewWaypoints->setVisible(!m_widget->treeViewWaypoints->isVisible());
if (m_widget->treeViewWaypoints->isVisible())
m_widget->toolButtonWaypointsTreeViewShowHide->setIcon(QIcon(QString::fromUtf8(":/core/images/prev.png")));
else
m_widget->toolButtonWaypointsTreeViewShowHide->setIcon(QIcon(QString::fromUtf8(":/core/images/next.png")));
}
}
void OPMapGadgetWidget::on_toolButtonFlightControlsShowHide_clicked()
{
if (m_widget)
{
m_widget->frameFlightControls->setVisible(!m_widget->frameFlightControls->isVisible());
if (m_widget->frameFlightControls->isVisible())
m_widget->toolButtonFlightControlsShowHide->setIcon(QIcon(QString::fromUtf8(":/core/images/next.png")));
else
m_widget->toolButtonFlightControlsShowHide->setIcon(QIcon(QString::fromUtf8(":/core/images/prev.png")));
}
}
void OPMapGadgetWidget::on_toolButtonMapHome_clicked() void OPMapGadgetWidget::on_toolButtonMapHome_clicked()
{ {
followUAVpositionAct->setChecked(false); followUAVpositionAct->setChecked(false);
@ -784,12 +758,6 @@ void OPMapGadgetWidget::on_toolButtonAddWaypoint_clicked()
m_waypoint_list_mutex.unlock(); m_waypoint_list_mutex.unlock();
} }
void OPMapGadgetWidget::on_toolButtonWaypointEditor_clicked()
{
if (wayPointEditorAct->isEnabled())
wayPointEditorAct->trigger();
}
void OPMapGadgetWidget::on_treeViewWaypoints_clicked(QModelIndex index) void OPMapGadgetWidget::on_treeViewWaypoints_clicked(QModelIndex index)
{ {
QStandardItem *item = wayPoint_treeView_model.itemFromIndex(index); QStandardItem *item = wayPoint_treeView_model.itemFromIndex(index);

View File

@ -113,13 +113,10 @@ private slots:
void on_toolButtonFindPlace_clicked(); void on_toolButtonFindPlace_clicked();
void on_toolButtonZoomM_clicked(); void on_toolButtonZoomM_clicked();
void on_toolButtonZoomP_clicked(); void on_toolButtonZoomP_clicked();
void on_toolButtonWaypointsTreeViewShowHide_clicked();
void on_toolButtonFlightControlsShowHide_clicked();
void on_toolButtonMapHome_clicked(); void on_toolButtonMapHome_clicked();
void on_toolButtonMapUAV_clicked(); void on_toolButtonMapUAV_clicked();
void on_horizontalSliderZoom_sliderMoved(int position); void on_horizontalSliderZoom_sliderMoved(int position);
void on_toolButtonAddWaypoint_clicked(); void on_toolButtonAddWaypoint_clicked();
void on_toolButtonWaypointEditor_clicked();
void on_treeViewWaypoints_clicked(QModelIndex index); void on_treeViewWaypoints_clicked(QModelIndex index);
void on_toolButtonHome_clicked(); void on_toolButtonHome_clicked();
void on_toolButtonNextWaypoint_clicked(); void on_toolButtonNextWaypoint_clicked();