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 Component.onCompleted: {
12 stationListProxyModel.sortingMode = StationListProxyModel.AlphaSorting
14 tools: ToolBarLayout {
16 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
17 ToolIcon { iconId: "icon-m-toolbar-settings"; onClicked: settingsSheet.open(); }
18 ToolIcon { iconId: "icon-m-toolbar-view-menu"; }
23 onStationScheduleReady: {
24 if (Private.view !== undefined) {
25 Private.view.html = result
26 //Private.view.url = url
32 anchors.top: parent.top
33 selectedIndex: stationListProxyModel.sortingMode
37 name: QT_TR_NOOP("Stations by Name")
40 name: QT_TR_NOOP("Stations by Distance")
43 name: QT_TR_NOOP("Stations Recently Seen")
49 anchors.top: header.bottom
52 target: stationListProxyModel
53 property: "searchPattern"
54 value: searchField.text
57 target: stationListProxyModel
58 property: "sortingMode"
59 value: header.selectedIndex
64 anchors.top: mainView.top
67 GradientStop {color: "#aa000000"; position: 0.0}
68 GradientStop {color: "#00000000"; position: 1.0}
75 anchors.top: searchField.bottom
76 width: parent.width - 32
83 model: stationListProxyModel
92 visible: mouseArea.pressed
93 source: "image://theme/meegotouch-list-background-pressed-center"
99 anchors.verticalCenter: parent.verticalCenter
103 text: Private.highlightSearch(model.display)
110 anchors.fill: background
112 Private.loadStation(model.display)
121 acceptButtonText: qsTr("Save")
122 rejectButtonText: qsTr("Cancel")
126 width: parent.width - 32
127 height: parent.height - 32
133 anchors.leftMargin: UiConstants.DefaultMargins
134 anchors.left: parent.left
135 anchors.right: parent.right
138 text: "Show Last Station on Startup"
139 anchors.verticalCenter: parent.verticalCenter
140 anchors.left: parent.left
143 anchors.verticalCenter: parent.verticalCenter
144 id: showLastStationSwitch
145 anchors.right: parent.right
150 anchors.leftMargin: UiConstants.DefaultMargins
151 anchors.left: parent.left
152 anchors.right: parent.right
155 text: "Update Display Periodically"
156 anchors.verticalCenter: parent.verticalCenter
159 anchors.verticalCenter: parent.verticalCenter
160 anchors.right: parent.right
161 id: periodicCheckSwitch