marble
Go to the documentation of this file.
11 import com.nokia.meego 1.0
12 import org.kde.edu.marble 0.11
15 width: screen.displayWidth
16 height: screen.displayHeight
19 property bool inPortrait: width < height
20 property string components:
"harmattan"
22 property alias navigationMenu: navigation
24 initialPage:
"qrc:/activities/VirtualGlobe.qml"
36 width: pageStack.currentPage.width-50
38 onItemSelected: navigation.close()
42 function showNavigation() {
46 function openActivity( activity ) {
50 function openPage( path ) {
51 pageStack.push( path )
54 Component.onCompleted: {
55 if ( settings.lastActivity ===
"" ) {
56 activitySelection.initializeDelayed()
58 activitySelection.openActivity( settings.lastActivity )
62 function icon( name, size ) {
63 if ( name ===
"actions/go-previous-view" ) {
64 return "image://theme/icon-m-toolbar-back"
65 }
else if ( name ===
"actions/edit-find" ) {
66 return "image://theme/icon-m-toolbar-search"
67 }
else if ( name ===
"actions/configure" ) {
68 return "image://theme/icon-m-toolbar-settings"
69 }
else if ( name ===
"actions/go-up" ) {
70 return "image://theme/icon-m-toolbar-up"
71 }
else if ( name ===
"places/user-identity" ) {
72 return "image://theme/icon-s-common-location"
73 }
else if ( name ===
"devices/network-wireless" ) {
74 return "qrc:/marble/wireless.svg"
75 }
else if ( name ===
"actions/show-menu" ) {
76 return "image://theme/icon-m-toolbar-view-menu"
77 }
else if ( name ===
"actions/document-edit" ) {
78 return "image://theme/icon-m-toolbar-edit"
79 }
else if ( name ===
"actions/edit-clear-locationbar-rtl" ) {
80 return "image://theme/icon-m-input-clear"
81 }
else if ( name ===
"actions/text-speak" ) {
82 return "image://theme/icon-m-toolbar-volume"
83 }
else if ( name ===
"status/task-attention" ) {
84 return "image://theme/icon-l-error"
85 }
else if ( name ===
"actions/media-playback-start" ) {
86 return "image://theme/icon-m-toolbar-mediacontrol-play"
87 }
else if ( name ===
"actions/dialog-cancel" ) {
88 return "image://theme/icon-s-cancel"
89 }
else if ( name ===
"actions/dialog-close" ) {
90 return "image://theme/icon-s-cancel"
91 }
else if ( name ===
"places/folder" ) {
92 return "image://theme/icon-m-common-directory"
93 }
else if ( name ===
"mimetypes/unknown" ) {
94 return "image://theme/icon-m-content-document"
95 }
else if ( name ===
"places/favorites" ) {
96 return "image://theme/icon-m-toolbar-favorite-mark"
97 }
else if ( name ===
"actions/go-home" ) {
98 return "image://theme/icon-m-toolbar-home"
99 }
else if ( name ===
"actions/download" ) {
100 return "image://theme/icon-s-transfer-download"
101 }
else if ( name ===
"actions/upload" ) {
102 return "image://theme/icon-s-transfer-upload"
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.