diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-30 11:44:27 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-05-30 11:44:27 -0300 |
commit | 085dca69e53255c717794c76d4a23a569936ed8e (patch) | |
tree | ddf92dec671af211bd061a973721b5ade120d78b /qt-ui/maintab.ui | |
parent | 2df3c33d5d20074a4a9bc36253a788274c96bd4e (diff) | |
download | subsurface-085dca69e53255c717794c76d4a23a569936ed8e.tar.gz |
Redesign of the Statistics tab try1
This moves the contents of the statistics tab to groupboxes,
so it's similar to what we had in GTK, but a bit prettier.
it's not what I plan to do in the final form, since I think
that a few 'min max avg' can be in it's own widget ( and maybe
a cute graph showing the values would also be nice. ) but its
an improvement from what we had.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/maintab.ui')
-rw-r--r-- | qt-ui/maintab.ui | 622 |
1 files changed, 274 insertions, 348 deletions
diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui index eed6b1c2e..2b9f74b30 100644 --- a/qt-ui/maintab.ui +++ b/qt-ui/maintab.ui @@ -6,15 +6,15 @@ <rect> <x>0</x> <y>0</y> - <width>400</width> - <height>368</height> + <width>692</width> + <height>513</height> </rect> </property> <property name="windowTitle"> <string>TabWidget</string> </property> <property name="currentIndex"> - <number>1</number> + <number>3</number> </property> <widget class="QWidget" name="notesTab"> <attribute name="title"> @@ -158,8 +158,8 @@ <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QTableView" name="cylinders"> - <property name="styleSheet"> - <string notr="true"> QTableView { + <property name="styleSheet"> + <string notr="true"> QTableView { show-decoration-selected: 1; } @@ -188,11 +188,11 @@ } </string> - </property> - <property name="alternatingRowColors"> - <bool>true</bool> - </property> -</widget> + </property> + <property name="alternatingRowColors"> + <bool>true</bool> + </property> + </widget> </item> </layout> </widget> @@ -523,348 +523,274 @@ <attribute name="title"> <string>Stats</string> </attribute> - <layout class="QVBoxLayout" name="verticalLayout_4"> - <item> - <spacer name="verticalSpacer_6"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> + <layout class="QGridLayout" name="gridLayout"> + <item row="2" column="0"> + <widget class="QGroupBox" name="groupBox_8"> + <property name="title"> + <string>Max. Temp.</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_5"> + <item> + <widget class="QLabel" name="maximumTemperatureAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> </item> - <item> - <layout class="QGridLayout" name="statsUpperGridLayout"> - <property name="margin"> - <number>10</number> - </property> - <property name="spacing"> - <number>15</number> - </property> - <item row="0" column="0"> - <widget class="QLabel" name="maximumDepthAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Max. Depth</string> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QLabel" name="minimumDepthAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Min. Depth</string> - </property> - </widget> - </item> - <item row="0" column="2"> - <widget class="QLabel" name="averageDepthAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Ave. Depth</string> - </property> - </widget> - </item> - <item row="1" column="0"> - <widget class="QLabel" name="maximumDepthAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="1" column="1"> - <widget class="QLabel" name="minimumDepthAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="1" column="2"> - <widget class="QLabel" name="averageDepthAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="2" column="0"> - <widget class="QLabel" name="maximumSacAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Max. SAC</string> - </property> - </widget> - </item> - <item row="2" column="1"> - <widget class="QLabel" name="minimumSacAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Min. SAC</string> - </property> - </widget> - </item> - <item row="2" column="2"> - <widget class="QLabel" name="averageSacAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Ave. SAC</string> - </property> - </widget> - </item> - <item row="3" column="0"> - <widget class="QLabel" name="maximumSacAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="3" column="1"> - <widget class="QLabel" name="minimumSacAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="3" column="2"> - <widget class="QLabel" name="averageSacAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - </layout> + <item row="0" column="1"> + <widget class="QGroupBox" name="groupBox_2"> + <property name="title"> + <string>Min Depth</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <widget class="QLabel" name="minimumDepthAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> </item> - <item> - <spacer name="verticalSpacer_5"> - <property name="orientation"> - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" stdset="0"> - <size> - <width>20</width> - <height>20</height> - </size> - </property> - </spacer> + <item row="0" column="0"> + <widget class="QGroupBox" name="groupBox"> + <property name="title"> + <string>Max. Depth</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <widget class="QLabel" name="maximumDepthAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + <zorder>maximumDepthAllText</zorder> + <zorder>minimumDepthAllText</zorder> + </widget> </item> - <item> - <layout class="QGridLayout" name="statsLowerGridLayout"> - <property name="margin"> - <number>10</number> - </property> - <property name="spacing"> - <number>15</number> - </property> - <item row="0" column="0"> - <widget class="QLabel" name="divesAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Dives</string> - </property> - <property name="alignment"> - <set>Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft</set> - </property> - </widget> - </item> - <item row="0" column="1"> - <widget class="QLabel" name="maximumTemperatureLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Max. Temp.</string> - </property> - </widget> - </item> - <item row="0" column="2"> - <widget class="QLabel" name="minimumTemperatureAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Min. Temp.</string> - </property> - </widget> - </item> - <item row="0" column="3"> - <widget class="QLabel" name="averageTemperatureAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Ave. Temp.</string> - </property> - </widget> - </item> - <item row="1" column="0"> - <widget class="QLabel" name="divesAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="1" column="1"> - <widget class="QLabel" name="maximumTemperatureAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="1" column="2"> - <widget class="QLabel" name="minimumTemperatureAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="1" column="3"> - <widget class="QLabel" name="averageTemperatureAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="2" column="0"> - <widget class="QLabel" name="totalTimeAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Total Time</string> - </property> - </widget> - </item> - <item row="2" column="1"> - <widget class="QLabel" name="averageTimeAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Ave. Time</string> - </property> - </widget> - </item> - <item row="2" column="2"> - <widget class="QLabel" name="longestAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Longest</string> - </property> - </widget> - </item> - <item row="2" column="3"> - <widget class="QLabel" name="shortestAllLabel"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Shortest</string> - </property> - </widget> - </item> - <item row="3" column="0"> - <widget class="QLabel" name="totalTimeAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="3" column="1"> - <widget class="QLabel" name="averageTimeAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="3" column="2"> - <widget class="QLabel" name="longestAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - <item row="3" column="3"> - <widget class="QLabel" name="shortestAllText"> - <property name="text"> - <string>TextLabel</string> - </property> - </widget> - </item> - </layout> + <item row="2" column="2"> + <widget class="QGroupBox" name="groupBox_10"> + <property name="title"> + <string>Ave. Temp.</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_7"> + <item> + <widget class="QLabel" name="averageTemperatureAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </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>20</height> - </size> - </property> - </spacer> + <item row="4" column="2"> + <widget class="QGroupBox" name="groupBox_12"> + <property name="title"> + <string>Ave. Time</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_13"> + <item> + <widget class="QLabel" name="averageTimeAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="2" column="1"> + <widget class="QGroupBox" name="groupBox_9"> + <property name="title"> + <string>Min. Temp.</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <item> + <widget class="QLabel" name="minimumTemperatureAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="0" column="2"> + <widget class="QGroupBox" name="groupBox_3"> + <property name="title"> + <string>Ave. Depth</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <item> + <widget class="QLabel" name="averageDepthAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="3" column="0"> + <widget class="QGroupBox" name="groupBox_4"> + <property name="title"> + <string>Max. SAC</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_10"> + <item> + <widget class="QLabel" name="maximumSacAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="3" column="1"> + <widget class="QGroupBox" name="groupBox_5"> + <property name="title"> + <string>Min. SAC</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_9"> + <item> + <widget class="QLabel" name="minimumSacAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="3" column="2"> + <widget class="QGroupBox" name="groupBox_6"> + <property name="title"> + <string>Ave. SAC</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <item> + <widget class="QLabel" name="averageSacAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="7" column="0"> + <widget class="QGroupBox" name="groupBox_7"> + <property name="title"> + <string>Dives</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_15"> + <item> + <widget class="QLabel" name="divesAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="4" column="1"> + <widget class="QGroupBox" name="groupBox_13"> + <property name="title"> + <string>Longest</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_12"> + <item> + <widget class="QLabel" name="longestAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="4" column="0"> + <widget class="QGroupBox" name="groupBox_11"> + <property name="title"> + <string>Total Time</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_11"> + <item> + <widget class="QLabel" name="totalTimeAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item row="7" column="1"> + <widget class="QGroupBox" name="groupBox_14"> + <property name="title"> + <string>Shortest</string> + </property> + <layout class="QHBoxLayout" name="horizontalLayout_14"> + <item> + <widget class="QLabel" name="shortestAllText"> + <property name="text"> + <string>TextLabel</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </widget> </item> </layout> </widget> |