Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-maps/AboutDialog.qml
Context not available. | |||||
13 | import QtQuick.Window 2.2 | 13 | import QtQuick.Window 2.2 | ||
---|---|---|---|---|---|
14 | import QtQuick.Layouts 1.1 | 14 | import QtQuick.Layouts 1.1 | ||
15 | 15 | | |||
16 | import org.kde.marble 0.20 | 16 | import org.kde.kirigami 2.0 as Kirigami | ||
17 | | ||||
18 | Item { | | |||
19 | id: root | | |||
20 | height: Screen.pixelDensity * 2 + Math.max(marbleText.height, devText.height) | | |||
21 | | ||||
22 | SystemPalette { | | |||
23 | id: palette | | |||
24 | colorGroup: SystemPalette.Active | | |||
25 | } | | |||
26 | 17 | | |||
27 | Rectangle { | 18 | import org.kde.marble 0.20 | ||
28 | anchors.fill: parent | | |||
29 | color: palette.base | | |||
30 | } | | |||
31 | 19 | | |||
32 | SwipeView { | 20 | Kirigami.Page { | ||
33 | id: tabView | 21 | Item { | ||
34 | currentIndex: pageIndicator.currentIndex | 22 | id: root | ||
35 | anchors.fill: parent | 23 | anchors.fill: parent | ||
24 | height: Screen.pixelDensity * 2 + Math.max(marbleText.height, devText.height) | ||||
36 | 25 | | |||
37 | Item { | 26 | SystemPalette { | ||
38 | id: marbleItem | 27 | id: palette | ||
39 | Text { | 28 | colorGroup: SystemPalette.Active | ||
40 | id: marbleText | | |||
41 | anchors.bottom: parent.bottom | | |||
42 | anchors.left: parent.left | | |||
43 | anchors.right: marbleLogo.left | | |||
44 | anchors.margins: Screen.pixelDensity * 1 | | |||
45 | anchors.leftMargin: Screen.pixelDensity * 2 | | |||
46 | | ||||
47 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | | |||
48 | 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>") | | |||
49 | onLinkActivated: Qt.openUrlExternally(link) | | |||
50 | } | | |||
51 | | ||||
52 | Image { | | |||
53 | id: marbleLogo | | |||
54 | anchors.right: parent.right | | |||
55 | anchors.bottom: parent.bottom | | |||
56 | anchors.margins: Screen.pixelDensity * 2 | | |||
57 | height: 0.8 * marbleText.height | | |||
58 | | ||||
59 | fillMode: Image.PreserveAspectFit | | |||
60 | source: "qrc:/konqi/globe.png" | | |||
61 | } | | |||
62 | } | 29 | } | ||
63 | Item { | | |||
64 | id: supportItem | | |||
65 | Text { | | |||
66 | id: groupText | | |||
67 | anchors.left: parent.left | | |||
68 | anchors.right: groupKonqi.left | | |||
69 | anchors.bottom: parent.bottom | | |||
70 | anchors.margins: Screen.pixelDensity * 1 | | |||
71 | anchors.leftMargin: Screen.pixelDensity * 2 | | |||
72 | | ||||
73 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | | |||
74 | 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>") | | |||
75 | onLinkActivated: Qt.openUrlExternally(link) | | |||
76 | } | | |||
77 | | ||||
78 | Image { | | |||
79 | id: groupKonqi | | |||
80 | anchors.right: parent.right | | |||
81 | anchors.bottom: parent.bottom | | |||
82 | anchors.bottomMargin: Screen.pixelDensity * 3 | | |||
83 | anchors.rightMargin: Screen.pixelDensity * 2 | | |||
84 | height: 0.8 * groupText.height | | |||
85 | 30 | | |||
86 | fillMode: Image.PreserveAspectFit | 31 | SwipeView { | ||
87 | source: "qrc:/konqi/group.png" | 32 | id: tabView | ||
33 | currentIndex: pageIndicator.currentIndex | ||||
34 | anchors.fill: parent | ||||
35 | spacing: 100 | ||||
36 | | ||||
37 | Item { | ||||
38 | id: marbleItem | ||||
39 | Text { | ||||
40 | id: marbleText | ||||
41 | anchors.left: parent.left | ||||
42 | anchors.right: parent.right | ||||
43 | anchors.margins: Screen.pixelDensity * 1 | ||||
44 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | ||||
45 | 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>") | ||||
46 | onLinkActivated: Qt.openUrlExternally(link) | ||||
47 | } | ||||
48 | | ||||
49 | Image { | ||||
50 | id: marbleLogo | ||||
51 | anchors.right: parent.right | ||||
52 | anchors.bottom: parent.bottom | ||||
53 | anchors.margins: Screen.pixelDensity | ||||
54 | height: marbleText.height | ||||
55 | | ||||
56 | fillMode: Image.PreserveAspectFit | ||||
57 | source: "qrc:/konqi/globe.png" | ||||
58 | } | ||||
88 | } | 59 | } | ||
89 | } | 60 | Item { | ||
90 | Item { | 61 | id: supportItem | ||
91 | id: devItem | 62 | Text { | ||
92 | Text { | 63 | id: groupText | ||
93 | id: devText | 64 | anchors.left: parent.left | ||
94 | anchors.left: parent.left | 65 | anchors.right: parent.right | ||
95 | anchors.right: devKonqi.left | 66 | anchors.margins: Screen.pixelDensity * 1 | ||
96 | anchors.bottom: parent.bottom | 67 | | ||
97 | anchors.margins: Screen.pixelDensity * 1 | 68 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | ||
98 | anchors.leftMargin: Screen.pixelDensity * 2 | 69 | 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>") | ||
99 | 70 | onLinkActivated: Qt.openUrlExternally(link) | |||
100 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | 71 | } | ||
101 | 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. Contact us via <a href=\"https://mail.kde.org/mailman/listinfo/marble-devel\">marble-devel@kde.org</a>.</p>") | 72 | | ||
102 | onLinkActivated: Qt.openUrlExternally(link) | 73 | Image { | ||
74 | id: groupKonqi | ||||
75 | anchors.right: parent.right | ||||
76 | anchors.bottom: parent.bottom | ||||
77 | anchors.bottomMargin: Screen.pixelDensity * 3 | ||||
78 | anchors.rightMargin: Screen.pixelDensity * 2 | ||||
79 | height: groupText.height | ||||
80 | | ||||
81 | fillMode: Image.PreserveAspectFit | ||||
82 | source: "qrc:/konqi/group.png" | ||||
83 | } | ||||
103 | } | 84 | } | ||
104 | 85 | Item { | |||
105 | Image { | 86 | id: devItem | ||
106 | id: devKonqi | 87 | Text { | ||
107 | anchors.right: parent.right | 88 | id: devText | ||
108 | anchors.bottom: parent.bottom | 89 | anchors.left: parent.left | ||
109 | anchors.bottomMargin: Screen.pixelDensity * 3 | 90 | anchors.right: parent.right | ||
110 | anchors.rightMargin: Screen.pixelDensity * 2 | 91 | anchors.margins: Screen.pixelDensity * 1 | ||
111 | height: 0.8 * devText.height | 92 | | ||
112 | 93 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | |||
113 | fillMode: Image.PreserveAspectFit | 94 | 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>") | ||
114 | source: "qrc:/konqi/app-dev.png" | 95 | onLinkActivated: Qt.openUrlExternally(link) | ||
96 | } | ||||
97 | | ||||
98 | Image { | ||||
99 | id: devKonqi | ||||
100 | anchors.right: parent.right | ||||
101 | anchors.bottom: parent.bottom | ||||
102 | anchors.bottomMargin: Screen.pixelDensity * 3 | ||||
103 | anchors.rightMargin: Screen.pixelDensity * 2 | ||||
104 | height: devText.height | ||||
105 | | ||||
106 | fillMode: Image.PreserveAspectFit | ||||
107 | source: "qrc:/konqi/app-dev.png" | ||||
108 | } | ||||
115 | } | 109 | } | ||
116 | } | 110 | Item { | ||
117 | Item { | 111 | id: attributionItem | ||
118 | id: attributionItem | 112 | Text { | ||
119 | Text { | 113 | id: attributionText | ||
120 | id: attributionText | 114 | anchors.left: parent.left | ||
121 | anchors.left: parent.left | 115 | anchors.right: parent.right | ||
122 | anchors.right: devQtKonqi.left | 116 | anchors.margins: Screen.pixelDensity * 1 | ||
123 | anchors.bottom: parent.bottom | 117 | anchors.leftMargin: Screen.pixelDensity * 2 | ||
124 | anchors.margins: Screen.pixelDensity * 1 | 118 | | ||
125 | anchors.leftMargin: Screen.pixelDensity * 2 | 119 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | ||
126 | 120 | width: parent.width | |||
127 | wrapMode: Text.WrapAtWordBoundaryOrAnywhere | 121 | 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=\"http://opendatacommons.org/licenses/odbl/\">Open Database License</a>. Additionally public domain data from the <a href=\"http://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=\"http://creativecommons.org/publicdomain/zero/1.0/\">CC0 Public Domain)</a>.</p>") | ||
128 | width: parent.width | 122 | onLinkActivated: Qt.openUrlExternally(link) | ||
129 | 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=\"http://opendatacommons.org/licenses/odbl/\">Open Database License</a>. Additionally public domain data from the <a href=\"http://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=\"http://creativecommons.org/publicdomain/zero/1.0/\">CC0 Public Domain)</a>.</p>") | 123 | } | ||
130 | onLinkActivated: Qt.openUrlExternally(link) | 124 | | ||
131 | } | 125 | Image { | ||
132 | 126 | id: devQtKonqi | |||
133 | Image { | 127 | anchors.right: parent.right | ||
134 | id: devQtKonqi | 128 | anchors.bottom: parent.bottom | ||
135 | anchors.right: parent.right | 129 | anchors.bottomMargin: Screen.pixelDensity * 3 | ||
136 | anchors.bottom: parent.bottom | 130 | anchors.rightMargin: Screen.pixelDensity * 2 | ||
137 | anchors.bottomMargin: Screen.pixelDensity * 3 | 131 | height: attributionText.height | ||
138 | anchors.rightMargin: Screen.pixelDensity * 2 | 132 | | ||
139 | height: 0.8 * attributionText.height | 133 | fillMode: Image.PreserveAspectFit | ||
140 | 134 | source: "qrc:/konqi/dev-qt.png" | |||
141 | fillMode: Image.PreserveAspectFit | 135 | } | ||
142 | source: "qrc:/konqi/dev-qt.png" | | |||
143 | } | 136 | } | ||
144 | } | 137 | } | ||
145 | } | | |||
146 | 138 | | |||
147 | PageIndicator { | 139 | PageIndicator { | ||
148 | id: pageIndicator | 140 | id: pageIndicator | ||
149 | interactive: true | 141 | interactive: true | ||
150 | count: tabView.count | 142 | count: tabView.count | ||
151 | currentIndex: tabView.currentIndex | 143 | currentIndex: tabView.currentIndex | ||
152 | 144 | | |||
153 | anchors.bottom: parent.bottom | 145 | anchors.bottom: parent.bottom | ||
154 | anchors.horizontalCenter: parent.horizontalCenter | 146 | anchors.horizontalCenter: parent.horizontalCenter | ||
147 | } | ||||
155 | } | 148 | } | ||
156 | } | 149 | } | ||
Context not available. |