• 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
DownloadRegionDialog.h
Go to the documentation of this file.
1 // This library is free software; you can redistribute it and/or
2 // modify it under the terms of the GNU Lesser General Public
3 // License as published by the Free Software Foundation; either
4 // version 2.1 of the License, or (at your option) any later version.
5 //
6 // This library is distributed in the hope that it will be useful,
7 // but WITHOUT ANY WARRANTY; without even the implied warranty of
8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9 // Lesser General Public License for more details.
10 //
11 // You should have received a copy of the GNU Lesser General Public
12 // License along with this library. If not, see <http://www.gnu.org/licenses/>.
13 
14 #ifndef MARBLE_DOWNLOADREGIONDIALOG_H
15 #define MARBLE_DOWNLOADREGIONDIALOG_H
16 
17 #include <QDialog>
18 #include <QVector>
19 
20 #include "TileCoordsPyramid.h"
21 #include "marble_export.h"
22 
23 class QHideEvent;
24 class QShowEvent;
25 
26 namespace Marble
27 {
28 class GeoDataLatLonAltBox;
29 class MarbleWidget;
30 class ViewportParams;
31 class MARBLE_EXPORT DownloadRegionDialog: public QDialog
32 {
33  Q_OBJECT
34 
35  public:
36  enum SelectionMethod { VisibleRegionMethod, SpecifiedRegionMethod, RouteDownloadMethod };
37 
38  explicit DownloadRegionDialog( MarbleWidget *const widget, QWidget * const parent = 0,
39  Qt::WindowFlags const f = 0 );
40  ~DownloadRegionDialog();
41  void setAllowedTileLevelRange( int const minimumTileLevel,
42  int const maximumTileLevel );
43  void setVisibleTileLevel( int const tileLevel );
44  void setSelectionMethod( SelectionMethod const );
45 
46  QVector<TileCoordsPyramid> region() const;
47 
48  public Q_SLOTS:
49  void setSpecifiedLatLonAltBox( GeoDataLatLonAltBox const & );
50  void setVisibleLatLonAltBox( GeoDataLatLonAltBox const & );
51  void updateTextureLayer();
52 
53  Q_SIGNALS:
55  void applied();
57  void hidden();
59  void shown();
60 
61  protected:
62  virtual void hideEvent( QHideEvent * event );
63  virtual void showEvent( QShowEvent * event );
64 
65  private Q_SLOTS:
66  void toggleSelectionMethod();
67  void updateTilesCount();
68 
70  void updateRouteDialog();
72  void setOffsetUnit();
73 
74  private:
75  Q_DISABLE_COPY( DownloadRegionDialog )
76  class Private;
77  Private * const d;
78 
79 };
80 
81 }
82 
83 #endif
Marble::DownloadRegionDialog::VisibleRegionMethod
Definition: DownloadRegionDialog.h:36
Marble::DownloadRegionDialog::SelectionMethod
SelectionMethod
Definition: DownloadRegionDialog.h:36
TileCoordsPyramid.h
QDialog
QWidget
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::DownloadRegionDialog
Definition: DownloadRegionDialog.h:31
marble_export.h
MarbleWidget
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:49 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