• 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
MarbleWidgetPopupMenu.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 2006-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 //
11 
12 #ifndef MARBLE_MARBLEWIDGETPOPUPMENU_H
13 #define MARBLE_MARBLEWIDGETPOPUPMENU_H
14 
15 #include "marble_export.h"
16 
17 #include <QObject>
18 #include <QPoint>
19 
20 class QAction;
21 
22 namespace Marble
23 {
24 
25 class MarbleWidget;
26 class MarbleModel;
27 class GeoDataCoordinates;
28 class GeoDataPlacemark;
29 
33 class MARBLE_EXPORT MarbleWidgetPopupMenu : public QObject
34 {
35  Q_OBJECT
36 
37  public:
38  MarbleWidgetPopupMenu( MarbleWidget*, const MarbleModel* );
39 
40  virtual ~MarbleWidgetPopupMenu();
41 
46  void addAction( Qt::MouseButton button, QAction* action );
47 
52  QPoint mousePosition() const;
53 
54 Q_SIGNALS:
55  void trackPlacemark( const GeoDataPlacemark *placemark );
56 
57  public Q_SLOTS:
58  void showLmbMenu( int, int );
59  void showRmbMenu( int, int );
60 
61 private Q_SLOTS:
62  void slotInfoDialog();
63  void slotShowOrbit( bool show );
64  void slotTrackPlacemark();
65  void slotCopyCoordinates();
66  void slotAboutDialog();
67 
68 private Q_SLOTS:
69  void directionsFromHere();
70  void directionsToHere();
71  void startReverseGeocoding();
72  void showAddressInformation( const GeoDataCoordinates &coordinates, const GeoDataPlacemark &placemark );
73  void addBookmark();
74  void toggleFullscreen( bool enabled );
75 
76  private:
77  Q_DISABLE_COPY( MarbleWidgetPopupMenu )
78  class Private;
79  Private* const d;
80 };
81 
82 }
83 
84 #endif
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
QObject
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
Marble::MarbleWidgetPopupMenu
The MarbleWidgetPopupMenu handles context menus.
Definition: MarbleWidgetPopupMenu.h:33
marble_export.h
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Marble::GeoDataPlacemark
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 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