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-search"; onClicked: searchField.visible = !searchField.visible; }
14 ToolIcon { iconId: "icon-m-toolbar-view-menu"; onClicked: menu.open() }
20 text: qsTr("Update Periodically")
22 id: periodicCheckSwitch
24 verticalCenter: parent.verticalCenter
26 rightMargin: UiConstants.DefaultMargin
31 text: qsTr("About Quando Parte")
32 onClicked: Private.showAboutPage()
38 anchors.top: parent.top
39 selectedIndex: stationListProxyModel.sortingMode
43 name: QT_TR_NOOP("Stations by Name")
46 name: QT_TR_NOOP("Stations by Distance")
49 name: QT_TR_NOOP("Stations Recently Seen")
55 anchors.top: header.bottom
59 target: stationListProxyModel
60 property: "searchPattern"
61 value: searchField.text
64 target: stationListProxyModel
65 property: "sortingMode"
66 value: header.selectedIndex
71 top: searchField.bottom
78 anchors.top: mainView.top
88 model: stationListProxyModel
91 height: UiConstants.ListItemHeightSmall
97 visible: mouseArea.pressed
98 source: "image://theme/meegotouch-list-fullwidth-background-pressed"
103 width: UiConstants.DefaultMargin
104 height: UiConstants.DefaultMargin
107 anchors.verticalCenter: parent.verticalCenter
111 text: Private.highlightSearch(model.display, UiConstants.AccentColor)
121 source: "image://theme/meegotouch-separator-background-horizontal"
125 anchors.fill: background
127 Private.loadStation(model.display)
134 flickableItem: stationListView
140 acceptButtonText: qsTr("Save")
141 rejectButtonText: qsTr("Cancel")
145 width: parent.width - 32
146 height: parent.height - 32
152 anchors.leftMargin: UiConstants.DefaultMargin
153 anchors.left: parent.left
154 anchors.right: parent.right
157 text: qsTr("Show Last Station on Startup")
158 anchors.verticalCenter: parent.verticalCenter
159 anchors.left: parent.left
162 anchors.verticalCenter: parent.verticalCenter
163 id: showLastStationSwitch
164 anchors.right: parent.right