• 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
  • layers
PopupLayer.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 // Copyright 2012 Dennis Nienhüser <earthwings@gentoo.org>
10 // Copyright 2012 Illya Kovalevskyy <illya.kovalevskyy@gmail.com>
11 //
12 
13 #ifndef POPUPLAYER_H
14 #define POPUPLAYER_H
15 
16 #include "LayerInterface.h"
17 
18 #include <QObject>
19 #include <QUrl>
20 
21 namespace Marble
22 {
23 
24 class GeoDataCoordinates;
25 class MarbleWidget;
26 
34 class MARBLE_EXPORT PopupLayer : public QObject, public LayerInterface
35 {
36  Q_OBJECT
37 public:
38  explicit PopupLayer( MarbleWidget *widget, QObject* parent = 0 );
39  ~PopupLayer();
40 
41  QStringList renderPosition() const;
42  bool render( GeoPainter *painter, ViewportParams *viewport,
43  const QString &, GeoSceneLayer * );
44  virtual bool eventFilter( QObject *, QEvent * );
45  qreal zValue() const;
46 
47  RenderState renderState() const;
48 
49  virtual QString runtimeTrace() const { return "PopupLayer"; }
50 
59  bool visible() const;
60 
69  void setVisible( bool visible );
70 
77  void popup();
78 
93  void setCoordinates( const GeoDataCoordinates &coordinates, Qt::Alignment alignment );
94 
102  void setUrl( const QUrl &url );
103 
111  void setSize( const QSizeF &size );
112 
120  void setContent( const QString &html, const QUrl & baseUrl = QUrl() );
121 
129  void setBackgroundColor( const QColor &color );
130 
138  void setTextColor( const QColor &color );
139 
140 Q_SIGNALS:
141  void repaintNeeded();
142 
143 private Q_SLOTS:
144  void hidePopupItem();
145 
146 private:
147  class Private;
148  Private *const d;
149 };
150 
151 }
152 
153 #endif
QEvent
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::PopupLayer::runtimeTrace
virtual QString runtimeTrace() const
Returns a debug line for perfo/tracing issues.
Definition: PopupLayer.h:49
Marble::GeoPainter
A painter that allows to draw geometric primitives on the map.
Definition: GeoPainter.h:98
Marble::PopupLayer
The PopupLayer class.
Definition: PopupLayer.h:34
LayerInterface.h
Marble::LayerInterface
Definition: LayerInterface.h:26
Qt::Alignment
typedef Alignment
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
Marble::GeoSceneLayer
Layer of a GeoScene document.
Definition: GeoSceneLayer.h:43
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
QString
QColor
Marble::RenderState
Definition: RenderState.h:22
QStringList
Marble::ViewportParams
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
QUrl
QSizeF
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
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