2018-11-18 05:42:15 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
import QtQuick 2.6
|
|
|
|
import QtQuick.Controls 2.2 as Controls
|
|
|
|
import QtQuick.Window 2.2
|
|
|
|
import QtQuick.Dialogs 1.2
|
|
|
|
import QtQuick.Layouts 1.2
|
|
|
|
import org.kde.kirigami 2.4 as Kirigami
|
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
|
|
|
|
|
|
|
Kirigami.ScrollablePage {
|
|
|
|
objectName: "CopySettings"
|
|
|
|
id: settingsCopy
|
|
|
|
|
|
|
|
title: qsTr("Copy Settings")
|
|
|
|
background: Rectangle { color: subsurfaceTheme.backgroundColor }
|
|
|
|
|
|
|
|
property real gridWidth: settingsCopy.width - Kirigami.Units.gridUnit
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
width: gridWidth
|
|
|
|
|
|
|
|
GridLayout {
|
|
|
|
id: copy_settings
|
|
|
|
columns: 2
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Selection for copy-paste")
|
|
|
|
font.pointSize: subsurfaceTheme.headingPointSize
|
|
|
|
font.weight: Font.Light
|
|
|
|
color: subsurfaceTheme.textColor
|
|
|
|
Layout.topMargin: Kirigami.Units.largeSpacing
|
|
|
|
Layout.bottomMargin: Kirigami.Units.largeSpacing / 2
|
|
|
|
Layout.columnSpan: 2
|
|
|
|
}
|
|
|
|
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Dive site")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteDiveSite
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Notes")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteNotes
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
2022-02-12 13:03:18 +00:00
|
|
|
text: qsTr("Dive guide")
|
2018-11-18 05:42:15 +00:00
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteDiveGuide
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Buddy")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteBuddy
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Suit")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteSuit
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Rating")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteRating
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Visibility")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteVisibility
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Tags")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteTags
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Cylinders")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteCylinders
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
Controls.Label {
|
|
|
|
text: qsTr("Weights")
|
|
|
|
font.pointSize: subsurfaceTheme.regularPointSize
|
|
|
|
Layout.preferredWidth: gridWidth * 0.75
|
|
|
|
}
|
|
|
|
SsrfSwitch {
|
2024-08-13 05:04:52 +00:00
|
|
|
checked: manager.pasteWeights
|
2018-11-18 05:42:15 +00:00
|
|
|
Layout.preferredWidth: gridWidth * 0.25
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
color: subsurfaceTheme.darkerPrimaryColor
|
|
|
|
height: 1
|
|
|
|
opacity: 0.5
|
|
|
|
Layout.fillWidth: true
|
|
|
|
}
|
|
|
|
|
|
|
|
Item {
|
|
|
|
height: Kirigami.Units.gridUnit * 6
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|