• 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
GeoDataItemIcon.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 GEODATAITEMICON_H
12 #define GEODATAITEMICON_H
13 
14 #include <QImage>
15 #include <QFlags>
16 
17 #include "GeoDataFeature.h"
18 
19 namespace Marble
20 {
21 
22 class GeoDataItemIconPrivate;
23 
24 class GEODATA_EXPORT GeoDataItemIcon : public GeoDataObject
25 {
26  Q_FLAGS( ItemIconState ItemIconStates )
27 public:
28  GeoDataItemIcon();
29 
30  GeoDataItemIcon( const GeoDataItemIcon &other );
31 
32  GeoDataItemIcon& operator=( const GeoDataItemIcon &other );
33  bool operator==( const GeoDataItemIcon &other ) const;
34  bool operator!=( const GeoDataItemIcon &other ) const;
35 
36  ~GeoDataItemIcon();
37 
39  virtual const char* nodeType() const;
40 
41  enum ItemIconState {
42  Open = 1 << 0,
43  Closed = 1 << 1,
44  Error = 1 << 2,
45  Fetching0 = 1 << 3,
46  Fetching1 = 1 << 4,
47  Fetching2 = 1 << 5
48  };
49  Q_DECLARE_FLAGS( ItemIconStates, ItemIconState )
50 
51  ItemIconStates state() const;
52  void setState( const ItemIconStates &state );
53 
54  QString iconPath() const;
55  void setIconPath( const QString &path );
56 
57  QImage icon() const;
58  void setIcon( const QImage &icon );
59 
60 private:
61  GeoDataItemIconPrivate* const d;
62 };
63 
64 }
65 
66 #endif
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
GeoDataFeature.h
Marble::operator!=
bool operator!=(GeoDataLatLonBox const &lhs, GeoDataLatLonBox const &rhs)
Definition: GeoDataLatLonBox.cpp:59
QString
QImage
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
Marble::GeoDataItemIcon::ItemIconState
ItemIconState
Definition: GeoDataItemIcon.h:41
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