KOSMIndoorMap

IndoorMapInfoSheet.qml
1/*
2 SPDX-FileCopyrightText: 2020 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7import QtQuick
8import QtQuick.Layouts
9import QtQuick.Controls as QQC2
10import org.kde.kirigami as Kirigami
11import org.kde.kosmindoormap
12import org.kde.osm.editorcontroller
13
14OSMElementInformationDialog {
15 id: elementDetailsSheet
16 customFooterActions: [
17 Kirigami.Action {
18 icon.name: "document-edit"
19 text: "Edit with iD"
20 visible: elementDetailsSheet.model.element.id > 0
21 onTriggered: EditorController.editElement(elementDetailsSheet.model.element.element, Editor.ID)
22 },
23 Kirigami.Action {
24 icon.name: "org.openstreetmap.josm"
25 text: "Edit with JOSM"
26 visible: elementDetailsSheet.model.element.id > 0 && EditorController.hasEditor(Editor.JOSM)
27 onTriggered: EditorController.editElement(elementDetailsSheet.model.element.element, Editor.JOSM)
28 },
29 Kirigami.Action {
30 icon.name: "document-edit"
31 text: "Edit with Vespucci"
32 visible: elementDetailsSheet.model.element.id > 0 && EditorController.hasEditor(Editor.Vespucci)
33 onTriggered: EditorController.editElement(elementDetailsSheet.model.element.element, Editor.Vespucci)
34 },
35 Kirigami.Action {
36 property string wikidataId: elementDetailsSheet.model.element.tagValue(["wikidata", "brand:wikidata", "species:wikidata", "subject:wikidata"])
37 icon.name: "document-edit"
38 text: "Edit Wikidata"
39 visible: wikidataId.match(/^Q\d+$/)
40 onTriggered: Qt.openUrlExternally("https://wikidata.org/wiki/" + wikidataId)
41 }
42 ]
43}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:55:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.