Marble

OsmTagEditorWidget.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2015 Stanciu Marius-Valeriu <[email protected]>
4 //
5 
6 #ifndef MARBLE_OSMTAGEDITORWIDGET_H
7 #define MARBLE_OSMTAGEDITORWIDGET_H
8 
9 #include <QWidget>
10 #include "marble_export.h"
11 
12 #include "MarbleGlobal.h"
13 
14 class QTreeWidgetItem;
15 
16 namespace Marble
17 {
18 
19 class OsmTagEditorWidgetPrivate;
20 class GeoDataPlacemark;
21 class GeoDataFeature;
22 class OsmPlacemarkData;
23 
24 class MARBLE_EXPORT OsmTagEditorWidget : public QWidget
25 {
26  Q_OBJECT
27 
28 public:
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 
37 public 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 
44 Q_SIGNALS:
45  void placemarkChanged( GeoDataFeature *);
46 
47 private:
48  friend class OsmTagEditorWidgetPrivate;
49  OsmTagEditorWidgetPrivate* const d;
50 };
51 
52 }
53 
54 #endif
55 
Binds a QML item to a specific geodetic location in screen coordinates.
void update(Part *part, const QByteArray &data, qint64 dataSize)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.