2 import com.nokia.meego 1.0
3 import com.nokia.extras 1.0
4 import "UIConstants.js" as UIConstants
5 import "ExtrasConstants.js" as ExtrasConstants
10 property string gline: ''
11 property string gstation: ''
12 property string gdirection: ''
14 property string sourceUrl: ''
15 property bool busy: true
16 property bool isStation: false
20 console.debug('refreshing')
23 console.debug('station based')
24 itip.load_station_departures(gstation)
26 console.debug('one line')
27 itip.load_departures(sourceUrl)
31 function isCorrectInput () {
32 return resultRealtime.sourceUrl != '' || (resultRealtime.isStation && resultRealtime.gstation != '')
36 console.debug('gstation changed')
57 visible: mouseArea.pressed
58 source: theme.inverted ? 'image://theme/meegotouch-list-inverted-background-pressed-vertical-center': 'image://theme/meegotouch-list-background-pressed-vertical-center'
63 anchors.margins: UIConstants.DEFAULT_MARGIN
69 text: model.line // <----
70 anchors.verticalCenter: parent.verticalCenter
72 font.pixelSize: UIConstants.FONT_XLARGE
74 font.family: ExtrasConstants.FONT_FAMILY_LIGHT
75 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
79 anchors.verticalCenter: parent.verticalCenter
83 text: model.station // <----
84 width: parent.parent.parent.width - l.width - dep.width - 15
85 elide: Text.ElideRight
86 font.pixelSize: UIConstants.FONT_LARGE
87 font.family: ExtrasConstants.FONT_FAMILY_LIGHT
88 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
93 text: model.direction // <----
94 width: parent.parent.parent.width - l.width - dep.width - 15
95 elide: Text.ElideRight
96 color: !theme.inverted ? UIConstants.COLOR_SECONDARY_FOREGROUND : UIConstants.COLOR_INVERTED_SECONDARY_FOREGROUND
97 font.family: ExtrasConstants.FONT_FAMILY_LIGHT
98 font.pixelSize: UIConstants.FONT_LSMALL
105 anchors.right: parent.right
106 anchors.verticalCenter: parent.verticalCenter
109 // FIXME strange int float transformation appears
111 anchors.right: parent.right
112 anchors.rightMargin: UIConstants.DEFAULT_MARGIN
113 font.italic: lowfloor
115 font.pixelSize: UIConstants.FONT_XLARGE
116 font.family: ExtrasConstants.FONT_FAMILY_LIGHT
117 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
125 console.debug("clicked: " + l.text)
133 width: parent.width; height: parent.height
137 height: childrenRect.height + 2*UIConstants.DEFAULT_MARGIN
138 color: "lightsteelblue"
149 margins: UIConstants.DEFAULT_MARGIN
152 text: 'Richtung ' + gdirection
153 elide: Text.ElideRight
155 font.family: ExtrasConstants.FONT_FAMILY_LIGHT
156 font.pixelSize: UIConstants.FONT_LSMALL
161 delegate: departureDelegate
163 visible: !resultRealtime.busy && isCorrectInput()
169 platformStyle: ScrollDecoratorStyle {}
174 visible: resultRealtime.busy && isCorrectInput()
176 platformStyle: BusyIndicatorStyle { size: 'large' }
177 anchors.centerIn: parent