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
28 onCheckedChanged: settings.autoUpdate = checked
32 text: qsTr("About Quando Parte")
33 onClicked: Private.showAboutPage()
35 Component.onCompleted: periodicCheckSwitch.checked = settings.autoUpdate
40 anchors.top: parent.top
41 selectedIndex: stationListProxyModel.sortingMode
45 name: QT_TR_NOOP("Stations by Name")
48 name: QT_TR_NOOP("Stations by Distance")
51 name: QT_TR_NOOP("Stations Recently Seen")
57 anchors.top: header.bottom
61 target: stationListProxyModel
62 property: "searchPattern"
63 value: searchField.text
66 target: stationListProxyModel
67 property: "sortingMode"
68 value: header.selectedIndex
73 top: searchField.bottom
80 anchors.top: mainView.top
90 model: stationListProxyModel
93 height: UiConstants.ListItemHeightSmall
99 visible: mouseArea.pressed
100 source: "image://theme/meegotouch-list-fullwidth-background-pressed"
105 width: UiConstants.DefaultMargin
106 height: UiConstants.DefaultMargin
109 anchors.verticalCenter: parent.verticalCenter
113 text: Private.highlightSearch(model.display, UiConstants.AccentColor)
123 source: "image://theme/meegotouch-separator-background-horizontal"
127 anchors.fill: background
129 Private.loadStation(model.display)
136 flickableItem: stationListView