• 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
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 
34  ~GeoDataItemIcon();
35 
37  virtual const char* nodeType() const;
38 
39  enum ItemIconState {
40  Open = 1 << 0,
41  Closed = 1 << 1,
42  Error = 1 << 2,
43  Fetching0 = 1 << 3,
44  Fetching1 = 1 << 4,
45  Fetching2 = 1 << 5
46  };
47  Q_DECLARE_FLAGS( ItemIconStates, ItemIconState )
48 
49  ItemIconStates state() const;
50  void setState( const ItemIconStates &state );
51 
52  QString iconPath() const;
53  void setIconPath( const QString &path );
54 
55  QImage icon() const;
56  void setIcon( const QImage &icon );
57 
58 private:
59  GeoDataItemIconPrivate* const d;
60 };
61 
62 }
63 
64 #endif
Marble::GeoDataItemIcon
Definition: GeoDataItemIcon.h:24
Marble::GeoDataObject
A base class for all geodata objects.
Definition: GeoDataObject.h:48
GeoDataFeature.h
GEODATA_EXPORT
#define GEODATA_EXPORT
Definition: geodata_export.h:22
Marble::GeoDataItemIcon::ItemIconState
ItemIconState
Definition: GeoDataItemIcon.h:39
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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