11 import com.nokia.meego 1.0
12 import org.kde.edu.marble 0.11
21 property alias model: activityView.model
22 property bool shown:
false
31 anchors.bottom: parent.bottom
32 anchors.right: parent.right
34 source:
"qrc:/marble/globe.svg"
63 property bool mouseOver: mouseTracker.containsMouse
65 width: activityView.width
69 color: delegateItem.mouseOver ?
"#dddddd" :
"white"
74 anchors.verticalCenter: parent.verticalCenter
87 anchors.verticalCenter: parent.verticalCenter
95 anchors.verticalCenter: parent.verticalCenter
96 color: delegateItem.mouseOver ?
"#111111" :
"black"
113 activityPage.itemSelected()
114 activityPage.openActivity( name, path )
121 flickableItem: activityView
126 anchors.bottom: parent.bottom
127 anchors.left: parent.left
128 anchors.right: parent.right
131 visible: settings.changelogShown !== project.version
133 text:
"New in version " + project.changelog.get(0).version +
": " + project.changelog.get(0).summary
137 onClicked: pageStack.push(
"qrc:/AboutMarblePage.qml" )
144 property string configureIcon:
main.
icon(
"actions/configure", 48 );
147 name:
"Virtual Globe"
148 imagePath:
"qrc:/icons/activity-virtualglobe.png"
149 path:
"qrc:/activities/VirtualGlobe.qml"
154 imagePath:
"qrc:/icons/activity-search.png"
155 path:
"qrc:/activities/Search.qml"
159 imagePath:
"qrc:/icons/activity-routing.png"
160 path:
"qrc:/activities/Routing.qml"
164 imagePath:
"qrc:/icons/activity-tracking.png"
165 path:
"qrc:/activities/Tracking.qml"
169 imagePath:
"qrc:/icons/activity-navigation.png"
170 path:
"qrc:/activities/Navigation.qml"
174 imagePath:
"qrc:/icons/activity-weather.png"
175 path:
"qrc:/activities/Weather.qml"
179 imagePath:
"qrc:/icons/activity-friends.png"
180 path:
"qrc:/activities/Friends.qml"
184 imagePath:
"qrc:/icons/activity-spaceview.png"
185 path:
"qrc:/activities/SpaceView.qml"
189 imagePath:
"qrc:/icons/activity-explore.png"
190 path:
"qrc:/activities/Explore.qml"
194 imagePath:
"qrc:/icons/information.png"
195 path:
"qrc:/AboutMarblePage.qml"
199 imagePath:
"qrc:/icons/preferences.png"
200 path:
"qrc:/PreferencesPage.qml"
204 function openActivity( name ) {
205 for ( var i=0; i<activityModel.count; i++ ) {
206 if ( activityModel.get(i).name === name ) {
207 switchTo( name, activityModel.get(i).path )
213 function switchTo( name, path ) {
214 if ( marbleWidget === null ) {
215 lazyLoader.source =
"qrc:/MainWidget.qml";
216 marbleWidget = lazyLoader.item
219 settings.lastActivity = name
220 pageStack.replace( path, undefined,
true )
221 activityPage.shown =
false
226 interval: 50; running:
false; repeat:
false
227 onTriggered: activityPage.initialize()
230 function initializeDelayed() {
231 if ( marbleWidget === null ) {
232 loadTimer.running =
true
236 function initialize() {
237 if ( marbleWidget === null ) {
238 lazyLoader.source =
"qrc:/MainWidget.qml";
239 marbleWidget = lazyLoader.item
static qreal radius(qreal zoom)