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

« back to all changes in this revision

Viewing changes to src/lib/geodata/scene/GeoSceneItem.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_GEOSCENEITEM_H
 
23
#define MARBLE_GEOSCENEITEM_H
 
24
 
 
25
#include <QtCore/QString>
 
26
 
 
27
#include "GeoDocument.h"
 
28
 
 
29
namespace Marble
 
30
{
 
31
 
 
32
class GeoSceneIcon;
 
33
 
 
34
/**
 
35
 * @short The section item in a legend of a GeoScene document.
 
36
 */
 
37
 
 
38
class GeoSceneItem : public GeoNode
 
39
{
 
40
 public:
 
41
    explicit GeoSceneItem( const QString& name );
 
42
    ~GeoSceneItem();
 
43
    
 
44
    virtual const char* nodeType() const;
 
45
 
 
46
    QString name() const;
 
47
 
 
48
    QString text() const;
 
49
    void setText( const QString& text );
 
50
 
 
51
    bool checkable() const;
 
52
    void setCheckable( bool checkable );
 
53
 
 
54
    QString connectTo() const;
 
55
    void setConnectTo( const QString& text );
 
56
 
 
57
    int  spacing() const;
 
58
    void setSpacing( int spacing );
 
59
 
 
60
    const GeoSceneIcon* icon() const;
 
61
    GeoSceneIcon* icon();
 
62
 
 
63
 private:
 
64
    Q_DISABLE_COPY( GeoSceneItem )
 
65
 
 
66
    GeoSceneIcon* m_icon;
 
67
 
 
68
    QString m_name;
 
69
    QString m_text;
 
70
    QString m_connectTo;
 
71
 
 
72
    bool    m_checkable;
 
73
    int     m_spacing;
 
74
};
 
75
 
 
76
}
 
77
 
 
78
#endif