aboutsummaryrefslogtreecommitdiffstats
path: root/app/ArrivedDesDialog.qml
diff options
context:
space:
mode:
Diffstat (limited to 'app/ArrivedDesDialog.qml')
-rw-r--r--app/ArrivedDesDialog.qml150
1 files changed, 150 insertions, 0 deletions
diff --git a/app/ArrivedDesDialog.qml b/app/ArrivedDesDialog.qml
new file mode 100644
index 0000000..e1ea5c4
--- /dev/null
+++ b/app/ArrivedDesDialog.qml
@@ -0,0 +1,150 @@
+import QtQuick 2.0
+import QtQuick.Layouts 1.1
+import QtQuick.Controls 2.0
+
+Rectangle {
+ id: mainform
+ height: 300
+ width: 1000
+ radius:2
+
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "#12262E" }
+ GradientStop { position: 1.0; color: "#18899B" }
+ }
+
+ ColumnLayout {
+ anchors {
+ topMargin: 10; bottomMargin:10
+ leftMargin: 20; rightMargin: 20
+ fill: parent
+ }
+ spacing: 2
+
+ ColumnLayout {
+ id: title_part
+ anchors {
+ top: parent.top
+ left: parent.left
+ topMargin: 10
+ }
+
+ Label {
+ id: title
+ text: "Arrived Destination"
+ color: "white"
+ font.pixelSize: 32
+ font.bold: true
+ maximumLineCount: 1
+ wrapMode: Text.Wrap
+ elide: Text.ElideRight
+ horizontalAlignment: Label.AlignHCenter
+ verticalAlignment: Label.AlignVCenter
+ Layout.preferredWidth: 960
+ Layout.preferredHeight: 40
+ }
+
+ Image {
+ source: '../images/DividingLine.svg'
+ anchors.left: title.left
+ anchors.top: title.bottom
+ }
+ }
+
+ RowLayout {
+ id: contents_part
+ anchors {
+ left: parent.left; leftMargin: 20
+ right: parent.right; rightMargin: 20
+ }
+ Layout.preferredWidth: 920
+ Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
+ spacing: 10
+ Image {
+ id: dsp_mark
+ source: dsp_icon
+ Layout.maximumHeight: 120
+ Layout.maximumWidth: 120
+ }
+ Label {
+ x: 60
+ text: "You have arrived the destination.\n\n Would you like to reset guidance?"
+ color: "white"
+ font.pixelSize: 24
+ wrapMode: Text.Wrap
+ maximumLineCount: btn_area.visible ? 4 : 5
+ elide: Text.ElideRight
+ horizontalAlignment: Text.AlignHCenter
+ verticalAlignment: Text.AlignVCenter
+ Layout.preferredWidth: 780
+ Layout.preferredHeight: 160
+ }
+ }
+
+ RowLayout {
+ id: btn_area
+ spacing: 60
+ anchors {
+ horizontalCenter: parent.horizontalCenter
+ }
+ Layout.preferredWidth: parent.width*0.75
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+
+ Button {
+ id: btn1
+ text: "Yes"
+ visible: true
+ onReleased: {
+ btn1.highlighted = false
+
+ }
+ onPressed: {
+ btn1.highlighted = true
+ }
+ onCanceled: {
+ btn1.highlighted = false
+ }
+ onClicked: {
+ arrived.visible = false
+ btn_guidance.discardWaypoints()
+ root.do_stopdemo()
+ }
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ }
+
+
+ Button {
+ id: btn3
+ text: "No"
+ visible: true
+ onReleased: {
+ btn3.highlighted = false
+
+ }
+ onPressed: {
+ btn3.highlighted = true
+ }
+ onCanceled: {
+ btn3.highlighted = false
+ }
+ onClicked: {
+ arrived.visible = false
+// btn_guidance.discardWaypoints()
+// root.do_stopdemo()
+ }
+ Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
+ }
+ }
+
+ Rectangle {
+ id: footer
+ opacity: 0
+ width: parent.width
+ height: 5
+ anchors {
+ bottom: parent.bottom
+ }
+ }
+ }
+
+}