• 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
  • apps
  • marble-mobile
MobileMainWindow.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-2010 Torsten Rahn <tackat@kde.org>
9 // Copyright 2007 Inge Wallin <ingwa@kde.org>
10 // Copyright 2011-2013 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
11 //
12 
13 
14 #ifndef MARBLE_MAINWINDOW_H
15 #define MARBLE_MAINWINDOW_H
16 
17 #include <QMainWindow>
18 
19 #include <QNetworkAccessManager>
20 #include <QVariantMap>
21 
22 #include "MapThemeManager.h"
23 
24 class QAction;
25 
26 namespace Marble
27 {
28 
29 class DownloadRegionDialog;
30 class GoToDialog;
31 class MarbleLegendBrowser;
32 class MarbleWidget;
33 class RoutingWidget;
34 class StackableWindow;
35 
36 class MainWindow : public QMainWindow
37 {
38  Q_OBJECT
39 
40 #ifdef Q_WS_MAEMO_5
41  enum Orientation {
42  OrientationAutorotate,
43  OrientationLandscape,
44  OrientationPortrait
45  };
46 #endif
47 
48 public:
49  explicit MainWindow( const QString &marbleDataPath = QString(),
50  const QVariantMap &cmdLineSettings = QVariantMap(),
51  QWidget *parent = 0 );
52 
53  MarbleWidget *marbleWidget();
54 
55  void addGeoDataFile( const QString &path );
56 
57 #ifdef Q_WS_MAEMO_5
58  Orientation orientation() const;
59 #endif
60 
61 protected:
62  void closeEvent( QCloseEvent *event );
63 
64 private Q_SLOTS:
65  void initObject( const QVariantMap &cmdLineSettings );
66 
67  void fallBackToDefaultTheme();
68 
69  void setWorkOffline( bool );
70  void setKineticScrollingEnabled( bool );
71  void setLegendShown( bool show );
72 
73  // Settings Menu
74 #ifdef Q_WS_MAEMO_5
75  void setOrientation( Orientation orientation );
76 #endif
77 
78  // Download region dialog
79  void downloadRegion();
80 
81  void showBookmarkManagerDialog();
82  void showAboutMarbleDialog();
83  void showDownloadRegionDialog();
84  void showMapViewDialog();
85  void showRoutingDialog();
86  void showTrackingDialog();
87  void showGoToDialog();
88 
89 private:
90  QString readMarbleDataPath();
91  void readSettings( const QVariantMap &overrideSettings = QVariantMap() );
92  void writeSettings();
93  void initializeTrackingWidget();
94 
95  MarbleWidget *const m_marbleWidget;
96  MarbleLegendBrowser *const m_legendBrowser;
97 
98  DownloadRegionDialog *m_downloadRegionDialog;
99  QDialog *m_mapViewDialog;
100  StackableWindow *m_routingWindow;
101  StackableWindow *m_trackingWindow;
102  GoToDialog *m_gotoDialog;
103  RoutingWidget *m_routingWidget;
104 
105  QAction *m_workOfflineAct;
106  QAction *m_kineticScrollingAction;
107  QAction *m_showLegendAct;
108 
109  QNetworkAccessManager m_networkAccessManager;
110 
111  MapThemeManager m_mapThemeManager;
112  QString m_lastFileOpenPath;
113  QStringList m_commandlineFilePaths;
114 };
115 
116 } // namespace Marble
117 
118 #endif
Marble::MainWindow::closeEvent
void closeEvent(QCloseEvent *event)
Definition: MobileMainWindow.cpp:284
QDialog
QWidget
MapThemeManager
Provides access to all map themes installed locally.
Definition: DeclarativeMapThemeManager.h:40
Marble::MainWindow::MainWindow
MainWindow(const QString &marbleDataPath=QString(), QWidget *parent=0)
Definition: KdeMainWindow.cpp:38
QMainWindow
Marble::MainWindow::marbleWidget
MarbleWidget * marbleWidget() const
Definition: KdeMainWindow.cpp:79
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Marble::MainWindow::addGeoDataFile
void addGeoDataFile(const QString &path)
Definition: MobileMainWindow.cpp:197
MapThemeManager.h
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