2 import QtMobility.location 1.1
3 import com.nokia.meego 1.0
4 import net.cirulla.quandoparte 1.0
5 import "uiconstants.js" as UiConstants
6 import "StationListPage.js" as Private
9 property variant stationView
15 text: qsTr("About Quando Parte")
16 onClicked: Private.showAboutPage()
20 tools: ToolBarLayout {
22 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
23 ToolIcon { iconId: "icon-m-toolbar-settings"; onClicked: settingsSheet.open(); }
24 ToolIcon { iconId: "icon-m-toolbar-view-menu"; onClicked: menu.open() }
28 anchors.top: parent.top
29 selectedIndex: stationListProxyModel.sortingMode
33 name: QT_TR_NOOP("Stations by Name")
36 name: QT_TR_NOOP("Stations by Distance")
39 name: QT_TR_NOOP("Stations Recently Seen")
45 anchors.top: header.bottom
48 target: stationListProxyModel
49 property: "searchPattern"
50 value: searchField.text
53 target: stationListProxyModel
54 property: "sortingMode"
55 value: header.selectedIndex
60 anchors.top: mainView.top
63 GradientStop {color: "#aa000000"; position: 0.0}
64 GradientStop {color: "#00000000"; position: 1.0}
71 anchors.top: searchField.bottom
72 width: parent.width - 32
79 model: stationListProxyModel
82 height: UiConstants.ListItemHeightDefault
88 visible: mouseArea.pressed
89 source: "image://theme/meegotouch-list-background-pressed-center"
95 anchors.verticalCenter: parent.verticalCenter
99 text: Private.highlightSearch(model.display, UiConstants.AccentColor)
106 anchors.fill: background
108 Private.loadStation(model.display)
114 listView: stationListView
118 flickableItem: stationListView
124 acceptButtonText: qsTr("Save")
125 rejectButtonText: qsTr("Cancel")
129 width: parent.width - 32
130 height: parent.height - 32
136 anchors.leftMargin: UiConstants.DefaultMargin
137 anchors.left: parent.left
138 anchors.right: parent.right
141 text: "Show Last Station on Startup"
142 anchors.verticalCenter: parent.verticalCenter
143 anchors.left: parent.left
146 anchors.verticalCenter: parent.verticalCenter
147 id: showLastStationSwitch
148 anchors.right: parent.right
153 anchors.leftMargin: UiConstants.DefaultMargin
154 anchors.left: parent.left
155 anchors.right: parent.right
158 text: "Update Display Periodically"
159 anchors.verticalCenter: parent.verticalCenter
162 anchors.verticalCenter: parent.verticalCenter
163 anchors.right: parent.right
164 id: periodicCheckSwitch