• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • lib
  • marble
  • geodata
  • data
GeoDataListStyle.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2012 Mohammed Nafees <nafees.technocool@gmail.com>
9 //
10 
11 #ifndef GEODATALISTSTYLE_H
12 #define GEODATALISTSTYLE_H
13 
14 #include <QImage>
15 #include <QFlags>
16 #include <QVector>
17 
18 #include "MarbleGlobal.h"
19 #include "GeoDataObject.h"
20 #include "GeoDataItemIcon.h"
21 #include "geodata_export.h"
22 
23 namespace Marble
24 {
25 
26 class GeoDataListStylePrivate;
27 
28 class GEODATA_EXPORT GeoDataListStyle : public GeoDataObject
29 {
30 public:
31  GeoDataListStyle();
32 
33  GeoDataListStyle( const GeoDataListStyle &other );
34 
35  GeoDataListStyle& operator=( const GeoDataListStyle &other );
36 
37  ~GeoDataListStyle();
38 
40  virtual const char* nodeType() const;
41 
42  enum ListItemType {
43  Check,
44  RadioFolder,
45  CheckOffOnly,
46  CheckHideChildren
47  };
48 
49  ListItemType listItemType() const;
50  void setListItemType( const ListItemType &type );
51 
52  QColor backgroundColor() const;
53  void setBackgroundColor( const QColor &color );
54 
55  QVector<GeoDataItemIcon*> itemIconList() const;
56 
57  GeoDataItemIcon* child( int );
58 
59  const GeoDataItemIcon* child( int ) const;
60 
61  int childPosition( GeoDataItemIcon *child);
62 
63  void append( GeoDataItemIcon *other );
64 
65  void remove( int index );
66 
67  int size() const;
68 
69  GeoDataItemIcon& at( int pos );
70  const GeoDataItemIcon& at( int pos ) const;
71 
72  GeoDataItemIcon& last();
73  const GeoDataItemIcon& last() const;
74 
75  GeoDataItemIcon& first();
76  const GeoDataItemIcon& first() const;
77 
78  QVector<GeoDataItemIcon*>::Iterator begin();
79  QVector<GeoDataItemIcon*>::Iterator end();
80  QVector<GeoDataItemIcon*>::ConstIterator constBegin() const;
81  QVector<GeoDataItemIcon*>::ConstIterator constEnd() const;
82  void clear();
83 
84  virtual void pack( QDataStream& stream ) const;
85 
86  virtual void unpack( QDataStream& stream );
87 
88 private:
89  friend class GeoDataItemIcon;
90  GeoDataListStylePrivate* const d;
91 };
92 
93 }
94 
95 #endif
Marble::GeoDataListStyle::RadioFolder
Definition: GeoDataListStyle.h:44
Marble::GeoDataItemIcon
Definition: GeoDataItemIcon.h:24
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
GeoDataItemIcon.h
GeoDataObject.h
Marble::GeoDataListStyle::ListItemType
ListItemType
Definition: GeoDataListStyle.h:42
Marble::GeoDataListStyle::CheckOffOnly
Definition: GeoDataListStyle.h:45
MarbleGlobal.h
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::GeoDataListStyle
Definition: GeoDataListStyle.h:28
Marble::GeoDataListStyle::Check
Definition: GeoDataListStyle.h:43
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:50 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal