Warning, /education/marble/src/apps/marble-maps/AboutDialog.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2016 Dennis Nienhüser <nienhueser@kde.org>
0004 //
0005 
0006 import QtQuick 2.3
0007 import QtQuick.Controls 2.0
0008 import QtQuick.Window 2.2
0009 import QtQuick.Layouts 1.1
0010 
0011 import org.kde.kirigami 2.0 as Kirigami
0012 
0013 import org.kde.marble 0.20
0014 
0015 Kirigami.Page {
0016     Item {
0017         id: root
0018         anchors.fill: parent
0019         height: Screen.pixelDensity * 2 + Math.max(marbleText.height, devText.height)
0020 
0021         SystemPalette {
0022             id: palette
0023             colorGroup: SystemPalette.Active
0024         }
0025 
0026         SwipeView {
0027             id: tabView
0028             currentIndex: pageIndicator.currentIndex
0029             anchors.fill: parent
0030             spacing: 100
0031 
0032             Item {
0033                 id: marbleItem
0034                 Text {
0035                     id: marbleText
0036                     anchors.left: parent.left
0037                     anchors.right: parent.right
0038                     anchors.margins: Screen.pixelDensity * 1
0039                     wrapMode: Text.WrapAtWordBoundaryOrAnywhere
0040                     text: qsTr("<h3>Marble Maps</h3><p>Find your way! Marble Maps brings the highly detailed OpenStreetMap to your mobile devices. It features a crisp, beautiful map with an intuitive user interface. It's open source, entirely based on free data and open standards and respects your privacy.</p>")
0041                     onLinkActivated: Qt.openUrlExternally(link)
0042                 }
0043 
0044                 Image {
0045                     id: marbleLogo
0046                     anchors.right: parent.right
0047                     anchors.bottom: parent.bottom
0048                     anchors.margins: Screen.pixelDensity
0049                     height:  marbleText.height
0050 
0051                     fillMode: Image.PreserveAspectFit
0052                     source: "qrc:/konqi/globe.png"
0053                 }
0054             }
0055             Item {
0056                 id: supportItem
0057                 Text {
0058                     id: groupText
0059                     anchors.left: parent.left
0060                     anchors.right: parent.right
0061                     anchors.margins: Screen.pixelDensity * 1
0062 
0063                     wrapMode: Text.WrapAtWordBoundaryOrAnywhere
0064                     text: qsTr("<h3>Support</h3><p>Do you have a question? Want to file a suggestion for improvement? Please use the <a href=\"https://forum.kde.org/viewforum.php?f=217\">Marble forum</a> to get in touch with fellow Marble users and developers. Further support channels are listed at <a href=\"https://marble.kde.org/support.php\">marble.kde.org</a>. We are looking forward to your feedback!</p>")
0065                     onLinkActivated: Qt.openUrlExternally(link)
0066                 }
0067 
0068                 Image {
0069                     id: groupKonqi
0070                     anchors.right: parent.right
0071                     anchors.bottom: parent.bottom
0072                     anchors.bottomMargin: Screen.pixelDensity * 3
0073                     anchors.rightMargin: Screen.pixelDensity * 2
0074                     height: groupText.height
0075 
0076                     fillMode: Image.PreserveAspectFit
0077                     source: "qrc:/konqi/group.png"
0078                 }
0079             }
0080             Item {
0081                 id: devItem
0082                 Text {
0083                     id: devText
0084                     anchors.left: parent.left
0085                     anchors.right: parent.right
0086                     anchors.margins: Screen.pixelDensity * 1
0087 
0088                     wrapMode: Text.WrapAtWordBoundaryOrAnywhere
0089                     text: qsTr("<h3>Development Team</h3><p>The main developers of this app are Dennis Nienhüser, Torsten Rahn, Sanjiban Bairagya, Friedrich W. H. Kossebau, Gábor Péterffy and Mikhail Ivchenko. They are part of more than 200 developers who already contributed to the Marble project. <br> Contact us via <a href=\"https://mail.kde.org/mailman/listinfo/marble-devel\">marble-devel@kde.org</a>.</p>")
0090                     onLinkActivated: Qt.openUrlExternally(link)
0091                 }
0092 
0093                 Image {
0094                     id: devKonqi
0095                     anchors.right: parent.right
0096                     anchors.bottom: parent.bottom
0097                     anchors.bottomMargin: Screen.pixelDensity * 3
0098                     anchors.rightMargin: Screen.pixelDensity * 2
0099                     height: devText.height
0100 
0101                     fillMode: Image.PreserveAspectFit
0102                     source: "qrc:/konqi/app-dev.png"
0103                 }
0104             }
0105             Item {
0106                 id: attributionItem
0107                 Text {
0108                     id: attributionText
0109                     anchors.left: parent.left
0110                     anchors.right: parent.right
0111                     anchors.margins: Screen.pixelDensity * 1
0112                     anchors.leftMargin: Screen.pixelDensity * 2
0113 
0114                     wrapMode: Text.WrapAtWordBoundaryOrAnywhere
0115                     width: parent.width
0116                     text: qsTr("<h3>Attribution</h3><p>The map is based on data from the <a href=\"https://www.openstreetmap.org\">OpenStreetMap</a> project, available under the <a href=\"https://opendatacommons.org/licenses/odbl/\">Open Database License</a>. Additionally public domain data from the <a href=\"https://www.naturalearthdata.com/\">Natural Earth</a> project is used. The map style is influenced by and uses icons from <a href=\"https://github.com/gravitystorm/openstreetmap-carto\">OpenStreetMap Carto</a> (<a href=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0 Public Domain)</a>.</p>")
0117                     onLinkActivated: Qt.openUrlExternally(link)
0118                 }
0119 
0120                 Image {
0121                     id: devQtKonqi
0122                     anchors.right: parent.right
0123                     anchors.bottom: parent.bottom
0124                     anchors.bottomMargin: Screen.pixelDensity * 3
0125                     anchors.rightMargin: Screen.pixelDensity * 2
0126                     height: attributionText.height
0127 
0128                     fillMode: Image.PreserveAspectFit
0129                     source: "qrc:/konqi/dev-qt.png"
0130                 }
0131             }
0132         }
0133 
0134         PageIndicator {
0135             id: pageIndicator
0136             interactive: true
0137             count: tabView.count
0138             currentIndex: tabView.currentIndex
0139 
0140             anchors.bottom: parent.bottom
0141             anchors.horizontalCenter: parent.horizontalCenter
0142         }
0143     }
0144 }