Marble

PlacemarkEditHeader.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Mikhail Ivchenko <ematirov@gmail.com>
4
5
6#ifndef MARBLE_PLACEMARKEDITHEADER_H
7#define MARBLE_PLACEMARKEDITHEADER_H
8
9#include <QWidget>
10
11#include "GeoDataCoordinates.h"
12#include "MarbleGlobal.h"
13#include "marble_export.h"
14
15namespace Marble
16{
17
18class PlacemarkEditHeaderPrivate;
19
20class MARBLE_EXPORT PlacemarkEditHeader : public QWidget
21{
22 Q_OBJECT
23
24public:
25 explicit PlacemarkEditHeader(QWidget *parent = nullptr,
26 GeoDataCoordinates::Notation notation = GeoDataCoordinates::DMS,
27 const QString& name = QString(),
28 const QString& iconLink = QString(),
29 const QString& id = QString(),
30 const QStringList &idFilter = QStringList() );
31 ~PlacemarkEditHeader() override;
32 QString name() const;
33 QString iconLink() const;
34 qreal latitude() const;
35 qreal longitude() const;
36 GeoDataCoordinates::Notation notation() const;
37 bool positionVisible() const;
38 QString id() const;
39 QStringList idFilter() const;
40 bool isIdVisible() const;
41 bool isIdValid() const;
42 QString targetId() const;
43 QStringList targetIdList() const;
44 bool isTargetIdVisible() const;
45public Q_SLOTS:
46 void setName(const QString &name);
47 void setIconLink(const QString &iconLink);
48 void setLatitude(qreal latitude);
49 void setLongitude(qreal longitude);
50 void setNotation(GeoDataCoordinates::Notation notation);
51 void setPositionVisible( bool visible );
52 QString setId( const QString &id );
53 void setIdFilter( const QStringList &filter );
54 void setIdVisible( bool visible );
55 void setTargetId( const QString &targetId );
56 void setTargetIdList( const QStringList &targetIdList );
57 void setTargetIdVisible( bool visible );
58 void selectAll();
59 void setReadOnly(bool state);
60Q_SIGNALS:
61 void valueChanged();
62private Q_SLOTS:
63 void updateValues();
64private:
65 PlacemarkEditHeaderPrivate* const d;
66 Q_PRIVATE_SLOT(d, void loadIconFile())
67 friend class PlacemarkEditHeaderPrivate;
68};
69
70}
71
72#endif
QString name(GameStandardAction id)
QAction * selectAll(const QObject *recvr, const char *slot, QObject *parent)
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 Fri Jun 7 2024 12:03:13 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.