Marble

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

KDE's Doxygen guidelines are available online.