Marble

GeoDataListStyle.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2012 Mohammed Nafees <nafees.technocool@gmail.com>
4//
5
6#ifndef GEODATALISTSTYLE_H
7#define GEODATALISTSTYLE_H
8
9#include "GeoDataObject.h"
10#include "MarbleGlobal.h"
11#include "geodata_export.h"
12
13#include <QColor>
14#include <QList>
15
16namespace Marble
17{
18
19class GeoDataListStylePrivate;
20class GeoDataItemIcon;
21
22/**
23 */
24class GEODATA_EXPORT GeoDataListStyle : public GeoDataObject
25{
26public:
27 GeoDataListStyle();
28
29 GeoDataListStyle(const GeoDataListStyle &other);
30
31 GeoDataListStyle &operator=(const GeoDataListStyle &other);
32
33 bool operator==(const GeoDataListStyle &other) const;
34 bool operator!=(const GeoDataListStyle &other) const;
35
36 ~GeoDataListStyle() override;
37
38 /** Provides type information for downcasting a GeoNode */
39 const char *nodeType() const override;
40
41 enum ListItemType {
42 Check,
43 RadioFolder,
44 CheckOffOnly,
45 CheckHideChildren
46 };
47
48 ListItemType listItemType() const;
49 void setListItemType(ListItemType type);
50
51 QColor backgroundColor() const;
52 void setBackgroundColor(const QColor &color);
53
54 QList<GeoDataItemIcon *> itemIconList() const;
55
56 GeoDataItemIcon *child(int);
57
58 const GeoDataItemIcon *child(int) const;
59
60 int childPosition(const GeoDataItemIcon *child) const;
61
62 void append(GeoDataItemIcon *other);
63
64 void remove(int index);
65
66 int size() const;
67
68 GeoDataItemIcon &at(int pos);
69 const GeoDataItemIcon &at(int pos) const;
70
71 GeoDataItemIcon &last();
72 const GeoDataItemIcon &last() const;
73
74 GeoDataItemIcon &first();
75 const GeoDataItemIcon &first() const;
76
81 void clear();
82
83 void pack(QDataStream &stream) const override;
84
85 void unpack(QDataStream &stream) override;
86
87private:
88 friend class GeoDataItemIcon;
89 GeoDataListStylePrivate *const d;
90};
91
92}
93
94#endif
KIOCORE_EXPORT bool operator!=(const UDSEntry &entry, const UDSEntry &other)
KIOCORE_EXPORT bool operator==(const UDSEntry &entry, const UDSEntry &other)
KGuiItem remove()
KGuiItem clear()
const QList< QKeySequence > & begin()
const QList< QKeySequence > & end()
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 Dec 20 2024 11:52:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.