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
11 tools: ToolBarLayout {
13 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
14 ToolIcon { iconId: "icon-m-toolbar-settings"; onClicked: settingsSheet.open(); }
15 ToolIcon { iconId: "icon-m-toolbar-view-menu"; onClicked: menu.open() }
21 text: qsTr("About Quando Parte")
22 onClicked: Private.showAboutPage()
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 top: searchField.bottom
68 anchors.top: mainView.top
71 GradientStop {color: "#aa000000"; position: 0.0}
72 GradientStop {color: "#00000000"; position: 1.0}
83 model: stationListProxyModel
86 height: UiConstants.ListItemHeightSmall
92 visible: mouseArea.pressed
93 source: "image://theme/meegotouch-list-background-pressed-center"
98 width: UiConstants.DefaultMargin
99 height: UiConstants.DefaultMargin
102 anchors.verticalCenter: parent.verticalCenter
106 text: Private.highlightSearch(model.display, UiConstants.AccentColor)
113 anchors.fill: background
115 Private.loadStation(model.display)
122 flickableItem: stationListView
128 acceptButtonText: qsTr("Save")
129 rejectButtonText: qsTr("Cancel")
133 width: parent.width - 32
134 height: parent.height - 32
140 anchors.leftMargin: UiConstants.DefaultMargin
141 anchors.left: parent.left
142 anchors.right: parent.right
145 text: qsTr("Show Last Station on Startup")
146 anchors.verticalCenter: parent.verticalCenter
147 anchors.left: parent.left
150 anchors.verticalCenter: parent.verticalCenter
151 id: showLastStationSwitch
152 anchors.right: parent.right
157 anchors.leftMargin: UiConstants.DefaultMargin
158 anchors.left: parent.left
159 anchors.right: parent.right
162 text: qsTr("Update Display Periodically")
163 anchors.verticalCenter: parent.verticalCenter
166 anchors.verticalCenter: parent.verticalCenter
167 anchors.right: parent.right
168 id: periodicCheckSwitch