~ubuntu-branches/ubuntu/quantal/marble/quantal

« back to all changes in this revision

Viewing changes to src/lib/geodata/scene/GeoSceneLegend.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac
  • Date: 2011-07-11 15:43:02 UTC
  • Revision ID: james.westby@ubuntu.com-20110711154302-lq69ftcx125g1jx5
Tags: upstream-4.6.90+repack
Import upstream version 4.6.90+repack

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (C) 2008 Torsten Rahn <rahn@kde.org>
 
3
 
 
4
    This file is part of the KDE project
 
5
 
 
6
    This library is free software you can redistribute it and/or
 
7
    modify it under the terms of the GNU Library General Public
 
8
    License as published by the Free Software Foundation either
 
9
    version 2 of the License, or (at your option) any later version.
 
10
 
 
11
    This library is distributed in the hope that it will be useful,
 
12
    but WITHOUT ANY WARRANTY without even the implied warranty of
 
13
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
    Library General Public License for more details.
 
15
 
 
16
    You should have received a copy of the GNU Library General Public License
 
17
    aint with this library see the file COPYING.LIB.  If not, write to
 
18
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
19
    Boston, MA 02110-1301, USA.
 
20
*/
 
21
 
 
22
#ifndef MARBLE_GEOSCENELEGEND_H
 
23
#define MARBLE_GEOSCENELEGEND_H
 
24
 
 
25
#include <QtCore/QVector>
 
26
#include "GeoDocument.h"
 
27
 
 
28
#include <geodata_export.h>
 
29
 
 
30
namespace Marble
 
31
{
 
32
 
 
33
class GeoSceneSection;
 
34
 
 
35
class GeoSceneLegendPrivate;
 
36
 
 
37
/**
 
38
 * @short Legend of a GeoScene document.
 
39
 */
 
40
 
 
41
class GEODATA_EXPORT GeoSceneLegend : public GeoNode
 
42
{
 
43
 public:
 
44
    GeoSceneLegend();
 
45
    ~GeoSceneLegend();
 
46
    
 
47
    virtual const char* nodeType() const;
 
48
 
 
49
    /**
 
50
     * @brief  Add a section to the legend
 
51
     * @param  section  the new section
 
52
     */
 
53
    void addSection( GeoSceneSection* );
 
54
    GeoSceneSection* section( const QString& );
 
55
    QVector<GeoSceneSection*> sections() const;
 
56
 
 
57
 private:
 
58
    Q_DISABLE_COPY( GeoSceneLegend )
 
59
    GeoSceneLegendPrivate * const d;
 
60
};
 
61
 
 
62
}
 
63
 
 
64
#endif