From fac8d5b125bf473425fd2f006616a9782502cd04 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 23 Nov 2019 20:44:23 +0100 Subject: 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 --- mobile-widgets/qml/DivePlannerEdit.qml | 22 ++++++++++++++++++++++ mobile-widgets/qml/DivePlannerManager.qml | 22 ++++++++++++++++++++++ mobile-widgets/qml/DivePlannerSetup.qml | 22 ++++++++++++++++++++++ mobile-widgets/qml/DivePlannerView.qml | 22 ++++++++++++++++++++++ mobile-widgets/qml/mobile-resources.qrc | 4 ++++ 5 files changed, 92 insertions(+) create mode 100644 mobile-widgets/qml/DivePlannerEdit.qml create mode 100644 mobile-widgets/qml/DivePlannerManager.qml create mode 100644 mobile-widgets/qml/DivePlannerSetup.qml create mode 100644 mobile-widgets/qml/DivePlannerView.qml (limited to 'mobile-widgets') 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 @@ DiveList.qml DownloadFromDiveComputer.qml DownloadedDiveDelegate.qml + DivePlannerEdit.qml + DivePlannerManager.qml + DivePlannerSetup.qml + DivePlannerView.qml Export.qml GpsList.qml HintsTextEdit.qml -- cgit v1.2.3-70-g09d2