• 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
MarbleWidgetInputHandler.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 2005-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 //
11 
12 //
13 // The MarbleWidgetInputHandler handles mouse and keyboard input.
14 //
15 
16 #ifndef MARBLE_MARBLEWIDGETINPUTHANDLER_H
17 #define MARBLE_MARBLEWIDGETINPUTHANDLER_H
18 
19 #include <QObject>
20 #include <QString>
21 
22 #include "marble_export.h"
23 
24 class QEvent;
25 class QRubberBand;
26 class QTimer;
27 
28 namespace Marble
29 {
30 
31 class MarbleModel;
32 class MarbleWidget;
33 class MarbleWidgetPopupMenu;
34 class AbstractDataPluginItem;
35 class RenderPlugin;
36 
37 class MARBLE_EXPORT MarbleWidgetInputHandler : public QObject
38 {
39  Q_OBJECT
40 
41  public:
42  explicit MarbleWidgetInputHandler( MarbleWidget* );
43  virtual ~MarbleWidgetInputHandler();
44 
45  void setPositionSignalConnected( bool connected );
46  bool isPositionSignalConnected() const;
47 
52  void setMouseButtonPopupEnabled( Qt::MouseButton mouseButton, bool enabled );
53 
58  bool isMouseButtonPopupEnabled( Qt::MouseButton mouseButton ) const;
59 
60  void setPanViaArrowsEnabled( bool enabled );
61 
62  bool panViaArrowsEnabled() const;
63 
64  void setInertialEarthRotationEnabled( bool enabled );
65 
71  bool inertialEarthRotationEnabled() const;
72 
73  Q_SIGNALS:
74  // Mouse button menus
75  void lmbRequest( int, int );
76  void rmbRequest( int, int );
77 
78  //Gps coordinates
79  void mouseClickScreenPosition( int, int );
80  void mouseMoveGeoPosition( QString );
81 
82  protected Q_SLOTS:
83  void restoreViewContext();
84  void installPluginEventFilter( RenderPlugin *renderPlugin );
85 
86  protected:
87  class Protected;
88  Protected * const d;
89 
90  private:
91  Q_DISABLE_COPY( MarbleWidgetInputHandler )
92 };
93 
94 
95 
96 class MARBLE_EXPORT MarbleWidgetDefaultInputHandler : public MarbleWidgetInputHandler
97 {
98  Q_OBJECT
99 
100  public:
101  explicit MarbleWidgetDefaultInputHandler( MarbleWidget* );
102  ~MarbleWidgetDefaultInputHandler();
103 
104  static bool keyEvent( MarbleWidget * widget, QEvent* e );
105 
106  protected:
107  bool eventFilter( QObject *, QEvent * );
108 
109  private Q_SLOTS:
110  void showLmbMenu( int, int );
111 
112  void showRmbMenu( int, int );
113 
114  void openItemToolTip();
115 
116  void lmbTimeout();
117 
118  private:
119  Q_DISABLE_COPY( MarbleWidgetDefaultInputHandler )
120  class Private;
121  Private * const d;
122 };
123 
124 }
125 
126 #endif
Marble::MarbleWidgetInputHandler
Definition: MarbleWidgetInputHandler.h:37
QObject
Marble::MarbleWidgetDefaultInputHandler
Definition: MarbleWidgetInputHandler.h:96
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:102
Marble::MarbleWidgetInputHandler::d
Protected *const d
Definition: MarbleWidgetInputHandler.h:87
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
marble_export.h
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Marble::RenderPlugin
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
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