mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
37d841966f
Patch #2 that formats the table to be used for downloaded dives. Signed-off-by: Willem Ferguson <willem@localhost.localdomain> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
137 lines
4.2 KiB
QML
137 lines
4.2 KiB
QML
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
|
|
RowLayout {
|
|
Text { text: " Vendor name : " }
|
|
ComboBox { Layout.fillWidth: true }
|
|
}
|
|
RowLayout {
|
|
Text { text: " Dive Computer:" }
|
|
ComboBox { Layout.fillWidth: true }
|
|
}
|
|
// Text { text: "Device or mount point" }
|
|
// RowLayout {
|
|
// Layout.fillWidth: true
|
|
// TextField { Layout.fillWidth: true }
|
|
// SubsurfaceButton { 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 {
|
|
Text { text: " Progress:" }
|
|
Layout.fillWidth: true
|
|
ProgressBar { Layout.fillWidth: true }
|
|
}
|
|
RowLayout {
|
|
SubsurfaceButton {
|
|
text: "Download"
|
|
onClicked: {
|
|
stackView.pop();
|
|
}
|
|
}
|
|
SubsurfaceButton {
|
|
text: "Quit"
|
|
onClicked: {
|
|
stackView.pop();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
ColumnLayout {
|
|
height: parent.height
|
|
Layout.fillWidth: true
|
|
RowLayout {
|
|
Text {
|
|
text: " Downloaded dives"
|
|
}
|
|
}
|
|
TableView {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
TableViewColumn {
|
|
width: 50
|
|
role: "isChecked"
|
|
title: "Select"
|
|
}
|
|
TableViewColumn {
|
|
role: "datetime"
|
|
title: "Date / Time"
|
|
}
|
|
TableViewColumn {
|
|
width: 80
|
|
role: "duration"
|
|
title: "Duration"
|
|
}
|
|
TableViewColumn {
|
|
width: 50
|
|
role: "depth"
|
|
title: "Depth"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
GridLayout {
|
|
Layout.fillWidth: true
|
|
columns: 5
|
|
SubsurfaceButton {
|
|
text: "Accept"
|
|
onClicked: {
|
|
stackView.pop();
|
|
}
|
|
}
|
|
SubsurfaceButton {
|
|
text: "Quit"
|
|
onClicked: {
|
|
stackView.pop();
|
|
}
|
|
}
|
|
Text {
|
|
text: ""
|
|
Layout.fillWidth: true
|
|
}
|
|
SubsurfaceButton {
|
|
text: "Select All"
|
|
}
|
|
SubsurfaceButton {
|
|
text: "Unselect All"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|