Marble

GeoDataStyleSelector.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2007 Murad Tagirov <tmurad@gmail.com>
4// SPDX-FileCopyrightText: 2007 Inge Wallin <ingwa@kde.org>
5//
6
7#ifndef MARBLE_GEODATASTYLESELECTOR_H
8#define MARBLE_GEODATASTYLESELECTOR_H
9
10#include "GeoDataObject.h"
11
12#include "geodata_export.h"
13
14namespace Marble
15{
16
17class GeoDataStyleSelectorPrivate;
18
19/**
20 * @short an abstract base class for the style classes
21 *
22 * A GeoDataStyleSelector is a base class for the style classes Style
23 * and StyleMap classes. The StyleMap class selects a style based on
24 * the current mode of a Placemark (highlighted or normal). An element
25 * derived from StyleSelector is uniquely identified by its id and its
26 * url.
27 *
28 * @sa GeoDataStyle
29 * @sa GeoDataStyleMap
30 */
31class GEODATA_EXPORT GeoDataStyleSelector : public GeoDataObject
32{
33public:
34 ~GeoDataStyleSelector() override;
35
36 /**
37 * @brief assignment operator
38 */
39 GeoDataStyleSelector &operator=(const GeoDataStyleSelector &other);
40
41 bool operator==(const GeoDataStyleSelector &other) const;
42 bool operator!=(const GeoDataStyleSelector &other) const;
43
44 /**
45 * @brief Serialize the styleselector to a stream
46 * @param stream the stream
47 */
48 void pack(QDataStream &stream) const override;
49
50 /**
51 * @brief Unserialize the styleselector from a stream
52 * @param stream the stream
53 */
54 void unpack(QDataStream &stream) override;
55
56protected:
59
60private:
61 GeoDataStyleSelectorPrivate *const d;
62};
63
64}
65
66#endif
A base class for all geodata objects.
an abstract base class for the style classes
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:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.