File indexing completed on 2025-01-05 03:59:23
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2015 Stanciu Marius-Valeriu <stanciumarius94@gmail.com> 0004 // 0005 0006 #ifndef MARBLE_OSMRELATIONEDITORDIALOG_H 0007 #define MARBLE_OSMRELATIONEDITORDIALOG_H 0008 0009 #include "digikam_export.h" 0010 0011 #include <QDialog> 0012 0013 class QLineEdit; 0014 class QDialogButtonBox; 0015 0016 namespace Marble { 0017 0018 class OsmRelationEditorDialogPrivate; 0019 class OsmTagEditorWidget; 0020 class OsmPlacemarkData; 0021 class GeoDataPlacemark; 0022 0023 /** 0024 * @brief The OsmRelationEditorDialog class small dialog that is used to edit relations 0025 * The dialog has a line edit for name input, and a OsmTagEditorWidget for tag editing 0026 */ 0027 class DIGIKAM_EXPORT OsmRelationEditorDialog : public QDialog 0028 { 0029 Q_OBJECT 0030 0031 public: 0032 explicit OsmRelationEditorDialog( OsmPlacemarkData *relationData, QWidget *parent = nullptr ); 0033 ~OsmRelationEditorDialog() override; 0034 0035 private Q_SLOTS: 0036 void checkFields(); 0037 0038 private: 0039 void finish(); 0040 friend class OsmRelationEditorDialogPrivate; 0041 QDialogButtonBox *m_buttonBox; 0042 QLineEdit *m_nameLineEdit; 0043 OsmTagEditorWidget *m_tagEditor; 0044 GeoDataPlacemark *m_dummyPlacemark; 0045 OsmPlacemarkData *m_relationData; 0046 }; 0047 0048 } 0049 0050 #endif