2 import com.nokia.meego 1.0
3 import "/usr/lib/qt4/imports/com/nokia/meego/UIConstants.js" as UiConstants
7 anchors.margins: UiConstants.DEFAULT_MARGIN
10 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
11 ToolIcon { iconId: "icon-m-toolbar-settings"; onClicked: settingsSheet.open(); }
12 ToolIcon { iconId: "icon-m-toolbar-view-menu"; }
15 function loadStation()
17 var component = Qt.createComponent("StationPage.qml");
18 if (component.status == Component.Ready) {
19 pageStack.push(component)
20 component.html = "<p>Hello World</p>"
23 console.log("Cannot load component: " + component.errorString());
31 placeholderText: "Search..."
39 name: "Genova Sestri Ponente"
42 name: "Genova Cornigliano"
45 name: "Genova Sampierdarena"
48 name: "Genova Piazza Principe"
51 name: "Genova Brignole"
71 visible: mouseArea.pressed
72 source: "image://theme/meegotouch-list-background-pressed-center"
78 anchors.verticalCenter: parent.verticalCenter
84 //font.family: UiConstants.FONT_FAMILY
85 //font.pixelSize: UiConstants.FONT_DEFAULT
91 anchors.fill: background
93 stationListPage.loadStation(name)
102 acceptButtonText: "Save"
103 rejectButtonText: "Cancel"
107 width: parent.width - 32
108 height: parent.height - 32
115 anchors.left: parent.left
116 anchors.right: parent.right
119 text: "Show Last Station on Startup"
120 anchors.verticalCenter: parent.verticalCenter
123 anchors.verticalCenter: parent.verticalCenter
124 id: showLastStationSwitch
125 anchors.right: parent.right
131 anchors.left: parent.left
132 anchors.right: parent.right
135 text: "Update Display Periodically"
136 anchors.verticalCenter: parent.verticalCenter
139 anchors.verticalCenter: parent.verticalCenter
140 anchors.right: parent.right
141 id: periodicCheckSwitch