summaryrefslogtreecommitdiffstats
path: root/qt-ui/downloadfromdivecomputer.ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-20 16:43:33 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-20 16:43:33 -0300
commitc7a5d0490fa5f4e8579e6a8e0fbdc7baf7c34145 (patch)
tree615ec1dbf0887d0e1ffeecf4ed7b1600ca0c0d6a /qt-ui/downloadfromdivecomputer.ui
parent15bb4fccbb14c0e69637ca5920a1e68071700b8e (diff)
downloadsubsurface-c7a5d0490fa5f4e8579e6a8e0fbdc7baf7c34145.tar.gz
Skeleton code for a non-blocking UI thread for downloading dives from the DC
This is the skeleton code for a non-blocking ui-thread It already creates the first-thread ( 'do not block the ui' ) and the second thread ('download from the dive computer') We can in the future merge both in the same place - I didn't want to do that now because the download function is written in the libdivecomputer.c code, and I cant just transform that to a QThread and use signals, so I used two threads for that. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/downloadfromdivecomputer.ui')
-rw-r--r--qt-ui/downloadfromdivecomputer.ui110
1 files changed, 110 insertions, 0 deletions
diff --git a/qt-ui/downloadfromdivecomputer.ui b/qt-ui/downloadfromdivecomputer.ui
new file mode 100644
index 000000000..924b886aa
--- /dev/null
+++ b/qt-ui/downloadfromdivecomputer.ui
@@ -0,0 +1,110 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>DownloadFromDiveComputer</class>
+ <widget class="QDialog" name="DownloadFromDiveComputer">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>331</width>
+ <height>199</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Form</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QLabel" name="label">
+ <property name="text">
+ <string>Vendor</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1" colspan="2">
+ <widget class="QLabel" name="label_2">
+ <property name="text">
+ <string>Dive Computer</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QComboBox" name="vendor"/>
+ </item>
+ <item row="1" column="1" colspan="2">
+ <widget class="QComboBox" name="diveComputerName"/>
+ </item>
+ <item row="2" column="0" colspan="3">
+ <widget class="QLabel" name="label_3">
+ <property name="text">
+ <string>Device or Mount Point</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="0" colspan="2">
+ <widget class="QLineEdit" name="mountPoint"/>
+ </item>
+ <item row="3" column="2">
+ <widget class="QToolButton" name="search">
+ <property name="text">
+ <string>...</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0" colspan="3">
+ <widget class="QCheckBox" name="forceDownload">
+ <property name="text">
+ <string>Force download of all dives</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="0" colspan="3">
+ <widget class="QCheckBox" name="preferDownloaded">
+ <property name="text">
+ <string>Always prefer downloaded dives</string>
+ </property>
+ </widget>
+ </item>
+ <item row="6" column="0" colspan="3">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="ok">
+ <property name="text">
+ <string>OK</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="cancel">
+ <property name="text">
+ <string>Cancel</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="7" column="0" colspan="3">
+ <widget class="QProgressBar" name="progressBar">
+ <property name="value">
+ <number>24</number>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>