2 import com.nokia.meego 1.0
3 import net.cirulla.quandoparte 1.0
4 import "uiconstants.js" as UiConstants
7 property alias name: schedule.name
11 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop() }
12 ToolIcon { iconId: "icon-m-toolbar-view-menu"; onClicked: menu.open() }
16 anchors.top: parent.top
17 selectedIndex: schedule.type
25 anchors.top: header.bottom
31 value: header.selectedIndex
49 id: stationScheduleView
58 delegate: StationScheduleDelegate {
60 arrivalTime: model.arrivalTime
61 departureTime: model.departureTime
63 arrivalStation: model.arrivalStation
64 departureStation: model.departureStation
66 actualPlatform: model.actualPlatform
67 expectedPlatfrom: model.expectedPlatform
72 flickableItem: stationScheduleView
76 platformStyle: BusyIndicatorStyle {
79 anchors.centerIn: parent
80 visible: !stationScheduleView.visible
87 target: stationScheduleView
94 target: stationScheduleView
100 StationScheduleModel {
102 onNameChanged: schedule.fetch(name)
103 onLayoutChanged: view.state = "ready"
105 Component.onCompleted: {
106 updateTimer.timeout.connect(updateStation)
108 function updateStation() {
109 schedule.fetch(schedule.name)