summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.ui
diff options
context:
space:
mode:
authorGravatar Robert Helling <helling@lmu.de>2014-06-26 17:04:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-26 15:40:16 -0700
commitd2a834b0cdcf9adae750192dbb04f8a3efeeb74a (patch)
tree1dcd5d7ca1d1210b6eefa21314f2c099ceaa93d0 /qt-ui/mainwindow.ui
parent5b5a25db780187ed34a9388a4b111bb44c1ce548 (diff)
downloadsubsurface-d2a834b0cdcf9adae750192dbb04f8a3efeeb74a.tar.gz
Rearrange planner UI elements
This is my first attempt at grouping UI elements of the planner in a sensible way. It might still be sensible to combine the two bottom panes into one. In addition there is a new field "altutude" which is sychronized with the surface pressure as for planning we often know the altitude of the dive site rather than the atmospheric pressure. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.ui')
-rw-r--r--qt-ui/mainwindow.ui187
1 files changed, 108 insertions, 79 deletions
diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui
index 8369b0e4b..d113cd7f6 100644
--- a/qt-ui/mainwindow.ui
+++ b/qt-ui/mainwindow.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>1418</width>
- <height>1084</height>
+ <width>1682</width>
+ <height>1151</height>
</rect>
</property>
<widget class="QWidget" name="centralwidget">
@@ -38,7 +38,7 @@
</property>
<widget class="QStackedWidget" name="infoPane">
<property name="currentIndex">
- <number>0</number>
+ <number>1</number>
</property>
<widget class="QWidget" name="page">
<layout class="QHBoxLayout" name="horizontalLayout_3">
@@ -109,43 +109,30 @@
<property name="spacing">
<number>0</number>
</property>
- <item row="0" column="0">
- <widget class="QToolButton" name="profPO2">
- <property name="toolTip">
- <string>Enable the pO2 Graph</string>
- </property>
- <property name="text">
- <string>...</string>
- </property>
- <property name="icon">
- <iconset resource="../subsurface.qrc">
- <normaloff>:/icon_o2</normaloff>:/icon_o2</iconset>
+ <item row="14" column="0">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
</property>
- <property name="iconSize">
+ <property name="sizeHint" stdset="0">
<size>
- <width>24</width>
- <height>24</height>
+ <width>20</width>
+ <height>40</height>
</size>
</property>
- <property name="checkable">
- <bool>true</bool>
- </property>
- <property name="autoRaise">
- <bool>true</bool>
- </property>
- </widget>
+ </spacer>
</item>
- <item row="1" column="0">
- <widget class="QToolButton" name="profPn2">
+ <item row="2" column="0">
+ <widget class="QToolButton" name="profPhe">
<property name="toolTip">
- <string>Enable the pN2 Graph</string>
+ <string>Enable the pHe graph</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:/icon_n2</normaloff>:/icon_n2</iconset>
+ <normaloff>:/icon_he</normaloff>:/icon_he</iconset>
</property>
<property name="iconSize">
<size>
@@ -161,17 +148,17 @@
</property>
</widget>
</item>
- <item row="2" column="0">
- <widget class="QToolButton" name="profPhe">
+ <item row="5" column="0">
+ <widget class="QToolButton" name="profCalcAllTissues">
<property name="toolTip">
- <string>Enable the pHe graph</string>
+ <string>Calculate All Tissues</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:/icon_he</normaloff>:/icon_he</iconset>
+ <normaloff>:/icon_ceiling_alltissues</normaloff>:/icon_ceiling_alltissues</iconset>
</property>
<property name="iconSize">
<size>
@@ -245,17 +232,17 @@
</property>
</widget>
</item>
- <item row="5" column="0">
- <widget class="QToolButton" name="profCalcAllTissues">
+ <item row="10" column="0">
+ <widget class="QToolButton" name="profNdl_tts">
<property name="toolTip">
- <string>Calculate All Tissues</string>
+ <string>Show NDL / TTS</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:/icon_ceiling_alltissues</normaloff>:/icon_ceiling_alltissues</iconset>
+ <normaloff>:/icon_NDLTTS</normaloff>:/icon_NDLTTS</iconset>
</property>
<property name="iconSize">
<size>
@@ -375,17 +362,17 @@
</property>
</widget>
</item>
- <item row="10" column="0">
- <widget class="QToolButton" name="profNdl_tts">
+ <item row="11" column="0">
+ <widget class="QToolButton" name="profSAC">
<property name="toolTip">
- <string>Show NDL / TTS</string>
+ <string>Show SAC Rate</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:/icon_NDLTTS</normaloff>:/icon_NDLTTS</iconset>
+ <normaloff>:/icon_lung</normaloff>:/icon_lung</iconset>
</property>
<property name="iconSize">
<size>
@@ -401,17 +388,17 @@
</property>
</widget>
</item>
- <item row="11" column="0">
- <widget class="QToolButton" name="profSAC">
+ <item row="13" column="0">
+ <widget class="QToolButton" name="profScaled">
<property name="toolTip">
- <string>Show SAC Rate</string>
+ <string>Rescale depth axis</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:/icon_lung</normaloff>:/icon_lung</iconset>
+ <normaloff>:/scale</normaloff>:/scale</iconset>
</property>
<property name="iconSize">
<size>
@@ -453,17 +440,17 @@
</property>
</widget>
</item>
- <item row="13" column="0">
- <widget class="QToolButton" name="profScaled">
+ <item row="0" column="0">
+ <widget class="QToolButton" name="profPO2">
<property name="toolTip">
- <string>Rescale depth axis</string>
+ <string>Enable the pO2 Graph</string>
</property>
<property name="text">
<string>...</string>
</property>
<property name="icon">
<iconset resource="../subsurface.qrc">
- <normaloff>:/scale</normaloff>:/scale</iconset>
+ <normaloff>:/icon_o2</normaloff>:/icon_o2</iconset>
</property>
<property name="iconSize">
<size>
@@ -479,21 +466,34 @@
</property>
</widget>
</item>
- <item row="0" column="1" rowspan="15">
- <widget class="ProfileWidget2" name="newProfile"/>
- </item>
- <item row="14" column="0">
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
+ <item row="1" column="0">
+ <widget class="QToolButton" name="profPn2">
+ <property name="toolTip">
+ <string>Enable the pN2 Graph</string>
</property>
- <property name="sizeHint" stdset="0">
+ <property name="text">
+ <string>...</string>
+ </property>
+ <property name="icon">
+ <iconset resource="../subsurface.qrc">
+ <normaloff>:/icon_n2</normaloff>:/icon_n2</iconset>
+ </property>
+ <property name="iconSize">
<size>
- <width>20</width>
- <height>40</height>
+ <width>24</width>
+ <height>24</height>
</size>
</property>
- </spacer>
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="autoRaise">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1" rowspan="15">
+ <widget class="ProfileWidget2" name="newProfile"/>
</item>
</layout>
</widget>
@@ -504,7 +504,7 @@
</property>
<widget class="QStackedWidget" name="diveListPane">
<property name="currentIndex">
- <number>0</number>
+ <number>1</number>
</property>
<widget class="DiveListView" name="ListWidget">
<property name="alternatingRowColors">
@@ -548,9 +548,9 @@
</widget>
<widget class="QStackedWidget" name="globePane">
<property name="currentIndex">
- <number>0</number>
+ <number>1</number>
</property>
- <widget class="QWidget" name="stackedWidgetPage1" native="true">
+ <widget class="QWidget" name="stackedWidgetPage1">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
@@ -570,22 +570,54 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_4">
+ <layout class="QVBoxLayout" name="verticalLayout_3">
<item>
- <widget class="QLabel" name="divePlanOutputLabel">
- <property name="maximumSize">
- <size>
- <width>16777215</width>
- <height>20</height>
- </size>
- </property>
- <property name="text">
- <string>Dive plan details</string>
- </property>
- </widget>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QLabel" name="divePlanOutputLabel">
+ <property name="maximumSize">
+ <size>
+ <width>16777215</width>
+ <height>20</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;Dive plan details&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ </property>
+ <property name="textFormat">
+ <enum>Qt::RichText</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="printPlan">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Print</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ <property name="default">
+ <bool>false</bool>
+ </property>
+ <property name="flat">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
<item>
<widget class="QTextEdit" name="divePlanOutput">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
@@ -614,10 +646,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item>
- <widget class="KMessageWidget" name="mainErrorMessage" native="true">
- <zorder>mainSplitter</zorder>
- <zorder>mainSplitter</zorder>
- </widget>
+ <widget class="KMessageWidget" name="mainErrorMessage" native="true"/>
</item>
</layout>
</widget>
@@ -626,7 +655,7 @@ p, li { white-space: pre-wrap; }
<rect>
<x>0</x>
<y>0</y>
- <width>1418</width>
+ <width>1682</width>
<height>22</height>
</rect>
</property>