File indexing completed on 2024-05-19 03:51:50

0001 /*
0002     SPDX-FileCopyrightText: 2008 Torsten Rahn <rahn@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef MARBLE_GEOSCENELEGEND_H
0008 #define MARBLE_GEOSCENELEGEND_H
0009 
0010 #include <QVector>
0011 #include "GeoDocument.h"
0012 
0013 #include <geodata_export.h>
0014 
0015 namespace Marble
0016 {
0017 
0018 class GeoSceneSection;
0019 
0020 class GeoSceneLegendPrivate;
0021 
0022 /**
0023  * @short Legend of a GeoScene document.
0024  */
0025 
0026 class GEODATA_EXPORT GeoSceneLegend : public GeoNode
0027 {
0028  public:
0029     GeoSceneLegend();
0030     ~GeoSceneLegend() override;
0031     
0032     const char* nodeType() const override;
0033 
0034     /**
0035      * @brief  Add a section to the legend
0036      * @param  section  the new section
0037      */
0038     void addSection( const GeoSceneSection* );
0039     QVector<const GeoSceneSection*> sections() const;
0040 
0041  private:
0042     Q_DISABLE_COPY( GeoSceneLegend )
0043     GeoSceneLegendPrivate * const d;
0044 };
0045 
0046 }
0047 
0048 #endif