• 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
  • plugins
  • render
  • opencaching
OpenCachingItem.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 2011 Daniel Marth <danielmarth@gmx.at>
9 //
10 
11 #ifndef OPENCACHINGITEM_H
12 #define OPENCACHINGITEM_H
13 
14 #include "AbstractDataPluginItem.h"
15 #include "OpenCachingCache.h"
16 
17 #include <QDate>
18 #include <QPixmap>
19 
20 class QFont;
21 
22 namespace Ui
23 {
24  class OpenCachingCacheDialog;
25 }
26 
27 namespace Marble
28 {
29 
33 class OpenCachingItem : public AbstractDataPluginItem
34 {
35  Q_OBJECT
36 
37 public:
38  OpenCachingItem( const OpenCachingCache& cache, QObject *parent );
39 
40  ~OpenCachingItem();
41 
42  // Returns the item type of the item.
43  QString itemType() const;
44 
45  // Returns true if the item is paintable
46  bool initialized();
47 
48  // Here the item gets painted
49  void paint( GeoPainter *painter, ViewportParams *viewport,
50  const QString& renderPos, GeoSceneLayer * layer = 0 );
51 
52  QAction *action();
53 
54  bool operator<( const AbstractDataPluginItem *other ) const;
55 
56 public slots:
57  void showInfoDialog();
58 
59 private:
60  void updateTooltip();
61 
62  QDialog *infoDialog();
63 
64  OpenCachingCache m_cache;
65 
66  Ui::OpenCachingCacheDialog *m_ui;
67  QDialog *m_infoDialog;
68  QAction *m_action;
69 
70  int m_logIndex;
71 
72  static QFont s_font;
73  static QPixmap s_icon;
74 
75 private slots:
76  void updateDescriptionLanguage( QString language );
77 
78  void nextLogEntry();
79 
80  void previousLogEntry();
81 };
82 
83 }
84 #endif // OPENCACHINGITEM_H
Marble::OpenCachingItem::initialized
bool initialized()
Definition: OpenCachingItem.cpp:52
Marble::OpenCachingItem::OpenCachingItem
OpenCachingItem(const OpenCachingCache &cache, QObject *parent)
Definition: OpenCachingItem.cpp:27
Marble::OpenCachingCache
Contains all information about a cache, including logs and descriptions in all available languages...
Definition: OpenCachingCache.h:27
Marble::AbstractDataPluginItem
Definition: AbstractDataPluginItem.h:28
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::OpenCachingItem::paint
void paint(GeoPainter *painter, ViewportParams *viewport, const QString &renderPos, GeoSceneLayer *layer=0)
Definition: OpenCachingItem.cpp:128
QFont
Marble::OpenCachingItem::operator<
bool operator<(const AbstractDataPluginItem *other) const
Definition: OpenCachingItem.cpp:121
Marble::OpenCachingItem
Item representing a single cache.
Definition: OpenCachingItem.h:33
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
Marble::OpenCachingItem::showInfoDialog
void showInfoDialog()
Definition: OpenCachingItem.cpp:57
Marble::OpenCachingItem::action
QAction * action()
Returns the action of this specific item.
Definition: OpenCachingItem.cpp:115
QObject
QString
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QPixmap
QAction
QDialog
OpenCachingCache.h
QObject::parent
QObject * parent() const
AbstractDataPluginItem.h
Marble::OpenCachingItem::~OpenCachingItem
~OpenCachingItem()
Definition: OpenCachingItem.cpp:41
Marble::OpenCachingItem::itemType
QString itemType() const
Definition: OpenCachingItem.cpp:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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