/usr/include/marble/DownloadRegionDialog.h is in libmarble-dev 4:4.13.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | // This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library. If not, see <http://www.gnu.org/licenses/>.
#ifndef MARBLE_DOWNLOADREGIONDIALOG_H
#define MARBLE_DOWNLOADREGIONDIALOG_H
#include <QDialog>
#include <QVector>
#include "TileCoordsPyramid.h"
#include "marble_export.h"
class QHideEvent;
class QShowEvent;
namespace Marble
{
class GeoDataLatLonAltBox;
class MarbleWidget;
class ViewportParams;
class MARBLE_EXPORT DownloadRegionDialog: public QDialog
{
Q_OBJECT
public:
enum SelectionMethod { VisibleRegionMethod, SpecifiedRegionMethod, RouteDownloadMethod };
explicit DownloadRegionDialog( MarbleWidget *const widget, QWidget * const parent = 0,
Qt::WindowFlags const f = 0 );
~DownloadRegionDialog();
void setAllowedTileLevelRange( int const minimumTileLevel,
int const maximumTileLevel );
void setVisibleTileLevel( int const tileLevel );
void setSelectionMethod( SelectionMethod const );
QVector<TileCoordsPyramid> region() const;
public Q_SLOTS:
void setSpecifiedLatLonAltBox( GeoDataLatLonAltBox const & );
void setVisibleLatLonAltBox( GeoDataLatLonAltBox const & );
void updateTextureLayer();
Q_SIGNALS:
/// This signal is emitted when the "Apply" button is pressed.
void applied();
/// This signal is emitted when the dialog receives a QHideEvent.
void hidden();
/// This signal is emitted when the dialog receives a QShowEvent
void shown();
protected:
virtual void hideEvent( QHideEvent * event );
virtual void showEvent( QShowEvent * event );
private Q_SLOTS:
void toggleSelectionMethod();
void updateTilesCount();
/// This slot is called upon to update the route download UI when a route exists
void updateRouteDialog();
/// This slot sets the unit of the offset(m or km) in the spinbox
void setOffsetUnit();
private:
Q_DISABLE_COPY( DownloadRegionDialog )
class Private;
Private * const d;
};
}
#endif
|