KOSMIndoorMap

editorcontroller.h
1/*
2 SPDX-FileCopyrightText: 2023 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KOSM_EDITORCONTROLLER_H
7#define KOSM_EDITORCONTROLLER_H
8
9#include "kosmeditorcontroller_export.h"
10
11#include <osm/element.h>
12
13#include <memory>
14
15namespace KOSM {
16
17/** Filtering/sorting on top of the AmenityModel.
18 * - filters on all visible roles
19 * - sorts while keeping the grouping intact
20 */
21class KOSMEDITORCONTROLLER_EXPORT EditorController
22{
23 Q_GADGET
24public:
25 enum Editor {
26 ID,
27 JOSM,
28 Vespucci
29 };
30 Q_ENUM(Editor)
31
32 Q_INVOKABLE static bool hasEditor(Editor editor);
33 Q_INVOKABLE static void editElement(OSM::Element element, Editor editor);
34 Q_INVOKABLE static void editBoundingBox(OSM::BoundingBox box, Editor editor);
35};
36
37}
38
39#endif
Filtering/sorting on top of the AmenityModel.
Bounding box, ie.
Definition datatypes.h:95
A reference to any of OSM::Node/OSM::Way/OSM::Relation.
Definition element.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.