Realtime search gui mockup
[pywienerlinien] / gotovienna / gotovienna_qml / qml / gotovienna_qml / MainPage.qml
1 import QtQuick 1.1
2 import com.nokia.meego 1.0
3 import "UIConstants.js" as UIConstants
4 import "ExtrasConstants.js" as ExtrasConstants
5
6 Page {
7     tools: commonTools
8
9     TextField {
10         placeholderText: 'Line'
11
12         id: gline
13         anchors {
14             top: parent.top
15             left: parent.left
16             topMargin: 20
17             leftMargin: 10
18             rightMargin: 10
19         }
20         width: parent.width - 20
21
22          MouseArea {
23              anchors.fill: parent
24              drag.target: gline
25              drag.axis: Drag.YAxis
26              drag.minimumY: 0
27              drag.maximumY: parent.height
28          }
29     }
30
31     TextField {
32         placeholderText: 'Station'
33         id: gstation
34         anchors {
35             top: gline.bottom
36             left: parent.left
37             right: parent.right
38             topMargin: 10
39             leftMargin: 10
40             rightMargin: 10
41         }
42     }
43
44     ResultRealtime { id: resu }
45
46     Button {
47         id: btnSearch
48         text: 'Search'
49         anchors {
50             top: gstation.bottom
51             topMargin: 10
52             horizontalCenter: parent.horizontalCenter
53         }
54         onClicked: {
55             resu.gline = gline.text
56             resu.gstation = gstation.text
57             pageStack.push(resu)
58         }
59     }
60 }
61