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
18 text: qsTr("About Quando Parte")
19 onClicked: Private.showAboutPage()
23 tools: ToolBarLayout {
25 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
26 ToolIcon { iconId: "icon-m-toolbar-settings"; onClicked: settingsSheet.open(); }
27 ToolIcon { iconId: "icon-m-toolbar-view-menu"; onClicked: menu.open() }
32 onStationScheduleReady: {
33 if (Private.view !== undefined) {
34 Private.view.html = result
35 //Private.view.url = url
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
61 target: stationListProxyModel
62 property: "searchPattern"
63 value: searchField.text
66 target: stationListProxyModel
67 property: "sortingMode"
68 value: header.selectedIndex
73 anchors.top: mainView.top
76 GradientStop {color: "#aa000000"; position: 0.0}
77 GradientStop {color: "#00000000"; position: 1.0}
84 anchors.top: searchField.bottom
85 width: parent.width - 32
92 model: stationListProxyModel
101 visible: mouseArea.pressed
102 source: "image://theme/meegotouch-list-background-pressed-center"
108 anchors.verticalCenter: parent.verticalCenter
112 text: Private.highlightSearch(model.display, UiConstants.AccentColor)
119 anchors.fill: background
121 Private.loadStation(model.display)
130 acceptButtonText: qsTr("Save")
131 rejectButtonText: qsTr("Cancel")
135 width: parent.width - 32
136 height: parent.height - 32
142 anchors.leftMargin: UiConstants.DefaultMargins
143 anchors.left: parent.left
144 anchors.right: parent.right
147 text: "Show Last Station on Startup"
148 anchors.verticalCenter: parent.verticalCenter
149 anchors.left: parent.left
152 anchors.verticalCenter: parent.verticalCenter
153 id: showLastStationSwitch
154 anchors.right: parent.right
159 anchors.leftMargin: UiConstants.DefaultMargins
160 anchors.left: parent.left
161 anchors.right: parent.right
164 text: "Update Display Periodically"
165 anchors.verticalCenter: parent.verticalCenter
168 anchors.verticalCenter: parent.verticalCenter
169 anchors.right: parent.right
170 id: periodicCheckSwitch