• 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
MapViewWidget.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 2004-2007 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 // Copyright 2007 Thomas Zander <zander@kde.org>
11 // Copyright 2010 Bastian Holst <bastianholst@gmx.de>
12 //
13 
14 #ifndef MARBLE_MAPVIEWWIDGET_H
15 #define MARBLE_MAPVIEWWIDGET_H
16 
17 // Marble
18 #include "MarbleGlobal.h"
19 #include "marble_export.h"
20 
21 // Qt
22 #include <QWidget>
23 
24 class QStandardItemModel;
25 
26 namespace Marble
27 {
28 
29 class MapThemeManager;
30 class MarbleWidget;
31 
32 class MARBLE_EXPORT MapViewWidget : public QWidget
33 {
34  Q_OBJECT
35  public:
36  explicit MapViewWidget( QWidget *parent = 0, Qt::WindowFlags f = 0 );
37  ~MapViewWidget();
38 
43  void setMarbleWidget( MarbleWidget *widget, MapThemeManager *mapThemeManager );
44 
45 protected:
46  void resizeEvent(QResizeEvent *event);
47 
48  public Q_SLOTS:
49  void setMapThemeId( const QString & );
50  void setProjection( Projection projection );
51 
52 private slots:
53  void globeViewRequested();
54  void mercatorViewRequested();
55  void flatViewRequested();
56 
57  private:
58  Q_PRIVATE_SLOT( d, void celestialBodySelected( int comboIndex ) )
59 
60  Q_PRIVATE_SLOT( d, void projectionSelected( int projectionIndex ) )
61 
62  Q_PRIVATE_SLOT( d, void mapThemeSelected( QModelIndex index ) )
63  Q_PRIVATE_SLOT( d, void mapThemeSelected( int index ) )
64 
65  Q_PRIVATE_SLOT( d, void showContextMenu( const QPoint& pos ) )
66  Q_PRIVATE_SLOT( d, void deleteMap() )
67  Q_PRIVATE_SLOT( d, void toggleFavorite() )
68  Q_PRIVATE_SLOT( d, void toggleIconSize() )
69 
70  Q_SIGNALS:
71  void celestialBodyChanged( const QString& );
72  void mapThemeIdChanged( const QString& );
73  void projectionChanged( Projection );
74  void showMapWizard();
75  void showUploadDialog();
76  void mapThemeDeleted();
77 
78  private:
79  Q_DISABLE_COPY( MapViewWidget )
80 
81  friend class Private;
82  class Private;
83  Private * const d;
84 };
85 
86 }
87 
88 #endif
QWidget
MapThemeManager
Provides access to all map themes installed locally.
Definition: DeclarativeMapThemeManager.h:40
Marble::MapViewWidget
Definition: MapViewWidget.h:32
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
MarbleGlobal.h
Marble::MapThemeManager
The class that handles map themes that are locally available .
Definition: MapThemeManager.h:48
marble_export.h
Marble::Projection
Projection
This enum is used to choose the projection shown in the view.
Definition: MarbleGlobal.h:44
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-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