diff options
Diffstat (limited to 'src/hmi/qml/MainMenu.qml')
-rw-r--r-- | src/hmi/qml/MainMenu.qml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/hmi/qml/MainMenu.qml b/src/hmi/qml/MainMenu.qml index 7964845..b8e96de 100644 --- a/src/hmi/qml/MainMenu.qml +++ b/src/hmi/qml/MainMenu.qml @@ -29,6 +29,7 @@ import QtQuick 2.1 import "Core" import "Core/genivi.js" as Genivi; +import "Core/style-sheets/style-constants.js" as Constants; import "Core/style-sheets/fsa-main-menu-css.js" as StyleSheet; import lbs.plugin.dbusif 1.0 @@ -44,29 +45,29 @@ HMIMenu { } HMIBgImage { - image:StyleSheet.fsa_main_menu_background[StyleSheet.SOURCE]; + image:StyleSheet.fsa_main_menu_background[Constants.SOURCE]; anchors { fill: parent; topMargin: parent.headlineHeight} - StdButton { source:StyleSheet.select_navigation[StyleSheet.SOURCE]; x:StyleSheet.select_navigation[StyleSheet.X]; y:StyleSheet.select_navigation[StyleSheet.Y]; width:StyleSheet.select_navigation[StyleSheet.WIDTH]; height:StyleSheet.select_navigation[StyleSheet.HEIGHT]; + StdButton { source:StyleSheet.select_navigation[Constants.SOURCE]; x:StyleSheet.select_navigation[Constants.X]; y:StyleSheet.select_navigation[Constants.Y]; width:StyleSheet.select_navigation[Constants.WIDTH]; height:StyleSheet.select_navigation[Constants.HEIGHT]; id:navigation; page:"NavigationSearch"; explode:false; next:mapview; prev:quit} - StdButton { source:StyleSheet.select_mapview[StyleSheet.SOURCE]; x:StyleSheet.select_mapview[StyleSheet.X]; y:StyleSheet.select_mapview[StyleSheet.Y]; width:StyleSheet.select_mapview[StyleSheet.WIDTH]; height:StyleSheet.select_mapview[StyleSheet.HEIGHT]; + StdButton { source:StyleSheet.select_mapview[Constants.SOURCE]; x:StyleSheet.select_mapview[Constants.X]; y:StyleSheet.select_mapview[Constants.Y]; width:StyleSheet.select_mapview[Constants.WIDTH]; height:StyleSheet.select_mapview[Constants.HEIGHT]; id:mapview; explode:false; next:trip; prev:navigation; onClicked: { Genivi.data["mapback"]="MainMenu"; Genivi.data["show_current_position"]=true; pageOpen("NavigationBrowseMap"); } } - StdButton { source:StyleSheet.select_trip[StyleSheet.SOURCE]; x:StyleSheet.select_trip[StyleSheet.X]; y:StyleSheet.select_trip[StyleSheet.Y]; width:StyleSheet.select_trip[StyleSheet.WIDTH]; height:StyleSheet.select_trip[StyleSheet.HEIGHT]; + StdButton { source:StyleSheet.select_trip[Constants.SOURCE]; x:StyleSheet.select_trip[Constants.X]; y:StyleSheet.select_trip[Constants.Y]; width:StyleSheet.select_trip[Constants.WIDTH]; height:StyleSheet.select_trip[Constants.HEIGHT]; id:trip; explode:false; next:poi; prev:mapview;onClicked: { pageOpen("TripComputer"); } } - StdButton { source:StyleSheet.select_poi[StyleSheet.SOURCE]; x:StyleSheet.select_poi[StyleSheet.X]; y:StyleSheet.select_poi[StyleSheet.Y]; width:StyleSheet.select_poi[StyleSheet.WIDTH]; height:StyleSheet.select_poi[StyleSheet.HEIGHT]; + StdButton { source:StyleSheet.select_poi[Constants.SOURCE]; x:StyleSheet.select_poi[Constants.X]; y:StyleSheet.select_poi[Constants.Y]; width:StyleSheet.select_poi[Constants.WIDTH]; height:StyleSheet.select_poi[Constants.HEIGHT]; id:poi; page:"POI"; explode:false; next:settings; prev:trip} - StdButton { source:StyleSheet.select_configuration[StyleSheet.SOURCE]; x:StyleSheet.select_configuration[StyleSheet.X]; y:StyleSheet.select_configuration[StyleSheet.Y]; width:StyleSheet.select_configuration[StyleSheet.WIDTH]; height:StyleSheet.select_configuration[StyleSheet.HEIGHT]; + StdButton { source:StyleSheet.select_configuration[Constants.SOURCE]; x:StyleSheet.select_configuration[Constants.X]; y:StyleSheet.select_configuration[Constants.Y]; width:StyleSheet.select_configuration[Constants.WIDTH]; height:StyleSheet.select_configuration[Constants.HEIGHT]; id:settings; page:"NavigationSettings"; explode:false; next:quit; prev:trip} - StdButton { source:StyleSheet.quit[StyleSheet.SOURCE]; x:StyleSheet.quit[StyleSheet.X]; y:StyleSheet.quit[StyleSheet.Y]; width:StyleSheet.quit[StyleSheet.WIDTH]; height:StyleSheet.quit[StyleSheet.HEIGHT];textColor:StyleSheet.quitText[StyleSheet.TEXTCOLOR]; pixelSize:StyleSheet.quitText[StyleSheet.PIXELSIZE]; + StdButton { source:StyleSheet.quit[Constants.SOURCE]; x:StyleSheet.quit[Constants.X]; y:StyleSheet.quit[Constants.Y]; width:StyleSheet.quit[Constants.WIDTH]; height:StyleSheet.quit[Constants.HEIGHT];textColor:StyleSheet.quitText[Constants.TEXTCOLOR]; pixelSize:StyleSheet.quitText[Constants.PIXELSIZE]; id:quit; text: Genivi.gettext("Quit"); explode:false; next:navigation; prev:settings; onClicked:{Qt.quit()}} } } |