Favorites draft implementation
[pywienerlinien] / qml / main.qml
index 9e22346..01d0010 100644 (file)
@@ -27,7 +27,7 @@ PageStackWindow {
         id: positionSource
         updateInterval: 15000
 
-        active: !(position.longitudeValid && position.latitudeValid)
+        active: config.getGpsEnabled() && !(position.longitudeValid && position.latitudeValid)
     }
 
     ToolBarLayout {
@@ -57,16 +57,18 @@ PageStackWindow {
             text: ''
 
             anchors {
-                bottomMargin: 10
-                bottom: parent.bottom
                 left: logo.right
                 leftMargin: 10
-                top: logo.top
+                top: parent.top
+                topMargin: 10
             }
             font.pixelSize: 16
         }
     }
 
+    Settings{id: settings}
+    MapView{id: map}
+
     Menu {
         id: menu
 
@@ -76,6 +78,18 @@ PageStackWindow {
                 onClicked: mainPage.showNearby()
             }
             MenuItem {
+                text: 'Favorites'
+                onClicked: mainPage.showFavorites()
+            }
+            //MenuItem {
+            //    text: 'Map'
+            //    onClicked: pageStack.push(map)
+            //}
+            MenuItem {
+                text: 'Settings'
+                onClicked: pageStack.push(settings)
+            }
+            MenuItem {
                 text: 'About gotoVienna'
                 onClicked: aboutBox.show()
             }