3 import com.nokia.meego 1.0
4 import net.cirulla.quandoparte 1.0
5 import "uiconstants.js" as UiConstants
8 property alias name: schedule.name
11 tools: ToolBarLayout {
13 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
14 ToolIcon { iconId: "icon-m-toolbar-view-menu"; }
18 anchors.top: parent.top
19 selectedIndex: settings.showArrivalsPreferred ? 1 : 0
23 name: QT_TR_NOOP("Departures")
26 name: QT_TR_NOOP("Arrivals")
32 anchors.top: header.bottom
41 GradientStop {color: "#aa000000"; position: 0.0}
42 GradientStop {color: "#00000000"; position: 1.0}
47 property: "showArrivalsPreferred"
48 value: header.selectedIndex === 1 ? true : false
55 anchors.top: info.bottom
56 anchors.bottom: tools.top
59 width: parent.width - 32
63 id: stationScheduleView
76 visible: mouseArea.pressed
77 source: "image://theme/meegotouch-list-background-pressed-center"
83 anchors.verticalCenter: parent.verticalCenter
94 anchors.fill: background
96 // Load an external page about the train, for now
103 StationScheduleModel {
105 onNameChanged: schedule.fetch(name)