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

marble

  • sources
  • kde-4.14
  • 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  bool operator==( const GeoDataListStyle &other ) const;
38  bool operator!=( const GeoDataListStyle &other ) const;
39 
40  ~GeoDataListStyle();
41 
43  virtual const char* nodeType() const;
44 
45  enum ListItemType {
46  Check,
47  RadioFolder,
48  CheckOffOnly,
49  CheckHideChildren
50  };
51 
52  ListItemType listItemType() const;
53  void setListItemType( const ListItemType &type );
54 
55  QColor backgroundColor() const;
56  void setBackgroundColor( const QColor &color );
57 
58  QVector<GeoDataItemIcon*> itemIconList() const;
59 
60  GeoDataItemIcon* child( int );
61 
62  const GeoDataItemIcon* child( int ) const;
63 
64  int childPosition( const GeoDataItemIcon *child ) const;
65 
66  void append( GeoDataItemIcon *other );
67 
68  void remove( int index );
69 
70  int size() const;
71 
72  GeoDataItemIcon& at( int pos );
73  const GeoDataItemIcon& at( int pos ) const;
74 
75  GeoDataItemIcon& last();
76  const GeoDataItemIcon& last() const;
77 
78  GeoDataItemIcon& first();
79  const GeoDataItemIcon& first() const;
80 
81  QVector<GeoDataItemIcon*>::Iterator begin();
82  QVector<GeoDataItemIcon*>::Iterator end();
83  QVector<GeoDataItemIcon*>::ConstIterator constBegin() const;
84  QVector<GeoDataItemIcon*>::ConstIterator constEnd() const;
85  void clear();
86 
87  virtual void pack( QDataStream& stream ) const;
88 
89  virtual void unpack( QDataStream& stream );
90 
91 private:
92  friend class GeoDataItemIcon;
93  GeoDataListStylePrivate* const d;
94 };
95 
96 }
97 
98 #endif
Marble::GeoDataListStyle::RadioFolder
Definition: GeoDataListStyle.h:47
QDataStream
Marble::GeoDataItemIcon
Definition: GeoDataItemIcon.h:24
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
GeoDataItemIcon.h
GeoDataObject.h
Marble::GeoDataListStyle::ListItemType
ListItemType
Definition: GeoDataListStyle.h:45
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
Marble::GeoDataListStyle::CheckOffOnly
Definition: GeoDataListStyle.h:48
QColor
MarbleGlobal.h
QVector
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:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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
  • 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