• 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
AbstractDataPluginItem.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 2009 Bastian Holst <bastianholst@gmx.de>
9 //
10 
11 #ifndef MARBLE_ABSTRACTDATAPLUGINITEM_H
12 #define MARBLE_ABSTRACTDATAPLUGINITEM_H
13 
14 #include <QObject>
15 #include <QString>
16 #include <QHash>
17 
18 #include "BillboardGraphicsItem.h"
19 #include "marble_export.h"
20 
21 class QAction;
22 
23 namespace Marble
24 {
25 
26 class AbstractDataPluginItemPrivate;
27 
28 class MARBLE_EXPORT AbstractDataPluginItem : public QObject, public BillboardGraphicsItem
29 {
30  Q_OBJECT
31 
32  Q_PROPERTY( QString identifier READ id WRITE setId NOTIFY idChanged )
33  Q_PROPERTY( bool favorite READ isFavorite WRITE setFavorite NOTIFY favoriteChanged )
34  Q_PROPERTY( bool sticky READ isSticky WRITE setSticky NOTIFY stickyChanged )
35 
36  public:
37  explicit AbstractDataPluginItem( QObject *parent = 0 );
38  virtual ~AbstractDataPluginItem();
39 
40  QString target() const;
41  void setTarget( const QString& target );
42 
46  QString toolTip() const;
47 
51  void setToolTip( const QString& toolTip );
52 
53  QString id() const;
54  void setId( const QString& id );
55 
56  bool isFavorite() const;
57  virtual void setFavorite( bool favorite );
58 
59  bool isSticky() const;
60  void setSticky( bool sticky );
61 
66  qreal addedAngularResolution() const;
67  void setAddedAngularResolution( qreal resolution );
68 
74  virtual void setSettings( const QHash<QString, QVariant>& settings );
75 
79  virtual QAction *action();
80 
81  virtual bool initialized() const = 0;
82 
83  virtual void addDownloadedFile( const QString& url, const QString& type );
84 
85  virtual bool operator<( const AbstractDataPluginItem *other ) const = 0;
86 
87  virtual QList<QAction*> actions();
88 
89  Q_SIGNALS:
90  void updated();
91  void idChanged();
92  void favoriteChanged( const QString& id, bool favorite );
93  void stickyChanged();
94 
95  public Q_SLOTS:
96  void toggleFavorite();
97 
98  private:
99  AbstractDataPluginItemPrivate * const d;
100 };
101 
102 } // Marble namespace
103 
104 #endif
BillboardGraphicsItem.h
Marble::BillboardGraphicsItem
Base class for all 2D labels (a.k.a.
Definition: BillboardGraphicsItem.h:32
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
QHash
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
QList
marble_export.h
QAction
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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