diff options
author | jan Iversen <jan@casacondor.com> | 2019-11-23 20:44:23 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-26 10:21:11 -0800 |
commit | fac8d5b125bf473425fd2f006616a9782502cd04 (patch) | |
tree | 487efc85210aeb9ea86432bb87a29841fb34e5ca | |
parent | 800973a9206e2479683ed1b0cc554834620f3034 (diff) | |
download | subsurface-fac8d5b125bf473425fd2f006616a9782502cd04.tar.gz |
mobile-widgets/qml: add diveplanner pages
Diveplanner consist of 3 pages:
- Edit, creation of the plan
- View, view the plan
- Manager, list/delete/select stored diveplans
With the current navigation system (pageStack)
View needs to be split in multiple pages.
Signed-off-by: Jan Iversen <jan@casacondor.com>
-rw-r--r-- | mobile-widgets/qml/DivePlannerEdit.qml | 22 | ||||
-rw-r--r-- | mobile-widgets/qml/DivePlannerManager.qml | 22 | ||||
-rw-r--r-- | mobile-widgets/qml/DivePlannerSetup.qml | 22 | ||||
-rw-r--r-- | mobile-widgets/qml/DivePlannerView.qml | 22 | ||||
-rw-r--r-- | mobile-widgets/qml/mobile-resources.qrc | 4 |
5 files changed, 92 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DivePlannerEdit.qml b/mobile-widgets/qml/DivePlannerEdit.qml new file mode 100644 index 000000000..667c2df3b --- /dev/null +++ b/mobile-widgets/qml/DivePlannerEdit.qml @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Controls 1.4 +import QtQuick.Layouts 1.12 +import QtQuick.Dialogs 1.3 +import org.subsurfacedivelog.mobile 1.0 +import org.kde.kirigami 2.4 as Kirigami + +Kirigami.ScrollablePage { + title: qsTr("Dive planner edit") + + ColumnLayout { + width: parent.width + spacing: 1 + Layout.margins: 10 + + Text { + text: "Dive planner edit" + } + } +} diff --git a/mobile-widgets/qml/DivePlannerManager.qml b/mobile-widgets/qml/DivePlannerManager.qml new file mode 100644 index 000000000..796272502 --- /dev/null +++ b/mobile-widgets/qml/DivePlannerManager.qml @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Controls 1.4 +import QtQuick.Layouts 1.12 +import QtQuick.Dialogs 1.3 +import org.subsurfacedivelog.mobile 1.0 +import org.kde.kirigami 2.4 as Kirigami + +Kirigami.ScrollablePage { + title: qsTr("Dive planner manager") + + ColumnLayout { + width: parent.width + spacing: 1 + Layout.margins: 10 + + Text { + text: "Dive planner manager" + } + } +} diff --git a/mobile-widgets/qml/DivePlannerSetup.qml b/mobile-widgets/qml/DivePlannerSetup.qml new file mode 100644 index 000000000..04c11cb93 --- /dev/null +++ b/mobile-widgets/qml/DivePlannerSetup.qml @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Controls 1.4 +import QtQuick.Layouts 1.12 +import QtQuick.Dialogs 1.3 +import org.subsurfacedivelog.mobile 1.0 +import org.kde.kirigami 2.4 as Kirigami + +Kirigami.ScrollablePage { + title: qsTr("Dive planner setup") + + ColumnLayout { + width: parent.width + spacing: 1 + Layout.margins: 10 + + Text { + text: "Dive planner setup" + } + } +} diff --git a/mobile-widgets/qml/DivePlannerView.qml b/mobile-widgets/qml/DivePlannerView.qml new file mode 100644 index 000000000..1258c8497 --- /dev/null +++ b/mobile-widgets/qml/DivePlannerView.qml @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +import QtQuick 2.12 +import QtQuick.Controls 2.12 +import QtQuick.Controls 1.4 +import QtQuick.Layouts 1.12 +import QtQuick.Dialogs 1.3 +import org.subsurfacedivelog.mobile 1.0 +import org.kde.kirigami 2.4 as Kirigami + +Kirigami.ScrollablePage { + title: qsTr("Dive planner view") + + ColumnLayout { + width: parent.width + spacing: 1 + Layout.margins: 10 + + Text { + text: "Dive planner view" + } + } +} diff --git a/mobile-widgets/qml/mobile-resources.qrc b/mobile-widgets/qml/mobile-resources.qrc index df22a4cc8..a4ed885ae 100644 --- a/mobile-widgets/qml/mobile-resources.qrc +++ b/mobile-widgets/qml/mobile-resources.qrc @@ -17,6 +17,10 @@ <file>DiveList.qml</file> <file>DownloadFromDiveComputer.qml</file> <file>DownloadedDiveDelegate.qml</file> + <file>DivePlannerEdit.qml</file> + <file>DivePlannerManager.qml</file> + <file>DivePlannerSetup.qml</file> + <file>DivePlannerView.qml</file> <file>Export.qml</file> <file>GpsList.qml</file> <file>HintsTextEdit.qml</file> |