• 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
CloudSyncPage.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 2013 Andrei Duma <andrei.duma.dorian@gmail.com>
8 
9 import QtQuick 1.0
10 import QtMultimediaKit 1.1
11 import com.nokia.meego 1.0
12 import org.kde.edu.marble 0.11
13 
14 Page {
15  id: cloudSyncPage
16 
17  tools: ToolBarLayout {
18  MarbleToolIcon {
19  iconSource: main.icon( "actions/go-previous-view", 48 );
20  onClicked: pageStack.pop()
21  }
22  }
23 
24  Row {
25  id: syncSetting
26  anchors.top: parent.top
27  anchors.left: parent.left
28  anchors.margins: 10
29 
30  Label {
31  id: syncLabel
32  width: 142
33  text: "Sync:"
34  anchors.verticalCenter: parent.verticalCenter
35  }
36  Switch {
37  id: syncSwitch
38  checked: settings.owncloudSync
39  anchors.verticalCenter: parent.verticalCenter
40  onCheckedChanged: settings.owncloudSync = checked
41  }
42  }
43  Rectangle {
44  width: parent.width
45  anchors.left: parent.left
46  anchors.top: syncSetting.bottom
47  anchors.right: parent.right
48  anchors.margins: 10
49 
50  Column {
51  id: labelsColumn
52  width: 140
53  spacing: 35
54  anchors.top: parent.top
55  anchors.topMargin: 12
56  Label {
57  text: "Server:"
58  }
59  Label {
60  text: "Username:"
61  }
62  Label {
63  text: "Password:"
64  }
65  }
66  Column {
67  anchors.left: labelsColumn.right
68  anchors.right: parent.right
69  spacing: 10
70  TextField {
71  text: settings.owncloudServer
72  width: parent.width
73  readOnly: !syncSwitch.checked
74  onAccepted: settings.owncloudServer = text
75  }
76  TextField {
77  text: settings.owncloudUsername
78  width: parent.width
79  readOnly: !syncSwitch.checked
80  onAccepted: settings.owncloudUsername = text
81  }
82  TextField {
83  text: settings.owncloudPassword
84  echoMode: TextInput.Password
85  width: parent.width
86  readOnly: !syncSwitch.checked
87  onAccepted: settings.owncloudPassword = text
88  }
89  }
90  }
91 }
Rectangle
MarbleWindow::icon
void icon(name, size)
MarbleToolIcon
Definition: harmattan/MarbleToolIcon.qml:10
main
Definition: examples/cpp/marbleQuick2/main.qml:3
TextField
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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