summaryrefslogtreecommitdiff
path: root/src/hmi/qml/NavigationSearchHistory.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/hmi/qml/NavigationSearchHistory.qml')
-rw-r--r--src/hmi/qml/NavigationSearchHistory.qml100
1 files changed, 0 insertions, 100 deletions
diff --git a/src/hmi/qml/NavigationSearchHistory.qml b/src/hmi/qml/NavigationSearchHistory.qml
deleted file mode 100644
index 76c26c2..0000000
--- a/src/hmi/qml/NavigationSearchHistory.qml
+++ /dev/null
@@ -1,100 +0,0 @@
-/**
-* @licence app begin@
-* SPDX-License-Identifier: MPL-2.0
-*
-* \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen
-*
-* \file NavigationSearchHistory.qml
-*
-* \brief This file is part of the navigation hmi.
-*
-* \author Martin Schaller <martin.schaller@it-schaller.de>
-* \author Philippe Colliot <philippe.colliot@mpsa.com>
-*
-* \version 1.1
-*
-* This Source Code Form is subject to the terms of the
-* Mozilla Public License (MPL), v. 2.0.
-* If a copy of the MPL was not distributed with this file,
-* You can obtain one at http://mozilla.org/MPL/2.0/.
-*
-* For further information see http://www.genivi.org/.
-*
-* List of changes:
-* 2014-03-05, Philippe Colliot, creation of the new page
-* <date>, <name>, <description of change>
-*
-* @licence end@
-*/
-
-import QtQuick 2.1
-import "Core"
-import "Core/genivi.js" as Genivi;
-import "Core/style-sheets/style-constants.js" as Constants;
-import lbs.plugin.dbusif 1.0
-
-HMIMenu {
- id: menu
- property string pagefile:"NavigationSearchHistory"
-
- DBusIf {
- id:dbusIf
- }
-
- Column {
- id:content
- anchors { fill: parent; topMargin: menu.hspc/2 }
-
- Component {
- id: listDelegate
- Text {
- property real index:number;
- width: 180;
- height: 20;
- id:text;
- text: name;
- font.pixelSize: 20;
- style: Text.Sunken;
- color: "white";
- styleColor: "black";
- smooth: true
- }
- }
-
- HMIList {
- id:view
- property real selectedEntry
- height:parent.height-back.height;
- width:parent.width;
- delegate: listDelegate
- next:back
- prev:back
- onSelected:{
- Genivi.data['description'] = what.text;
- Genivi.data['lat'] = Genivi.historyOfLastEnteredLat[what.index];
- Genivi.data['lon'] = Genivi.historyOfLastEnteredLon[what.index];
- routeMenu();
- }
- }
- StdButton {
- id:back
- text: "Back"
- onClicked:{leaveMenu();}
- }
- }
- Component.onCompleted: {
- var model=view.model;
- var array=Genivi.historyOfLastEnteredLocation;
- // display list of locations (fifo)
- var i = Genivi.historyOfLastEnteredLocationOut;
- while (i !== Genivi.historyOfLastEnteredLocationIn)
- {
- model.append({"name":Genivi.historyOfLastEnteredLocation[i],"number":(i)});
- if ((i+1) >= Genivi.historyOfLastEnteredLocationDepth)
- i=0;
- else
- i+=1;
- };
- view.forceActiveFocus();
- }
-}