aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DownloadFromDiveComputer.qml
blob: d237544074109ecb8bbf9e090c6b84edc017af38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
import org.subsurfacedivelog.mobile 1.0

Item {
	id: diveComputerDownloadWindow
	anchors.top: parent.top
	width: parent.width
	height: parent.height

	GridLayout {
		columns: 2
		anchors.top: parent.top
		width: parent.width
		height: parent.height
		ColumnLayout {
			height: parent.height
			width: parent.width
			ColumnLayout {
				width: parent.width
				Layout.fillHeight: true
				ColumnLayout {
					Layout.fillHeight: true
					Layout.fillWidth: true
					ColumnLayout {
						height: parent.height
						Layout.fillWidth: true
						Text { text: "Vendor" }
						ComboBox { Layout.fillWidth: true }
						Text { text: "Dive Computer" }
						ComboBox { Layout.fillWidth: true }
						Text { text: "Device or mount point" }
						RowLayout {
							Layout.fillWidth: true
							TextField { Layout.fillWidth: true }
							Button { text: "..." }
						}
						GridLayout {
							columns: 2
							CheckBox { text: "Force download of all dives" }
							CheckBox { text: "Always prefer downloaded dives" }
							CheckBox { text: "Download into new trip" }
							CheckBox { text: "Save libdivecomputer logfile" }
							CheckBox { text: "Save libdivecomputer dumpfile" }
							CheckBox { text: "Choose Bluetooth download mode" }
						}

						RowLayout {
							Layout.fillWidth: true
							ProgressBar { Layout.fillWidth: true }
							Button { text: "Download" }
						}
					}
				}
				ColumnLayout {
					height: parent.height
					Layout.fillWidth: true
					RowLayout {
						Text {
							text: "Downloaded dives"
						}
						Button {
							text: "Select All"
						}
						Button {
							text: "Unselect All"
						}
					}
					TableView {
						Layout.fillWidth: true
						Layout.fillHeight: true
					}
				}
			}
			RowLayout {
				width: parent.width
				Button {
					text: "OK"

					onClicked: {
						stackView.pop();
					}
				}
				Button {
					text: "Cancel"

					onClicked: {
						stackView.pop();
					}
				}
			}
		}
	}
}