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
15 text: qsTr("About Quando Parte")
16 onClicked: Private.showAboutPage()
20 tools: ToolBarLayout {
22 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
23 ToolIcon { iconId: "icon-m-toolbar-settings"; onClicked: settingsSheet.open(); }
24 ToolIcon { iconId: "icon-m-toolbar-view-menu"; onClicked: menu.open() }
29 onStationScheduleReady: {
30 if (Private.view !== undefined) {
31 Private.view.html = result
32 //Private.view.url = url
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
58 target: stationListProxyModel
59 property: "searchPattern"
60 value: searchField.text
63 target: stationListProxyModel
64 property: "sortingMode"
65 value: header.selectedIndex
70 anchors.top: mainView.top
73 GradientStop {color: "#aa000000"; position: 0.0}
74 GradientStop {color: "#00000000"; position: 1.0}
81 anchors.top: searchField.bottom
82 width: parent.width - 32
89 model: stationListProxyModel
98 visible: mouseArea.pressed
99 source: "image://theme/meegotouch-list-background-pressed-center"
105 anchors.verticalCenter: parent.verticalCenter
109 text: Private.highlightSearch(model.display, UiConstants.AccentColor)
116 anchors.fill: background
118 Private.loadStation(model.display)
127 acceptButtonText: qsTr("Save")
128 rejectButtonText: qsTr("Cancel")
132 width: parent.width - 32
133 height: parent.height - 32
139 anchors.leftMargin: UiConstants.DefaultMargins
140 anchors.left: parent.left
141 anchors.right: parent.right
144 text: "Show Last Station on Startup"
145 anchors.verticalCenter: parent.verticalCenter
146 anchors.left: parent.left
149 anchors.verticalCenter: parent.verticalCenter
150 id: showLastStationSwitch
151 anchors.right: parent.right
156 anchors.leftMargin: UiConstants.DefaultMargins
157 anchors.left: parent.left
158 anchors.right: parent.right
161 text: "Update Display Periodically"
162 anchors.verticalCenter: parent.verticalCenter
165 anchors.verticalCenter: parent.verticalCenter
166 anchors.right: parent.right
167 id: periodicCheckSwitch