Marble

TourCaptureDialog.h
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2014 Sanjiban Bairagya <sanjiban22393@gmail.com>
4//
5
6#ifndef TOURCAPTUREDIALOG_H
7#define TOURCAPTUREDIALOG_H
8
9#include <QDialog>
10
11#include "marble_export.h"
12
13namespace Ui
14{
15class TourCaptureDialog;
16}
17
18namespace Marble
19{
20
21class MarbleWidget;
22
23class MovieCapture;
24class TourPlayback;
25class MARBLE_EXPORT TourCaptureDialog : public QDialog
26{
27 Q_OBJECT
28
29public:
30 explicit TourCaptureDialog(MarbleWidget *widget, QWidget *parent = nullptr);
31 ~TourCaptureDialog() override;
32
33public Q_SLOTS:
34 void startRecording();
35 void stopRecording();
36 void setRate(double rate);
37 void setTourPlayback(TourPlayback *playback);
38 void setDefaultFilename(const QString &filename);
39 void handleError();
40
41private Q_SLOTS:
42 void loadDestinationFile();
43 void updateProgress(double position);
44 void recordNextFrame();
45
46private:
47 Ui::TourCaptureDialog *const ui;
48 MovieCapture *const m_recorder;
49 TourPlayback *m_playback = nullptr;
50 bool m_writingPossible;
51 double m_current_position;
52 QString m_defaultFileName;
53};
54
55} // namespace Marble
56
57#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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.