This is a redesign-tryout of the Info panel.

This is a redesign-tryout of the info panel, it's not the way
that I want to do, actually - I think that textual representations
are quite boring, and we can do much better if we use better widgets,
for instance, a Calendar to show the date, a Termometer to show
the temperatures and so on. This version has a fixed layout, but
I'll most probably try to make it more dynamic in the future.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-05-30 11:22:33 -03:00
parent 2df3c33d5d
commit 533d18e069

View file

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>400</width> <width>409</width>
<height>368</height> <height>368</height>
</rect> </rect>
</property> </property>
@ -14,7 +14,7 @@
<string>TabWidget</string> <string>TabWidget</string>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>2</number>
</property> </property>
<widget class="QWidget" name="notesTab"> <widget class="QWidget" name="notesTab">
<attribute name="title"> <attribute name="title">
@ -214,105 +214,30 @@
<attribute name="title"> <attribute name="title">
<string>Dive Info</string> <string>Dive Info</string>
</attribute> </attribute>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QGridLayout" name="gridLayout">
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QGridLayout" name="diveInfoUpperGridLayout">
<property name="horizontalSpacing">
<number>10</number>
</property>
<property name="verticalSpacing">
<number>15</number>
</property>
<property name="margin">
<number>10</number>
</property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="sacLabel"> <widget class="QGroupBox" name="groupBox">
<property name="font"> <property name="title">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>SAC</string> <string>SAC</string>
</property> </property>
</widget> <layout class="QHBoxLayout" name="horizontalLayout_2">
</item> <item>
<item row="0" column="1">
<widget class="QLabel" name="outLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>OTU</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLabel" name="oxygenHeliumLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>0²/He</string>
</property>
</widget>
</item>
<item row="0" column="3">
<widget class="QLabel" name="gasUsedLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Gas Used</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLabel" name="gasUsedText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="sacText"> <widget class="QLabel" name="sacText">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> </layout>
<widget class="QLabel" name="otuText">
<property name="text">
<string>TextLabel</string>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="2"> <item row="0" column="1">
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>O²/HE</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="oxygenHeliumText"> <widget class="QLabel" name="oxygenHeliumText">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
@ -320,202 +245,167 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QGridLayout" name="diveInfoLowerGridLayout">
<property name="margin">
<number>10</number>
</property>
<property name="spacing">
<number>15</number>
</property>
<item row="0" column="0">
<widget class="QLabel" name="dateLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Date</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="maximumDepthText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="waterTempertureLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Water Temp.</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QLabel" name="airTemperatureText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="diveTimeText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="1" column="2">
<widget class="QLabel" name="surfaceIntervalText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="4" column="2">
<widget class="QLabel" name="airPressureLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Air Pressure</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="averageDepthLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Ave. Depth</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="maximumDepthLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Max. Depth</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="airTempertatureLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Air Temp.</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="averageDepthText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="5" column="2">
<widget class="QLabel" name="airPressureText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="waterTemperatureText">
<property name="text">
<string>TextLabel</string>
</property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>OTU</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="otuText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="4" column="0">
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>Date</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="dateText"> <widget class="QLabel" name="dateText">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>TextLabel</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="2"> </layout>
<widget class="QLabel" name="surfaceIntervalLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Interval</string>
</property>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="5" column="0">
<widget class="QLabel" name="diveTimeLabel"> <widget class="QGroupBox" name="groupBox_10">
<property name="font"> <property name="title">
<font> <string>Air Pressure</string>
<weight>75</weight>
<bold>true</bold>
</font>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLabel" name="airPressureText">
<property name="text"> <property name="text">
<string>Dive Time</string> <string>TextLabel</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</item> </item>
<item row="4" column="1">
<widget class="QGroupBox" name="groupBox_9">
<property name="title">
<string>Air Temperature</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_11">
<item> <item>
<spacer name="verticalSpacer"> <widget class="QLabel" name="airTemperatureText">
<property name="orientation"> <property name="text">
<enum>Qt::Vertical</enum> <string>TextLabel</string>
</property> </property>
<property name="sizeHint" stdset="0"> </widget>
<size> </item>
<width>20</width> </layout>
<height>40</height> </widget>
</size> </item>
<item row="0" column="2">
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Gas Used</string>
</property> </property>
</spacer> <layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLabel" name="gasUsedText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>Max. Depth</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="maximumDepthText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="2">
<widget class="QGroupBox" name="groupBox_7">
<property name="title">
<string>Ave. Depth</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_8">
<item>
<widget class="QLabel" name="averageDepthText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="4" column="2">
<widget class="QGroupBox" name="groupBox_8">
<property name="title">
<string>Water Temperature</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLabel" name="waterTemperatureText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="5" column="1">
<widget class="QGroupBox" name="groupBox_12">
<property name="title">
<string>Interval</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_13">
<item>
<widget class="QLabel" name="surfaceIntervalText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="5" column="2">
<widget class="QGroupBox" name="groupBox_11">
<property name="title">
<string>Dive Time</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_12">
<item>
<widget class="QLabel" name="diveTimeText">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
</layout>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>