Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/DownloadRegionDialog.h
Show All 28 Lines | |||||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | enum SelectionMethod { VisibleRegionMethod, SpecifiedRegionMethod, RouteDownloadMethod }; | 33 | enum SelectionMethod { VisibleRegionMethod, SpecifiedRegionMethod, RouteDownloadMethod }; | ||
34 | 34 | | |||
35 | explicit DownloadRegionDialog( MarbleWidget *const widget, QWidget * const parent = 0, | 35 | explicit DownloadRegionDialog( MarbleWidget *const widget, QWidget * const parent = 0, | ||
36 | Qt::WindowFlags const f = 0 ); | 36 | Qt::WindowFlags const f = 0 ); | ||
37 | ~DownloadRegionDialog(); | 37 | ~DownloadRegionDialog() override; | ||
38 | void setAllowedTileLevelRange( int const minimumTileLevel, | 38 | void setAllowedTileLevelRange( int const minimumTileLevel, | ||
39 | int const maximumTileLevel ); | 39 | int const maximumTileLevel ); | ||
40 | void setVisibleTileLevel( int const tileLevel ); | 40 | void setVisibleTileLevel( int const tileLevel ); | ||
41 | void setSelectionMethod( SelectionMethod const ); | 41 | void setSelectionMethod( SelectionMethod const ); | ||
42 | 42 | | |||
43 | QVector<TileCoordsPyramid> region() const; | 43 | QVector<TileCoordsPyramid> region() const; | ||
44 | 44 | | |||
45 | public Q_SLOTS: | 45 | public Q_SLOTS: | ||
46 | void setSpecifiedLatLonAltBox( GeoDataLatLonAltBox const & ); | 46 | void setSpecifiedLatLonAltBox( GeoDataLatLonAltBox const & ); | ||
47 | void setVisibleLatLonAltBox( GeoDataLatLonAltBox const & ); | 47 | void setVisibleLatLonAltBox( GeoDataLatLonAltBox const & ); | ||
48 | void updateTextureLayer(); | 48 | void updateTextureLayer(); | ||
49 | 49 | | |||
50 | Q_SIGNALS: | 50 | Q_SIGNALS: | ||
51 | /// This signal is emitted when the "Apply" button is pressed. | 51 | /// This signal is emitted when the "Apply" button is pressed. | ||
52 | void applied(); | 52 | void applied(); | ||
53 | /// This signal is emitted when the dialog receives a QHideEvent. | 53 | /// This signal is emitted when the dialog receives a QHideEvent. | ||
54 | void hidden(); | 54 | void hidden(); | ||
55 | /// This signal is emitted when the dialog receives a QShowEvent | 55 | /// This signal is emitted when the dialog receives a QShowEvent | ||
56 | void shown(); | 56 | void shown(); | ||
57 | 57 | | |||
58 | protected: | 58 | protected: | ||
59 | virtual void hideEvent( QHideEvent * event ); | 59 | void hideEvent( QHideEvent * event ) override; | ||
60 | virtual void showEvent( QShowEvent * event ); | 60 | void showEvent( QShowEvent * event ) override; | ||
61 | 61 | | |||
62 | private Q_SLOTS: | 62 | private Q_SLOTS: | ||
63 | void toggleSelectionMethod(); | 63 | void toggleSelectionMethod(); | ||
64 | void updateTilesCount(); | 64 | void updateTilesCount(); | ||
65 | 65 | | |||
66 | /// This slot is called upon to update the route download UI when a route exists | 66 | /// This slot is called upon to update the route download UI when a route exists | ||
67 | void updateRouteDialog(); | 67 | void updateRouteDialog(); | ||
68 | /// This slot sets the unit of the offset(m or km) in the spinbox | 68 | /// This slot sets the unit of the offset(m or km) in the spinbox | ||
Show All 12 Lines |