diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-02-13 16:43:55 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-17 10:59:30 -0800 |
commit | bbb071f1e8e9429ea49d869437a56d2876fb8287 (patch) | |
tree | c8a761f7106ca047d59cee61af92071e61355a33 /qt-ui/shiftimagetimes.ui | |
parent | fe2a264db3ee9ef49c87e5530d8d198357cd43b5 (diff) | |
download | subsurface-bbb071f1e8e9429ea49d869437a56d2876fb8287.tar.gz |
Compute dive computer/camera time offset from sample picture
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/shiftimagetimes.ui')
-rw-r--r-- | qt-ui/shiftimagetimes.ui | 152 |
1 files changed, 137 insertions, 15 deletions
diff --git a/qt-ui/shiftimagetimes.ui b/qt-ui/shiftimagetimes.ui index 653103b53..0e91ad63f 100644 --- a/qt-ui/shiftimagetimes.ui +++ b/qt-ui/shiftimagetimes.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>343</width> - <height>177</height> + <width>693</width> + <height>606</height> </rect> </property> <property name="sizePolicy"> @@ -25,7 +25,7 @@ </iconset> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> - <item alignment="Qt::AlignTop"> + <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>Shift times of image(s) by</string> @@ -40,6 +40,16 @@ <day>1</day> </date> </property> + <property name="maximumDateTime"> + <datetime> + <hour>23</hour> + <minute>59</minute> + <second>59</second> + <year>2010</year> + <month>12</month> + <day>31</day> + </datetime> + </property> <property name="minimumDateTime"> <datetime> <hour>0</hour> @@ -52,13 +62,31 @@ </property> <property name="maximumDate"> <date> + <year>2010</year> + <month>12</month> + <day>31</day> + </date> + </property> + <property name="minimumDate"> + <date> <year>2000</year> <month>1</month> <day>1</day> </date> </property> - <property name="displayFormat"> - <string>h:mm</string> + <property name="maximumTime"> + <time> + <hour>23</hour> + <minute>59</minute> + <second>59</second> + </time> + </property> + <property name="minimumTime"> + <time> + <hour>0</hour> + <minute>0</minute> + <second>0</second> + </time> </property> <property name="timeSpec"> <enum>Qt::LocalTime</enum> @@ -82,19 +110,113 @@ </property> </widget> </item> + <item> + <widget class="QDialogButtonBox" name="buttonBox"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="standardButtons"> + <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> + </property> + </widget> + </item> + <item> + <widget class="Line" name="line"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label"> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>60</height> + </size> + </property> + <property name="layoutDirection"> + <enum>Qt::LeftToRight</enum> + </property> + <property name="text"> + <string>To compute the offset between the clocks of your dive computer and your camera use your camera to take a picture of your dive compuer displaying the current time. Download that image to your computer and press this button.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="syncCamera"> + <property name="toolTip"> + <string>Determine camera time offset</string> + </property> + <property name="text"> + <string>Select image of divecomputer showing time</string> + </property> + </widget> + </item> + <item> + <widget class="QGroupBox" name="displayDC"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="title"> + <string/> + </property> + <widget class="QDateTimeEdit" name="dcTime"> + <property name="geometry"> + <rect> + <x>0</x> + <y>70</y> + <width>161</width> + <height>24</height> + </rect> + </property> + </widget> + <widget class="QLabel" name="label_2"> + <property name="geometry"> + <rect> + <x>0</x> + <y>10</y> + <width>234</width> + <height>60</height> + </rect> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>60</height> + </size> + </property> + <property name="text"> + <string>Which date and time are displayed on the image?</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + <widget class="QGraphicsView" name="DCImage"> + <property name="geometry"> + <rect> + <x>260</x> + <y>10</y> + <width>361</width> + <height>281</height> + </rect> + </property> + <property name="verticalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + <property name="horizontalScrollBarPolicy"> + <enum>Qt::ScrollBarAlwaysOff</enum> + </property> + </widget> + </widget> + </item> </layout> </widget> </item> - <item> - <widget class="QDialogButtonBox" name="buttonBox"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="standardButtons"> - <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> - </property> - </widget> - </item> </layout> </widget> <resources> |