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() }
21 text: qsTr("Update Periodically")
23 id: periodicCheckSwitch
25 verticalCenter: parent.verticalCenter
27 rightMargin: UiConstants.DefaultMargin
29 checked: settings.autoUpdate
31 onClicked: settings.autoUpdate ^= true
34 text: qsTr("About Quando Parte")
35 onClicked: Private.showAboutPage()
41 anchors.top: parent.top
42 selectedIndex: stationListProxyModel.sortingMode
46 name: QT_TR_NOOP("Stations by Name")
49 name: QT_TR_NOOP("Stations by Distance")
52 name: QT_TR_NOOP("Stations Recently Seen")
58 anchors.top: header.bottom
62 target: stationListProxyModel
63 property: "searchPattern"
64 value: searchField.text
67 target: stationListProxyModel
68 property: "sortingMode"
69 value: header.selectedIndex
74 top: searchField.bottom
81 anchors.top: mainView.top
91 model: stationListProxyModel
94 height: UiConstants.ListItemHeightSmall
100 visible: mouseArea.pressed
101 source: "image://theme/meegotouch-list-fullwidth-background-pressed"
106 width: UiConstants.DefaultMargin
107 height: UiConstants.DefaultMargin
110 anchors.verticalCenter: parent.verticalCenter
114 text: Private.highlightSearch(model.display, UiConstants.AccentColor)
124 source: "image://theme/meegotouch-separator-background-horizontal"
128 anchors.fill: background
130 Private.loadStation(model.display)
137 flickableItem: stationListView