Marble

TourCaptureDialog.h
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2 //
3 // SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <[email protected]>
4 //
5 
6 #ifndef TOURCAPTUREDIALOG_H
7 #define TOURCAPTUREDIALOG_H
8 
9 #include <QDialog>
10 
11 #include "marble_export.h"
12 
13 namespace Ui {
14 class TourCaptureDialog;
15 }
16 
17 namespace Marble {
18 
19 class MarbleWidget;
20 
21 class MovieCapture;
22 class TourPlayback;
23 class MARBLE_EXPORT TourCaptureDialog : public QDialog
24 {
25  Q_OBJECT
26 
27 public:
28  explicit TourCaptureDialog(MarbleWidget *widget, QWidget *parent = nullptr);
29  ~TourCaptureDialog() override;
30 
31 public Q_SLOTS:
32  void startRecording();
33  void stopRecording();
34  void setRate( double rate );
35  void setTourPlayback( TourPlayback* playback );
36  void setDefaultFilename( const QString &filename );
37  void handleError();
38 
39 private Q_SLOTS:
40  void loadDestinationFile();
41  void updateProgress( double position );
42  void recordNextFrame();
43 
44 private:
45  Ui::TourCaptureDialog *ui;
46  MovieCapture *m_recorder;
47  TourPlayback *m_playback;
48  bool m_writingPossible;
49  double m_current_position;
50  QString m_defaultFileName;
51 };
52 
53 } // namespace Marble
54 
55 #endif // MOVIECAPTUREDIALOG_H
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Sep 25 2023 03:50:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.