Marble

OsmTagEditorWidget.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2015 Stanciu Marius-Valeriu <stanciumarius94@gmail.com>
4//
5
6#ifndef MARBLE_OSMTAGEDITORWIDGET_H
7#define MARBLE_OSMTAGEDITORWIDGET_H
8
9#include "marble_export.h"
10#include <QWidget>
11
12#include "MarbleGlobal.h"
13
14class QTreeWidgetItem;
15
16namespace Marble
17{
18
19class OsmTagEditorWidgetPrivate;
20class GeoDataPlacemark;
21class GeoDataFeature;
22class OsmPlacemarkData;
23
24class MARBLE_EXPORT OsmTagEditorWidget : public QWidget
25{
26 Q_OBJECT
27
28public:
29 explicit OsmTagEditorWidget(GeoDataPlacemark *placemark, QWidget *parent = nullptr);
30 ~OsmTagEditorWidget() override;
31
32 /**
33 * @brief returns the current tag set for the placemark
34 */
35 OsmPlacemarkData placemarkData() const;
36
37public Q_SLOTS:
38 void update();
39 void addSelectedTag();
40 void removeSelectedTag();
41 void handleDoubleClick(QTreeWidgetItem *item, int column);
42 void handleItemChanged(QTreeWidgetItem *item, int column);
43
44Q_SIGNALS:
45 void placemarkChanged(GeoDataFeature *);
46
47private:
48 friend class OsmTagEditorWidgetPrivate;
49 OsmTagEditorWidgetPrivate *const d;
50};
51
52}
53
54#endif
void update(Part *part, const QByteArray &data, qint64 dataSize)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.