2 import com.nokia.meego 1.0
3 import "UIConstants.js" as UIConstants
4 import "ExtrasConstants.js" as ExtrasConstants
13 ToolIcon { iconId: "toolbar-back"; onClicked: { menu.close(); pageStack.pop(null,false); } }
19 anchors.margins: UIConstants.DEFAULT_MARGIN
21 contentHeight: content_column.height + 2 * UIConstants.DEFAULT_MARGIN
22 flickableDirection: Flickable.VerticalFlick
24 Component.onCompleted: {
29 spacing: UIConstants.DEFAULT_MARGIN
33 text: qsTr("Settings")
34 font.pixelSize: UIConstants.FONT_XLARGE
35 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
36 anchors.left: parent.left
40 anchors.left: parent.left
41 anchors.right: parent.right
44 anchors.left: parent.left
45 font.pixelSize: UIConstants.FONT_LARGE
46 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
47 anchors.verticalCenter: parent.verticalCenter
51 anchors.right: parent.right
52 checked: config.getGpsEnabled()
55 var gps = config.setGpsEnabled(checked);
57 // Unable to set config
61 positionSource.active = checked;
72 anchors.left: parent.left
73 anchors.right: parent.right
75 text: "Update stations"
76 anchors.left: parent.left
77 font.pixelSize: UIConstants.FONT_LARGE
78 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
79 anchors.verticalCenter: parent.verticalCenter
84 anchors.right: parent.right
88 Component.onCompleted: {
89 if (config.checkStationsUpdate()) {
90 btnUpdate.color = "green"
95 var updateAvailable = config.checkStationsUpdate();
96 if (updateAvailable) {
97 var updated = config.updateStations();
99 updateDialog.text = "Stations updated"
100 txtLastUpdate.text = updated
102 updateDialog.text = "[UpdateError]:\nTry again later or send me an email:\n<gotovienna@logic.at>"
105 updateDialog.text = "No updates available";
113 anchors.left: parent.left
114 anchors.right: parent.right
116 anchors.left: parent.left
117 text: "Last updated:"
118 font.pixelSize: UIConstants.FONT_LSMALL
119 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
120 anchors.verticalCenter: parent.verticalCenter
124 anchors.right: parent.right
125 text: config.getLastUpdate()
126 font.pixelSize: UIConstants.FONT_LSMALL
127 color: !theme.inverted ? UIConstants.COLOR_FOREGROUND : UIConstants.COLOR_INVERTED_FOREGROUND
128 anchors.verticalCenter: parent.verticalCenter