summaryrefslogtreecommitdiffstats
path: root/qt-ui/shifttimes.ui
diff options
context:
space:
mode:
authorGravatar Gehad <gehadelrobey@gmail.com>2014-03-20 22:57:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-21 21:26:09 -0700
commit8ca4437624ad84b9bec934436cc42182e96f359a (patch)
treeff84eba5c3adc66307509904fb47071f5b828707 /qt-ui/shifttimes.ui
parentcc2369c5f9dbaebb8fae2e652e27f189d0454fc1 (diff)
downloadsubsurface-8ca4437624ad84b9bec934436cc42182e96f359a.tar.gz
Add current time and adjusted time to gui when adjusting dive's timestamp
This patch adds the current dive time and the adjusted time to the time shift window. I added a function to dive.c to get the timestamp of the first selected dive. This will view the time of the first selected dive only even when multi dives are selected but it does change the times for multiple dives properly. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/shifttimes.ui')
-rw-r--r--qt-ui/shifttimes.ui46
1 files changed, 45 insertions, 1 deletions
diff --git a/qt-ui/shifttimes.ui b/qt-ui/shifttimes.ui
index 55932a2d3..8aaa247ce 100644
--- a/qt-ui/shifttimes.ui
+++ b/qt-ui/shifttimes.ui
@@ -10,7 +10,7 @@
<x>0</x>
<y>0</y>
<width>343</width>
- <height>177</height>
+ <height>224</height>
</rect>
</property>
<property name="sizePolicy">
@@ -65,6 +65,38 @@
<number>9</number>
</property>
<item>
+ <layout class="QFormLayout" name="formLayout">
+ <item row="2" column="0">
+ <widget class="QLabel" name="shiftedTimeLabel">
+ <property name="text">
+ <string>Shifted time:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="currentTimeLabel">
+ <property name="text">
+ <string>Current time:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLabel" name="currentTime">
+ <property name="text">
+ <string>0:0</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QLabel" name="shiftedTime">
+ <property name="text">
+ <string>0:0</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
<widget class="QTimeEdit" name="timeEdit">
<property name="date">
<date>
@@ -166,5 +198,17 @@
</hint>
</hints>
</connection>
+ <connection>
+ <sender>timeEdit</sender>
+ <signal>timeChanged(const QTime)</signal>
+ <receiver>ShiftTimesDialog</receiver>
+ <slot>changeTime()</slot>
+ </connection>
+ <connection>
+ <sender>backwards</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>ShiftTimesDialog</receiver>
+ <slot>changeTime()</slot>
+ </connection>
</connections>
</ui>