Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-maps/Options.qml
- This file was added.
1 | // | ||||
---|---|---|---|---|---|
2 | // This file is part of the Marble Virtual Globe. | ||||
3 | // | ||||
4 | // This program is free software licensed under the GNU LGPL. You can | ||||
5 | // find a copy of this license in LICENSE.txt in the top directory of | ||||
6 | // the source code. | ||||
7 | // | ||||
8 | // Copyright 2016 Dennis Nienhüser <nienhueser@kde.org> | ||||
9 | // | ||||
10 | | ||||
11 | import QtQuick 2.8 | ||||
12 | import QtQuick.Controls 2.2 | ||||
13 | import QtQuick.Layouts 1.3 | ||||
14 | | ||||
15 | import org.kde.kirigami 2.0 as Kirigami | ||||
16 | | ||||
17 | import org.kde.marble 0.20 | ||||
18 | | ||||
19 | Kirigami.ScrollablePage { | ||||
20 | id: optionsPage | ||||
21 | padding: 0 | ||||
22 | topPadding: 0 | ||||
23 | leftPadding: 0 | ||||
24 | rightPadding: 0 | ||||
25 | bottomPadding: 0 | ||||
26 | | ||||
27 | signal backTriggered() | ||||
28 | | ||||
29 | Column { | ||||
30 | anchors { | ||||
31 | fill: parent | ||||
32 | margins: Kirigami.Units.gridUnit | ||||
33 | } | ||||
34 | | ||||
35 | Label { | ||||
36 | text: qsTr("<h3>Layer Options</h3>") | ||||
37 | } | ||||
38 | | ||||
39 | Label { | ||||
40 | text: qsTr("<h4>Public Transport Layers</h4>") | ||||
41 | } | ||||
42 | | ||||
43 | Item{ | ||||
44 | implicitHeight: publicTransportLoader.height + Kirigami.Units.gridUnit * 4 | ||||
45 | width: parent.width | ||||
46 | | ||||
47 | Loader { | ||||
48 | anchors.fill: parent | ||||
49 | id: publicTransportLoader | ||||
50 | source: "PublicTransport.qml" | ||||
51 | | ||||
52 | onLoaded: { | ||||
53 | item.implicitWidth = parent.width | ||||
54 | item.marbleMaps = marbleMaps | ||||
55 | } | ||||
56 | } | ||||
57 | } | ||||
58 | | ||||
59 | Label { | ||||
60 | topPadding: Kirigami.Units.gridUnit | ||||
61 | text: qsTr("<h4>Outdoor Activities Layers</h4>") | ||||
62 | } | ||||
63 | | ||||
64 | Item{ | ||||
65 | implicitHeight: outdoorActivitiesLoader.height + Kirigami.Units.gridUnit * 6 | ||||
66 | width: parent.width | ||||
67 | | ||||
68 | Loader { | ||||
69 | anchors.fill: parent | ||||
70 | id: outdoorActivitiesLoader | ||||
71 | source: "OutdoorActivities.qml" | ||||
72 | | ||||
73 | onLoaded: { | ||||
74 | item.implicitWidth = parent.width | ||||
75 | item.marbleMaps = marbleMaps | ||||
76 | } | ||||
77 | } | ||||
78 | } | ||||
79 | } | ||||
80 | } |