• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • apps
  • marble-touch
  • activities
Placemark.qml
Go to the documentation of this file.
1 // This file is part of the Marble Virtual Globe.
2 //
3 // This program is free software licensed under the GNU LGPL. You can
4 // find a copy of this license in LICENSE.txt in the top directory of
5 // the source code.
6 //
7 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
8 
9 import QtQuick 1.0
10 import com.nokia.meego 1.0
11 import org.kde.edu.marble 0.11
12 import ".."
13 
14 Page {
15  id: placemarkActivityPage
16  anchors.fill: parent
17 
18  property string uid: "edu.kde.org.marble.placemarkActivityPage"
19  property bool horizontal: width / height > 1.20
20 
21  tools: ToolBarLayout {
22  MarbleToolIcon {
23  iconSource: main.icon( "actions/go-home", 48 );
24  onClicked: main.showNavigation()
25  }
26  }
27 
28  Rectangle {
29  id: placemarkView
30 
31  anchors.bottom: placemarkActivityPage.bottom
32  anchors.left: placemarkActivityPage.left
33  width: placemarkActivityPage.horizontal ? placemarkActivityPage.width / 2 : placemarkActivityPage.width
34  height: placemarkActivityPage.horizontal ? placemarkActivityPage.height : 205
35 
36  color: "#e7e7e7"
37  border.width: 2
38  border.color: "darkgray"
39 
40  radius: 10
41  z: 10
42  opacity: 0.9
43  property string searchTerm: ""
44 
45  PlacemarkEditor {
46  id: placemarkEditor
47  anchors.fill: parent
48  anchors.margins: 10
49  }
50  }
51 
52  Item {
53  id: mapContainer
54  clip: true
55 
56  anchors.left: placemarkActivityPage.horizontal ? placemarkView.right : placemarkActivityPage.left
57  anchors.bottom: placemarkActivityPage.horizontal ? placemarkActivityPage.bottom : placemarkView.top
58  anchors.right: placemarkActivityPage.right
59  anchors.top: placemarkActivityPage.top
60 
61  function embedMarbleWidget() {
62  marbleWidget.parent = mapContainer
63  marbleWidget.visible = true
64  }
65 
66  Component.onDestruction: {
67  if ( marbleWidget.parent === mapContainer ) {
68  marbleWidget.parent = null
69  marbleWidget.visible = false
70  }
71  }
72  }
73 
74  onStatusChanged: {
75  if ( status === PageStatus.Activating ) {
76  mapContainer.embedMarbleWidget()
77  }
78  }
79 }
PlacemarkEditor
Definition: PlacemarkEditor.qml:11
Rectangle
Marble::radius
static qreal radius(qreal zoom)
Definition: thumbnailer.cpp:99
MarbleWindow::icon
void icon(name, size)
MarbleToolIcon
Definition: harmattan/MarbleToolIcon.qml:10
MarbleWindow::showNavigation
void showNavigation()
main
Definition: examples/cpp/marbleQuick2/main.qml:3
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal