• 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
GeoDataStyle.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 2007 Murad Tagirov <tmurad@gmail.com>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 //
11 
12 
13 #ifndef MARBLE_GEODATASTYLE_H
14 #define MARBLE_GEODATASTYLE_H
15 
16 
17 #include <QMetaType>
18 #include <QPoint>
19 #include <QColor>
20 #include <QPixmap>
21 #include <QFont>
22 
23 #include "GeoDataStyleSelector.h"
24 #include "GeoDataIconStyle.h"
25 #include "GeoDataLabelStyle.h"
26 #include "GeoDataPolyStyle.h"
27 #include "GeoDataLineStyle.h"
28 #include "GeoDataBalloonStyle.h"
29 #include "GeoDataListStyle.h"
30 
31 #include "geodata_export.h"
32 
33 namespace Marble
34 {
35 
36 class GeoDataStylePrivate;
37 
55 class GEODATA_EXPORT GeoDataStyle : public GeoDataStyleSelector
56 {
57  public:
59  GeoDataStyle();
60  GeoDataStyle( const GeoDataStyle& other );
67  GeoDataStyle( const QImage& icon,
68  const QFont &font, const QColor &color );
69  ~GeoDataStyle();
70 
72  virtual const char* nodeType() const;
73 
75  void setIconStyle( const GeoDataIconStyle& style );
77  GeoDataIconStyle& iconStyle();
78  const GeoDataIconStyle& iconStyle() const;
80  void setLabelStyle( const GeoDataLabelStyle& style );
82  GeoDataLabelStyle& labelStyle();
83  const GeoDataLabelStyle& labelStyle() const;
85  void setLineStyle( const GeoDataLineStyle& style );
87  GeoDataLineStyle& lineStyle();
88  const GeoDataLineStyle& lineStyle() const;
90  void setPolyStyle( const GeoDataPolyStyle& style );
92  GeoDataPolyStyle& polyStyle();
93  const GeoDataPolyStyle& polyStyle() const;
95  void setBalloonStyle( const GeoDataBalloonStyle& style );
97  GeoDataBalloonStyle& balloonStyle();
98  const GeoDataBalloonStyle& balloonStyle() const;
100  void setListStyle( const GeoDataListStyle& style );
102  GeoDataListStyle& listStyle();
103  const GeoDataListStyle& listStyle() const;
104 
109  GeoDataStyle& operator=( const GeoDataStyle& other );
110 
111  bool operator==( const GeoDataStyle &other ) const;
112  bool operator!=( const GeoDataStyle &other ) const;
113 
118  virtual void pack( QDataStream& stream ) const;
123  virtual void unpack( QDataStream& stream );
124 
125  private:
126  GeoDataStylePrivate * const d;
127 };
128 
129 }
130 
131 Q_DECLARE_METATYPE( Marble::GeoDataStyle* )
132 Q_DECLARE_METATYPE( const Marble::GeoDataStyle* )
133 
134 #endif
GeoDataListStyle.h
Marble::GeoDataIconStyle
Definition: GeoDataIconStyle.h:29
Marble::GeoDataLineStyle
specifies the style how lines are drawn
Definition: GeoDataLineStyle.h:36
GeoDataIconStyle.h
QDataStream
QFont
GeoDataLineStyle.h
Marble::operator==
bool operator==(const DownloadPolicyKey &lhs, const DownloadPolicyKey &rhs)
Definition: DownloadPolicy.h:49
Marble::GeoDataStyle
an addressable style group
Definition: GeoDataStyle.h:55
GeoDataLabelStyle.h
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QColor
Marble::GeoDataBalloonStyle
Definition: GeoDataBalloonStyle.h:23
QImage
GeoDataStyleSelector.h
Marble::GeoDataLabelStyle
specifies how the name of a GeoDataFeature is drawn
Definition: GeoDataLabelStyle.h:36
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
geodata_export.h
Marble::GeoDataStyleSelector
a base class for the style classes
Definition: GeoDataStyleSelector.h:40
Marble::GeoDataPolyStyle
specifies the style how polygons are drawn
Definition: GeoDataPolyStyle.h:34
GeoDataBalloonStyle.h
GeoDataPolyStyle.h
Marble::GeoDataListStyle
Definition: GeoDataListStyle.h:28
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