/usr/include/marble/TourWidget.h is in libmarble-dev 4:17.12.3-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 84 85 86 87 88 89 90 91 92 93 94 | //
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2013 Mihail Ivchenko <ematirov@gmail.com>
// Copyright 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
//
#ifndef MARBLE_TOURWIDGET_H
#define MARBLE_TOURWIDGET_H
#include "marble_export.h"
#include <QWidget>
class QModelIndex;
namespace Marble
{
class GeoDataFeature;
class GeoDataContainer;
class MarbleWidget;
class TourWidgetPrivate;
class MARBLE_EXPORT TourWidget : public QWidget
{
Q_OBJECT
public:
explicit TourWidget( QWidget *parent = 0, Qt::WindowFlags f = 0 );
~TourWidget() override;
void setMarbleWidget( MarbleWidget *widget );
bool openTour( const QString &filename );
bool isPlaying() const;
bool eventFilter( QObject *watched, QEvent *event ) override;
public Q_SLOTS:
void startPlaying();
void pausePlaying();
void togglePlaying();
void stopPlaying();
void handleSliderMove( int );
/**
* Highlights the item curently being played.
*/
void setHighlightedItemIndex( int index );
Q_SIGNALS:
void featureUpdated( GeoDataFeature *feature );
void featureAdded( GeoDataContainer *parent, GeoDataFeature *feature, int row );
void featureRemoved( const GeoDataFeature *feature );
private Q_SLOTS:
void moveUp();
void moveDown();
void addFlyTo();
void addWait();
void addSoundCue();
void addPlacemark();
void addRemovePlacemark();
void addChangePlacemark();
void deleteSelected();
void updateDuration();
void finishAddingItem();
void stopLooping();
protected:
void closeEvent( QCloseEvent *event ) override;
private:
Q_PRIVATE_SLOT( d, void openFile() )
Q_PRIVATE_SLOT( d, void createTour() )
Q_PRIVATE_SLOT( d, void saveTour() )
Q_PRIVATE_SLOT( d, void saveTourAs() )
Q_PRIVATE_SLOT( d, void captureTour() )
Q_PRIVATE_SLOT( d, void updateButtonsStates() )
Q_PRIVATE_SLOT( d, void mapCenterOn( const QModelIndex &index ) )
Q_PRIVATE_SLOT( d, void handlePlaybackProgress( const double position ) )
Q_DISABLE_COPY( TourWidget )
void removeHighlight();
TourWidgetPrivate * const d;
};
}
#endif
|