• 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
  • routing
RoutingWidget.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 2010 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #ifndef MARBLE_ROUTINGWIDGET_H
12 #define MARBLE_ROUTINGWIDGET_H
13 
14 #include "GeoDataCoordinates.h"
15 #include "GeoDataLineString.h"
16 #include "RoutingManager.h"
17 #include "marble_export.h"
18 
19 #include <QModelIndex>
20 #include <QWidget>
21 
22 namespace Marble
23 {
24 
25 class MarbleWidget;
26 class RoutingInputWidget;
27 class RoutingWidgetPrivate;
28 class RouteSyncManager;
29 
35 class MARBLE_EXPORT RoutingWidget : public QWidget
36 {
37  Q_OBJECT
38 
39 public:
46  explicit RoutingWidget( MarbleWidget *marbleWidget, QWidget *parent );
47 
49  ~RoutingWidget();
50 
52  void setShowDirectionsButtonVisible( bool visible );
53 
54  void setRouteSyncManager(RouteSyncManager* manager);
55 
56 public Q_SLOTS:
58  void openRoute();
59 
61  void saveRoute();
62 
64  void uploadToCloud();
65 
67  void openCloudRoutesDialog();
68 
70  void addInputWidget();
71 
72 private Q_SLOTS:
74  void retrieveRoute();
75 
77  void activateItem ( const QModelIndex &index );
78 
80  void handleSearchResult( RoutingInputWidget *widget );
81 
83  void centerOnInputWidget( RoutingInputWidget *widget );
84 
86  void activatePlacemark( const QModelIndex &index );
87 
89  void insertInputWidget( int index );
90 
92  void removeInputWidget( RoutingInputWidget *widget );
93 
95  void removeInputWidget( int index );
96 
98  void updateRouteState( RoutingManager::State state );
99 
101  void requestMapPosition( RoutingInputWidget *widget, bool enabled );
102 
104  void retrieveSelectedPoint( const GeoDataCoordinates &coordinates );
105 
107  void adjustSearchButton();
108 
110  void pointSelectionCanceled();
111 
113  void configureProfile();
114 
116  void updateProgress();
117 
119  void updateAlternativeRoutes();
120 
122  void selectFirstProfile();
123 
125  void showDirections();
126 
128  void setRoutingProfile( int index );
129 
131  void indicateRoutingFailure( GeoDataDocument* route );
132 
134  void updateActiveRoutingProfile();
135 
137  void updateCloudSyncButtons();
138 
140  void openCloudRoute( const QString &identifier );
141 
142  void updateUploadProgress( qint64 sent, qint64 total );
143 
144 protected:
145  bool eventFilter( QObject *o, QEvent *e );
146  void resizeEvent(QResizeEvent *e);
147 
148 private:
149  RoutingWidgetPrivate *const d;
150 };
151 
152 } // namespace Marble
153 
154 #endif
QModelIndex
GeoDataCoordinates.h
QEvent
QResizeEvent
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
QWidget
Marble::GeoDataDocument
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
Marble::RouteSyncManager
Definition: RouteSyncManager.h:23
Marble::RoutingWidget
A widget consisting of input fields for places / routing destinations, a list view showing routing in...
Definition: RoutingWidget.h:35
Marble::MarbleWidget
A widget class that displays a view of the earth.
Definition: MarbleWidget.h:104
RoutingManager.h
QObject
MARBLE_EXPORT
#define MARBLE_EXPORT
Definition: marble_export.h:20
GeoDataLineString.h
Marble::RoutingInputWidget
Combines a line edit for input and a couple of buttons to let the user type in a search term...
Definition: RoutingInputWidget.h:35
QString
Marble::RoutingManager::State
State
Definition: RoutingManager.h:42
marble_export.h
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